diff --git a/azurerm/config.go b/azurerm/config.go index 5c5353119356..6a8afc6f428c 100644 --- a/azurerm/config.go +++ b/azurerm/config.go @@ -32,6 +32,7 @@ import ( keyVault "github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault" "github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2018-02-14/keyvault" "github.com/Azure/azure-sdk-for-go/services/logic/mgmt/2016-06-01/logic" + "github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb" "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2018-07-01/media" "github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2017-12-01/mysql" "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network" @@ -43,7 +44,6 @@ import ( "github.com/Azure/azure-sdk-for-go/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid" "github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight" "github.com/Azure/azure-sdk-for-go/services/preview/iothub/mgmt/2018-12-01-preview/devices" - "github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb" "github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights" "github.com/Azure/azure-sdk-for-go/services/preview/msi/mgmt/2015-08-31-preview/msi" "github.com/Azure/azure-sdk-for-go/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights" @@ -323,11 +323,11 @@ type ArmClient struct { // Resources managementLocksClient locks.ManagementLocksClient - deploymentsClient resources.DeploymentsClient + deploymentsClient resources.DeploymentsGroupClient providersClient resourcesprofile.ProvidersClient - resourcesClient resources.Client - resourceGroupsClient resources.GroupsClient - subscriptionsClient subscriptions.Client + resourcesClient resources.GroupClient + resourceGroupsClient resources.GroupsGroupClient + subscriptionsClient subscriptions.GroupClient // Scheduler schedulerJobCollectionsClient scheduler.JobCollectionsClient //nolint: megacheck @@ -1255,19 +1255,19 @@ func (c *ArmClient) registerResourcesClients(endpoint, subscriptionId string, au c.configureClient(&locksClient.Client, auth) c.managementLocksClient = locksClient - deploymentsClient := resources.NewDeploymentsClientWithBaseURI(endpoint, subscriptionId) + deploymentsClient := resources.NewDeploymentsGroupClientWithBaseURI(endpoint, subscriptionId) c.configureClient(&deploymentsClient.Client, auth) c.deploymentsClient = deploymentsClient - resourcesClient := resources.NewClientWithBaseURI(endpoint, subscriptionId) + resourcesClient := resources.NewGroupClientWithBaseURI(endpoint, subscriptionId) c.configureClient(&resourcesClient.Client, auth) c.resourcesClient = resourcesClient - resourceGroupsClient := resources.NewGroupsClientWithBaseURI(endpoint, subscriptionId) + resourceGroupsClient := resources.NewGroupsGroupClientWithBaseURI(endpoint, subscriptionId) c.configureClient(&resourceGroupsClient.Client, auth) c.resourceGroupsClient = resourceGroupsClient - subscriptionsClient := subscriptions.NewClientWithBaseURI(endpoint) + subscriptionsClient := subscriptions.NewGroupClientWithBaseURI(endpoint) c.configureClient(&subscriptionsClient.Client, auth) c.subscriptionsClient = subscriptionsClient diff --git a/azurerm/data_source_dns_zone.go b/azurerm/data_source_dns_zone.go index bc12e908d7b7..3a1e16eb64c5 100644 --- a/azurerm/data_source_dns_zone.go +++ b/azurerm/data_source_dns_zone.go @@ -140,7 +140,7 @@ func dataSourceArmDnsZoneRead(d *schema.ResourceData, meta interface{}) error { return nil } -func findZone(client dns.ZonesClient, rgClient resources.GroupsClient, ctx context.Context, name string) (dns.Zone, string, error) { +func findZone(client dns.ZonesClient, rgClient resources.GroupsGroupClient, ctx context.Context, name string) (dns.Zone, string, error) { groups, err := rgClient.List(ctx, "", nil) if err != nil { return dns.Zone{}, "", fmt.Errorf("Error listing Resource Groups: %+v", err) diff --git a/azurerm/resource_arm_function_app.go b/azurerm/resource_arm_function_app.go index dd171f88312f..691d92939815 100644 --- a/azurerm/resource_arm_function_app.go +++ b/azurerm/resource_arm_function_app.go @@ -127,7 +127,7 @@ func resourceArmFunctionApp() *schema.Resource { Required: true, DiffSuppressFunc: ignoreCaseDiffSuppressFunc, ValidateFunc: validation.StringInSlice([]string{ - string(web.SystemAssigned), + string(web.ManagedServiceIdentityTypeSystemAssigned), }, true), }, "principal_id": { diff --git a/azurerm/resource_arm_log_analytics_workspace.go b/azurerm/resource_arm_log_analytics_workspace.go index 4e9839bfe3e6..225b7b32872d 100644 --- a/azurerm/resource_arm_log_analytics_workspace.go +++ b/azurerm/resource_arm_log_analytics_workspace.go @@ -8,6 +8,7 @@ import ( "github.com/Azure/azure-sdk-for-go/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights" "github.com/hashicorp/terraform/helper/schema" "github.com/hashicorp/terraform/helper/validation" + "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/suppress" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/tf" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils" ) @@ -40,14 +41,14 @@ func resourceArmLogAnalyticsWorkspace() *schema.Resource { ForceNew: true, ValidateFunc: validation.StringInSlice([]string{ string(operationalinsights.Free), + string(operationalinsights.PerGB2018), string(operationalinsights.PerNode), string(operationalinsights.Premium), string(operationalinsights.Standalone), string(operationalinsights.Standard), - string(operationalinsights.Unlimited), - string(operationalinsights.PerGB2018), + string("Unlimited"), // TODO check if this is actually no longer valid, removed in v28.0.0 of the SDK }, true), - DiffSuppressFunc: ignoreCaseDiffSuppressFunc, + DiffSuppressFunc: suppress.CaseDifference, }, "retention_in_days": { diff --git a/azurerm/resource_arm_mariadb_database.go b/azurerm/resource_arm_mariadb_database.go index 75297e3bb696..88ec396d0a8d 100644 --- a/azurerm/resource_arm_mariadb_database.go +++ b/azurerm/resource_arm_mariadb_database.go @@ -5,7 +5,7 @@ import ( "log" "regexp" - "github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb" + "github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb" "github.com/hashicorp/terraform/helper/schema" "github.com/hashicorp/terraform/helper/validation" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/response" diff --git a/azurerm/resource_arm_mariadb_server.go b/azurerm/resource_arm_mariadb_server.go index c730a76a84b4..4b2b4816f627 100644 --- a/azurerm/resource_arm_mariadb_server.go +++ b/azurerm/resource_arm_mariadb_server.go @@ -10,7 +10,7 @@ import ( "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/tf" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/validate" - "github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb" + "github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb" "github.com/hashicorp/terraform/helper/schema" "github.com/hashicorp/terraform/helper/validation" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/response" diff --git a/azurerm/resource_arm_template_deployment.go b/azurerm/resource_arm_template_deployment.go index fc2ebb6c24ff..8d6e8a57d6d3 100644 --- a/azurerm/resource_arm_template_deployment.go +++ b/azurerm/resource_arm_template_deployment.go @@ -276,7 +276,7 @@ func normalizeJson(jsonString interface{}) string { return string(b[:]) } -func waitForTemplateDeploymentToBeDeleted(ctx context.Context, client resources.DeploymentsClient, resourceGroup, name string) error { +func waitForTemplateDeploymentToBeDeleted(ctx context.Context, client resources.DeploymentsGroupClient, resourceGroup, name string) error { // we can't use the Waiter here since the API returns a 200 once it's deleted which is considered a polling status code.. log.Printf("[DEBUG] Waiting for Template Deployment (%q in Resource Group %q) to be deleted", name, resourceGroup) stateConf := &resource.StateChangeConf{ @@ -292,7 +292,7 @@ func waitForTemplateDeploymentToBeDeleted(ctx context.Context, client resources. return nil } -func templateDeploymentStateStatusCodeRefreshFunc(ctx context.Context, client resources.DeploymentsClient, resourceGroup, name string) resource.StateRefreshFunc { +func templateDeploymentStateStatusCodeRefreshFunc(ctx context.Context, client resources.DeploymentsGroupClient, resourceGroup, name string) resource.StateRefreshFunc { return func() (interface{}, string, error) { res, err := client.Get(ctx, resourceGroup, name) diff --git a/go.mod b/go.mod index 922bc945ea56..4225209124e9 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module github.com/terraform-providers/terraform-provider-azurerm require ( contrib.go.opencensus.io/exporter/ocagent v0.4.1 // indirect - github.com/Azure/azure-sdk-for-go v26.7.0+incompatible + github.com/Azure/azure-sdk-for-go v29.0.0+incompatible github.com/Azure/go-autorest v11.7.0+incompatible github.com/davecgh/go-spew v1.1.1 github.com/dnaeon/go-vcr v1.0.1 // indirect diff --git a/go.sum b/go.sum index 2a475154b7d4..7360e22ba5e2 100644 --- a/go.sum +++ b/go.sum @@ -12,8 +12,8 @@ dmitri.shuralyov.com/service/change v0.0.0-20181023043359-a85b471d5412/go.mod h1 dmitri.shuralyov.com/state v0.0.0-20180228185332-28bcc343414c/go.mod h1:0PRwlb0D6DFvNNtx+9ybjezNCa8XF0xaYcETyp6rHWU= git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg= github.com/Azure/azure-sdk-for-go v21.3.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v26.7.0+incompatible h1:movJyZXzP/fsGdOyEaDfkcw9GhAOar7z4AQoqeMQigw= -github.com/Azure/azure-sdk-for-go v26.7.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= +github.com/Azure/azure-sdk-for-go v29.0.0+incompatible h1:CYPU39ULbGjQBo3gXIqiWouK0C4F+Pt2Zx5CqGvqknE= +github.com/Azure/azure-sdk-for-go v29.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/go-autorest v10.15.4+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= github.com/Azure/go-autorest v11.7.0+incompatible h1:gzma19dc9ejB75D90E5S+/wXouzpZyA+CV+/MJPSD/k= github.com/Azure/go-autorest v11.7.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement/models.go index 55a88944bbe1..66cc9d44cc66 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement/models.go @@ -703,22 +703,22 @@ type AdditionalLocation struct { Location *string `json:"location,omitempty"` // Sku - SKU properties of the API Management service. Sku *ServiceSkuProperties `json:"sku,omitempty"` - // PublicIPAddresses - Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU. + // PublicIPAddresses - READ-ONLY; Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU. PublicIPAddresses *[]string `json:"publicIPAddresses,omitempty"` - // PrivateIPAddresses - Private Static Load Balanced IP addresses of the API Management service which is deployed in an Internal Virtual Network in a particular additional location. Available only for Basic, Standard and Premium SKU. + // PrivateIPAddresses - READ-ONLY; Private Static Load Balanced IP addresses of the API Management service which is deployed in an Internal Virtual Network in a particular additional location. Available only for Basic, Standard and Premium SKU. PrivateIPAddresses *[]string `json:"privateIPAddresses,omitempty"` // VirtualNetworkConfiguration - Virtual network configuration for the location. VirtualNetworkConfiguration *VirtualNetworkConfiguration `json:"virtualNetworkConfiguration,omitempty"` - // GatewayRegionalURL - Gateway URL of the API Management service in the Region. + // GatewayRegionalURL - READ-ONLY; Gateway URL of the API Management service in the Region. GatewayRegionalURL *string `json:"gatewayRegionalUrl,omitempty"` } // APICollection paged Api list representation. type APICollection struct { autorest.Response `json:"-"` - // Value - Page values. + // Value - READ-ONLY; Page values. Value *[]APIContract `json:"value,omitempty"` - // NextLink - Next page link if any. + // NextLink - READ-ONLY; Next page link if any. NextLink *string `json:"nextLink,omitempty"` } @@ -864,11 +864,11 @@ type APIContract struct { autorest.Response `json:"-"` // APIContractProperties - Api entity contract properties. *APIContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -878,15 +878,6 @@ func (ac APIContract) MarshalJSON() ([]byte, error) { if ac.APIContractProperties != nil { objectMap["properties"] = ac.APIContractProperties } - if ac.ID != nil { - objectMap["id"] = ac.ID - } - if ac.Name != nil { - objectMap["name"] = ac.Name - } - if ac.Type != nil { - objectMap["type"] = ac.Type - } return json.Marshal(objectMap) } @@ -964,9 +955,9 @@ type APIContractProperties struct { APIRevision *string `json:"apiRevision,omitempty"` // APIVersion - Indicates the Version identifier of the API if the API is versioned APIVersion *string `json:"apiVersion,omitempty"` - // IsCurrent - Indicates if API revision is current api revision. + // IsCurrent - READ-ONLY; Indicates if API revision is current api revision. IsCurrent *bool `json:"isCurrent,omitempty"` - // IsOnline - Indicates if API revision is accessible via the gateway. + // IsOnline - READ-ONLY; Indicates if API revision is accessible via the gateway. IsOnline *bool `json:"isOnline,omitempty"` // APIRevisionDescription - Description of the Api Revision. APIRevisionDescription *string `json:"apiRevisionDescription,omitempty"` @@ -998,9 +989,9 @@ type APIContractUpdateProperties struct { APIRevision *string `json:"apiRevision,omitempty"` // APIVersion - Indicates the Version identifier of the API if the API is versioned APIVersion *string `json:"apiVersion,omitempty"` - // IsCurrent - Indicates if API revision is current api revision. + // IsCurrent - READ-ONLY; Indicates if API revision is current api revision. IsCurrent *bool `json:"isCurrent,omitempty"` - // IsOnline - Indicates if API revision is accessible via the gateway. + // IsOnline - READ-ONLY; Indicates if API revision is accessible via the gateway. IsOnline *bool `json:"isOnline,omitempty"` // APIRevisionDescription - Description of the Api Revision. APIRevisionDescription *string `json:"apiRevisionDescription,omitempty"` @@ -1082,9 +1073,9 @@ type APICreateOrUpdateProperties struct { APIRevision *string `json:"apiRevision,omitempty"` // APIVersion - Indicates the Version identifier of the API if the API is versioned APIVersion *string `json:"apiVersion,omitempty"` - // IsCurrent - Indicates if API revision is current api revision. + // IsCurrent - READ-ONLY; Indicates if API revision is current api revision. IsCurrent *bool `json:"isCurrent,omitempty"` - // IsOnline - Indicates if API revision is accessible via the gateway. + // IsOnline - READ-ONLY; Indicates if API revision is accessible via the gateway. IsOnline *bool `json:"isOnline,omitempty"` // APIRevisionDescription - Description of the Api Revision. APIRevisionDescription *string `json:"apiRevisionDescription,omitempty"` @@ -1116,9 +1107,9 @@ type APIEntityBaseContract struct { APIRevision *string `json:"apiRevision,omitempty"` // APIVersion - Indicates the Version identifier of the API if the API is versioned APIVersion *string `json:"apiVersion,omitempty"` - // IsCurrent - Indicates if API revision is current api revision. + // IsCurrent - READ-ONLY; Indicates if API revision is current api revision. IsCurrent *bool `json:"isCurrent,omitempty"` - // IsOnline - Indicates if API revision is accessible via the gateway. + // IsOnline - READ-ONLY; Indicates if API revision is accessible via the gateway. IsOnline *bool `json:"isOnline,omitempty"` // APIRevisionDescription - Description of the Api Revision. APIRevisionDescription *string `json:"apiRevisionDescription,omitempty"` @@ -1137,11 +1128,11 @@ type APIExportResult struct { // ApimResource the Resource definition. type ApimResource struct { - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource is set to Microsoft.ApiManagement. + // Type - READ-ONLY; Resource type for API Management resource is set to Microsoft.ApiManagement. Type *string `json:"type,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` @@ -1150,15 +1141,6 @@ type ApimResource struct { // MarshalJSON is the custom marshaler for ApimResource. func (ar ApimResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if ar.ID != nil { - objectMap["id"] = ar.ID - } - if ar.Name != nil { - objectMap["name"] = ar.Name - } - if ar.Type != nil { - objectMap["type"] = ar.Type - } if ar.Tags != nil { objectMap["tags"] = ar.Tags } @@ -1168,9 +1150,9 @@ func (ar ApimResource) MarshalJSON() ([]byte, error) { // APIReleaseCollection paged Api Revision list representation. type APIReleaseCollection struct { autorest.Response `json:"-"` - // Value - Page values. + // Value - READ-ONLY; Page values. Value *[]APIReleaseContract `json:"value,omitempty"` - // NextLink - Next page link if any. + // NextLink - READ-ONLY; Next page link if any. NextLink *string `json:"nextLink,omitempty"` } @@ -1316,11 +1298,11 @@ type APIReleaseContract struct { autorest.Response `json:"-"` // APIReleaseContractProperties - Properties of the Api Release Contract. *APIReleaseContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -1330,15 +1312,6 @@ func (arc APIReleaseContract) MarshalJSON() ([]byte, error) { if arc.APIReleaseContractProperties != nil { objectMap["properties"] = arc.APIReleaseContractProperties } - if arc.ID != nil { - objectMap["id"] = arc.ID - } - if arc.Name != nil { - objectMap["name"] = arc.Name - } - if arc.Type != nil { - objectMap["type"] = arc.Type - } return json.Marshal(objectMap) } @@ -1397,9 +1370,9 @@ func (arc *APIReleaseContract) UnmarshalJSON(body []byte) error { type APIReleaseContractProperties struct { // APIID - Identifier of the API the release belongs to. APIID *string `json:"apiId,omitempty"` - // CreatedDateTime - The time the API was released. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. + // CreatedDateTime - READ-ONLY; The time the API was released. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. CreatedDateTime *date.Time `json:"createdDateTime,omitempty"` - // UpdatedDateTime - The time the API release was updated. + // UpdatedDateTime - READ-ONLY; The time the API release was updated. UpdatedDateTime *date.Time `json:"updatedDateTime,omitempty"` // Notes - Release Notes Notes *string `json:"notes,omitempty"` @@ -1408,9 +1381,9 @@ type APIReleaseContractProperties struct { // APIRevisionCollection paged Api Revision list representation. type APIRevisionCollection struct { autorest.Response `json:"-"` - // Value - Page values. + // Value - READ-ONLY; Page values. Value *[]APIRevisionContract `json:"value,omitempty"` - // NextLink - Next page link if any. + // NextLink - READ-ONLY; Next page link if any. NextLink *string `json:"nextLink,omitempty"` } @@ -1553,21 +1526,21 @@ func NewAPIRevisionCollectionPage(getNextPage func(context.Context, APIRevisionC // APIRevisionContract summary of revision metadata. type APIRevisionContract struct { - // APIID - Identifier of the API Revision. + // APIID - READ-ONLY; Identifier of the API Revision. APIID *string `json:"apiId,omitempty"` - // APIRevision - Revision number of API. + // APIRevision - READ-ONLY; Revision number of API. APIRevision *string `json:"apiRevision,omitempty"` - // CreatedDateTime - The time the API Revision was created. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. + // CreatedDateTime - READ-ONLY; The time the API Revision was created. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. CreatedDateTime *date.Time `json:"createdDateTime,omitempty"` - // UpdatedDateTime - The time the API Revision were updated. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. + // UpdatedDateTime - READ-ONLY; The time the API Revision were updated. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. UpdatedDateTime *date.Time `json:"updatedDateTime,omitempty"` - // Description - Description of the API Revision. + // Description - READ-ONLY; Description of the API Revision. Description *string `json:"description,omitempty"` - // PrivateURL - Gateway URL for accessing the non-current API Revision. + // PrivateURL - READ-ONLY; Gateway URL for accessing the non-current API Revision. PrivateURL *string `json:"privateUrl,omitempty"` - // IsOnline - Indicates if API revision is the current api revision. + // IsOnline - READ-ONLY; Indicates if API revision is the current api revision. IsOnline *bool `json:"isOnline,omitempty"` - // IsCurrent - Indicates if API revision is accessible via the gateway. + // IsCurrent - READ-ONLY; Indicates if API revision is accessible via the gateway. IsCurrent *bool `json:"isCurrent,omitempty"` } @@ -1608,9 +1581,9 @@ type APITagResourceContractProperties struct { APIRevision *string `json:"apiRevision,omitempty"` // APIVersion - Indicates the Version identifier of the API if the API is versioned APIVersion *string `json:"apiVersion,omitempty"` - // IsCurrent - Indicates if API revision is current api revision. + // IsCurrent - READ-ONLY; Indicates if API revision is current api revision. IsCurrent *bool `json:"isCurrent,omitempty"` - // IsOnline - Indicates if API revision is accessible via the gateway. + // IsOnline - READ-ONLY; Indicates if API revision is accessible via the gateway. IsOnline *bool `json:"isOnline,omitempty"` // APIRevisionDescription - Description of the Api Revision. APIRevisionDescription *string `json:"apiRevisionDescription,omitempty"` @@ -1810,11 +1783,11 @@ type APIVersionSetContract struct { autorest.Response `json:"-"` // APIVersionSetContractProperties - Api VersionSet contract properties. *APIVersionSetContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -1824,15 +1797,6 @@ func (avsc APIVersionSetContract) MarshalJSON() ([]byte, error) { if avsc.APIVersionSetContractProperties != nil { objectMap["properties"] = avsc.APIVersionSetContractProperties } - if avsc.ID != nil { - objectMap["id"] = avsc.ID - } - if avsc.Name != nil { - objectMap["name"] = avsc.Name - } - if avsc.Type != nil { - objectMap["type"] = avsc.Type - } return json.Marshal(objectMap) } @@ -2143,11 +2107,11 @@ type AuthorizationServerContract struct { autorest.Response `json:"-"` // AuthorizationServerContractProperties - Properties of the External OAuth authorization server Contract. *AuthorizationServerContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -2157,15 +2121,6 @@ func (asc AuthorizationServerContract) MarshalJSON() ([]byte, error) { if asc.AuthorizationServerContractProperties != nil { objectMap["properties"] = asc.AuthorizationServerContractProperties } - if asc.ID != nil { - objectMap["id"] = asc.ID - } - if asc.Name != nil { - objectMap["name"] = asc.Name - } - if asc.Type != nil { - objectMap["type"] = asc.Type - } return json.Marshal(objectMap) } @@ -2286,11 +2241,11 @@ type AuthorizationServerContractProperties struct { type AuthorizationServerUpdateContract struct { // AuthorizationServerUpdateContractProperties - Properties of the External OAuth authorization server update Contract. *AuthorizationServerUpdateContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -2300,15 +2255,6 @@ func (asuc AuthorizationServerUpdateContract) MarshalJSON() ([]byte, error) { if asuc.AuthorizationServerUpdateContractProperties != nil { objectMap["properties"] = asuc.AuthorizationServerUpdateContractProperties } - if asuc.ID != nil { - objectMap["id"] = asuc.ID - } - if asuc.Name != nil { - objectMap["name"] = asuc.Name - } - if asuc.Type != nil { - objectMap["type"] = asuc.Type - } return json.Marshal(objectMap) } @@ -2577,11 +2523,11 @@ type BackendContract struct { autorest.Response `json:"-"` // BackendContractProperties - Backend entity contract properties. *BackendContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -2591,15 +2537,6 @@ func (bc BackendContract) MarshalJSON() ([]byte, error) { if bc.BackendContractProperties != nil { objectMap["properties"] = bc.BackendContractProperties } - if bc.ID != nil { - objectMap["id"] = bc.ID - } - if bc.Name != nil { - objectMap["name"] = bc.Name - } - if bc.Type != nil { - objectMap["type"] = bc.Type - } return json.Marshal(objectMap) } @@ -2726,11 +2663,11 @@ type BackendProxyContract struct { type BackendReconnectContract struct { // BackendReconnectProperties - Reconnect request properties. *BackendReconnectProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -2740,15 +2677,6 @@ func (brc BackendReconnectContract) MarshalJSON() ([]byte, error) { if brc.BackendReconnectProperties != nil { objectMap["properties"] = brc.BackendReconnectProperties } - if brc.ID != nil { - objectMap["id"] = brc.ID - } - if brc.Name != nil { - objectMap["name"] = brc.Name - } - if brc.Type != nil { - objectMap["type"] = brc.Type - } return json.Marshal(objectMap) } @@ -3056,11 +2984,11 @@ type CertificateContract struct { autorest.Response `json:"-"` // CertificateContractProperties - Certificate properties details. *CertificateContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -3070,15 +2998,6 @@ func (cc CertificateContract) MarshalJSON() ([]byte, error) { if cc.CertificateContractProperties != nil { objectMap["properties"] = cc.CertificateContractProperties } - if cc.ID != nil { - objectMap["id"] = cc.ID - } - if cc.Name != nil { - objectMap["name"] = cc.Name - } - if cc.Type != nil { - objectMap["type"] = cc.Type - } return json.Marshal(objectMap) } @@ -3381,11 +3300,11 @@ type DiagnosticContract struct { autorest.Response `json:"-"` // DiagnosticContractProperties - Diagnostic entity contract properties. *DiagnosticContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -3395,15 +3314,6 @@ func (dc DiagnosticContract) MarshalJSON() ([]byte, error) { if dc.DiagnosticContractProperties != nil { objectMap["properties"] = dc.DiagnosticContractProperties } - if dc.ID != nil { - objectMap["id"] = dc.ID - } - if dc.Name != nil { - objectMap["name"] = dc.Name - } - if dc.Type != nil { - objectMap["type"] = dc.Type - } return json.Marshal(objectMap) } @@ -3615,11 +3525,11 @@ type EmailTemplateContract struct { autorest.Response `json:"-"` // EmailTemplateContractProperties - Email Template entity contract properties. *EmailTemplateContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -3629,15 +3539,6 @@ func (etc EmailTemplateContract) MarshalJSON() ([]byte, error) { if etc.EmailTemplateContractProperties != nil { objectMap["properties"] = etc.EmailTemplateContractProperties } - if etc.ID != nil { - objectMap["id"] = etc.ID - } - if etc.Name != nil { - objectMap["name"] = etc.Name - } - if etc.Type != nil { - objectMap["type"] = etc.Type - } return json.Marshal(objectMap) } @@ -3702,7 +3603,7 @@ type EmailTemplateContractProperties struct { Title *string `json:"title,omitempty"` // Description - Description of the Email Template. Description *string `json:"description,omitempty"` - // IsDefault - Whether the template is the default template provided by Api Management or has been edited. + // IsDefault - READ-ONLY; Whether the template is the default template provided by Api Management or has been edited. IsDefault *bool `json:"isDefault,omitempty"` // Parameters - Email Template Parameter values. Parameters *[]EmailTemplateParametersContractProperties `json:"parameters,omitempty"` @@ -3988,11 +3889,11 @@ type GroupContract struct { autorest.Response `json:"-"` // GroupContractProperties - Group entity contract properties. *GroupContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -4002,15 +3903,6 @@ func (gc GroupContract) MarshalJSON() ([]byte, error) { if gc.GroupContractProperties != nil { objectMap["properties"] = gc.GroupContractProperties } - if gc.ID != nil { - objectMap["id"] = gc.ID - } - if gc.Name != nil { - objectMap["name"] = gc.Name - } - if gc.Type != nil { - objectMap["type"] = gc.Type - } return json.Marshal(objectMap) } @@ -4071,7 +3963,7 @@ type GroupContractProperties struct { DisplayName *string `json:"displayName,omitempty"` // Description - Group description. Can contain HTML formatting tags. Description *string `json:"description,omitempty"` - // BuiltIn - true if the group is one of the three system groups (Administrators, Developers, or Guests); otherwise false. + // BuiltIn - READ-ONLY; true if the group is one of the three system groups (Administrators, Developers, or Guests); otherwise false. BuiltIn *bool `json:"builtIn,omitempty"` // Type - Group type. Possible values include: 'Custom', 'System', 'External' Type GroupType `json:"type,omitempty"` @@ -4232,11 +4124,11 @@ type IdentityProviderContract struct { autorest.Response `json:"-"` // IdentityProviderContractProperties - Identity Provider contract properties. *IdentityProviderContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -4246,15 +4138,6 @@ func (ipc IdentityProviderContract) MarshalJSON() ([]byte, error) { if ipc.IdentityProviderContractProperties != nil { objectMap["properties"] = ipc.IdentityProviderContractProperties } - if ipc.ID != nil { - objectMap["id"] = ipc.ID - } - if ipc.Name != nil { - objectMap["name"] = ipc.Name - } - if ipc.Type != nil { - objectMap["type"] = ipc.Type - } return json.Marshal(objectMap) } @@ -4539,9 +4422,9 @@ type IdentityProviderUpdateProperties struct { // IssueAttachmentCollection paged Issue Attachment list representation. type IssueAttachmentCollection struct { autorest.Response `json:"-"` - // Value - Issue Attachment values. + // Value - READ-ONLY; Issue Attachment values. Value *[]IssueAttachmentContract `json:"value,omitempty"` - // NextLink - Next page link if any. + // NextLink - READ-ONLY; Next page link if any. NextLink *string `json:"nextLink,omitempty"` } @@ -4688,11 +4571,11 @@ type IssueAttachmentContract struct { autorest.Response `json:"-"` // IssueAttachmentContractProperties - Properties of the Issue Attachment. *IssueAttachmentContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -4702,15 +4585,6 @@ func (iac IssueAttachmentContract) MarshalJSON() ([]byte, error) { if iac.IssueAttachmentContractProperties != nil { objectMap["properties"] = iac.IssueAttachmentContractProperties } - if iac.ID != nil { - objectMap["id"] = iac.ID - } - if iac.Name != nil { - objectMap["name"] = iac.Name - } - if iac.Type != nil { - objectMap["type"] = iac.Type - } return json.Marshal(objectMap) } @@ -4778,9 +4652,9 @@ type IssueAttachmentContractProperties struct { // IssueCollection paged Issue list representation. type IssueCollection struct { autorest.Response `json:"-"` - // Value - Issue values. + // Value - READ-ONLY; Issue values. Value *[]IssueContract `json:"value,omitempty"` - // NextLink - Next page link if any. + // NextLink - READ-ONLY; Next page link if any. NextLink *string `json:"nextLink,omitempty"` } @@ -4924,9 +4798,9 @@ func NewIssueCollectionPage(getNextPage func(context.Context, IssueCollection) ( // IssueCommentCollection paged Issue Comment list representation. type IssueCommentCollection struct { autorest.Response `json:"-"` - // Value - Issue Comment values. + // Value - READ-ONLY; Issue Comment values. Value *[]IssueCommentContract `json:"value,omitempty"` - // NextLink - Next page link if any. + // NextLink - READ-ONLY; Next page link if any. NextLink *string `json:"nextLink,omitempty"` } @@ -5072,11 +4946,11 @@ type IssueCommentContract struct { autorest.Response `json:"-"` // IssueCommentContractProperties - Properties of the Issue Comment. *IssueCommentContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -5086,15 +4960,6 @@ func (icc IssueCommentContract) MarshalJSON() ([]byte, error) { if icc.IssueCommentContractProperties != nil { objectMap["properties"] = icc.IssueCommentContractProperties } - if icc.ID != nil { - objectMap["id"] = icc.ID - } - if icc.Name != nil { - objectMap["name"] = icc.Name - } - if icc.Type != nil { - objectMap["type"] = icc.Type - } return json.Marshal(objectMap) } @@ -5164,11 +5029,11 @@ type IssueContract struct { autorest.Response `json:"-"` // IssueContractProperties - Properties of the Issue. *IssueContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -5178,15 +5043,6 @@ func (ic IssueContract) MarshalJSON() ([]byte, error) { if ic.IssueContractProperties != nil { objectMap["properties"] = ic.IssueContractProperties } - if ic.ID != nil { - objectMap["id"] = ic.ID - } - if ic.Name != nil { - objectMap["name"] = ic.Name - } - if ic.Type != nil { - objectMap["type"] = ic.Type - } return json.Marshal(objectMap) } @@ -5481,11 +5337,11 @@ type LoggerContract struct { autorest.Response `json:"-"` // LoggerContractProperties - Logger entity contract properties. *LoggerContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -5495,15 +5351,6 @@ func (lc LoggerContract) MarshalJSON() ([]byte, error) { if lc.LoggerContractProperties != nil { objectMap["properties"] = lc.LoggerContractProperties } - if lc.ID != nil { - objectMap["id"] = lc.ID - } - if lc.Name != nil { - objectMap["name"] = lc.Name - } - if lc.Type != nil { - objectMap["type"] = lc.Type - } return json.Marshal(objectMap) } @@ -5828,11 +5675,11 @@ type NotificationContract struct { autorest.Response `json:"-"` // NotificationContractProperties - Notification entity contract properties. *NotificationContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -5842,15 +5689,6 @@ func (nc NotificationContract) MarshalJSON() ([]byte, error) { if nc.NotificationContractProperties != nil { objectMap["properties"] = nc.NotificationContractProperties } - if nc.ID != nil { - objectMap["id"] = nc.ID - } - if nc.Name != nil { - objectMap["name"] = nc.Name - } - if nc.Type != nil { - objectMap["type"] = nc.Type - } return json.Marshal(objectMap) } @@ -6083,11 +5921,11 @@ type OpenidConnectProviderContract struct { autorest.Response `json:"-"` // OpenidConnectProviderContractProperties - OpenId Connect Provider contract properties. *OpenidConnectProviderContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -6097,15 +5935,6 @@ func (ocpc OpenidConnectProviderContract) MarshalJSON() ([]byte, error) { if ocpc.OpenidConnectProviderContractProperties != nil { objectMap["properties"] = ocpc.OpenidConnectProviderContractProperties } - if ocpc.ID != nil { - objectMap["id"] = ocpc.ID - } - if ocpc.Name != nil { - objectMap["name"] = ocpc.Name - } - if ocpc.Type != nil { - objectMap["type"] = ocpc.Type - } return json.Marshal(objectMap) } @@ -6243,9 +6072,9 @@ type Operation struct { // OperationCollection paged Operation list representation. type OperationCollection struct { autorest.Response `json:"-"` - // Value - Page values. + // Value - READ-ONLY; Page values. Value *[]OperationContract `json:"value,omitempty"` - // NextLink - Next page link if any. + // NextLink - READ-ONLY; Next page link if any. NextLink *string `json:"nextLink,omitempty"` } @@ -6391,11 +6220,11 @@ type OperationContract struct { autorest.Response `json:"-"` // OperationContractProperties - Properties of the Operation Contract. *OperationContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -6405,15 +6234,6 @@ func (oc OperationContract) MarshalJSON() ([]byte, error) { if oc.OperationContractProperties != nil { objectMap["properties"] = oc.OperationContractProperties } - if oc.ID != nil { - objectMap["id"] = oc.ID - } - if oc.Name != nil { - objectMap["name"] = oc.Name - } - if oc.Type != nil { - objectMap["type"] = oc.Type - } return json.Marshal(objectMap) } @@ -6676,7 +6496,7 @@ type OperationResultContract struct { ResultInfo *string `json:"resultInfo,omitempty"` // Error - Error Body Contract Error *ErrorResponseBody `json:"error,omitempty"` - // ActionLog - This property if only provided as part of the TenantConfiguration_Validate operation. It contains the log the entities which will be updated/created/deleted as part of the TenantConfiguration_Deploy operation. + // ActionLog - READ-ONLY; This property if only provided as part of the TenantConfiguration_Validate operation. It contains the log the entities which will be updated/created/deleted as part of the TenantConfiguration_Deploy operation. ActionLog *[]OperationResultLogItemContract `json:"actionLog,omitempty"` } @@ -6694,19 +6514,19 @@ type OperationResultLogItemContract struct { type OperationTagResourceContractProperties struct { // ID - Identifier of the operation in form /operations/{operationId}. ID *string `json:"id,omitempty"` - // Name - Operation name. + // Name - READ-ONLY; Operation name. Name *string `json:"name,omitempty"` - // APIName - Api Name. + // APIName - READ-ONLY; Api Name. APIName *string `json:"apiName,omitempty"` - // APIRevision - Api Revision. + // APIRevision - READ-ONLY; Api Revision. APIRevision *string `json:"apiRevision,omitempty"` - // APIVersion - Api Version. + // APIVersion - READ-ONLY; Api Version. APIVersion *string `json:"apiVersion,omitempty"` - // Description - Operation Description. + // Description - READ-ONLY; Operation Description. Description *string `json:"description,omitempty"` - // Method - A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. + // Method - READ-ONLY; A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. Method *string `json:"method,omitempty"` - // URLTemplate - Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} + // URLTemplate - READ-ONLY; Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} URLTemplate *string `json:"urlTemplate,omitempty"` } @@ -6799,11 +6619,11 @@ type PolicyContract struct { autorest.Response `json:"-"` // PolicyContractProperties - Properties of the Policy. *PolicyContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -6813,15 +6633,6 @@ func (pc PolicyContract) MarshalJSON() ([]byte, error) { if pc.PolicyContractProperties != nil { objectMap["properties"] = pc.PolicyContractProperties } - if pc.ID != nil { - objectMap["id"] = pc.ID - } - if pc.Name != nil { - objectMap["name"] = pc.Name - } - if pc.Type != nil { - objectMap["type"] = pc.Type - } return json.Marshal(objectMap) } @@ -6886,13 +6697,13 @@ type PolicyContractProperties struct { // PolicySnippetContract policy snippet. type PolicySnippetContract struct { - // Name - Snippet name. + // Name - READ-ONLY; Snippet name. Name *string `json:"name,omitempty"` - // Content - Snippet content. + // Content - READ-ONLY; Snippet content. Content *string `json:"content,omitempty"` - // ToolTip - Snippet toolTip. + // ToolTip - READ-ONLY; Snippet toolTip. ToolTip *string `json:"toolTip,omitempty"` - // Scope - Binary OR value of the Snippet scope. + // Scope - READ-ONLY; Binary OR value of the Snippet scope. Scope *int32 `json:"scope,omitempty"` } @@ -6908,11 +6719,11 @@ type PortalDelegationSettings struct { autorest.Response `json:"-"` // PortalDelegationSettingsProperties - Delegation settings contract properties. *PortalDelegationSettingsProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -6922,15 +6733,6 @@ func (pds PortalDelegationSettings) MarshalJSON() ([]byte, error) { if pds.PortalDelegationSettingsProperties != nil { objectMap["properties"] = pds.PortalDelegationSettingsProperties } - if pds.ID != nil { - objectMap["id"] = pds.ID - } - if pds.Name != nil { - objectMap["name"] = pds.Name - } - if pds.Type != nil { - objectMap["type"] = pds.Type - } return json.Marshal(objectMap) } @@ -7008,11 +6810,11 @@ type PortalSigninSettings struct { autorest.Response `json:"-"` // PortalSigninSettingProperties - Sign-in settings contract properties. *PortalSigninSettingProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -7022,15 +6824,6 @@ func (pss PortalSigninSettings) MarshalJSON() ([]byte, error) { if pss.PortalSigninSettingProperties != nil { objectMap["properties"] = pss.PortalSigninSettingProperties } - if pss.ID != nil { - objectMap["id"] = pss.ID - } - if pss.Name != nil { - objectMap["name"] = pss.Name - } - if pss.Type != nil { - objectMap["type"] = pss.Type - } return json.Marshal(objectMap) } @@ -7090,11 +6883,11 @@ type PortalSignupSettings struct { autorest.Response `json:"-"` // PortalSignupSettingsProperties - Sign-up settings contract properties. *PortalSignupSettingsProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -7104,15 +6897,6 @@ func (pss PortalSignupSettings) MarshalJSON() ([]byte, error) { if pss.PortalSignupSettingsProperties != nil { objectMap["properties"] = pss.PortalSignupSettingsProperties } - if pss.ID != nil { - objectMap["id"] = pss.ID - } - if pss.Name != nil { - objectMap["name"] = pss.Name - } - if pss.Type != nil { - objectMap["type"] = pss.Type - } return json.Marshal(objectMap) } @@ -7326,11 +7110,11 @@ type ProductContract struct { autorest.Response `json:"-"` // ProductContractProperties - Product entity contract properties. *ProductContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -7340,15 +7124,6 @@ func (pc ProductContract) MarshalJSON() ([]byte, error) { if pc.ProductContractProperties != nil { objectMap["properties"] = pc.ProductContractProperties } - if pc.ID != nil { - objectMap["id"] = pc.ID - } - if pc.Name != nil { - objectMap["name"] = pc.Name - } - if pc.Type != nil { - objectMap["type"] = pc.Type - } return json.Marshal(objectMap) } @@ -7665,11 +7440,11 @@ type PropertyContract struct { autorest.Response `json:"-"` // PropertyContractProperties - Property entity contract properties. *PropertyContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -7679,15 +7454,6 @@ func (pc PropertyContract) MarshalJSON() ([]byte, error) { if pc.PropertyContractProperties != nil { objectMap["properties"] = pc.PropertyContractProperties } - if pc.ID != nil { - objectMap["id"] = pc.ID - } - if pc.Name != nil { - objectMap["name"] = pc.Name - } - if pc.Type != nil { - objectMap["type"] = pc.Type - } return json.Marshal(objectMap) } @@ -7900,11 +7666,11 @@ type RecipientEmailContract struct { autorest.Response `json:"-"` // RecipientEmailContractProperties - Recipient Email contract properties. *RecipientEmailContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -7914,15 +7680,6 @@ func (rec RecipientEmailContract) MarshalJSON() ([]byte, error) { if rec.RecipientEmailContractProperties != nil { objectMap["properties"] = rec.RecipientEmailContractProperties } - if rec.ID != nil { - objectMap["id"] = rec.ID - } - if rec.Name != nil { - objectMap["name"] = rec.Name - } - if rec.Type != nil { - objectMap["type"] = rec.Type - } return json.Marshal(objectMap) } @@ -8005,11 +7762,11 @@ type RecipientUserContract struct { autorest.Response `json:"-"` // RecipientUsersContractProperties - Recipient User entity contract properties. *RecipientUsersContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -8019,15 +7776,6 @@ func (ruc RecipientUserContract) MarshalJSON() ([]byte, error) { if ruc.RecipientUsersContractProperties != nil { objectMap["properties"] = ruc.RecipientUsersContractProperties } - if ruc.ID != nil { - objectMap["id"] = ruc.ID - } - if ruc.Name != nil { - objectMap["name"] = ruc.Name - } - if ruc.Type != nil { - objectMap["type"] = ruc.Type - } return json.Marshal(objectMap) } @@ -8090,7 +7838,7 @@ type RecipientUsersContractProperties struct { // RegionContract region profile. type RegionContract struct { - // Name - Region name. + // Name - READ-ONLY; Region name. Name *string `json:"name,omitempty"` // IsMasterRegion - whether Region is the master region. IsMasterRegion *bool `json:"isMasterRegion,omitempty"` @@ -8414,9 +8162,9 @@ type ReportRecordContract struct { Region *string `json:"region,omitempty"` // Zip - Zip code to which this record data is related. Zip *string `json:"zip,omitempty"` - // UserID - User identifier path. /users/{userId} + // UserID - READ-ONLY; User identifier path. /users/{userId} UserID *string `json:"userId,omitempty"` - // ProductID - Product identifier path. /products/{productId} + // ProductID - READ-ONLY; Product identifier path. /products/{productId} ProductID *string `json:"productId,omitempty"` // APIID - API identifier path. /apis/{apiId} APIID *string `json:"apiId,omitempty"` @@ -8497,9 +8245,9 @@ type RequestReportRecordContract struct { APIID *string `json:"apiId,omitempty"` // OperationID - Operation identifier path. /apis/{apiId}/operations/{operationId} OperationID *string `json:"operationId,omitempty"` - // ProductID - Product identifier path. /products/{productId} + // ProductID - READ-ONLY; Product identifier path. /products/{productId} ProductID *string `json:"productId,omitempty"` - // UserID - User identifier path. /users/{userId} + // UserID - READ-ONLY; User identifier path. /users/{userId} UserID *string `json:"userId,omitempty"` // Method - The HTTP method associated with this request.. Method *string `json:"method,omitempty"` @@ -8533,11 +8281,11 @@ type RequestReportRecordContract struct { // Resource the Resource definition. type Resource struct { - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -8549,23 +8297,23 @@ type ResourceSku struct { // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { - // Minimum - The minimum capacity. + // Minimum - READ-ONLY; The minimum capacity. Minimum *int32 `json:"minimum,omitempty"` - // Maximum - The maximum capacity that can be set. + // Maximum - READ-ONLY; The maximum capacity that can be set. Maximum *int32 `json:"maximum,omitempty"` - // Default - The default capacity. + // Default - READ-ONLY; The default capacity. Default *int32 `json:"default,omitempty"` - // ScaleType - The scale type applicable to the sku. Possible values include: 'Automatic', 'Manual', 'None' + // ScaleType - READ-ONLY; The scale type applicable to the sku. Possible values include: 'Automatic', 'Manual', 'None' ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } // ResourceSkuResult describes an available API Management service SKU. type ResourceSkuResult struct { - // ResourceType - The type of resource the SKU applies to. + // ResourceType - READ-ONLY; The type of resource the SKU applies to. ResourceType *string `json:"resourceType,omitempty"` - // Sku - Specifies API Management SKU. + // Sku - READ-ONLY; Specifies API Management SKU. Sku *ResourceSku `json:"sku,omitempty"` - // Capacity - Specifies the number of API Management units. + // Capacity - READ-ONLY; Specifies the number of API Management units. Capacity *ResourceSkuCapacity `json:"capacity,omitempty"` } @@ -8738,9 +8486,9 @@ type SaveConfigurationParameter struct { // SchemaCollection the response of the list schema operation. type SchemaCollection struct { autorest.Response `json:"-"` - // Value - Api Schema Contract value. + // Value - READ-ONLY; Api Schema Contract value. Value *[]SchemaContract `json:"value,omitempty"` - // NextLink - Next page link if any. + // NextLink - READ-ONLY; Next page link if any. NextLink *string `json:"nextLink,omitempty"` } @@ -8886,11 +8634,11 @@ type SchemaContract struct { autorest.Response `json:"-"` // SchemaContractProperties - Properties of the Schema. *SchemaContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -8900,15 +8648,6 @@ func (sc SchemaContract) MarshalJSON() ([]byte, error) { if sc.SchemaContractProperties != nil { objectMap["properties"] = sc.SchemaContractProperties } - if sc.ID != nil { - objectMap["id"] = sc.ID - } - if sc.Name != nil { - objectMap["name"] = sc.Name - } - if sc.Type != nil { - objectMap["type"] = sc.Type - } return json.Marshal(objectMap) } @@ -9039,7 +8778,7 @@ type ServiceApplyNetworkConfigurationUpdatesFuture struct { // If the operation has not completed it will return an error. func (future *ServiceApplyNetworkConfigurationUpdatesFuture) Result(client ServiceClient) (sr ServiceResource, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceApplyNetworkConfigurationUpdatesFuture", "Result", future.Response(), "Polling failure") return @@ -9068,7 +8807,7 @@ type ServiceBackupFuture struct { // If the operation has not completed it will return an error. func (future *ServiceBackupFuture) Result(client ServiceClient) (sr ServiceResource, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceBackupFuture", "Result", future.Response(), "Polling failure") return @@ -9104,27 +8843,27 @@ type ServiceBackupRestoreParameters struct { type ServiceBaseProperties struct { // NotificationSenderEmail - Email address from which the notification will be sent. NotificationSenderEmail *string `json:"notificationSenderEmail,omitempty"` - // ProvisioningState - The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + // ProvisioningState - READ-ONLY; The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. ProvisioningState *string `json:"provisioningState,omitempty"` - // TargetProvisioningState - The provisioning state of the API Management service, which is targeted by the long running operation started on the service. + // TargetProvisioningState - READ-ONLY; The provisioning state of the API Management service, which is targeted by the long running operation started on the service. TargetProvisioningState *string `json:"targetProvisioningState,omitempty"` - // CreatedAtUtc - Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + // CreatedAtUtc - READ-ONLY; Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. CreatedAtUtc *date.Time `json:"createdAtUtc,omitempty"` - // GatewayURL - Gateway URL of the API Management service. + // GatewayURL - READ-ONLY; Gateway URL of the API Management service. GatewayURL *string `json:"gatewayUrl,omitempty"` - // GatewayRegionalURL - Gateway URL of the API Management service in the Default Region. + // GatewayRegionalURL - READ-ONLY; Gateway URL of the API Management service in the Default Region. GatewayRegionalURL *string `json:"gatewayRegionalUrl,omitempty"` - // PortalURL - Publisher portal endpoint Url of the API Management service. + // PortalURL - READ-ONLY; Publisher portal endpoint Url of the API Management service. PortalURL *string `json:"portalUrl,omitempty"` - // ManagementAPIURL - Management API endpoint URL of the API Management service. + // ManagementAPIURL - READ-ONLY; Management API endpoint URL of the API Management service. ManagementAPIURL *string `json:"managementApiUrl,omitempty"` - // ScmURL - SCM endpoint URL of the API Management service. + // ScmURL - READ-ONLY; SCM endpoint URL of the API Management service. ScmURL *string `json:"scmUrl,omitempty"` // HostnameConfigurations - Custom hostname configuration of the API Management service. HostnameConfigurations *[]HostnameConfiguration `json:"hostnameConfigurations,omitempty"` - // PublicIPAddresses - Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard and Premium SKU. + // PublicIPAddresses - READ-ONLY; Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard and Premium SKU. PublicIPAddresses *[]string `json:"publicIPAddresses,omitempty"` - // PrivateIPAddresses - Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network. Available only for Basic, Standard and Premium SKU. + // PrivateIPAddresses - READ-ONLY; Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network. Available only for Basic, Standard and Premium SKU. PrivateIPAddresses *[]string `json:"privateIPAddresses,omitempty"` // VirtualNetworkConfiguration - Virtual network configuration of the API Management service. VirtualNetworkConfiguration *VirtualNetworkConfiguration `json:"virtualNetworkConfiguration,omitempty"` @@ -9144,39 +8883,9 @@ func (sbp ServiceBaseProperties) MarshalJSON() ([]byte, error) { if sbp.NotificationSenderEmail != nil { objectMap["notificationSenderEmail"] = sbp.NotificationSenderEmail } - if sbp.ProvisioningState != nil { - objectMap["provisioningState"] = sbp.ProvisioningState - } - if sbp.TargetProvisioningState != nil { - objectMap["targetProvisioningState"] = sbp.TargetProvisioningState - } - if sbp.CreatedAtUtc != nil { - objectMap["createdAtUtc"] = sbp.CreatedAtUtc - } - if sbp.GatewayURL != nil { - objectMap["gatewayUrl"] = sbp.GatewayURL - } - if sbp.GatewayRegionalURL != nil { - objectMap["gatewayRegionalUrl"] = sbp.GatewayRegionalURL - } - if sbp.PortalURL != nil { - objectMap["portalUrl"] = sbp.PortalURL - } - if sbp.ManagementAPIURL != nil { - objectMap["managementApiUrl"] = sbp.ManagementAPIURL - } - if sbp.ScmURL != nil { - objectMap["scmUrl"] = sbp.ScmURL - } if sbp.HostnameConfigurations != nil { objectMap["hostnameConfigurations"] = sbp.HostnameConfigurations } - if sbp.PublicIPAddresses != nil { - objectMap["publicIPAddresses"] = sbp.PublicIPAddresses - } - if sbp.PrivateIPAddresses != nil { - objectMap["privateIPAddresses"] = sbp.PrivateIPAddresses - } if sbp.VirtualNetworkConfiguration != nil { objectMap["virtualNetworkConfiguration"] = sbp.VirtualNetworkConfiguration } @@ -9211,7 +8920,7 @@ type ServiceCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServiceCreateOrUpdateFuture) Result(client ServiceClient) (sr ServiceResource, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -9241,9 +8950,9 @@ type ServiceGetSsoTokenResult struct { type ServiceIdentity struct { // Type - The identity type. Currently the only supported type is 'SystemAssigned'. Type *string `json:"type,omitempty"` - // PrincipalID - The principal id of the identity. + // PrincipalID - READ-ONLY; The principal id of the identity. PrincipalID *uuid.UUID `json:"principalId,omitempty"` - // TenantID - The client tenant id of the identity. + // TenantID - READ-ONLY; The client tenant id of the identity. TenantID *uuid.UUID `json:"tenantId,omitempty"` } @@ -9396,9 +9105,9 @@ func NewServiceListResultPage(getNextPage func(context.Context, ServiceListResul // ServiceNameAvailabilityResult response of the CheckNameAvailability operation. type ServiceNameAvailabilityResult struct { autorest.Response `json:"-"` - // NameAvailable - True if the name is available and can be used to create a new API Management service; otherwise false. + // NameAvailable - READ-ONLY; True if the name is available and can be used to create a new API Management service; otherwise false. NameAvailable *bool `json:"nameAvailable,omitempty"` - // Message - If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that is already in use, and direct them to select a different name. + // Message - READ-ONLY; If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that is already in use, and direct them to select a different name. Message *string `json:"message,omitempty"` // Reason - Invalid indicates the name provided does not match the resource provider’s naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable. Possible values include: 'Valid', 'Invalid', 'AlreadyExists' Reason NameAvailabilityReason `json:"reason,omitempty"` @@ -9412,27 +9121,27 @@ type ServiceProperties struct { PublisherName *string `json:"publisherName,omitempty"` // NotificationSenderEmail - Email address from which the notification will be sent. NotificationSenderEmail *string `json:"notificationSenderEmail,omitempty"` - // ProvisioningState - The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + // ProvisioningState - READ-ONLY; The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. ProvisioningState *string `json:"provisioningState,omitempty"` - // TargetProvisioningState - The provisioning state of the API Management service, which is targeted by the long running operation started on the service. + // TargetProvisioningState - READ-ONLY; The provisioning state of the API Management service, which is targeted by the long running operation started on the service. TargetProvisioningState *string `json:"targetProvisioningState,omitempty"` - // CreatedAtUtc - Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + // CreatedAtUtc - READ-ONLY; Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. CreatedAtUtc *date.Time `json:"createdAtUtc,omitempty"` - // GatewayURL - Gateway URL of the API Management service. + // GatewayURL - READ-ONLY; Gateway URL of the API Management service. GatewayURL *string `json:"gatewayUrl,omitempty"` - // GatewayRegionalURL - Gateway URL of the API Management service in the Default Region. + // GatewayRegionalURL - READ-ONLY; Gateway URL of the API Management service in the Default Region. GatewayRegionalURL *string `json:"gatewayRegionalUrl,omitempty"` - // PortalURL - Publisher portal endpoint Url of the API Management service. + // PortalURL - READ-ONLY; Publisher portal endpoint Url of the API Management service. PortalURL *string `json:"portalUrl,omitempty"` - // ManagementAPIURL - Management API endpoint URL of the API Management service. + // ManagementAPIURL - READ-ONLY; Management API endpoint URL of the API Management service. ManagementAPIURL *string `json:"managementApiUrl,omitempty"` - // ScmURL - SCM endpoint URL of the API Management service. + // ScmURL - READ-ONLY; SCM endpoint URL of the API Management service. ScmURL *string `json:"scmUrl,omitempty"` // HostnameConfigurations - Custom hostname configuration of the API Management service. HostnameConfigurations *[]HostnameConfiguration `json:"hostnameConfigurations,omitempty"` - // PublicIPAddresses - Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard and Premium SKU. + // PublicIPAddresses - READ-ONLY; Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard and Premium SKU. PublicIPAddresses *[]string `json:"publicIPAddresses,omitempty"` - // PrivateIPAddresses - Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network. Available only for Basic, Standard and Premium SKU. + // PrivateIPAddresses - READ-ONLY; Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network. Available only for Basic, Standard and Premium SKU. PrivateIPAddresses *[]string `json:"privateIPAddresses,omitempty"` // VirtualNetworkConfiguration - Virtual network configuration of the API Management service. VirtualNetworkConfiguration *VirtualNetworkConfiguration `json:"virtualNetworkConfiguration,omitempty"` @@ -9458,39 +9167,9 @@ func (sp ServiceProperties) MarshalJSON() ([]byte, error) { if sp.NotificationSenderEmail != nil { objectMap["notificationSenderEmail"] = sp.NotificationSenderEmail } - if sp.ProvisioningState != nil { - objectMap["provisioningState"] = sp.ProvisioningState - } - if sp.TargetProvisioningState != nil { - objectMap["targetProvisioningState"] = sp.TargetProvisioningState - } - if sp.CreatedAtUtc != nil { - objectMap["createdAtUtc"] = sp.CreatedAtUtc - } - if sp.GatewayURL != nil { - objectMap["gatewayUrl"] = sp.GatewayURL - } - if sp.GatewayRegionalURL != nil { - objectMap["gatewayRegionalUrl"] = sp.GatewayRegionalURL - } - if sp.PortalURL != nil { - objectMap["portalUrl"] = sp.PortalURL - } - if sp.ManagementAPIURL != nil { - objectMap["managementApiUrl"] = sp.ManagementAPIURL - } - if sp.ScmURL != nil { - objectMap["scmUrl"] = sp.ScmURL - } if sp.HostnameConfigurations != nil { objectMap["hostnameConfigurations"] = sp.HostnameConfigurations } - if sp.PublicIPAddresses != nil { - objectMap["publicIPAddresses"] = sp.PublicIPAddresses - } - if sp.PrivateIPAddresses != nil { - objectMap["privateIPAddresses"] = sp.PrivateIPAddresses - } if sp.VirtualNetworkConfiguration != nil { objectMap["virtualNetworkConfiguration"] = sp.VirtualNetworkConfiguration } @@ -9520,13 +9199,13 @@ type ServiceResource struct { Identity *ServiceIdentity `json:"identity,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` - // Etag - ETag of the resource. + // Etag - READ-ONLY; ETag of the resource. Etag *string `json:"etag,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource is set to Microsoft.ApiManagement. + // Type - READ-ONLY; Resource type for API Management resource is set to Microsoft.ApiManagement. Type *string `json:"type,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` @@ -9547,18 +9226,6 @@ func (sr ServiceResource) MarshalJSON() ([]byte, error) { if sr.Location != nil { objectMap["location"] = sr.Location } - if sr.Etag != nil { - objectMap["etag"] = sr.Etag - } - if sr.ID != nil { - objectMap["id"] = sr.ID - } - if sr.Name != nil { - objectMap["name"] = sr.Name - } - if sr.Type != nil { - objectMap["type"] = sr.Type - } if sr.Tags != nil { objectMap["tags"] = sr.Tags } @@ -9671,7 +9338,7 @@ type ServiceRestoreFuture struct { // If the operation has not completed it will return an error. func (future *ServiceRestoreFuture) Result(client ServiceClient) (sr ServiceResource, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceRestoreFuture", "Result", future.Response(), "Polling failure") return @@ -9708,7 +9375,7 @@ type ServiceUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServiceUpdateFuture) Result(client ServiceClient) (sr ServiceResource, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -9737,7 +9404,7 @@ type ServiceUpdateHostnameFuture struct { // If the operation has not completed it will return an error. func (future *ServiceUpdateHostnameFuture) Result(client ServiceClient) (sr ServiceResource, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.ServiceUpdateHostnameFuture", "Result", future.Response(), "Polling failure") return @@ -9772,13 +9439,13 @@ type ServiceUpdateParameters struct { Sku *ServiceSkuProperties `json:"sku,omitempty"` // Identity - Managed service identity of the Api Management service. Identity *ServiceIdentity `json:"identity,omitempty"` - // Etag - ETag of the resource. + // Etag - READ-ONLY; ETag of the resource. Etag *string `json:"etag,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource is set to Microsoft.ApiManagement. + // Type - READ-ONLY; Resource type for API Management resource is set to Microsoft.ApiManagement. Type *string `json:"type,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` @@ -9796,18 +9463,6 @@ func (sup ServiceUpdateParameters) MarshalJSON() ([]byte, error) { if sup.Identity != nil { objectMap["identity"] = sup.Identity } - if sup.Etag != nil { - objectMap["etag"] = sup.Etag - } - if sup.ID != nil { - objectMap["id"] = sup.ID - } - if sup.Name != nil { - objectMap["name"] = sup.Name - } - if sup.Type != nil { - objectMap["type"] = sup.Type - } if sup.Tags != nil { objectMap["tags"] = sup.Tags } @@ -9909,27 +9564,27 @@ type ServiceUpdateProperties struct { PublisherName *string `json:"publisherName,omitempty"` // NotificationSenderEmail - Email address from which the notification will be sent. NotificationSenderEmail *string `json:"notificationSenderEmail,omitempty"` - // ProvisioningState - The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + // ProvisioningState - READ-ONLY; The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. ProvisioningState *string `json:"provisioningState,omitempty"` - // TargetProvisioningState - The provisioning state of the API Management service, which is targeted by the long running operation started on the service. + // TargetProvisioningState - READ-ONLY; The provisioning state of the API Management service, which is targeted by the long running operation started on the service. TargetProvisioningState *string `json:"targetProvisioningState,omitempty"` - // CreatedAtUtc - Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + // CreatedAtUtc - READ-ONLY; Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. CreatedAtUtc *date.Time `json:"createdAtUtc,omitempty"` - // GatewayURL - Gateway URL of the API Management service. + // GatewayURL - READ-ONLY; Gateway URL of the API Management service. GatewayURL *string `json:"gatewayUrl,omitempty"` - // GatewayRegionalURL - Gateway URL of the API Management service in the Default Region. + // GatewayRegionalURL - READ-ONLY; Gateway URL of the API Management service in the Default Region. GatewayRegionalURL *string `json:"gatewayRegionalUrl,omitempty"` - // PortalURL - Publisher portal endpoint Url of the API Management service. + // PortalURL - READ-ONLY; Publisher portal endpoint Url of the API Management service. PortalURL *string `json:"portalUrl,omitempty"` - // ManagementAPIURL - Management API endpoint URL of the API Management service. + // ManagementAPIURL - READ-ONLY; Management API endpoint URL of the API Management service. ManagementAPIURL *string `json:"managementApiUrl,omitempty"` - // ScmURL - SCM endpoint URL of the API Management service. + // ScmURL - READ-ONLY; SCM endpoint URL of the API Management service. ScmURL *string `json:"scmUrl,omitempty"` // HostnameConfigurations - Custom hostname configuration of the API Management service. HostnameConfigurations *[]HostnameConfiguration `json:"hostnameConfigurations,omitempty"` - // PublicIPAddresses - Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard and Premium SKU. + // PublicIPAddresses - READ-ONLY; Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard and Premium SKU. PublicIPAddresses *[]string `json:"publicIPAddresses,omitempty"` - // PrivateIPAddresses - Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network. Available only for Basic, Standard and Premium SKU. + // PrivateIPAddresses - READ-ONLY; Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network. Available only for Basic, Standard and Premium SKU. PrivateIPAddresses *[]string `json:"privateIPAddresses,omitempty"` // VirtualNetworkConfiguration - Virtual network configuration of the API Management service. VirtualNetworkConfiguration *VirtualNetworkConfiguration `json:"virtualNetworkConfiguration,omitempty"` @@ -9955,39 +9610,9 @@ func (sup ServiceUpdateProperties) MarshalJSON() ([]byte, error) { if sup.NotificationSenderEmail != nil { objectMap["notificationSenderEmail"] = sup.NotificationSenderEmail } - if sup.ProvisioningState != nil { - objectMap["provisioningState"] = sup.ProvisioningState - } - if sup.TargetProvisioningState != nil { - objectMap["targetProvisioningState"] = sup.TargetProvisioningState - } - if sup.CreatedAtUtc != nil { - objectMap["createdAtUtc"] = sup.CreatedAtUtc - } - if sup.GatewayURL != nil { - objectMap["gatewayUrl"] = sup.GatewayURL - } - if sup.GatewayRegionalURL != nil { - objectMap["gatewayRegionalUrl"] = sup.GatewayRegionalURL - } - if sup.PortalURL != nil { - objectMap["portalUrl"] = sup.PortalURL - } - if sup.ManagementAPIURL != nil { - objectMap["managementApiUrl"] = sup.ManagementAPIURL - } - if sup.ScmURL != nil { - objectMap["scmUrl"] = sup.ScmURL - } if sup.HostnameConfigurations != nil { objectMap["hostnameConfigurations"] = sup.HostnameConfigurations } - if sup.PublicIPAddresses != nil { - objectMap["publicIPAddresses"] = sup.PublicIPAddresses - } - if sup.PrivateIPAddresses != nil { - objectMap["privateIPAddresses"] = sup.PrivateIPAddresses - } if sup.VirtualNetworkConfiguration != nil { objectMap["virtualNetworkConfiguration"] = sup.VirtualNetworkConfiguration } @@ -10168,11 +9793,11 @@ type SubscriptionContract struct { autorest.Response `json:"-"` // SubscriptionContractProperties - Subscription contract properties. *SubscriptionContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -10182,15 +9807,6 @@ func (sc SubscriptionContract) MarshalJSON() ([]byte, error) { if sc.SubscriptionContractProperties != nil { objectMap["properties"] = sc.SubscriptionContractProperties } - if sc.ID != nil { - objectMap["id"] = sc.ID - } - if sc.Name != nil { - objectMap["name"] = sc.Name - } - if sc.Type != nil { - objectMap["type"] = sc.Type - } return json.Marshal(objectMap) } @@ -10255,7 +9871,7 @@ type SubscriptionContractProperties struct { DisplayName *string `json:"displayName,omitempty"` // State - Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated. Possible values include: 'Suspended', 'Active', 'Expired', 'Submitted', 'Rejected', 'Cancelled' State SubscriptionState `json:"state,omitempty"` - // CreatedDate - Subscription creation date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + // CreatedDate - READ-ONLY; Subscription creation date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. CreatedDate *date.Time `json:"createdDate,omitempty"` // StartDate - Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. StartDate *date.Time `json:"startDate,omitempty"` @@ -10552,11 +10168,11 @@ type TagContract struct { autorest.Response `json:"-"` // TagContractProperties - Tag entity contract properties. *TagContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -10566,15 +10182,6 @@ func (tc TagContract) MarshalJSON() ([]byte, error) { if tc.TagContractProperties != nil { objectMap["properties"] = tc.TagContractProperties } - if tc.ID != nil { - objectMap["id"] = tc.ID - } - if tc.Name != nil { - objectMap["name"] = tc.Name - } - if tc.Type != nil { - objectMap["type"] = tc.Type - } return json.Marshal(objectMap) } @@ -10835,11 +10442,11 @@ type TagDescriptionContract struct { autorest.Response `json:"-"` // TagDescriptionContractProperties - TagDescription entity contract properties. *TagDescriptionContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -10849,15 +10456,6 @@ func (tdc TagDescriptionContract) MarshalJSON() ([]byte, error) { if tdc.TagDescriptionContractProperties != nil { objectMap["properties"] = tdc.TagDescriptionContractProperties } - if tdc.ID != nil { - objectMap["id"] = tdc.ID - } - if tdc.Name != nil { - objectMap["name"] = tdc.Name - } - if tdc.Type != nil { - objectMap["type"] = tdc.Type - } return json.Marshal(objectMap) } @@ -11141,7 +10739,7 @@ type TenantConfigurationDeployFuture struct { // If the operation has not completed it will return an error. func (future *TenantConfigurationDeployFuture) Result(client TenantConfigurationClient) (orc OperationResultContract, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationDeployFuture", "Result", future.Response(), "Polling failure") return @@ -11170,7 +10768,7 @@ type TenantConfigurationSaveFuture struct { // If the operation has not completed it will return an error. func (future *TenantConfigurationSaveFuture) Result(client TenantConfigurationClient) (orc OperationResultContract, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationSaveFuture", "Result", future.Response(), "Polling failure") return @@ -11218,7 +10816,7 @@ type TenantConfigurationValidateFuture struct { // If the operation has not completed it will return an error. func (future *TenantConfigurationValidateFuture) Result(client TenantConfigurationClient) (orc OperationResultContract, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationValidateFuture", "Result", future.Response(), "Polling failure") return @@ -11406,11 +11004,11 @@ type UserContract struct { autorest.Response `json:"-"` // UserContractProperties - User entity contract properties. *UserContractProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. + // Type - READ-ONLY; Resource type for API Management resource. Type *string `json:"type,omitempty"` } @@ -11420,15 +11018,6 @@ func (uc UserContract) MarshalJSON() ([]byte, error) { if uc.UserContractProperties != nil { objectMap["properties"] = uc.UserContractProperties } - if uc.ID != nil { - objectMap["id"] = uc.ID - } - if uc.Name != nil { - objectMap["name"] = uc.Name - } - if uc.Type != nil { - objectMap["type"] = uc.Type - } return json.Marshal(objectMap) } @@ -11493,7 +11082,7 @@ type UserContractProperties struct { Email *string `json:"email,omitempty"` // RegistrationDate - Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. RegistrationDate *date.Time `json:"registrationDate,omitempty"` - // Groups - Collection of groups user is part of. + // Groups - READ-ONLY; Collection of groups user is part of. Groups *[]GroupContractProperties `json:"groups,omitempty"` // State - Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active. Possible values include: 'UserStateActive', 'UserStateBlocked', 'UserStatePending', 'UserStateDeleted' State UserState `json:"state,omitempty"` @@ -11803,9 +11392,9 @@ type UserUpdateParametersProperties struct { // VirtualNetworkConfiguration configuration of a virtual network to which API Management service is // deployed. type VirtualNetworkConfiguration struct { - // Vnetid - The virtual network ID. This is typically a GUID. Expect a null GUID by default. + // Vnetid - READ-ONLY; The virtual network ID. This is typically a GUID. Expect a null GUID by default. Vnetid *string `json:"vnetid,omitempty"` - // Subnetname - The name of the subnet. + // Subnetname - READ-ONLY; The name of the subnet. Subnetname *string `json:"subnetname,omitempty"` // SubnetResourceID - The full resource ID of a subnet in a virtual network to deploy the API Management service in. SubnetResourceID *string `json:"subnetResourceId,omitempty"` diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement/service.go b/vendor/github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement/service.go index df72a43d1ad9..3ff5e77aadc2 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement/service.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement/service.go @@ -375,6 +375,7 @@ func (client ServiceClient) CreateOrUpdatePreparer(ctx context.Context, resource "api-version": APIVersion, } + parameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -1034,6 +1035,7 @@ func (client ServiceClient) UpdatePreparer(ctx context.Context, resourceGroupNam "api-version": APIVersion, } + parameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPatch(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/analyticsitems.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/analyticsitems.go index 6cae13130257..0a6db6b09854 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/analyticsitems.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/analyticsitems.go @@ -21,6 +21,7 @@ import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) @@ -42,7 +43,7 @@ func NewAnalyticsItemsClientWithBaseURI(baseURI string, subscriptionID string) A // Delete deletes a specific Analytics Items defined within an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // scopePath - enum indicating if this item definition is owned by a specific user or is shared between all // users with access to the Application Insights component. @@ -59,6 +60,16 @@ func (client AnalyticsItemsClient) Delete(ctx context.Context, resourceGroupName tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.AnalyticsItemsClient", "Delete", err.Error()) + } + req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName, scopePath, ID, name) if err != nil { err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Delete", nil, "Failure preparing request") @@ -129,7 +140,7 @@ func (client AnalyticsItemsClient) DeleteResponder(resp *http.Response) (result // Get gets a specific Analytics Items defined within an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // scopePath - enum indicating if this item definition is owned by a specific user or is shared between all // users with access to the Application Insights component. @@ -146,6 +157,16 @@ func (client AnalyticsItemsClient) Get(ctx context.Context, resourceGroupName st tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.AnalyticsItemsClient", "Get", err.Error()) + } + req, err := client.GetPreparer(ctx, resourceGroupName, resourceName, scopePath, ID, name) if err != nil { err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Get", nil, "Failure preparing request") @@ -217,7 +238,7 @@ func (client AnalyticsItemsClient) GetResponder(resp *http.Response) (result App // List gets a list of Analytics Items defined within an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // scopePath - enum indicating if this item definition is owned by a specific user or is shared between all // users with access to the Application Insights component. @@ -237,6 +258,16 @@ func (client AnalyticsItemsClient) List(ctx context.Context, resourceGroupName s tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.AnalyticsItemsClient", "List", err.Error()) + } + req, err := client.ListPreparer(ctx, resourceGroupName, resourceName, scopePath, scope, typeParameter, includeContent) if err != nil { err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "List", nil, "Failure preparing request") @@ -315,7 +346,7 @@ func (client AnalyticsItemsClient) ListResponder(resp *http.Response) (result Li // Put adds or Updates a specific Analytics Item within an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // scopePath - enum indicating if this item definition is owned by a specific user or is shared between all // users with access to the Application Insights component. @@ -334,6 +365,16 @@ func (client AnalyticsItemsClient) Put(ctx context.Context, resourceGroupName st tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.AnalyticsItemsClient", "Put", err.Error()) + } + req, err := client.PutPreparer(ctx, resourceGroupName, resourceName, scopePath, itemProperties, overrideItem) if err != nil { err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Put", nil, "Failure preparing request") @@ -372,6 +413,9 @@ func (client AnalyticsItemsClient) PutPreparer(ctx context.Context, resourceGrou queryParameters["overrideItem"] = autorest.Encode("query", *overrideItem) } + itemProperties.Version = nil + itemProperties.TimeCreated = nil + itemProperties.TimeModified = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/annotations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/annotations.go index badc8bddc5b9..11b5f5d36fb3 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/annotations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/annotations.go @@ -21,6 +21,7 @@ import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) @@ -42,7 +43,7 @@ func NewAnnotationsClientWithBaseURI(baseURI string, subscriptionID string) Anno // Create create an Annotation of an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // annotationProperties - properties that need to be specified to create an annotation of a Application // Insights component. @@ -57,6 +58,16 @@ func (client AnnotationsClient) Create(ctx context.Context, resourceGroupName st tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.AnnotationsClient", "Create", err.Error()) + } + req, err := client.CreatePreparer(ctx, resourceGroupName, resourceName, annotationProperties) if err != nil { err = autorest.NewErrorWithError(err, "insights.AnnotationsClient", "Create", nil, "Failure preparing request") @@ -123,7 +134,7 @@ func (client AnnotationsClient) CreateResponder(resp *http.Response) (result Lis // Delete delete an Annotation of an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // annotationID - the unique annotation ID. This is unique within a Application Insights component. func (client AnnotationsClient) Delete(ctx context.Context, resourceGroupName string, resourceName string, annotationID string) (result SetObject, err error) { @@ -137,6 +148,16 @@ func (client AnnotationsClient) Delete(ctx context.Context, resourceGroupName st tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.AnnotationsClient", "Delete", err.Error()) + } + req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName, annotationID) if err != nil { err = autorest.NewErrorWithError(err, "insights.AnnotationsClient", "Delete", nil, "Failure preparing request") @@ -202,7 +223,7 @@ func (client AnnotationsClient) DeleteResponder(resp *http.Response) (result Set // Get get the annotation for given id. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // annotationID - the unique annotation ID. This is unique within a Application Insights component. func (client AnnotationsClient) Get(ctx context.Context, resourceGroupName string, resourceName string, annotationID string) (result ListAnnotation, err error) { @@ -216,6 +237,16 @@ func (client AnnotationsClient) Get(ctx context.Context, resourceGroupName strin tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.AnnotationsClient", "Get", err.Error()) + } + req, err := client.GetPreparer(ctx, resourceGroupName, resourceName, annotationID) if err != nil { err = autorest.NewErrorWithError(err, "insights.AnnotationsClient", "Get", nil, "Failure preparing request") @@ -281,7 +312,7 @@ func (client AnnotationsClient) GetResponder(resp *http.Response) (result ListAn // List gets the list of annotations for a component for given time range // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // start - the start time to query from for annotations, cannot be older than 90 days from current date. // end - the end time to query for annotations. @@ -296,6 +327,16 @@ func (client AnnotationsClient) List(ctx context.Context, resourceGroupName stri tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.AnnotationsClient", "List", err.Error()) + } + req, err := client.ListPreparer(ctx, resourceGroupName, resourceName, start, end) if err != nil { err = autorest.NewErrorWithError(err, "insights.AnnotationsClient", "List", nil, "Failure preparing request") diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/apikeys.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/apikeys.go index 335aae099a13..a966f1acc2a9 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/apikeys.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/apikeys.go @@ -21,6 +21,7 @@ import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) @@ -42,7 +43,7 @@ func NewAPIKeysClientWithBaseURI(baseURI string, subscriptionID string) APIKeysC // Create create an API Key of an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // APIKeyProperties - properties that need to be specified to create an API key of a Application Insights // component. @@ -57,6 +58,16 @@ func (client APIKeysClient) Create(ctx context.Context, resourceGroupName string tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.APIKeysClient", "Create", err.Error()) + } + req, err := client.CreatePreparer(ctx, resourceGroupName, resourceName, APIKeyProperties) if err != nil { err = autorest.NewErrorWithError(err, "insights.APIKeysClient", "Create", nil, "Failure preparing request") @@ -123,7 +134,7 @@ func (client APIKeysClient) CreateResponder(resp *http.Response) (result Applica // Delete delete an API Key of an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // keyID - the API Key ID. This is unique within a Application Insights component. func (client APIKeysClient) Delete(ctx context.Context, resourceGroupName string, resourceName string, keyID string) (result ApplicationInsightsComponentAPIKey, err error) { @@ -137,6 +148,16 @@ func (client APIKeysClient) Delete(ctx context.Context, resourceGroupName string tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.APIKeysClient", "Delete", err.Error()) + } + req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName, keyID) if err != nil { err = autorest.NewErrorWithError(err, "insights.APIKeysClient", "Delete", nil, "Failure preparing request") @@ -202,7 +223,7 @@ func (client APIKeysClient) DeleteResponder(resp *http.Response) (result Applica // Get get the API Key for this key id. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // keyID - the API Key ID. This is unique within a Application Insights component. func (client APIKeysClient) Get(ctx context.Context, resourceGroupName string, resourceName string, keyID string) (result ApplicationInsightsComponentAPIKey, err error) { @@ -216,6 +237,16 @@ func (client APIKeysClient) Get(ctx context.Context, resourceGroupName string, r tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.APIKeysClient", "Get", err.Error()) + } + req, err := client.GetPreparer(ctx, resourceGroupName, resourceName, keyID) if err != nil { err = autorest.NewErrorWithError(err, "insights.APIKeysClient", "Get", nil, "Failure preparing request") @@ -281,7 +312,7 @@ func (client APIKeysClient) GetResponder(resp *http.Response) (result Applicatio // List gets a list of API keys of an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. func (client APIKeysClient) List(ctx context.Context, resourceGroupName string, resourceName string) (result ApplicationInsightsComponentAPIKeyListResult, err error) { if tracing.IsEnabled() { @@ -294,6 +325,16 @@ func (client APIKeysClient) List(ctx context.Context, resourceGroupName string, tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.APIKeysClient", "List", err.Error()) + } + req, err := client.ListPreparer(ctx, resourceGroupName, resourceName) if err != nil { err = autorest.NewErrorWithError(err, "insights.APIKeysClient", "List", nil, "Failure preparing request") diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentavailablefeatures.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentavailablefeatures.go index f3bad06a7795..257e66609d3f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentavailablefeatures.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentavailablefeatures.go @@ -21,6 +21,7 @@ import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) @@ -42,7 +43,7 @@ func NewComponentAvailableFeaturesClientWithBaseURI(baseURI string, subscription // Get returns all available features of the application insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. func (client ComponentAvailableFeaturesClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result ApplicationInsightsComponentAvailableFeatures, err error) { if tracing.IsEnabled() { @@ -55,6 +56,16 @@ func (client ComponentAvailableFeaturesClient) Get(ctx context.Context, resource tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ComponentAvailableFeaturesClient", "Get", err.Error()) + } + req, err := client.GetPreparer(ctx, resourceGroupName, resourceName) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentAvailableFeaturesClient", "Get", nil, "Failure preparing request") diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentcurrentbillingfeatures.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentcurrentbillingfeatures.go index a8377cfcfee6..6bca2c0682e2 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentcurrentbillingfeatures.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentcurrentbillingfeatures.go @@ -21,6 +21,7 @@ import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) @@ -43,7 +44,7 @@ func NewComponentCurrentBillingFeaturesClientWithBaseURI(baseURI string, subscri // Get returns current billing features for an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. func (client ComponentCurrentBillingFeaturesClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result ApplicationInsightsComponentBillingFeatures, err error) { if tracing.IsEnabled() { @@ -56,6 +57,16 @@ func (client ComponentCurrentBillingFeaturesClient) Get(ctx context.Context, res tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ComponentCurrentBillingFeaturesClient", "Get", err.Error()) + } + req, err := client.GetPreparer(ctx, resourceGroupName, resourceName) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentCurrentBillingFeaturesClient", "Get", nil, "Failure preparing request") @@ -120,7 +131,7 @@ func (client ComponentCurrentBillingFeaturesClient) GetResponder(resp *http.Resp // Update update current billing features for an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // billingFeaturesProperties - properties that need to be specified to update billing features for an // Application Insights component. @@ -135,6 +146,16 @@ func (client ComponentCurrentBillingFeaturesClient) Update(ctx context.Context, tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ComponentCurrentBillingFeaturesClient", "Update", err.Error()) + } + req, err := client.UpdatePreparer(ctx, resourceGroupName, resourceName, billingFeaturesProperties) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentCurrentBillingFeaturesClient", "Update", nil, "Failure preparing request") diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentfeaturecapabilities.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentfeaturecapabilities.go index 6e8b2c4f5f3a..0f323cdb59e6 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentfeaturecapabilities.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentfeaturecapabilities.go @@ -21,6 +21,7 @@ import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) @@ -43,7 +44,7 @@ func NewComponentFeatureCapabilitiesClientWithBaseURI(baseURI string, subscripti // Get returns feature capabilities of the application insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. func (client ComponentFeatureCapabilitiesClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result ApplicationInsightsComponentFeatureCapabilities, err error) { if tracing.IsEnabled() { @@ -56,6 +57,16 @@ func (client ComponentFeatureCapabilitiesClient) Get(ctx context.Context, resour tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ComponentFeatureCapabilitiesClient", "Get", err.Error()) + } + req, err := client.GetPreparer(ctx, resourceGroupName, resourceName) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentFeatureCapabilitiesClient", "Get", nil, "Failure preparing request") diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentquotastatus.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentquotastatus.go index 85c74ca43e41..b768ae80a520 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentquotastatus.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/componentquotastatus.go @@ -21,6 +21,7 @@ import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) @@ -42,7 +43,7 @@ func NewComponentQuotaStatusClientWithBaseURI(baseURI string, subscriptionID str // Get returns daily data volume cap (quota) status for an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. func (client ComponentQuotaStatusClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result ApplicationInsightsComponentQuotaStatus, err error) { if tracing.IsEnabled() { @@ -55,6 +56,16 @@ func (client ComponentQuotaStatusClient) Get(ctx context.Context, resourceGroupN tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ComponentQuotaStatusClient", "Get", err.Error()) + } + req, err := client.GetPreparer(ctx, resourceGroupName, resourceName) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentQuotaStatusClient", "Get", nil, "Failure preparing request") diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/components.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/components.go index 773ecb4b8668..0453032cb2d0 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/components.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/components.go @@ -44,7 +44,7 @@ func NewComponentsClientWithBaseURI(baseURI string, subscriptionID string) Compo // CreateOrUpdate creates (or updates) an Application Insights component. Note: You cannot specify a different value // for InstrumentationKey nor AppId in the Put operation. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // insightProperties - properties that need to be specified to create an Application Insights component. func (client ComponentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, insightProperties ApplicationInsightsComponent) (result ApplicationInsightsComponent, err error) { @@ -59,6 +59,12 @@ func (client ComponentsClient) CreateOrUpdate(ctx context.Context, resourceGroup }() } if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: insightProperties, Constraints: []validation.Constraint{{Target: "insightProperties.Kind", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewError("insights.ComponentsClient", "CreateOrUpdate", err.Error()) @@ -130,7 +136,7 @@ func (client ComponentsClient) CreateOrUpdateResponder(resp *http.Response) (res // Delete deletes an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. func (client ComponentsClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error) { if tracing.IsEnabled() { @@ -143,6 +149,16 @@ func (client ComponentsClient) Delete(ctx context.Context, resourceGroupName str tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ComponentsClient", "Delete", err.Error()) + } + req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "Delete", nil, "Failure preparing request") @@ -206,7 +222,7 @@ func (client ComponentsClient) DeleteResponder(resp *http.Response) (result auto // Get returns an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. func (client ComponentsClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result ApplicationInsightsComponent, err error) { if tracing.IsEnabled() { @@ -219,6 +235,16 @@ func (client ComponentsClient) Get(ctx context.Context, resourceGroupName string tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ComponentsClient", "Get", err.Error()) + } + req, err := client.GetPreparer(ctx, resourceGroupName, resourceName) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "Get", nil, "Failure preparing request") @@ -283,7 +309,7 @@ func (client ComponentsClient) GetResponder(resp *http.Response) (result Applica // GetPurgeStatus get status for an ongoing purge operation. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // purgeID - in a purge status request, this is the Id of the operation the status of which is returned. func (client ComponentsClient) GetPurgeStatus(ctx context.Context, resourceGroupName string, resourceName string, purgeID string) (result ComponentPurgeStatusResponse, err error) { @@ -297,6 +323,16 @@ func (client ComponentsClient) GetPurgeStatus(ctx context.Context, resourceGroup tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ComponentsClient", "GetPurgeStatus", err.Error()) + } + req, err := client.GetPurgeStatusPreparer(ctx, resourceGroupName, resourceName, purgeID) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "GetPurgeStatus", nil, "Failure preparing request") @@ -372,6 +408,12 @@ func (client ComponentsClient) List(ctx context.Context) (result ApplicationInsi tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ComponentsClient", "List", err.Error()) + } + result.fn = client.listNextResults req, err := client.ListPreparer(ctx) if err != nil { @@ -472,7 +514,7 @@ func (client ComponentsClient) ListComplete(ctx context.Context) (result Applica // ListByResourceGroup gets a list of Application Insights components within a resource group. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. func (client ComponentsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ApplicationInsightsComponentListResultPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/ComponentsClient.ListByResourceGroup") @@ -484,6 +526,16 @@ func (client ComponentsClient) ListByResourceGroup(ctx context.Context, resource tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ComponentsClient", "ListByResourceGroup", err.Error()) + } + result.fn = client.listByResourceGroupNextResults req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) if err != nil { @@ -585,7 +637,7 @@ func (client ComponentsClient) ListByResourceGroupComplete(ctx context.Context, // Purge purges data in an Application Insights component by a set of user-defined filters. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // body - describes the body of a request to purge data in a single table of an Application Insights component func (client ComponentsClient) Purge(ctx context.Context, resourceGroupName string, resourceName string, body ComponentPurgeBody) (result ComponentPurgeResponse, err error) { @@ -600,6 +652,12 @@ func (client ComponentsClient) Purge(ctx context.Context, resourceGroupName stri }() } if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: body, Constraints: []validation.Constraint{{Target: "body.Table", Name: validation.Null, Rule: true, Chain: nil}, {Target: "body.Filters", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { @@ -672,7 +730,7 @@ func (client ComponentsClient) PurgeResponder(resp *http.Response) (result Compo // UpdateTags updates an existing component's tags. To update other fields use the CreateOrUpdate method. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // componentTags - updated tag information to set into the component instance. func (client ComponentsClient) UpdateTags(ctx context.Context, resourceGroupName string, resourceName string, componentTags TagsResource) (result ApplicationInsightsComponent, err error) { @@ -686,6 +744,16 @@ func (client ComponentsClient) UpdateTags(ctx context.Context, resourceGroupName tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ComponentsClient", "UpdateTags", err.Error()) + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, resourceName, componentTags) if err != nil { err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "UpdateTags", nil, "Failure preparing request") diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/exportconfigurations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/exportconfigurations.go index 105952def012..3bc9b17b62cf 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/exportconfigurations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/exportconfigurations.go @@ -21,6 +21,7 @@ import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) @@ -42,7 +43,7 @@ func NewExportConfigurationsClientWithBaseURI(baseURI string, subscriptionID str // Create create a Continuous Export configuration of an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // exportProperties - properties that need to be specified to create a Continuous Export configuration of a // Application Insights component. @@ -57,6 +58,16 @@ func (client ExportConfigurationsClient) Create(ctx context.Context, resourceGro tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ExportConfigurationsClient", "Create", err.Error()) + } + req, err := client.CreatePreparer(ctx, resourceGroupName, resourceName, exportProperties) if err != nil { err = autorest.NewErrorWithError(err, "insights.ExportConfigurationsClient", "Create", nil, "Failure preparing request") @@ -123,7 +134,7 @@ func (client ExportConfigurationsClient) CreateResponder(resp *http.Response) (r // Delete delete a Continuous Export configuration of an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // exportID - the Continuous Export configuration ID. This is unique within a Application Insights component. func (client ExportConfigurationsClient) Delete(ctx context.Context, resourceGroupName string, resourceName string, exportID string) (result ApplicationInsightsComponentExportConfiguration, err error) { @@ -137,6 +148,16 @@ func (client ExportConfigurationsClient) Delete(ctx context.Context, resourceGro tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ExportConfigurationsClient", "Delete", err.Error()) + } + req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName, exportID) if err != nil { err = autorest.NewErrorWithError(err, "insights.ExportConfigurationsClient", "Delete", nil, "Failure preparing request") @@ -202,7 +223,7 @@ func (client ExportConfigurationsClient) DeleteResponder(resp *http.Response) (r // Get get the Continuous Export configuration for this export id. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // exportID - the Continuous Export configuration ID. This is unique within a Application Insights component. func (client ExportConfigurationsClient) Get(ctx context.Context, resourceGroupName string, resourceName string, exportID string) (result ApplicationInsightsComponentExportConfiguration, err error) { @@ -216,6 +237,16 @@ func (client ExportConfigurationsClient) Get(ctx context.Context, resourceGroupN tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ExportConfigurationsClient", "Get", err.Error()) + } + req, err := client.GetPreparer(ctx, resourceGroupName, resourceName, exportID) if err != nil { err = autorest.NewErrorWithError(err, "insights.ExportConfigurationsClient", "Get", nil, "Failure preparing request") @@ -281,7 +312,7 @@ func (client ExportConfigurationsClient) GetResponder(resp *http.Response) (resu // List gets a list of Continuous Export configuration of an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. func (client ExportConfigurationsClient) List(ctx context.Context, resourceGroupName string, resourceName string) (result ListApplicationInsightsComponentExportConfiguration, err error) { if tracing.IsEnabled() { @@ -294,6 +325,16 @@ func (client ExportConfigurationsClient) List(ctx context.Context, resourceGroup tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ExportConfigurationsClient", "List", err.Error()) + } + req, err := client.ListPreparer(ctx, resourceGroupName, resourceName) if err != nil { err = autorest.NewErrorWithError(err, "insights.ExportConfigurationsClient", "List", nil, "Failure preparing request") @@ -358,7 +399,7 @@ func (client ExportConfigurationsClient) ListResponder(resp *http.Response) (res // Update update the Continuous Export configuration for this export id. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // exportID - the Continuous Export configuration ID. This is unique within a Application Insights component. // exportProperties - properties that need to be specified to update the Continuous Export configuration. @@ -373,6 +414,16 @@ func (client ExportConfigurationsClient) Update(ctx context.Context, resourceGro tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ExportConfigurationsClient", "Update", err.Error()) + } + req, err := client.UpdatePreparer(ctx, resourceGroupName, resourceName, exportID, exportProperties) if err != nil { err = autorest.NewErrorWithError(err, "insights.ExportConfigurationsClient", "Update", nil, "Failure preparing request") diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/favorites.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/favorites.go index d4f322684731..51eed947092f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/favorites.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/favorites.go @@ -21,6 +21,7 @@ import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) @@ -42,7 +43,7 @@ func NewFavoritesClientWithBaseURI(baseURI string, subscriptionID string) Favori // Add adds a new favorites to an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // favoriteID - the Id of a specific favorite defined in the Application Insights component // favoriteProperties - properties that need to be specified to create a new favorite and add it to an @@ -58,6 +59,16 @@ func (client FavoritesClient) Add(ctx context.Context, resourceGroupName string, tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.FavoritesClient", "Add", err.Error()) + } + req, err := client.AddPreparer(ctx, resourceGroupName, resourceName, favoriteID, favoriteProperties) if err != nil { err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Add", nil, "Failure preparing request") @@ -93,6 +104,9 @@ func (client FavoritesClient) AddPreparer(ctx context.Context, resourceGroupName "api-version": APIVersion, } + favoriteProperties.FavoriteID = nil + favoriteProperties.TimeModified = nil + favoriteProperties.UserID = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -125,7 +139,7 @@ func (client FavoritesClient) AddResponder(resp *http.Response) (result Applicat // Delete remove a favorite that is associated to an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // favoriteID - the Id of a specific favorite defined in the Application Insights component func (client FavoritesClient) Delete(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (result autorest.Response, err error) { @@ -139,6 +153,16 @@ func (client FavoritesClient) Delete(ctx context.Context, resourceGroupName stri tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.FavoritesClient", "Delete", err.Error()) + } + req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName, favoriteID) if err != nil { err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Delete", nil, "Failure preparing request") @@ -203,7 +227,7 @@ func (client FavoritesClient) DeleteResponder(resp *http.Response) (result autor // Get get a single favorite by its FavoriteId, defined within an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // favoriteID - the Id of a specific favorite defined in the Application Insights component func (client FavoritesClient) Get(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (result ApplicationInsightsComponentFavorite, err error) { @@ -217,6 +241,16 @@ func (client FavoritesClient) Get(ctx context.Context, resourceGroupName string, tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.FavoritesClient", "Get", err.Error()) + } + req, err := client.GetPreparer(ctx, resourceGroupName, resourceName, favoriteID) if err != nil { err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Get", nil, "Failure preparing request") @@ -282,7 +316,7 @@ func (client FavoritesClient) GetResponder(resp *http.Response) (result Applicat // List gets a list of favorites defined within an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // favoriteType - the type of favorite. Value can be either shared or user. // sourceType - source type of favorite to return. When left out, the source type defaults to 'other' (not @@ -301,6 +335,16 @@ func (client FavoritesClient) List(ctx context.Context, resourceGroupName string tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.FavoritesClient", "List", err.Error()) + } + req, err := client.ListPreparer(ctx, resourceGroupName, resourceName, favoriteType, sourceType, canFetchContent, tags) if err != nil { err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "List", nil, "Failure preparing request") @@ -379,7 +423,7 @@ func (client FavoritesClient) ListResponder(resp *http.Response) (result ListApp // Update updates a favorite that has already been added to an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // favoriteID - the Id of a specific favorite defined in the Application Insights component // favoriteProperties - properties that need to be specified to update the existing favorite. @@ -394,6 +438,16 @@ func (client FavoritesClient) Update(ctx context.Context, resourceGroupName stri tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.FavoritesClient", "Update", err.Error()) + } + req, err := client.UpdatePreparer(ctx, resourceGroupName, resourceName, favoriteID, favoriteProperties) if err != nil { err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Update", nil, "Failure preparing request") @@ -429,6 +483,9 @@ func (client FavoritesClient) UpdatePreparer(ctx context.Context, resourceGroupN "api-version": APIVersion, } + favoriteProperties.FavoriteID = nil + favoriteProperties.TimeModified = nil + favoriteProperties.UserID = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPatch(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/models.go index 0266a572be05..59b6b3f9443f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/models.go @@ -275,7 +275,7 @@ type AnnotationError struct { // AnnotationsListResult annotations list result. type AnnotationsListResult struct { autorest.Response `json:"-"` - // Value - An array of annotations. + // Value - READ-ONLY; An array of annotations. Value *[]Annotation `json:"value,omitempty"` } @@ -296,11 +296,11 @@ type ApplicationInsightsComponent struct { Kind *string `json:"kind,omitempty"` // ApplicationInsightsComponentProperties - Properties that define an Application Insights component resource. *ApplicationInsightsComponentProperties `json:"properties,omitempty"` - // ID - Azure resource Id + // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` - // Name - Azure resource name + // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` - // Type - Azure resource type + // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -317,15 +317,6 @@ func (aic ApplicationInsightsComponent) MarshalJSON() ([]byte, error) { if aic.ApplicationInsightsComponentProperties != nil { objectMap["properties"] = aic.ApplicationInsightsComponentProperties } - if aic.ID != nil { - objectMap["id"] = aic.ID - } - if aic.Name != nil { - objectMap["name"] = aic.Name - } - if aic.Type != nil { - objectMap["type"] = aic.Type - } if aic.Location != nil { objectMap["location"] = aic.Location } @@ -423,15 +414,15 @@ type ApplicationInsightsComponentAnalyticsItem struct { Name *string `json:"Name,omitempty"` // Content - The content of this item Content *string `json:"Content,omitempty"` - // Version - This instance's version of the data model. This can change as new features are added. + // Version - READ-ONLY; This instance's version of the data model. This can change as new features are added. Version *string `json:"Version,omitempty"` // Scope - Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component. Possible values include: 'ItemScopeShared', 'ItemScopeUser' Scope ItemScope `json:"Scope,omitempty"` // Type - Enum indicating the type of the Analytics item. Possible values include: 'Query', 'Function', 'Folder', 'Recent' Type ItemType `json:"Type,omitempty"` - // TimeCreated - Date and time in UTC when this item was created. + // TimeCreated - READ-ONLY; Date and time in UTC when this item was created. TimeCreated *string `json:"TimeCreated,omitempty"` - // TimeModified - Date and time in UTC of the last modification that was made to this item. + // TimeModified - READ-ONLY; Date and time in UTC of the last modification that was made to this item. TimeModified *string `json:"TimeModified,omitempty"` Properties *ApplicationInsightsComponentAnalyticsItemProperties `json:"Properties,omitempty"` } @@ -447,9 +438,9 @@ type ApplicationInsightsComponentAnalyticsItemProperties struct { // Component. type ApplicationInsightsComponentAPIKey struct { autorest.Response `json:"-"` - // ID - The unique ID of the API key inside an Application Insights component. It is auto generated when the API key is created. + // ID - READ-ONLY; The unique ID of the API key inside an Application Insights component. It is auto generated when the API key is created. ID *string `json:"id,omitempty"` - // APIKey - The API key value. It will be only return once when the API Key was created. + // APIKey - READ-ONLY; The API key value. It will be only return once when the API Key was created. APIKey *string `json:"apiKey,omitempty"` // CreatedDate - The create date of this API key. CreatedDate *string `json:"createdDate,omitempty"` @@ -472,7 +463,7 @@ type ApplicationInsightsComponentAPIKeyListResult struct { // ApplicationInsightsComponentAvailableFeatures an Application Insights component available features. type ApplicationInsightsComponentAvailableFeatures struct { autorest.Response `json:"-"` - // Result - A list of Application Insights component feature. + // Result - READ-ONLY; A list of Application Insights component feature. Result *[]ApplicationInsightsComponentFeature `json:"Result,omitempty"` } @@ -489,7 +480,7 @@ type ApplicationInsightsComponentBillingFeatures struct { type ApplicationInsightsComponentDataVolumeCap struct { // Cap - Daily data volume cap in GB. Cap *float64 `json:"Cap,omitempty"` - // ResetTime - Daily data volume cap UTC reset hour. + // ResetTime - READ-ONLY; Daily data volume cap UTC reset hour. ResetTime *int32 `json:"ResetTime,omitempty"` // WarningThreshold - Reserved, not used for now. WarningThreshold *int32 `json:"WarningThreshold,omitempty"` @@ -497,7 +488,7 @@ type ApplicationInsightsComponentDataVolumeCap struct { StopSendNotificationWhenHitThreshold *bool `json:"StopSendNotificationWhenHitThreshold,omitempty"` // StopSendNotificationWhenHitCap - Do not send a notification email when the daily data volume cap is met. StopSendNotificationWhenHitCap *bool `json:"StopSendNotificationWhenHitCap,omitempty"` - // MaxHistoryCap - Maximum daily data volume cap that the user can set for this component. + // MaxHistoryCap - READ-ONLY; Maximum daily data volume cap that the user can set for this component. MaxHistoryCap *float64 `json:"MaxHistoryCap,omitempty"` } @@ -505,43 +496,43 @@ type ApplicationInsightsComponentDataVolumeCap struct { // configuration. type ApplicationInsightsComponentExportConfiguration struct { autorest.Response `json:"-"` - // ExportID - The unique ID of the export configuration inside an Application Insights component. It is auto generated when the Continuous Export configuration is created. + // ExportID - READ-ONLY; The unique ID of the export configuration inside an Application Insights component. It is auto generated when the Continuous Export configuration is created. ExportID *string `json:"ExportId,omitempty"` - // InstrumentationKey - The instrumentation key of the Application Insights component. + // InstrumentationKey - READ-ONLY; The instrumentation key of the Application Insights component. InstrumentationKey *string `json:"InstrumentationKey,omitempty"` // RecordTypes - This comma separated list of document types that will be exported. The possible values include 'Requests', 'Event', 'Exceptions', 'Metrics', 'PageViews', 'PageViewPerformance', 'Rdd', 'PerformanceCounters', 'Availability', 'Messages'. RecordTypes *string `json:"RecordTypes,omitempty"` - // ApplicationName - The name of the Application Insights component. + // ApplicationName - READ-ONLY; The name of the Application Insights component. ApplicationName *string `json:"ApplicationName,omitempty"` - // SubscriptionID - The subscription of the Application Insights component. + // SubscriptionID - READ-ONLY; The subscription of the Application Insights component. SubscriptionID *string `json:"SubscriptionId,omitempty"` - // ResourceGroup - The resource group of the Application Insights component. + // ResourceGroup - READ-ONLY; The resource group of the Application Insights component. ResourceGroup *string `json:"ResourceGroup,omitempty"` - // DestinationStorageSubscriptionID - The destination storage account subscription ID. + // DestinationStorageSubscriptionID - READ-ONLY; The destination storage account subscription ID. DestinationStorageSubscriptionID *string `json:"DestinationStorageSubscriptionId,omitempty"` - // DestinationStorageLocationID - The destination account location ID. + // DestinationStorageLocationID - READ-ONLY; The destination account location ID. DestinationStorageLocationID *string `json:"DestinationStorageLocationId,omitempty"` - // DestinationAccountID - The name of destination account. + // DestinationAccountID - READ-ONLY; The name of destination account. DestinationAccountID *string `json:"DestinationAccountId,omitempty"` - // DestinationType - The destination type. + // DestinationType - READ-ONLY; The destination type. DestinationType *string `json:"DestinationType,omitempty"` - // IsUserEnabled - This will be 'true' if the Continuous Export configuration is enabled, otherwise it will be 'false'. + // IsUserEnabled - READ-ONLY; This will be 'true' if the Continuous Export configuration is enabled, otherwise it will be 'false'. IsUserEnabled *string `json:"IsUserEnabled,omitempty"` - // LastUserUpdate - Last time the Continuous Export configuration was updated. + // LastUserUpdate - READ-ONLY; Last time the Continuous Export configuration was updated. LastUserUpdate *string `json:"LastUserUpdate,omitempty"` // NotificationQueueEnabled - Deprecated NotificationQueueEnabled *string `json:"NotificationQueueEnabled,omitempty"` - // ExportStatus - This indicates current Continuous Export configuration status. The possible values are 'Preparing', 'Success', 'Failure'. + // ExportStatus - READ-ONLY; This indicates current Continuous Export configuration status. The possible values are 'Preparing', 'Success', 'Failure'. ExportStatus *string `json:"ExportStatus,omitempty"` - // LastSuccessTime - The last time data was successfully delivered to the destination storage container for this Continuous Export configuration. + // LastSuccessTime - READ-ONLY; The last time data was successfully delivered to the destination storage container for this Continuous Export configuration. LastSuccessTime *string `json:"LastSuccessTime,omitempty"` - // LastGapTime - The last time the Continuous Export configuration started failing. + // LastGapTime - READ-ONLY; The last time the Continuous Export configuration started failing. LastGapTime *string `json:"LastGapTime,omitempty"` - // PermanentErrorReason - This is the reason the Continuous Export configuration started failing. It can be 'AzureStorageNotFound' or 'AzureStorageAccessDenied'. + // PermanentErrorReason - READ-ONLY; This is the reason the Continuous Export configuration started failing. It can be 'AzureStorageNotFound' or 'AzureStorageAccessDenied'. PermanentErrorReason *string `json:"PermanentErrorReason,omitempty"` - // StorageName - The name of the destination storage account. + // StorageName - READ-ONLY; The name of the destination storage account. StorageName *string `json:"StorageName,omitempty"` - // ContainerName - The name of the destination storage container. + // ContainerName - READ-ONLY; The name of the destination storage container. ContainerName *string `json:"ContainerName,omitempty"` } @@ -578,13 +569,13 @@ type ApplicationInsightsComponentFavorite struct { Config *string `json:"Config,omitempty"` // Version - This instance's version of the data model. This can change as new features are added that can be marked favorite. Current examples include MetricsExplorer (ME) and Search. Version *string `json:"Version,omitempty"` - // FavoriteID - Internally assigned unique id of the favorite definition. + // FavoriteID - READ-ONLY; Internally assigned unique id of the favorite definition. FavoriteID *string `json:"FavoriteId,omitempty"` // FavoriteType - Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the Application Insights component. Possible values include: 'Shared', 'User' FavoriteType FavoriteType `json:"FavoriteType,omitempty"` // SourceType - The source of the favorite definition. SourceType *string `json:"SourceType,omitempty"` - // TimeModified - Date and time in UTC of the last modification that was made to this favorite definition. + // TimeModified - READ-ONLY; Date and time in UTC of the last modification that was made to this favorite definition. TimeModified *string `json:"TimeModified,omitempty"` // Tags - A list of 0 or more tags that are associated with this favorite definition Tags *[]string `json:"Tags,omitempty"` @@ -592,82 +583,82 @@ type ApplicationInsightsComponentFavorite struct { Category *string `json:"Category,omitempty"` // IsGeneratedFromTemplate - Flag denoting wether or not this favorite was generated from a template. IsGeneratedFromTemplate *bool `json:"IsGeneratedFromTemplate,omitempty"` - // UserID - Unique user id of the specific user that owns this favorite. + // UserID - READ-ONLY; Unique user id of the specific user that owns this favorite. UserID *string `json:"UserId,omitempty"` } // ApplicationInsightsComponentFeature an Application Insights component daily data volume cap status type ApplicationInsightsComponentFeature struct { - // FeatureName - The pricing feature name. + // FeatureName - READ-ONLY; The pricing feature name. FeatureName *string `json:"FeatureName,omitempty"` - // MeterID - The meter id used for the feature. + // MeterID - READ-ONLY; The meter id used for the feature. MeterID *string `json:"MeterId,omitempty"` - // MeterRateFrequency - The meter rate for the feature's meter. + // MeterRateFrequency - READ-ONLY; The meter rate for the feature's meter. MeterRateFrequency *string `json:"MeterRateFrequency,omitempty"` - // ResouceID - Reserved, not used now. + // ResouceID - READ-ONLY; Reserved, not used now. ResouceID *string `json:"ResouceId,omitempty"` - // IsHidden - Reserved, not used now. + // IsHidden - READ-ONLY; Reserved, not used now. IsHidden *bool `json:"IsHidden,omitempty"` - // Capabilities - A list of Application Insights component feature capability. + // Capabilities - READ-ONLY; A list of Application Insights component feature capability. Capabilities *[]ApplicationInsightsComponentFeatureCapability `json:"Capabilities,omitempty"` - // Title - Display name of the feature. + // Title - READ-ONLY; Display name of the feature. Title *string `json:"Title,omitempty"` - // IsMainFeature - Whether can apply addon feature on to it. + // IsMainFeature - READ-ONLY; Whether can apply addon feature on to it. IsMainFeature *bool `json:"IsMainFeature,omitempty"` - // SupportedAddonFeatures - The add on features on main feature. + // SupportedAddonFeatures - READ-ONLY; The add on features on main feature. SupportedAddonFeatures *string `json:"SupportedAddonFeatures,omitempty"` } // ApplicationInsightsComponentFeatureCapabilities an Application Insights component feature capabilities type ApplicationInsightsComponentFeatureCapabilities struct { autorest.Response `json:"-"` - // SupportExportData - Whether allow to use continuous export feature. + // SupportExportData - READ-ONLY; Whether allow to use continuous export feature. SupportExportData *bool `json:"SupportExportData,omitempty"` - // BurstThrottlePolicy - Reserved, not used now. + // BurstThrottlePolicy - READ-ONLY; Reserved, not used now. BurstThrottlePolicy *string `json:"BurstThrottlePolicy,omitempty"` - // MetadataClass - Reserved, not used now. + // MetadataClass - READ-ONLY; Reserved, not used now. MetadataClass *string `json:"MetadataClass,omitempty"` - // LiveStreamMetrics - Reserved, not used now. + // LiveStreamMetrics - READ-ONLY; Reserved, not used now. LiveStreamMetrics *bool `json:"LiveStreamMetrics,omitempty"` - // ApplicationMap - Reserved, not used now. + // ApplicationMap - READ-ONLY; Reserved, not used now. ApplicationMap *bool `json:"ApplicationMap,omitempty"` - // WorkItemIntegration - Whether allow to use work item integration feature. + // WorkItemIntegration - READ-ONLY; Whether allow to use work item integration feature. WorkItemIntegration *bool `json:"WorkItemIntegration,omitempty"` - // PowerBIIntegration - Reserved, not used now. + // PowerBIIntegration - READ-ONLY; Reserved, not used now. PowerBIIntegration *bool `json:"PowerBIIntegration,omitempty"` - // OpenSchema - Reserved, not used now. + // OpenSchema - READ-ONLY; Reserved, not used now. OpenSchema *bool `json:"OpenSchema,omitempty"` - // ProactiveDetection - Reserved, not used now. + // ProactiveDetection - READ-ONLY; Reserved, not used now. ProactiveDetection *bool `json:"ProactiveDetection,omitempty"` - // AnalyticsIntegration - Reserved, not used now. + // AnalyticsIntegration - READ-ONLY; Reserved, not used now. AnalyticsIntegration *bool `json:"AnalyticsIntegration,omitempty"` - // MultipleStepWebTest - Whether allow to use multiple steps web test feature. + // MultipleStepWebTest - READ-ONLY; Whether allow to use multiple steps web test feature. MultipleStepWebTest *bool `json:"MultipleStepWebTest,omitempty"` - // APIAccessLevel - Reserved, not used now. + // APIAccessLevel - READ-ONLY; Reserved, not used now. APIAccessLevel *string `json:"ApiAccessLevel,omitempty"` - // TrackingType - The application insights component used tracking type. + // TrackingType - READ-ONLY; The application insights component used tracking type. TrackingType *string `json:"TrackingType,omitempty"` - // DailyCap - Daily data volume cap in GB. + // DailyCap - READ-ONLY; Daily data volume cap in GB. DailyCap *float64 `json:"DailyCap,omitempty"` - // DailyCapResetTime - Daily data volume cap UTC reset hour. + // DailyCapResetTime - READ-ONLY; Daily data volume cap UTC reset hour. DailyCapResetTime *float64 `json:"DailyCapResetTime,omitempty"` - // ThrottleRate - Reserved, not used now. + // ThrottleRate - READ-ONLY; Reserved, not used now. ThrottleRate *float64 `json:"ThrottleRate,omitempty"` } // ApplicationInsightsComponentFeatureCapability an Application Insights component feature capability type ApplicationInsightsComponentFeatureCapability struct { - // Name - The name of the capability. + // Name - READ-ONLY; The name of the capability. Name *string `json:"Name,omitempty"` - // Description - The description of the capability. + // Description - READ-ONLY; The description of the capability. Description *string `json:"Description,omitempty"` - // Value - The value of the capability. + // Value - READ-ONLY; The value of the capability. Value *string `json:"Value,omitempty"` - // Unit - The unit of the capability. + // Unit - READ-ONLY; The unit of the capability. Unit *string `json:"Unit,omitempty"` - // MeterID - The meter used for the capability. + // MeterID - READ-ONLY; The meter used for the capability. MeterID *string `json:"MeterId,omitempty"` - // MeterRateFrequency - The meter rate of the meter. + // MeterRateFrequency - READ-ONLY; The meter rate of the meter. MeterRateFrequency *string `json:"MeterRateFrequency,omitempty"` } @@ -860,9 +851,9 @@ type ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions // ApplicationInsightsComponentProperties properties that define an Application Insights component // resource. type ApplicationInsightsComponentProperties struct { - // ApplicationID - The unique ID of your application. This field mirrors the 'Name' field and cannot be changed. + // ApplicationID - READ-ONLY; The unique ID of your application. This field mirrors the 'Name' field and cannot be changed. ApplicationID *string `json:"ApplicationId,omitempty"` - // AppID - Application Insights Unique ID for your Application. + // AppID - READ-ONLY; Application Insights Unique ID for your Application. AppID *string `json:"AppId,omitempty"` // ApplicationType - Type of application being monitored. Possible values include: 'Web', 'Other' ApplicationType ApplicationType `json:"Application_Type,omitempty"` @@ -870,17 +861,17 @@ type ApplicationInsightsComponentProperties struct { FlowType FlowType `json:"Flow_Type,omitempty"` // RequestSource - Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'. Possible values include: 'Rest' RequestSource RequestSource `json:"Request_Source,omitempty"` - // InstrumentationKey - Application Insights Instrumentation key. A read-only value that applications can use to identify the destination for all telemetry sent to Azure Application Insights. This value will be supplied upon construction of each new Application Insights component. + // InstrumentationKey - READ-ONLY; Application Insights Instrumentation key. A read-only value that applications can use to identify the destination for all telemetry sent to Azure Application Insights. This value will be supplied upon construction of each new Application Insights component. InstrumentationKey *string `json:"InstrumentationKey,omitempty"` - // CreationDate - Creation Date for the Application Insights component, in ISO 8601 format. + // CreationDate - READ-ONLY; Creation Date for the Application Insights component, in ISO 8601 format. CreationDate *date.Time `json:"CreationDate,omitempty"` - // TenantID - Azure Tenant Id. + // TenantID - READ-ONLY; Azure Tenant Id. TenantID *string `json:"TenantId,omitempty"` // HockeyAppID - The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp. HockeyAppID *string `json:"HockeyAppId,omitempty"` - // HockeyAppToken - Token used to authenticate communications with between Application Insights and HockeyApp. + // HockeyAppToken - READ-ONLY; Token used to authenticate communications with between Application Insights and HockeyApp. HockeyAppToken *string `json:"HockeyAppToken,omitempty"` - // ProvisioningState - Current state of this component: whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed. + // ProvisioningState - READ-ONLY; Current state of this component: whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed. ProvisioningState *string `json:"provisioningState,omitempty"` // SamplingPercentage - Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry. SamplingPercentage *float64 `json:"SamplingPercentage,omitempty"` @@ -889,20 +880,20 @@ type ApplicationInsightsComponentProperties struct { // ApplicationInsightsComponentQuotaStatus an Application Insights component daily data volume cap status type ApplicationInsightsComponentQuotaStatus struct { autorest.Response `json:"-"` - // AppID - The Application ID for the Application Insights component. + // AppID - READ-ONLY; The Application ID for the Application Insights component. AppID *string `json:"AppId,omitempty"` - // ShouldBeThrottled - The daily data volume cap is met, and data ingestion will be stopped. + // ShouldBeThrottled - READ-ONLY; The daily data volume cap is met, and data ingestion will be stopped. ShouldBeThrottled *bool `json:"ShouldBeThrottled,omitempty"` - // ExpirationTime - Date and time when the daily data volume cap will be reset, and data ingestion will resume. + // ExpirationTime - READ-ONLY; Date and time when the daily data volume cap will be reset, and data ingestion will resume. ExpirationTime *string `json:"ExpirationTime,omitempty"` } // ApplicationInsightsComponentWebTestLocation properties that define a web test location available to an // Application Insights Component. type ApplicationInsightsComponentWebTestLocation struct { - // DisplayName - The display name of the web test location. + // DisplayName - READ-ONLY; The display name of the web test location. DisplayName *string `json:"DisplayName,omitempty"` - // Tag - Internally defined geographic location tag. + // Tag - READ-ONLY; Internally defined geographic location tag. Tag *string `json:"Tag,omitempty"` } @@ -950,11 +941,11 @@ type ComponentPurgeStatusResponse struct { // ComponentsResource an azure resource object type ComponentsResource struct { - // ID - Azure resource Id + // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` - // Name - Azure resource name + // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` - // Type - Azure resource type + // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -965,15 +956,6 @@ type ComponentsResource struct { // MarshalJSON is the custom marshaler for ComponentsResource. func (cr ComponentsResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if cr.ID != nil { - objectMap["id"] = cr.ID - } - if cr.Name != nil { - objectMap["name"] = cr.Name - } - if cr.Type != nil { - objectMap["type"] = cr.Type - } if cr.Location != nil { objectMap["location"] = cr.Location } @@ -1244,11 +1226,11 @@ type WebTest struct { Kind WebTestKind `json:"kind,omitempty"` // WebTestProperties - Metadata describing a web test for an Azure resource. *WebTestProperties `json:"properties,omitempty"` - // ID - Azure resource Id + // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` - // Name - Azure resource name + // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` - // Type - Azure resource type + // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -1265,15 +1247,6 @@ func (wt WebTest) MarshalJSON() ([]byte, error) { if wt.WebTestProperties != nil { objectMap["properties"] = wt.WebTestProperties } - if wt.ID != nil { - objectMap["id"] = wt.ID - } - if wt.Name != nil { - objectMap["name"] = wt.Name - } - if wt.Type != nil { - objectMap["type"] = wt.Type - } if wt.Location != nil { objectMap["location"] = wt.Location } @@ -1536,7 +1509,7 @@ type WebTestProperties struct { Locations *[]WebTestGeolocation `json:"Locations,omitempty"` // Configuration - An XML configuration specification for a WebTest. Configuration *WebTestPropertiesConfiguration `json:"Configuration,omitempty"` - // ProvisioningState - Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed. + // ProvisioningState - READ-ONLY; Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -1548,11 +1521,11 @@ type WebTestPropertiesConfiguration struct { // WebtestsResource an azure resource object type WebtestsResource struct { - // ID - Azure resource Id + // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` - // Name - Azure resource name + // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` - // Type - Azure resource type + // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -1563,15 +1536,6 @@ type WebtestsResource struct { // MarshalJSON is the custom marshaler for WebtestsResource. func (wr WebtestsResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if wr.ID != nil { - objectMap["id"] = wr.ID - } - if wr.Name != nil { - objectMap["name"] = wr.Name - } - if wr.Type != nil { - objectMap["type"] = wr.Type - } if wr.Location != nil { objectMap["location"] = wr.Location } @@ -1588,11 +1552,11 @@ type Workbook struct { Kind SharedTypeKind `json:"kind,omitempty"` // WorkbookProperties - Metadata describing a web test for an Azure resource. *WorkbookProperties `json:"properties,omitempty"` - // ID - Azure resource Id + // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` - // Name - Azure resource name + // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` - // Type - Azure resource type + // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -1609,15 +1573,6 @@ func (w Workbook) MarshalJSON() ([]byte, error) { if w.WorkbookProperties != nil { objectMap["properties"] = w.WorkbookProperties } - if w.ID != nil { - objectMap["id"] = w.ID - } - if w.Name != nil { - objectMap["name"] = w.Name - } - if w.Type != nil { - objectMap["type"] = w.Type - } if w.Location != nil { objectMap["location"] = w.Location } @@ -1727,7 +1682,7 @@ type WorkbookProperties struct { WorkbookID *string `json:"workbookId,omitempty"` // SharedTypeKind - Enum indicating if this workbook definition is owned by a specific user or is shared between all users with access to the Application Insights component. Possible values include: 'SharedTypeKindUser', 'SharedTypeKindShared' SharedTypeKind SharedTypeKind `json:"kind,omitempty"` - // TimeModified - Date and time in UTC of the last modification that was made to this workbook definition. + // TimeModified - READ-ONLY; Date and time in UTC of the last modification that was made to this workbook definition. TimeModified *string `json:"timeModified,omitempty"` // Category - Workbook category, as defined by the user at creation time. Category *string `json:"category,omitempty"` @@ -1741,11 +1696,11 @@ type WorkbookProperties struct { // WorkbookResource an azure resource object type WorkbookResource struct { - // ID - Azure resource Id + // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` - // Name - Azure resource name + // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` - // Type - Azure resource type + // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -1756,15 +1711,6 @@ type WorkbookResource struct { // MarshalJSON is the custom marshaler for WorkbookResource. func (wr WorkbookResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if wr.ID != nil { - objectMap["id"] = wr.ID - } - if wr.Name != nil { - objectMap["name"] = wr.Name - } - if wr.Type != nil { - objectMap["type"] = wr.Type - } if wr.Location != nil { objectMap["location"] = wr.Location } @@ -1777,7 +1723,7 @@ func (wr WorkbookResource) MarshalJSON() ([]byte, error) { // WorkbooksListResult workbook list result. type WorkbooksListResult struct { autorest.Response `json:"-"` - // Value - An array of workbooks. + // Value - READ-ONLY; An array of workbooks. Value *[]Workbook `json:"value,omitempty"` } @@ -1808,7 +1754,7 @@ type WorkItemConfigurationError struct { // WorkItemConfigurationsListResult work item configuration list result. type WorkItemConfigurationsListResult struct { autorest.Response `json:"-"` - // Value - An array of work item configurations. + // Value - READ-ONLY; An array of work item configurations. Value *[]WorkItemConfiguration `json:"value,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/proactivedetectionconfigurations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/proactivedetectionconfigurations.go index f661970b2658..906b07dbb2e6 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/proactivedetectionconfigurations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/proactivedetectionconfigurations.go @@ -21,6 +21,7 @@ import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) @@ -43,7 +44,7 @@ func NewProactiveDetectionConfigurationsClientWithBaseURI(baseURI string, subscr // Get get the ProactiveDetection configuration for this configuration id. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // configurationID - the ProactiveDetection configuration ID. This is unique within a Application Insights // component. @@ -58,6 +59,16 @@ func (client ProactiveDetectionConfigurationsClient) Get(ctx context.Context, re tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ProactiveDetectionConfigurationsClient", "Get", err.Error()) + } + req, err := client.GetPreparer(ctx, resourceGroupName, resourceName, configurationID) if err != nil { err = autorest.NewErrorWithError(err, "insights.ProactiveDetectionConfigurationsClient", "Get", nil, "Failure preparing request") @@ -123,7 +134,7 @@ func (client ProactiveDetectionConfigurationsClient) GetResponder(resp *http.Res // List gets a list of ProactiveDetection configurations of an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. func (client ProactiveDetectionConfigurationsClient) List(ctx context.Context, resourceGroupName string, resourceName string) (result ListApplicationInsightsComponentProactiveDetectionConfiguration, err error) { if tracing.IsEnabled() { @@ -136,6 +147,16 @@ func (client ProactiveDetectionConfigurationsClient) List(ctx context.Context, r tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ProactiveDetectionConfigurationsClient", "List", err.Error()) + } + req, err := client.ListPreparer(ctx, resourceGroupName, resourceName) if err != nil { err = autorest.NewErrorWithError(err, "insights.ProactiveDetectionConfigurationsClient", "List", nil, "Failure preparing request") @@ -200,7 +221,7 @@ func (client ProactiveDetectionConfigurationsClient) ListResponder(resp *http.Re // Update update the ProactiveDetection configuration for this configuration id. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // configurationID - the ProactiveDetection configuration ID. This is unique within a Application Insights // component. @@ -217,6 +238,16 @@ func (client ProactiveDetectionConfigurationsClient) Update(ctx context.Context, tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.ProactiveDetectionConfigurationsClient", "Update", err.Error()) + } + req, err := client.UpdatePreparer(ctx, resourceGroupName, resourceName, configurationID, proactiveDetectionProperties) if err != nil { err = autorest.NewErrorWithError(err, "insights.ProactiveDetectionConfigurationsClient", "Update", nil, "Failure preparing request") diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/webtestlocations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/webtestlocations.go index 0c7c04dc98d7..5f938e383113 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/webtestlocations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/webtestlocations.go @@ -21,6 +21,7 @@ import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) @@ -42,7 +43,7 @@ func NewWebTestLocationsClientWithBaseURI(baseURI string, subscriptionID string) // List gets a list of web test locations available to this Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. func (client WebTestLocationsClient) List(ctx context.Context, resourceGroupName string, resourceName string) (result ApplicationInsightsWebTestLocationsListResult, err error) { if tracing.IsEnabled() { @@ -55,6 +56,16 @@ func (client WebTestLocationsClient) List(ctx context.Context, resourceGroupName tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.WebTestLocationsClient", "List", err.Error()) + } + req, err := client.ListPreparer(ctx, resourceGroupName, resourceName) if err != nil { err = autorest.NewErrorWithError(err, "insights.WebTestLocationsClient", "List", nil, "Failure preparing request") diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/webtests.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/webtests.go index d0bece1a049b..87a0564689a8 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/webtests.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/webtests.go @@ -43,7 +43,7 @@ func NewWebTestsClientWithBaseURI(baseURI string, subscriptionID string) WebTest // CreateOrUpdate creates or updates an Application Insights web test definition. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // webTestName - the name of the Application Insights webtest resource. // webTestDefinition - properties that need to be specified to create or update an Application Insights web // test definition. @@ -59,6 +59,12 @@ func (client WebTestsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa }() } if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: webTestDefinition, Constraints: []validation.Constraint{{Target: "webTestDefinition.WebTestProperties", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "webTestDefinition.WebTestProperties.SyntheticMonitorID", Name: validation.Null, Rule: true, Chain: nil}, @@ -134,7 +140,7 @@ func (client WebTestsClient) CreateOrUpdateResponder(resp *http.Response) (resul // Delete deletes an Application Insights web test. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // webTestName - the name of the Application Insights webtest resource. func (client WebTestsClient) Delete(ctx context.Context, resourceGroupName string, webTestName string) (result autorest.Response, err error) { if tracing.IsEnabled() { @@ -147,6 +153,16 @@ func (client WebTestsClient) Delete(ctx context.Context, resourceGroupName strin tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.WebTestsClient", "Delete", err.Error()) + } + req, err := client.DeletePreparer(ctx, resourceGroupName, webTestName) if err != nil { err = autorest.NewErrorWithError(err, "insights.WebTestsClient", "Delete", nil, "Failure preparing request") @@ -210,7 +226,7 @@ func (client WebTestsClient) DeleteResponder(resp *http.Response) (result autore // Get get a specific Application Insights web test definition. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // webTestName - the name of the Application Insights webtest resource. func (client WebTestsClient) Get(ctx context.Context, resourceGroupName string, webTestName string) (result WebTest, err error) { if tracing.IsEnabled() { @@ -223,6 +239,16 @@ func (client WebTestsClient) Get(ctx context.Context, resourceGroupName string, tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.WebTestsClient", "Get", err.Error()) + } + req, err := client.GetPreparer(ctx, resourceGroupName, webTestName) if err != nil { err = autorest.NewErrorWithError(err, "insights.WebTestsClient", "Get", nil, "Failure preparing request") @@ -297,6 +323,12 @@ func (client WebTestsClient) List(ctx context.Context) (result WebTestListResult tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.WebTestsClient", "List", err.Error()) + } + result.fn = client.listNextResults req, err := client.ListPreparer(ctx) if err != nil { @@ -398,7 +430,7 @@ func (client WebTestsClient) ListComplete(ctx context.Context) (result WebTestLi // ListByComponent get all Application Insights web tests defined for the specified component. // Parameters: // componentName - the name of the Application Insights component resource. -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. func (client WebTestsClient) ListByComponent(ctx context.Context, componentName string, resourceGroupName string) (result WebTestListResultPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/WebTestsClient.ListByComponent") @@ -410,6 +442,16 @@ func (client WebTestsClient) ListByComponent(ctx context.Context, componentName tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.WebTestsClient", "ListByComponent", err.Error()) + } + result.fn = client.listByComponentNextResults req, err := client.ListByComponentPreparer(ctx, componentName, resourceGroupName) if err != nil { @@ -512,7 +554,7 @@ func (client WebTestsClient) ListByComponentComplete(ctx context.Context, compon // ListByResourceGroup get all Application Insights web tests defined within a specified resource group. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. func (client WebTestsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result WebTestListResultPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/WebTestsClient.ListByResourceGroup") @@ -524,6 +566,16 @@ func (client WebTestsClient) ListByResourceGroup(ctx context.Context, resourceGr tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.WebTestsClient", "ListByResourceGroup", err.Error()) + } + result.fn = client.listByResourceGroupNextResults req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) if err != nil { @@ -625,7 +677,7 @@ func (client WebTestsClient) ListByResourceGroupComplete(ctx context.Context, re // UpdateTags creates or updates an Application Insights web test definition. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // webTestName - the name of the Application Insights webtest resource. // webTestTags - updated tag information to set into the web test instance. func (client WebTestsClient) UpdateTags(ctx context.Context, resourceGroupName string, webTestName string, webTestTags TagsResource) (result WebTest, err error) { @@ -639,6 +691,16 @@ func (client WebTestsClient) UpdateTags(ctx context.Context, resourceGroupName s tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.WebTestsClient", "UpdateTags", err.Error()) + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, webTestName, webTestTags) if err != nil { err = autorest.NewErrorWithError(err, "insights.WebTestsClient", "UpdateTags", nil, "Failure preparing request") diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/workbooks.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/workbooks.go index 05f15244280c..777097b086a5 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/workbooks.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/workbooks.go @@ -43,7 +43,7 @@ func NewWorkbooksClientWithBaseURI(baseURI string, subscriptionID string) Workbo // CreateOrUpdate create a new workbook. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // workbookProperties - properties that need to be specified to create a new workbook. func (client WorkbooksClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (result Workbook, err error) { @@ -58,6 +58,12 @@ func (client WorkbooksClient) CreateOrUpdate(ctx context.Context, resourceGroupN }() } if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, {TargetValue: workbookProperties, Constraints: []validation.Constraint{{Target: "workbookProperties.WorkbookProperties", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "workbookProperties.WorkbookProperties.Name", Name: validation.Null, Rule: true, Chain: nil}, @@ -135,7 +141,7 @@ func (client WorkbooksClient) CreateOrUpdateResponder(resp *http.Response) (resu // Delete delete a workbook. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. func (client WorkbooksClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error) { if tracing.IsEnabled() { @@ -148,6 +154,16 @@ func (client WorkbooksClient) Delete(ctx context.Context, resourceGroupName stri tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.WorkbooksClient", "Delete", err.Error()) + } + req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Delete", nil, "Failure preparing request") @@ -211,7 +227,7 @@ func (client WorkbooksClient) DeleteResponder(resp *http.Response) (result autor // Get get a single workbook by its resourceName. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. func (client WorkbooksClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result Workbook, err error) { if tracing.IsEnabled() { @@ -224,6 +240,16 @@ func (client WorkbooksClient) Get(ctx context.Context, resourceGroupName string, tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.WorkbooksClient", "Get", err.Error()) + } + req, err := client.GetPreparer(ctx, resourceGroupName, resourceName) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Get", nil, "Failure preparing request") @@ -288,7 +314,7 @@ func (client WorkbooksClient) GetResponder(resp *http.Response) (result Workbook // ListByResourceGroup get all Workbooks defined within a specified resource group and category. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // category - category of workbook to return. // tags - tags presents on each workbook returned. // canFetchContent - flag indicating whether or not to return the full content for each applicable workbook. If @@ -304,6 +330,16 @@ func (client WorkbooksClient) ListByResourceGroup(ctx context.Context, resourceG tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.WorkbooksClient", "ListByResourceGroup", err.Error()) + } + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName, category, tags, canFetchContent) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "ListByResourceGroup", nil, "Failure preparing request") @@ -374,7 +410,7 @@ func (client WorkbooksClient) ListByResourceGroupResponder(resp *http.Response) // Update updates a workbook that has already been added. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // workbookProperties - properties that need to be specified to create a new workbook. func (client WorkbooksClient) Update(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (result Workbook, err error) { @@ -388,6 +424,16 @@ func (client WorkbooksClient) Update(ctx context.Context, resourceGroupName stri tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.WorkbooksClient", "Update", err.Error()) + } + req, err := client.UpdatePreparer(ctx, resourceGroupName, resourceName, workbookProperties) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Update", nil, "Failure preparing request") diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/workitemconfigurations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/workitemconfigurations.go index 364c392bde51..cfb613f61fd6 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/workitemconfigurations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights/workitemconfigurations.go @@ -21,6 +21,7 @@ import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) @@ -42,7 +43,7 @@ func NewWorkItemConfigurationsClientWithBaseURI(baseURI string, subscriptionID s // Create create a work item configuration for an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // workItemConfigurationProperties - properties that need to be specified to create a work item configuration // of a Application Insights component. @@ -57,6 +58,16 @@ func (client WorkItemConfigurationsClient) Create(ctx context.Context, resourceG tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.WorkItemConfigurationsClient", "Create", err.Error()) + } + req, err := client.CreatePreparer(ctx, resourceGroupName, resourceName, workItemConfigurationProperties) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkItemConfigurationsClient", "Create", nil, "Failure preparing request") @@ -123,7 +134,7 @@ func (client WorkItemConfigurationsClient) CreateResponder(resp *http.Response) // Delete delete a work item configuration of an Application Insights component. // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. // workItemConfigID - the unique work item configuration Id. This can be either friendly name of connector as // defined in connector configuration @@ -138,6 +149,16 @@ func (client WorkItemConfigurationsClient) Delete(ctx context.Context, resourceG tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.WorkItemConfigurationsClient", "Delete", err.Error()) + } + req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName, workItemConfigID) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkItemConfigurationsClient", "Delete", nil, "Failure preparing request") @@ -203,7 +224,7 @@ func (client WorkItemConfigurationsClient) DeleteResponder(resp *http.Response) // GetDefault gets default work item configurations that exist for the application // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. func (client WorkItemConfigurationsClient) GetDefault(ctx context.Context, resourceGroupName string, resourceName string) (result WorkItemConfiguration, err error) { if tracing.IsEnabled() { @@ -216,6 +237,16 @@ func (client WorkItemConfigurationsClient) GetDefault(ctx context.Context, resou tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.WorkItemConfigurationsClient", "GetDefault", err.Error()) + } + req, err := client.GetDefaultPreparer(ctx, resourceGroupName, resourceName) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkItemConfigurationsClient", "GetDefault", nil, "Failure preparing request") @@ -280,7 +311,7 @@ func (client WorkItemConfigurationsClient) GetDefaultResponder(resp *http.Respon // List gets the list work item configurations that exist for the application // Parameters: -// resourceGroupName - the name of the resource group. +// resourceGroupName - the name of the resource group. The name is case insensitive. // resourceName - the name of the Application Insights component resource. func (client WorkItemConfigurationsClient) List(ctx context.Context, resourceGroupName string, resourceName string) (result WorkItemConfigurationsListResult, err error) { if tracing.IsEnabled() { @@ -293,6 +324,16 @@ func (client WorkItemConfigurationsClient) List(ctx context.Context, resourceGro tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("insights.WorkItemConfigurationsClient", "List", err.Error()) + } + req, err := client.ListPreparer(ctx, resourceGroupName, resourceName) if err != nil { err = autorest.NewErrorWithError(err, "insights.WorkItemConfigurationsClient", "List", nil, "Failure preparing request") diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/automation/mgmt/2015-10-31/automation/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/automation/mgmt/2015-10-31/automation/models.go index 0264caf18f52..e179667f1e48 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/automation/mgmt/2015-10-31/automation/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/automation/mgmt/2015-10-31/automation/models.go @@ -509,11 +509,11 @@ type Account struct { Tags map[string]*string `json:"tags"` // Location - The Azure Region where the resource lives Location *string `json:"location,omitempty"` - // ID - Fully qualified resource Id for the resource + // ID - READ-ONLY; Fully qualified resource Id for the resource ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -532,15 +532,6 @@ func (a Account) MarshalJSON() ([]byte, error) { if a.Location != nil { objectMap["location"] = a.Location } - if a.ID != nil { - objectMap["id"] = a.ID - } - if a.Name != nil { - objectMap["name"] = a.Name - } - if a.Type != nil { - objectMap["type"] = a.Type - } return json.Marshal(objectMap) } @@ -862,11 +853,11 @@ type AccountProperties struct { Sku *Sku `json:"sku,omitempty"` // LastModifiedBy - Gets or sets the last modified by. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` - // State - Gets status of account. Possible values include: 'Ok', 'Unavailable', 'Suspended' + // State - READ-ONLY; Gets status of account. Possible values include: 'Ok', 'Unavailable', 'Suspended' State AccountState `json:"state,omitempty"` - // CreationTime - Gets the creation time. + // CreationTime - READ-ONLY; Gets the creation time. CreationTime *date.Time `json:"creationTime,omitempty"` - // LastModifiedTime - Gets the last modified time. + // LastModifiedTime - READ-ONLY; Gets the last modified time. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // Description - Gets or sets the description. Description *string `json:"description,omitempty"` @@ -964,7 +955,7 @@ type Activity struct { autorest.Response `json:"-"` // ID - Gets or sets the id of the resource. ID *string `json:"id,omitempty"` - // Name - Gets the name of the activity. + // Name - READ-ONLY; Gets the name of the activity. Name *string `json:"name,omitempty"` // ActivityProperties - Gets or sets the properties of the activity. *ActivityProperties `json:"properties,omitempty"` @@ -976,9 +967,6 @@ func (a Activity) MarshalJSON() ([]byte, error) { if a.ID != nil { objectMap["id"] = a.ID } - if a.Name != nil { - objectMap["name"] = a.Name - } if a.ActivityProperties != nil { objectMap["properties"] = a.ActivityProperties } @@ -1309,11 +1297,11 @@ type Certificate struct { autorest.Response `json:"-"` // CertificateProperties - Gets or sets the properties of the certificate. *CertificateProperties `json:"properties,omitempty"` - // ID - Fully qualified resource Id for the resource + // ID - READ-ONLY; Fully qualified resource Id for the resource ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -1323,15 +1311,6 @@ func (c Certificate) MarshalJSON() ([]byte, error) { if c.CertificateProperties != nil { objectMap["properties"] = c.CertificateProperties } - if c.ID != nil { - objectMap["id"] = c.ID - } - if c.Name != nil { - objectMap["name"] = c.Name - } - if c.Type != nil { - objectMap["type"] = c.Type - } return json.Marshal(objectMap) } @@ -1600,15 +1579,15 @@ func NewCertificateListResultPage(getNextPage func(context.Context, CertificateL // CertificateProperties properties of the certificate. type CertificateProperties struct { - // Thumbprint - Gets the thumbprint of the certificate. + // Thumbprint - READ-ONLY; Gets the thumbprint of the certificate. Thumbprint *string `json:"thumbprint,omitempty"` - // ExpiryTime - Gets the expiry time of the certificate. + // ExpiryTime - READ-ONLY; Gets the expiry time of the certificate. ExpiryTime *date.Time `json:"expiryTime,omitempty"` - // IsExportable - Gets the is exportable flag of the certificate. + // IsExportable - READ-ONLY; Gets the is exportable flag of the certificate. IsExportable *bool `json:"isExportable,omitempty"` - // CreationTime - Gets the creation time. + // CreationTime - READ-ONLY; Gets the creation time. CreationTime *date.Time `json:"creationTime,omitempty"` - // LastModifiedTime - Gets the last modified time. + // LastModifiedTime - READ-ONLY; Gets the last modified time. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // Description - Gets or sets the description. Description *string `json:"description,omitempty"` @@ -1678,11 +1657,11 @@ type Connection struct { autorest.Response `json:"-"` // ConnectionProperties - Gets or sets the properties of the connection. *ConnectionProperties `json:"properties,omitempty"` - // ID - Fully qualified resource Id for the resource + // ID - READ-ONLY; Fully qualified resource Id for the resource ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -1692,15 +1671,6 @@ func (c Connection) MarshalJSON() ([]byte, error) { if c.ConnectionProperties != nil { objectMap["properties"] = c.ConnectionProperties } - if c.ID != nil { - objectMap["id"] = c.ID - } - if c.Name != nil { - objectMap["name"] = c.Name - } - if c.Type != nil { - objectMap["type"] = c.Type - } return json.Marshal(objectMap) } @@ -1983,11 +1953,11 @@ func NewConnectionListResultPage(getNextPage func(context.Context, ConnectionLis type ConnectionProperties struct { // ConnectionType - Gets or sets the connectionType of the connection. ConnectionType *ConnectionTypeAssociationProperty `json:"connectionType,omitempty"` - // FieldDefinitionValues - Gets the field definition values of the connection. + // FieldDefinitionValues - READ-ONLY; Gets the field definition values of the connection. FieldDefinitionValues map[string]*string `json:"fieldDefinitionValues"` - // CreationTime - Gets the creation time. + // CreationTime - READ-ONLY; Gets the creation time. CreationTime *date.Time `json:"creationTime,omitempty"` - // LastModifiedTime - Gets the last modified time. + // LastModifiedTime - READ-ONLY; Gets the last modified time. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // Description - Gets or sets the description. Description *string `json:"description,omitempty"` @@ -1999,15 +1969,6 @@ func (cp ConnectionProperties) MarshalJSON() ([]byte, error) { if cp.ConnectionType != nil { objectMap["connectionType"] = cp.ConnectionType } - if cp.FieldDefinitionValues != nil { - objectMap["fieldDefinitionValues"] = cp.FieldDefinitionValues - } - if cp.CreationTime != nil { - objectMap["creationTime"] = cp.CreationTime - } - if cp.LastModifiedTime != nil { - objectMap["lastModifiedTime"] = cp.LastModifiedTime - } if cp.Description != nil { objectMap["description"] = cp.Description } @@ -2017,11 +1978,11 @@ func (cp ConnectionProperties) MarshalJSON() ([]byte, error) { // ConnectionType definition of the connection type. type ConnectionType struct { autorest.Response `json:"-"` - // ID - Gets the id of the resource. + // ID - READ-ONLY; Gets the id of the resource. ID *string `json:"id,omitempty"` - // Name - Gets the name of the connection type. + // Name - READ-ONLY; Gets the name of the connection type. Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // ConnectionTypeProperties - Gets or sets the properties of the connection type. *ConnectionTypeProperties `json:"properties,omitempty"` @@ -2030,15 +1991,6 @@ type ConnectionType struct { // MarshalJSON is the custom marshaler for ConnectionType. func (ct ConnectionType) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if ct.ID != nil { - objectMap["id"] = ct.ID - } - if ct.Name != nil { - objectMap["name"] = ct.Name - } - if ct.Type != nil { - objectMap["type"] = ct.Type - } if ct.ConnectionTypeProperties != nil { objectMap["properties"] = ct.ConnectionTypeProperties } @@ -2326,9 +2278,9 @@ func NewConnectionTypeListResultPage(getNextPage func(context.Context, Connectio type ConnectionTypeProperties struct { // IsGlobal - Gets or sets a Boolean value to indicate if the connection type is global. IsGlobal *bool `json:"isGlobal,omitempty"` - // FieldDefinitions - Gets the field definitions of the connection type. + // FieldDefinitions - READ-ONLY; Gets the field definitions of the connection type. FieldDefinitions map[string]*FieldDefinition `json:"fieldDefinitions"` - // CreationTime - Gets the creation time. + // CreationTime - READ-ONLY; Gets the creation time. CreationTime *date.Time `json:"creationTime,omitempty"` // LastModifiedTime - Gets or sets the last modified time. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` @@ -2342,12 +2294,6 @@ func (ctp ConnectionTypeProperties) MarshalJSON() ([]byte, error) { if ctp.IsGlobal != nil { objectMap["isGlobal"] = ctp.IsGlobal } - if ctp.FieldDefinitions != nil { - objectMap["fieldDefinitions"] = ctp.FieldDefinitions - } - if ctp.CreationTime != nil { - objectMap["creationTime"] = ctp.CreationTime - } if ctp.LastModifiedTime != nil { objectMap["lastModifiedTime"] = ctp.LastModifiedTime } @@ -2465,11 +2411,11 @@ type Credential struct { autorest.Response `json:"-"` // CredentialProperties - Gets or sets the properties of the credential. *CredentialProperties `json:"properties,omitempty"` - // ID - Fully qualified resource Id for the resource + // ID - READ-ONLY; Fully qualified resource Id for the resource ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -2479,15 +2425,6 @@ func (c Credential) MarshalJSON() ([]byte, error) { if c.CredentialProperties != nil { objectMap["properties"] = c.CredentialProperties } - if c.ID != nil { - objectMap["id"] = c.ID - } - if c.Name != nil { - objectMap["name"] = c.Name - } - if c.Type != nil { - objectMap["type"] = c.Type - } return json.Marshal(objectMap) } @@ -2753,11 +2690,11 @@ func NewCredentialListResultPage(getNextPage func(context.Context, CredentialLis // CredentialProperties definition of the credential properties type CredentialProperties struct { - // UserName - Gets the user name of the credential. + // UserName - READ-ONLY; Gets the user name of the credential. UserName *string `json:"userName,omitempty"` - // CreationTime - Gets the creation time. + // CreationTime - READ-ONLY; Gets the creation time. CreationTime *date.Time `json:"creationTime,omitempty"` - // LastModifiedTime - Gets the last modified time. + // LastModifiedTime - READ-ONLY; Gets the last modified time. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // Description - Gets or sets the description. Description *string `json:"description,omitempty"` @@ -2831,11 +2768,11 @@ type DscCompilationJob struct { autorest.Response `json:"-"` // DscCompilationJobProperties - Gets or sets the properties of the Dsc Compilation job. *DscCompilationJobProperties `json:"properties,omitempty"` - // ID - Fully qualified resource Id for the resource + // ID - READ-ONLY; Fully qualified resource Id for the resource ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -2845,15 +2782,6 @@ func (dcj DscCompilationJob) MarshalJSON() ([]byte, error) { if dcj.DscCompilationJobProperties != nil { objectMap["properties"] = dcj.DscCompilationJobProperties } - if dcj.ID != nil { - objectMap["id"] = dcj.ID - } - if dcj.Name != nil { - objectMap["name"] = dcj.Name - } - if dcj.Type != nil { - objectMap["type"] = dcj.Type - } return json.Marshal(objectMap) } @@ -3164,11 +3092,11 @@ func NewDscCompilationJobListResultPage(getNextPage func(context.Context, DscCom type DscCompilationJobProperties struct { // Configuration - Gets or sets the configuration. Configuration *DscConfigurationAssociationProperty `json:"configuration,omitempty"` - // StartedBy - Gets the compilation job started by. + // StartedBy - READ-ONLY; Gets the compilation job started by. StartedBy *string `json:"startedBy,omitempty"` - // JobID - Gets the id of the job. + // JobID - READ-ONLY; Gets the id of the job. JobID *uuid.UUID `json:"jobId,omitempty"` - // CreationTime - Gets the creation time of the job. + // CreationTime - READ-ONLY; Gets the creation time of the job. CreationTime *date.Time `json:"creationTime,omitempty"` // ProvisioningState - The current provisioning state of the job. Possible values include: 'JobProvisioningStateFailed', 'JobProvisioningStateSucceeded', 'JobProvisioningStateSuspended', 'JobProvisioningStateProcessing' ProvisioningState JobProvisioningState `json:"provisioningState,omitempty"` @@ -3178,15 +3106,15 @@ type DscCompilationJobProperties struct { Status JobStatus `json:"status,omitempty"` // StatusDetails - Gets or sets the status details of the job. StatusDetails *string `json:"statusDetails,omitempty"` - // StartTime - Gets the start time of the job. + // StartTime - READ-ONLY; Gets the start time of the job. StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - Gets the end time of the job. + // EndTime - READ-ONLY; Gets the end time of the job. EndTime *date.Time `json:"endTime,omitempty"` - // Exception - Gets the exception of the job. + // Exception - READ-ONLY; Gets the exception of the job. Exception *string `json:"exception,omitempty"` - // LastModifiedTime - Gets the last modified time of the job. + // LastModifiedTime - READ-ONLY; Gets the last modified time of the job. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` - // LastStatusModifiedTime - Gets the last status modified time of the job. + // LastStatusModifiedTime - READ-ONLY; Gets the last status modified time of the job. LastStatusModifiedTime *date.Time `json:"lastStatusModifiedTime,omitempty"` // Parameters - Gets or sets the parameters of the job. Parameters map[string]*string `json:"parameters"` @@ -3198,15 +3126,6 @@ func (dcjp DscCompilationJobProperties) MarshalJSON() ([]byte, error) { if dcjp.Configuration != nil { objectMap["configuration"] = dcjp.Configuration } - if dcjp.StartedBy != nil { - objectMap["startedBy"] = dcjp.StartedBy - } - if dcjp.JobID != nil { - objectMap["jobId"] = dcjp.JobID - } - if dcjp.CreationTime != nil { - objectMap["creationTime"] = dcjp.CreationTime - } if dcjp.ProvisioningState != "" { objectMap["provisioningState"] = dcjp.ProvisioningState } @@ -3219,21 +3138,6 @@ func (dcjp DscCompilationJobProperties) MarshalJSON() ([]byte, error) { if dcjp.StatusDetails != nil { objectMap["statusDetails"] = dcjp.StatusDetails } - if dcjp.StartTime != nil { - objectMap["startTime"] = dcjp.StartTime - } - if dcjp.EndTime != nil { - objectMap["endTime"] = dcjp.EndTime - } - if dcjp.Exception != nil { - objectMap["exception"] = dcjp.Exception - } - if dcjp.LastModifiedTime != nil { - objectMap["lastModifiedTime"] = dcjp.LastModifiedTime - } - if dcjp.LastStatusModifiedTime != nil { - objectMap["lastStatusModifiedTime"] = dcjp.LastStatusModifiedTime - } if dcjp.Parameters != nil { objectMap["parameters"] = dcjp.Parameters } @@ -3251,11 +3155,11 @@ type DscConfiguration struct { Tags map[string]*string `json:"tags"` // Location - The Azure Region where the resource lives Location *string `json:"location,omitempty"` - // ID - Fully qualified resource Id for the resource + // ID - READ-ONLY; Fully qualified resource Id for the resource ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -3274,15 +3178,6 @@ func (dc DscConfiguration) MarshalJSON() ([]byte, error) { if dc.Location != nil { objectMap["location"] = dc.Location } - if dc.ID != nil { - objectMap["id"] = dc.ID - } - if dc.Name != nil { - objectMap["name"] = dc.Name - } - if dc.Type != nil { - objectMap["type"] = dc.Type - } return json.Marshal(objectMap) } @@ -3814,11 +3709,11 @@ type DscNode struct { Etag *string `json:"etag,omitempty"` // ExtensionHandler - Gets or sets the list of extensionHandler properties for a Node. ExtensionHandler *[]DscNodeExtensionHandlerAssociationProperty `json:"extensionHandler,omitempty"` - // ID - Fully qualified resource Id for the resource + // ID - READ-ONLY; Fully qualified resource Id for the resource ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -3831,11 +3726,11 @@ type DscNodeConfiguration struct { CreationTime *date.Time `json:"creationTime,omitempty"` // Configuration - Gets or sets the configuration of the node. Configuration *DscConfigurationAssociationProperty `json:"configuration,omitempty"` - // ID - Fully qualified resource Id for the resource + // ID - READ-ONLY; Fully qualified resource Id for the resource ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -4957,11 +4852,11 @@ func (jp JobProperties) MarshalJSON() ([]byte, error) { // JobSchedule definition of the job schedule. type JobSchedule struct { autorest.Response `json:"-"` - // ID - Gets the id of the resource. + // ID - READ-ONLY; Gets the id of the resource. ID *string `json:"id,omitempty"` - // Name - Gets the name of the variable. + // Name - READ-ONLY; Gets the name of the variable. Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // JobScheduleProperties - Gets or sets the properties of the job schedule. *JobScheduleProperties `json:"properties,omitempty"` @@ -4970,15 +4865,6 @@ type JobSchedule struct { // MarshalJSON is the custom marshaler for JobSchedule. func (js JobSchedule) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if js.ID != nil { - objectMap["id"] = js.ID - } - if js.Name != nil { - objectMap["name"] = js.Name - } - if js.Type != nil { - objectMap["type"] = js.Type - } if js.JobScheduleProperties != nil { objectMap["properties"] = js.JobScheduleProperties } @@ -5528,11 +5414,11 @@ func (jsp JobStreamProperties) MarshalJSON() ([]byte, error) { // Key automation key which is used to register a DSC Node type Key struct { - // KeyName - Automation key name. Possible values include: 'KeyNamePrimary', 'KeyNameSecondary' + // KeyName - READ-ONLY; Automation key name. Possible values include: 'KeyNamePrimary', 'KeyNameSecondary' KeyName KeyName `json:"KeyName,omitempty"` - // Permissions - Automation key permissions. Possible values include: 'Read', 'Full' + // Permissions - READ-ONLY; Automation key permissions. Possible values include: 'Read', 'Full' Permissions KeyPermissions `json:"Permissions,omitempty"` - // Value - Value of the Automation Key used for registration. + // Value - READ-ONLY; Value of the Automation Key used for registration. Value *string `json:"Value,omitempty"` } @@ -5546,7 +5432,7 @@ type KeyListResult struct { // LinkedWorkspace definition of the linked workspace. type LinkedWorkspace struct { autorest.Response `json:"-"` - // ID - Gets the id of the linked workspace. + // ID - READ-ONLY; Gets the id of the linked workspace. ID *string `json:"id,omitempty"` } @@ -5561,11 +5447,11 @@ type Module struct { Tags map[string]*string `json:"tags"` // Location - The Azure Region where the resource lives Location *string `json:"location,omitempty"` - // ID - Fully qualified resource Id for the resource + // ID - READ-ONLY; Fully qualified resource Id for the resource ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -5584,15 +5470,6 @@ func (mVar Module) MarshalJSON() ([]byte, error) { if mVar.Location != nil { objectMap["location"] = mVar.Location } - if mVar.ID != nil { - objectMap["id"] = mVar.ID - } - if mVar.Name != nil { - objectMap["name"] = mVar.Name - } - if mVar.Type != nil { - objectMap["type"] = mVar.Type - } return json.Marshal(objectMap) } @@ -6055,11 +5932,11 @@ type OperationListResult struct { // ProxyResource ARM proxy resource. type ProxyResource struct { - // ID - Fully qualified resource Id for the resource + // ID - READ-ONLY; Fully qualified resource Id for the resource ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -6071,11 +5948,11 @@ type ReadCloser struct { // Resource the core properties of ARM resources type Resource struct { - // ID - Fully qualified resource Id for the resource + // ID - READ-ONLY; Fully qualified resource Id for the resource ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -6096,11 +5973,11 @@ type Runbook struct { Tags map[string]*string `json:"tags"` // Location - The Azure Region where the resource lives Location *string `json:"location,omitempty"` - // ID - Fully qualified resource Id for the resource + // ID - READ-ONLY; Fully qualified resource Id for the resource ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -6119,15 +5996,6 @@ func (r Runbook) MarshalJSON() ([]byte, error) { if r.Location != nil { objectMap["location"] = r.Location } - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } return json.Marshal(objectMap) } @@ -6388,7 +6256,7 @@ type RunbookDraftPublishFuture struct { // If the operation has not completed it will return an error. func (future *RunbookDraftPublishFuture) Result(client RunbookDraftClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookDraftPublishFuture", "Result", future.Response(), "Polling failure") return @@ -6411,7 +6279,7 @@ type RunbookDraftReplaceContentFuture struct { // If the operation has not completed it will return an error. func (future *RunbookDraftReplaceContentFuture) Result(client RunbookDraftClient) (rc ReadCloser, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "automation.RunbookDraftReplaceContentFuture", "Result", future.Response(), "Polling failure") return @@ -6779,11 +6647,11 @@ type Schedule struct { autorest.Response `json:"-"` // ScheduleProperties - Gets or sets the properties of the schedule. *ScheduleProperties `json:"properties,omitempty"` - // ID - Fully qualified resource Id for the resource + // ID - READ-ONLY; Fully qualified resource Id for the resource ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -6793,15 +6661,6 @@ func (s Schedule) MarshalJSON() ([]byte, error) { if s.ScheduleProperties != nil { objectMap["properties"] = s.ScheduleProperties } - if s.ID != nil { - objectMap["id"] = s.ID - } - if s.Name != nil { - objectMap["name"] = s.Name - } - if s.Type != nil { - objectMap["type"] = s.Type - } return json.Marshal(objectMap) } @@ -7083,7 +6942,7 @@ func NewScheduleListResultPage(getNextPage func(context.Context, ScheduleListRes type ScheduleProperties struct { // StartTime - Gets or sets the start time of the schedule. StartTime *date.Time `json:"startTime,omitempty"` - // StartTimeOffsetMinutes - Gets the start time's offset in minutes. + // StartTimeOffsetMinutes - READ-ONLY; Gets the start time's offset in minutes. StartTimeOffsetMinutes *float64 `json:"startTimeOffsetMinutes,omitempty"` // ExpiryTime - Gets or sets the end time of the schedule. ExpiryTime *date.Time `json:"expiryTime,omitempty"` @@ -7190,15 +7049,15 @@ type Sku struct { // Statistics definition of the statistic. type Statistics struct { - // CounterProperty - Gets the property value of the statistic. + // CounterProperty - READ-ONLY; Gets the property value of the statistic. CounterProperty *string `json:"counterProperty,omitempty"` - // CounterValue - Gets the value of the statistic. + // CounterValue - READ-ONLY; Gets the value of the statistic. CounterValue *int64 `json:"counterValue,omitempty"` - // StartTime - Gets the startTime of the statistic. + // StartTime - READ-ONLY; Gets the startTime of the statistic. StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - Gets the endTime of the statistic. + // EndTime - READ-ONLY; Gets the endTime of the statistic. EndTime *date.Time `json:"endTime,omitempty"` - // ID - Gets the id. + // ID - READ-ONLY; Gets the id. ID *string `json:"id,omitempty"` } @@ -7307,11 +7166,11 @@ type TrackedResource struct { Tags map[string]*string `json:"tags"` // Location - The Azure Region where the resource lives Location *string `json:"location,omitempty"` - // ID - Fully qualified resource Id for the resource + // ID - READ-ONLY; Fully qualified resource Id for the resource ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -7324,15 +7183,6 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Location != nil { objectMap["location"] = tr.Location } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } @@ -7387,11 +7237,11 @@ type Variable struct { autorest.Response `json:"-"` // VariableProperties - Gets or sets the properties of the variable. *VariableProperties `json:"properties,omitempty"` - // ID - Fully qualified resource Id for the resource + // ID - READ-ONLY; Fully qualified resource Id for the resource ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -7401,15 +7251,6 @@ func (vVar Variable) MarshalJSON() ([]byte, error) { if vVar.VariableProperties != nil { objectMap["properties"] = vVar.VariableProperties } - if vVar.ID != nil { - objectMap["id"] = vVar.ID - } - if vVar.Name != nil { - objectMap["name"] = vVar.Name - } - if vVar.Type != nil { - objectMap["type"] = vVar.Type - } return json.Marshal(objectMap) } @@ -7753,11 +7594,11 @@ type Webhook struct { autorest.Response `json:"-"` // WebhookProperties - Gets or sets the webhook properties. *WebhookProperties `json:"properties,omitempty"` - // ID - Fully qualified resource Id for the resource + // ID - READ-ONLY; Fully qualified resource Id for the resource ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -7767,15 +7608,6 @@ func (w Webhook) MarshalJSON() ([]byte, error) { if w.WebhookProperties != nil { objectMap["properties"] = w.WebhookProperties } - if w.ID != nil { - objectMap["id"] = w.ID - } - if w.Name != nil { - objectMap["name"] = w.Name - } - if w.Type != nil { - objectMap["type"] = w.Type - } return json.Marshal(objectMap) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/batch/mgmt/2018-12-01/batch/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/batch/mgmt/2018-12-01/batch/models.go index 29121ad183ba..9e2ec14c4d33 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/batch/mgmt/2018-12-01/batch/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/batch/mgmt/2018-12-01/batch/models.go @@ -393,15 +393,15 @@ type Account struct { autorest.Response `json:"-"` // AccountProperties - The properties associated with the account. *AccountProperties `json:"properties,omitempty"` - // ID - The ID of the resource. + // ID - READ-ONLY; The ID of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` - // Location - The location of the resource. + // Location - READ-ONLY; The location of the resource. Location *string `json:"location,omitempty"` - // Tags - The tags of the resource. + // Tags - READ-ONLY; The tags of the resource. Tags map[string]*string `json:"tags"` } @@ -411,21 +411,6 @@ func (a Account) MarshalJSON() ([]byte, error) { if a.AccountProperties != nil { objectMap["properties"] = a.AccountProperties } - if a.ID != nil { - objectMap["id"] = a.ID - } - if a.Name != nil { - objectMap["name"] = a.Name - } - if a.Type != nil { - objectMap["type"] = a.Type - } - if a.Location != nil { - objectMap["location"] = a.Location - } - if a.Tags != nil { - objectMap["tags"] = a.Tags - } return json.Marshal(objectMap) } @@ -508,7 +493,7 @@ type AccountCreateFuture struct { // If the operation has not completed it will return an error. func (future *AccountCreateFuture) Result(client AccountClient) (a Account, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountCreateFuture", "Result", future.Response(), "Polling failure") return @@ -614,7 +599,7 @@ type AccountDeleteFuture struct { // If the operation has not completed it will return an error. func (future *AccountDeleteFuture) Result(client AccountClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "batch.AccountDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -630,11 +615,11 @@ func (future *AccountDeleteFuture) Result(client AccountClient) (ar autorest.Res // AccountKeys a set of Azure Batch account keys. type AccountKeys struct { autorest.Response `json:"-"` - // AccountName - The Batch account name. + // AccountName - READ-ONLY; The Batch account name. AccountName *string `json:"accountName,omitempty"` - // Primary - The primary key associated with the account. + // Primary - READ-ONLY; The primary key associated with the account. Primary *string `json:"primary,omitempty"` - // Secondary - The secondary key associated with the account. + // Secondary - READ-ONLY; The secondary key associated with the account. Secondary *string `json:"secondary,omitempty"` } @@ -786,18 +771,24 @@ func NewAccountListResultPage(getNextPage func(context.Context, AccountListResul // AccountProperties account specific properties. type AccountProperties struct { - // AccountEndpoint - The account endpoint used to interact with the Batch service. + // AccountEndpoint - READ-ONLY; The account endpoint used to interact with the Batch service. AccountEndpoint *string `json:"accountEndpoint,omitempty"` - // ProvisioningState - The provisioned state of the resource. Possible values include: 'ProvisioningStateInvalid', 'ProvisioningStateCreating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCancelled' + // ProvisioningState - READ-ONLY; The provisioned state of the resource. Possible values include: 'ProvisioningStateInvalid', 'ProvisioningStateCreating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCancelled' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` - // PoolAllocationMode - Possible values include: 'BatchService', 'UserSubscription' - PoolAllocationMode PoolAllocationMode `json:"poolAllocationMode,omitempty"` - KeyVaultReference *KeyVaultReference `json:"keyVaultReference,omitempty"` - AutoStorage *AutoStorageProperties `json:"autoStorage,omitempty"` - DedicatedCoreQuota *int32 `json:"dedicatedCoreQuota,omitempty"` - LowPriorityCoreQuota *int32 `json:"lowPriorityCoreQuota,omitempty"` - PoolQuota *int32 `json:"poolQuota,omitempty"` - ActiveJobAndJobScheduleQuota *int32 `json:"activeJobAndJobScheduleQuota,omitempty"` + // PoolAllocationMode - READ-ONLY; Possible values include: 'BatchService', 'UserSubscription' + PoolAllocationMode PoolAllocationMode `json:"poolAllocationMode,omitempty"` + // KeyVaultReference - READ-ONLY + KeyVaultReference *KeyVaultReference `json:"keyVaultReference,omitempty"` + // AutoStorage - READ-ONLY + AutoStorage *AutoStorageProperties `json:"autoStorage,omitempty"` + // DedicatedCoreQuota - READ-ONLY + DedicatedCoreQuota *int32 `json:"dedicatedCoreQuota,omitempty"` + // LowPriorityCoreQuota - READ-ONLY + LowPriorityCoreQuota *int32 `json:"lowPriorityCoreQuota,omitempty"` + // PoolQuota - READ-ONLY + PoolQuota *int32 `json:"poolQuota,omitempty"` + // ActiveJobAndJobScheduleQuota - READ-ONLY + ActiveJobAndJobScheduleQuota *int32 `json:"activeJobAndJobScheduleQuota,omitempty"` } // AccountRegenerateKeyParameters parameters supplied to the RegenerateKey operation. @@ -876,13 +867,13 @@ type Application struct { autorest.Response `json:"-"` // ApplicationProperties - The properties associated with the Application. *ApplicationProperties `json:"properties,omitempty"` - // ID - The ID of the resource. + // ID - READ-ONLY; The ID of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` - // Etag - The ETag of the resource, used for concurrency statements. + // Etag - READ-ONLY; The ETag of the resource, used for concurrency statements. Etag *string `json:"etag,omitempty"` } @@ -892,18 +883,6 @@ func (a Application) MarshalJSON() ([]byte, error) { if a.ApplicationProperties != nil { objectMap["properties"] = a.ApplicationProperties } - if a.ID != nil { - objectMap["id"] = a.ID - } - if a.Name != nil { - objectMap["name"] = a.Name - } - if a.Type != nil { - objectMap["type"] = a.Type - } - if a.Etag != nil { - objectMap["etag"] = a.Etag - } return json.Marshal(objectMap) } @@ -972,13 +951,13 @@ type ApplicationPackage struct { autorest.Response `json:"-"` // ApplicationPackageProperties - The properties associated with the Application Package. *ApplicationPackageProperties `json:"properties,omitempty"` - // ID - The ID of the resource. + // ID - READ-ONLY; The ID of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` - // Etag - The ETag of the resource, used for concurrency statements. + // Etag - READ-ONLY; The ETag of the resource, used for concurrency statements. Etag *string `json:"etag,omitempty"` } @@ -988,18 +967,6 @@ func (ap ApplicationPackage) MarshalJSON() ([]byte, error) { if ap.ApplicationPackageProperties != nil { objectMap["properties"] = ap.ApplicationPackageProperties } - if ap.ID != nil { - objectMap["id"] = ap.ID - } - if ap.Name != nil { - objectMap["name"] = ap.Name - } - if ap.Type != nil { - objectMap["type"] = ap.Type - } - if ap.Etag != nil { - objectMap["etag"] = ap.Etag - } return json.Marshal(objectMap) } @@ -1065,15 +1032,15 @@ func (ap *ApplicationPackage) UnmarshalJSON(body []byte) error { // ApplicationPackageProperties properties of an application package type ApplicationPackageProperties struct { - // State - The current state of the application package. Possible values include: 'Pending', 'Active' + // State - READ-ONLY; The current state of the application package. Possible values include: 'Pending', 'Active' State PackageState `json:"state,omitempty"` - // Format - The format of the application package, if the package is active. + // Format - READ-ONLY; The format of the application package, if the package is active. Format *string `json:"format,omitempty"` - // StorageURL - The URL for the application package in Azure Storage. + // StorageURL - READ-ONLY; The URL for the application package in Azure Storage. StorageURL *string `json:"storageUrl,omitempty"` - // StorageURLExpiry - The UTC time at which the Azure Storage URL will expire. + // StorageURLExpiry - READ-ONLY; The UTC time at which the Azure Storage URL will expire. StorageURLExpiry *date.Time `json:"storageUrlExpiry,omitempty"` - // LastActivationTime - The time at which the package was last activated, if the package is active. + // LastActivationTime - READ-ONLY; The time at which the package was last activated, if the package is active. LastActivationTime *date.Time `json:"lastActivationTime,omitempty"` } @@ -1146,13 +1113,13 @@ type Certificate struct { autorest.Response `json:"-"` // CertificateProperties - The properties associated with the certificate. *CertificateProperties `json:"properties,omitempty"` - // ID - The ID of the resource. + // ID - READ-ONLY; The ID of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` - // Etag - The ETag of the resource, used for concurrency statements. + // Etag - READ-ONLY; The ETag of the resource, used for concurrency statements. Etag *string `json:"etag,omitempty"` } @@ -1162,18 +1129,6 @@ func (c Certificate) MarshalJSON() ([]byte, error) { if c.CertificateProperties != nil { objectMap["properties"] = c.CertificateProperties } - if c.ID != nil { - objectMap["id"] = c.ID - } - if c.Name != nil { - objectMap["name"] = c.Name - } - if c.Type != nil { - objectMap["type"] = c.Type - } - if c.Etag != nil { - objectMap["etag"] = c.Etag - } return json.Marshal(objectMap) } @@ -1257,7 +1212,7 @@ type CertificateCreateFuture struct { // If the operation has not completed it will return an error. func (future *CertificateCreateFuture) Result(client CertificateClient) (c Certificate, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateCreateFuture", "Result", future.Response(), "Polling failure") return @@ -1280,13 +1235,13 @@ func (future *CertificateCreateFuture) Result(client CertificateClient) (c Certi type CertificateCreateOrUpdateParameters struct { // CertificateCreateOrUpdateProperties - The properties associated with the certificate. *CertificateCreateOrUpdateProperties `json:"properties,omitempty"` - // ID - The ID of the resource. + // ID - READ-ONLY; The ID of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` - // Etag - The ETag of the resource, used for concurrency statements. + // Etag - READ-ONLY; The ETag of the resource, used for concurrency statements. Etag *string `json:"etag,omitempty"` } @@ -1296,18 +1251,6 @@ func (ccoup CertificateCreateOrUpdateParameters) MarshalJSON() ([]byte, error) { if ccoup.CertificateCreateOrUpdateProperties != nil { objectMap["properties"] = ccoup.CertificateCreateOrUpdateProperties } - if ccoup.ID != nil { - objectMap["id"] = ccoup.ID - } - if ccoup.Name != nil { - objectMap["name"] = ccoup.Name - } - if ccoup.Type != nil { - objectMap["type"] = ccoup.Type - } - if ccoup.Etag != nil { - objectMap["etag"] = ccoup.Etag - } return json.Marshal(objectMap) } @@ -1395,7 +1338,7 @@ type CertificateDeleteFuture struct { // If the operation has not completed it will return an error. func (future *CertificateDeleteFuture) Result(client CertificateClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "batch.CertificateDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1410,15 +1353,17 @@ func (future *CertificateDeleteFuture) Result(client CertificateClient) (ar auto // CertificateProperties certificate properties. type CertificateProperties struct { - // ProvisioningState - Possible values include: 'Succeeded', 'Deleting', 'Failed' - ProvisioningState CertificateProvisioningState `json:"provisioningState,omitempty"` - ProvisioningStateTransitionTime *date.Time `json:"provisioningStateTransitionTime,omitempty"` - // PreviousProvisioningState - The previous provisioned state of the resource. Possible values include: 'Succeeded', 'Deleting', 'Failed' - PreviousProvisioningState CertificateProvisioningState `json:"previousProvisioningState,omitempty"` - PreviousProvisioningStateTransitionTime *date.Time `json:"previousProvisioningStateTransitionTime,omitempty"` - // PublicData - The public key of the certificate. + // ProvisioningState - READ-ONLY; Possible values include: 'Succeeded', 'Deleting', 'Failed' + ProvisioningState CertificateProvisioningState `json:"provisioningState,omitempty"` + // ProvisioningStateTransitionTime - READ-ONLY + ProvisioningStateTransitionTime *date.Time `json:"provisioningStateTransitionTime,omitempty"` + // PreviousProvisioningState - READ-ONLY; The previous provisioned state of the resource. Possible values include: 'Succeeded', 'Deleting', 'Failed' + PreviousProvisioningState CertificateProvisioningState `json:"previousProvisioningState,omitempty"` + // PreviousProvisioningStateTransitionTime - READ-ONLY + PreviousProvisioningStateTransitionTime *date.Time `json:"previousProvisioningStateTransitionTime,omitempty"` + // PublicData - READ-ONLY; The public key of the certificate. PublicData *string `json:"publicData,omitempty"` - // DeleteCertificateError - This is only returned when the certificate provisioningState is 'Failed'. + // DeleteCertificateError - READ-ONLY; This is only returned when the certificate provisioningState is 'Failed'. DeleteCertificateError *DeleteCertificateError `json:"deleteCertificateError,omitempty"` // ThumbprintAlgorithm - This must match the first portion of the certificate name. Currently required to be 'SHA1'. ThumbprintAlgorithm *string `json:"thumbprintAlgorithm,omitempty"` @@ -1449,11 +1394,11 @@ type CheckNameAvailabilityParameters struct { // CheckNameAvailabilityResult the CheckNameAvailability operation response. type CheckNameAvailabilityResult struct { autorest.Response `json:"-"` - // NameAvailable - Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used. + // NameAvailable - READ-ONLY; Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used. NameAvailable *bool `json:"nameAvailable,omitempty"` - // Reason - Gets the reason that a Batch account name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'Invalid', 'AlreadyExists' + // Reason - READ-ONLY; Gets the reason that a Batch account name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'Invalid', 'AlreadyExists' Reason NameAvailabilityReason `json:"reason,omitempty"` - // Message - Gets an error message explaining the Reason value in more detail. + // Message - READ-ONLY; Gets an error message explaining the Reason value in more detail. Message *string `json:"message,omitempty"` } @@ -2191,7 +2136,7 @@ func NewListPoolsResultPage(getNextPage func(context.Context, ListPoolsResult) ( // LocationQuota quotas associated with a Batch region for a particular subscription. type LocationQuota struct { autorest.Response `json:"-"` - // AccountQuota - The number of Batch accounts that may be created under the subscription in the specified region. + // AccountQuota - READ-ONLY; The number of Batch accounts that may be created under the subscription in the specified region. AccountQuota *int32 `json:"accountQuota,omitempty"` } @@ -2387,13 +2332,13 @@ type Pool struct { autorest.Response `json:"-"` // PoolProperties - The properties associated with the pool. *PoolProperties `json:"properties,omitempty"` - // ID - The ID of the resource. + // ID - READ-ONLY; The ID of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` - // Etag - The ETag of the resource, used for concurrency statements. + // Etag - READ-ONLY; The ETag of the resource, used for concurrency statements. Etag *string `json:"etag,omitempty"` } @@ -2403,18 +2348,6 @@ func (p Pool) MarshalJSON() ([]byte, error) { if p.PoolProperties != nil { objectMap["properties"] = p.PoolProperties } - if p.ID != nil { - objectMap["id"] = p.ID - } - if p.Name != nil { - objectMap["name"] = p.Name - } - if p.Type != nil { - objectMap["type"] = p.Type - } - if p.Etag != nil { - objectMap["etag"] = p.Etag - } return json.Marshal(objectMap) } @@ -2487,7 +2420,7 @@ type PoolCreateFuture struct { // If the operation has not completed it will return an error. func (future *PoolCreateFuture) Result(client PoolClient) (p Pool, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolCreateFuture", "Result", future.Response(), "Polling failure") return @@ -2515,7 +2448,7 @@ type PoolDeleteFuture struct { // If the operation has not completed it will return an error. func (future *PoolDeleteFuture) Result(client PoolClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "batch.PoolDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -2538,23 +2471,28 @@ type PoolEndpointConfiguration struct { type PoolProperties struct { // DisplayName - The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. DisplayName *string `json:"displayName,omitempty"` - // LastModified - This is the last time at which the pool level data, such as the targetDedicatedNodes or autoScaleSettings, changed. It does not factor in node-level changes such as a compute node changing state. + // LastModified - READ-ONLY; This is the last time at which the pool level data, such as the targetDedicatedNodes or autoScaleSettings, changed. It does not factor in node-level changes such as a compute node changing state. LastModified *date.Time `json:"lastModified,omitempty"` + // CreationTime - READ-ONLY CreationTime *date.Time `json:"creationTime,omitempty"` - // ProvisioningState - Possible values include: 'PoolProvisioningStateSucceeded', 'PoolProvisioningStateDeleting' - ProvisioningState PoolProvisioningState `json:"provisioningState,omitempty"` - ProvisioningStateTransitionTime *date.Time `json:"provisioningStateTransitionTime,omitempty"` - // AllocationState - Possible values include: 'Steady', 'Resizing', 'Stopping' - AllocationState AllocationState `json:"allocationState,omitempty"` - AllocationStateTransitionTime *date.Time `json:"allocationStateTransitionTime,omitempty"` + // ProvisioningState - READ-ONLY; Possible values include: 'PoolProvisioningStateSucceeded', 'PoolProvisioningStateDeleting' + ProvisioningState PoolProvisioningState `json:"provisioningState,omitempty"` + // ProvisioningStateTransitionTime - READ-ONLY + ProvisioningStateTransitionTime *date.Time `json:"provisioningStateTransitionTime,omitempty"` + // AllocationState - READ-ONLY; Possible values include: 'Steady', 'Resizing', 'Stopping' + AllocationState AllocationState `json:"allocationState,omitempty"` + // AllocationStateTransitionTime - READ-ONLY + AllocationStateTransitionTime *date.Time `json:"allocationStateTransitionTime,omitempty"` // VMSize - For information about available sizes of virtual machines for Cloud Services pools (pools created with cloudServiceConfiguration), see Sizes for Cloud Services (http://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud Services VM sizes except ExtraSmall. For information about available VM sizes for pools using images from the Virtual Machines Marketplace (pools created with virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). VMSize *string `json:"vmSize,omitempty"` // DeploymentConfiguration - Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS), while VirtualMachineConfiguration uses Azure Virtual Machines (IaaS). DeploymentConfiguration *DeploymentConfiguration `json:"deploymentConfiguration,omitempty"` - CurrentDedicatedNodes *int32 `json:"currentDedicatedNodes,omitempty"` - CurrentLowPriorityNodes *int32 `json:"currentLowPriorityNodes,omitempty"` - ScaleSettings *ScaleSettings `json:"scaleSettings,omitempty"` - // AutoScaleRun - This property is set only if the pool automatically scales, i.e. autoScaleSettings are used. + // CurrentDedicatedNodes - READ-ONLY + CurrentDedicatedNodes *int32 `json:"currentDedicatedNodes,omitempty"` + // CurrentLowPriorityNodes - READ-ONLY + CurrentLowPriorityNodes *int32 `json:"currentLowPriorityNodes,omitempty"` + ScaleSettings *ScaleSettings `json:"scaleSettings,omitempty"` + // AutoScaleRun - READ-ONLY; This property is set only if the pool automatically scales, i.e. autoScaleSettings are used. AutoScaleRun *AutoScaleRun `json:"autoScaleRun,omitempty"` // InterNodeCommunication - This imposes restrictions on which nodes can be assigned to the pool. Enabling this value can reduce the chance of the requested number of nodes to be allocated in the pool. If not specified, this value defaults to 'Disabled'. Possible values include: 'Enabled', 'Disabled' InterNodeCommunication InterNodeCommunicationState `json:"interNodeCommunication,omitempty"` @@ -2571,19 +2509,20 @@ type PoolProperties struct { // ApplicationPackages - Changes to application packages affect all new compute nodes joining the pool, but do not affect compute nodes that are already in the pool until they are rebooted or reimaged. ApplicationPackages *[]ApplicationPackageReference `json:"applicationPackages,omitempty"` // ApplicationLicenses - The list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, pool creation will fail. - ApplicationLicenses *[]string `json:"applicationLicenses,omitempty"` + ApplicationLicenses *[]string `json:"applicationLicenses,omitempty"` + // ResizeOperationStatus - READ-ONLY ResizeOperationStatus *ResizeOperationStatus `json:"resizeOperationStatus,omitempty"` } // ProxyResource a definition of an Azure resource. type ProxyResource struct { - // ID - The ID of the resource. + // ID - READ-ONLY; The ID of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` - // Etag - The ETag of the resource, used for concurrency statements. + // Etag - READ-ONLY; The ETag of the resource, used for concurrency statements. Etag *string `json:"etag,omitempty"` } @@ -2612,36 +2551,21 @@ type ResizeOperationStatus struct { // Resource a definition of an Azure resource. type Resource struct { - // ID - The ID of the resource. + // ID - READ-ONLY; The ID of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` - // Location - The location of the resource. + // Location - READ-ONLY; The location of the resource. Location *string `json:"location,omitempty"` - // Tags - The tags of the resource. + // Tags - READ-ONLY; The tags of the resource. Tags map[string]*string `json:"tags"` } // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } - if r.Location != nil { - objectMap["location"] = r.Location - } - if r.Tags != nil { - objectMap["tags"] = r.Tags - } return json.Marshal(objectMap) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2017-10-12/cdn/customdomains.go b/vendor/github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2017-10-12/cdn/customdomains.go index ae9107a9ea9c..8a3a8af7252e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2017-10-12/cdn/customdomains.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2017-10-12/cdn/customdomains.go @@ -321,7 +321,10 @@ func (client CustomDomainsClient) DisableCustomHTTPSResponder(resp *http.Respons // profileName - name of the CDN profile which is unique within the resource group. // endpointName - name of the endpoint under the profile which is unique globally. // customDomainName - name of the custom domain within an endpoint. -func (client CustomDomainsClient) EnableCustomHTTPS(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string) (result CustomDomain, err error) { +// customDomainHTTPSParameters - the configuration specifying how to enable HTTPS for the custom domain - using +// CDN managed certificate or user's own certificate. If not specified, enabling ssl uses CDN managed +// certificate by default. +func (client CustomDomainsClient) EnableCustomHTTPS(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string, customDomainHTTPSParameters *BasicCustomDomainHTTPSParameters) (result CustomDomain, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/CustomDomainsClient.EnableCustomHTTPS") defer func() { @@ -340,7 +343,7 @@ func (client CustomDomainsClient) EnableCustomHTTPS(ctx context.Context, resourc return result, validation.NewError("cdn.CustomDomainsClient", "EnableCustomHTTPS", err.Error()) } - req, err := client.EnableCustomHTTPSPreparer(ctx, resourceGroupName, profileName, endpointName, customDomainName) + req, err := client.EnableCustomHTTPSPreparer(ctx, resourceGroupName, profileName, endpointName, customDomainName, customDomainHTTPSParameters) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsClient", "EnableCustomHTTPS", nil, "Failure preparing request") return @@ -362,7 +365,7 @@ func (client CustomDomainsClient) EnableCustomHTTPS(ctx context.Context, resourc } // EnableCustomHTTPSPreparer prepares the EnableCustomHTTPS request. -func (client CustomDomainsClient) EnableCustomHTTPSPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string) (*http.Request, error) { +func (client CustomDomainsClient) EnableCustomHTTPSPreparer(ctx context.Context, resourceGroupName string, profileName string, endpointName string, customDomainName string, customDomainHTTPSParameters *BasicCustomDomainHTTPSParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ "customDomainName": autorest.Encode("path", customDomainName), "endpointName": autorest.Encode("path", endpointName), @@ -377,10 +380,15 @@ func (client CustomDomainsClient) EnableCustomHTTPSPreparer(ctx context.Context, } preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPost(), autorest.WithBaseURL(client.BaseURI), autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}/enableCustomHttps", pathParameters), autorest.WithQueryParameters(queryParameters)) + if customDomainHTTPSParameters != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(customDomainHTTPSParameters)) + } return preparer.Prepare((&http.Request{}).WithContext(ctx)) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2017-10-12/cdn/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2017-10-12/cdn/models.go index 81bbd57ab47c..6181e03ee133 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2017-10-12/cdn/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2017-10-12/cdn/models.go @@ -47,6 +47,38 @@ func PossibleCacheBehaviorValues() []CacheBehavior { return []CacheBehavior{BypassCache, Override, SetIfMissing} } +// CertificateSource enumerates the values for certificate source. +type CertificateSource string + +const ( + // CertificateSourceAzureKeyVault ... + CertificateSourceAzureKeyVault CertificateSource = "AzureKeyVault" + // CertificateSourceCdn ... + CertificateSourceCdn CertificateSource = "Cdn" + // CertificateSourceCustomDomainHTTPSParameters ... + CertificateSourceCustomDomainHTTPSParameters CertificateSource = "CustomDomainHttpsParameters" +) + +// PossibleCertificateSourceValues returns an array of possible values for the CertificateSource const type. +func PossibleCertificateSourceValues() []CertificateSource { + return []CertificateSource{CertificateSourceAzureKeyVault, CertificateSourceCdn, CertificateSourceCustomDomainHTTPSParameters} +} + +// CertificateType enumerates the values for certificate type. +type CertificateType string + +const ( + // Dedicated ... + Dedicated CertificateType = "Dedicated" + // Shared ... + Shared CertificateType = "Shared" +) + +// PossibleCertificateTypeValues returns an array of possible values for the CertificateType const type. +func PossibleCertificateTypeValues() []CertificateType { + return []CertificateType{Dedicated, Shared} +} + // CustomDomainResourceState enumerates the values for custom domain resource state. type CustomDomainResourceState string @@ -258,6 +290,21 @@ func PossibleProfileResourceStateValues() []ProfileResourceState { return []ProfileResourceState{ProfileResourceStateActive, ProfileResourceStateCreating, ProfileResourceStateDeleting, ProfileResourceStateDisabled} } +// ProtocolType enumerates the values for protocol type. +type ProtocolType string + +const ( + // IPBased ... + IPBased ProtocolType = "IPBased" + // ServerNameIndication ... + ServerNameIndication ProtocolType = "ServerNameIndication" +) + +// PossibleProtocolTypeValues returns an array of possible values for the ProtocolType const type. +func PossibleProtocolTypeValues() []ProtocolType { + return []ProtocolType{IPBased, ServerNameIndication} +} + // QueryStringCachingBehavior enumerates the values for query string caching behavior. type QueryStringCachingBehavior string @@ -296,6 +343,8 @@ type SkuName string const ( // CustomVerizon ... CustomVerizon SkuName = "Custom_Verizon" + // PremiumChinaCdn ... + PremiumChinaCdn SkuName = "Premium_ChinaCdn" // PremiumVerizon ... PremiumVerizon SkuName = "Premium_Verizon" // StandardAkamai ... @@ -310,7 +359,7 @@ const ( // PossibleSkuNameValues returns an array of possible values for the SkuName const type. func PossibleSkuNameValues() []SkuName { - return []SkuName{CustomVerizon, PremiumVerizon, StandardAkamai, StandardChinaCdn, StandardMicrosoft, StandardVerizon} + return []SkuName{CustomVerizon, PremiumChinaCdn, PremiumVerizon, StandardAkamai, StandardChinaCdn, StandardMicrosoft, StandardVerizon} } // CacheExpirationActionParameters defines the parameters for the cache expiration action. @@ -324,6 +373,14 @@ type CacheExpirationActionParameters struct { CacheDuration *string `json:"cacheDuration,omitempty"` } +// CertificateSourceParameters defines the parameters for using CDN managed certificate for securing custom +// domain. +type CertificateSourceParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // CertificateType - Type of certificate used. Possible values include: 'Shared', 'Dedicated' + CertificateType CertificateType `json:"certificateType,omitempty"` +} + // CheckNameAvailabilityInput input of CheckNameAvailability API. type CheckNameAvailabilityInput struct { // Name - The resource name to validate. @@ -335,11 +392,11 @@ type CheckNameAvailabilityInput struct { // CheckNameAvailabilityOutput output of check name availability API. type CheckNameAvailabilityOutput struct { autorest.Response `json:"-"` - // NameAvailable - Indicates whether the name is available. + // NameAvailable - READ-ONLY; Indicates whether the name is available. NameAvailable *bool `json:"nameAvailable,omitempty"` - // Reason - The reason why the name is not available. + // Reason - READ-ONLY; The reason why the name is not available. Reason *string `json:"reason,omitempty"` - // Message - The detailed error message describing why the name is not available. + // Message - READ-ONLY; The detailed error message describing why the name is not available. Message *string `json:"message,omitempty"` } @@ -356,11 +413,11 @@ type CidrIPAddress struct { type CustomDomain struct { autorest.Response `json:"-"` *CustomDomainProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -370,15 +427,6 @@ func (cd CustomDomain) MarshalJSON() ([]byte, error) { if cd.CustomDomainProperties != nil { objectMap["properties"] = cd.CustomDomainProperties } - if cd.ID != nil { - objectMap["id"] = cd.ID - } - if cd.Name != nil { - objectMap["name"] = cd.Name - } - if cd.Type != nil { - objectMap["type"] = cd.Type - } return json.Marshal(objectMap) } @@ -433,11 +481,100 @@ func (cd *CustomDomain) UnmarshalJSON(body []byte) error { return nil } +// BasicCustomDomainHTTPSParameters the JSON object that contains the properties to secure a custom domain. +type BasicCustomDomainHTTPSParameters interface { + AsManagedHTTPSParameters() (*ManagedHTTPSParameters, bool) + AsUserManagedHTTPSParameters() (*UserManagedHTTPSParameters, bool) + AsCustomDomainHTTPSParameters() (*CustomDomainHTTPSParameters, bool) +} + +// CustomDomainHTTPSParameters the JSON object that contains the properties to secure a custom domain. +type CustomDomainHTTPSParameters struct { + // ProtocolType - Defines the TLS extension protocol that is used for secure delivery. Possible values include: 'ServerNameIndication', 'IPBased' + ProtocolType ProtocolType `json:"protocolType,omitempty"` + // CertificateSource - Possible values include: 'CertificateSourceCustomDomainHTTPSParameters', 'CertificateSourceCdn', 'CertificateSourceAzureKeyVault' + CertificateSource CertificateSource `json:"certificateSource,omitempty"` +} + +func unmarshalBasicCustomDomainHTTPSParameters(body []byte) (BasicCustomDomainHTTPSParameters, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["certificateSource"] { + case string(CertificateSourceCdn): + var mhp ManagedHTTPSParameters + err := json.Unmarshal(body, &mhp) + return mhp, err + case string(CertificateSourceAzureKeyVault): + var umhp UserManagedHTTPSParameters + err := json.Unmarshal(body, &umhp) + return umhp, err + default: + var cdhp CustomDomainHTTPSParameters + err := json.Unmarshal(body, &cdhp) + return cdhp, err + } +} +func unmarshalBasicCustomDomainHTTPSParametersArray(body []byte) ([]BasicCustomDomainHTTPSParameters, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + cdhpArray := make([]BasicCustomDomainHTTPSParameters, len(rawMessages)) + + for index, rawMessage := range rawMessages { + cdhp, err := unmarshalBasicCustomDomainHTTPSParameters(*rawMessage) + if err != nil { + return nil, err + } + cdhpArray[index] = cdhp + } + return cdhpArray, nil +} + +// MarshalJSON is the custom marshaler for CustomDomainHTTPSParameters. +func (cdhp CustomDomainHTTPSParameters) MarshalJSON() ([]byte, error) { + cdhp.CertificateSource = CertificateSourceCustomDomainHTTPSParameters + objectMap := make(map[string]interface{}) + if cdhp.ProtocolType != "" { + objectMap["protocolType"] = cdhp.ProtocolType + } + if cdhp.CertificateSource != "" { + objectMap["certificateSource"] = cdhp.CertificateSource + } + return json.Marshal(objectMap) +} + +// AsManagedHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for CustomDomainHTTPSParameters. +func (cdhp CustomDomainHTTPSParameters) AsManagedHTTPSParameters() (*ManagedHTTPSParameters, bool) { + return nil, false +} + +// AsUserManagedHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for CustomDomainHTTPSParameters. +func (cdhp CustomDomainHTTPSParameters) AsUserManagedHTTPSParameters() (*UserManagedHTTPSParameters, bool) { + return nil, false +} + +// AsCustomDomainHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for CustomDomainHTTPSParameters. +func (cdhp CustomDomainHTTPSParameters) AsCustomDomainHTTPSParameters() (*CustomDomainHTTPSParameters, bool) { + return &cdhp, true +} + +// AsBasicCustomDomainHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for CustomDomainHTTPSParameters. +func (cdhp CustomDomainHTTPSParameters) AsBasicCustomDomainHTTPSParameters() (BasicCustomDomainHTTPSParameters, bool) { + return &cdhp, true +} + // CustomDomainListResult result of the request to list custom domains. It contains a list of custom domain // objects and a URL link to get the next set of results. type CustomDomainListResult struct { autorest.Response `json:"-"` - // Value - List of CDN CustomDomains within an endpoint. + // Value - READ-ONLY; List of CDN CustomDomains within an endpoint. Value *[]CustomDomain `json:"value,omitempty"` // NextLink - URL to get the next set of custom domain objects if there are any. NextLink *string `json:"nextLink,omitempty"` @@ -622,15 +759,15 @@ func (cdp *CustomDomainParameters) UnmarshalJSON(body []byte) error { type CustomDomainProperties struct { // HostName - The host name of the custom domain. Must be a domain name. HostName *string `json:"hostName,omitempty"` - // ResourceState - Resource status of the custom domain. Possible values include: 'Creating', 'Active', 'Deleting' + // ResourceState - READ-ONLY; Resource status of the custom domain. Possible values include: 'Creating', 'Active', 'Deleting' ResourceState CustomDomainResourceState `json:"resourceState,omitempty"` - // CustomHTTPSProvisioningState - Provisioning status of Custom Https of the custom domain. Possible values include: 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Failed' + // CustomHTTPSProvisioningState - READ-ONLY; Provisioning status of Custom Https of the custom domain. Possible values include: 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Failed' CustomHTTPSProvisioningState CustomHTTPSProvisioningState `json:"customHttpsProvisioningState,omitempty"` - // CustomHTTPSProvisioningSubstate - Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. Possible values include: 'SubmittingDomainControlValidationRequest', 'PendingDomainControlValidationREquestApproval', 'DomainControlValidationRequestApproved', 'DomainControlValidationRequestRejected', 'DomainControlValidationRequestTimedOut', 'IssuingCertificate', 'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate', 'CertificateDeleted' + // CustomHTTPSProvisioningSubstate - READ-ONLY; Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. Possible values include: 'SubmittingDomainControlValidationRequest', 'PendingDomainControlValidationREquestApproval', 'DomainControlValidationRequestApproved', 'DomainControlValidationRequestRejected', 'DomainControlValidationRequestTimedOut', 'IssuingCertificate', 'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate', 'CertificateDeleted' CustomHTTPSProvisioningSubstate CustomHTTPSProvisioningSubstate `json:"customHttpsProvisioningSubstate,omitempty"` // ValidationData - Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China. ValidationData *string `json:"validationData,omitempty"` - // ProvisioningState - Provisioning status of the custom domain. + // ProvisioningState - READ-ONLY; Provisioning status of the custom domain. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -651,7 +788,7 @@ type CustomDomainsCreateFuture struct { // If the operation has not completed it will return an error. func (future *CustomDomainsCreateFuture) Result(client CustomDomainsClient) (cd CustomDomain, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsCreateFuture", "Result", future.Response(), "Polling failure") return @@ -680,7 +817,7 @@ type CustomDomainsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *CustomDomainsDeleteFuture) Result(client CustomDomainsClient) (cd CustomDomain, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "cdn.CustomDomainsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1090,11 +1227,11 @@ func (drupc DeliveryRuleURLPathCondition) AsBasicDeliveryRuleCondition() (BasicD // EdgeNode edgenode is a global Point of Presence (POP) location used to deliver CDN content to end users. type EdgeNode struct { *EdgeNodeProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1104,15 +1241,6 @@ func (en EdgeNode) MarshalJSON() ([]byte, error) { if en.EdgeNodeProperties != nil { objectMap["properties"] = en.EdgeNodeProperties } - if en.ID != nil { - objectMap["id"] = en.ID - } - if en.Name != nil { - objectMap["name"] = en.Name - } - if en.Type != nil { - objectMap["type"] = en.Type - } return json.Marshal(objectMap) } @@ -1177,7 +1305,7 @@ type EdgeNodeProperties struct { // URL link to get the next set of results. type EdgenodeResult struct { autorest.Response `json:"-"` - // Value - Edge node of CDN service. + // Value - READ-ONLY; Edge node of CDN service. Value *[]EdgeNode `json:"value,omitempty"` // NextLink - URL to get the next set of edgenode list results if there are any. NextLink *string `json:"nextLink,omitempty"` @@ -1330,11 +1458,11 @@ type Endpoint struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1350,15 +1478,6 @@ func (e Endpoint) MarshalJSON() ([]byte, error) { if e.Tags != nil { objectMap["tags"] = e.Tags } - if e.ID != nil { - objectMap["id"] = e.ID - } - if e.Name != nil { - objectMap["name"] = e.Name - } - if e.Type != nil { - objectMap["type"] = e.Type - } return json.Marshal(objectMap) } @@ -1435,7 +1554,7 @@ func (e *Endpoint) UnmarshalJSON(body []byte) error { // URL link to get the next set of results. type EndpointListResult struct { autorest.Response `json:"-"` - // Value - List of CDN endpoints within a profile + // Value - READ-ONLY; List of CDN endpoints within a profile Value *[]Endpoint `json:"value,omitempty"` // NextLink - URL to get the next set of endpoint objects if there is any. NextLink *string `json:"nextLink,omitempty"` @@ -1580,13 +1699,13 @@ func NewEndpointListResultPage(getNextPage func(context.Context, EndpointListRes // EndpointProperties the JSON object that contains the properties required to create an endpoint. type EndpointProperties struct { - // HostName - The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net + // HostName - READ-ONLY; The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net HostName *string `json:"hostName,omitempty"` // Origins - The source of the content being delivered via CDN. Origins *[]DeepCreatedOrigin `json:"origins,omitempty"` - // ResourceState - Resource status of the endpoint. Possible values include: 'EndpointResourceStateCreating', 'EndpointResourceStateDeleting', 'EndpointResourceStateRunning', 'EndpointResourceStateStarting', 'EndpointResourceStateStopped', 'EndpointResourceStateStopping' + // ResourceState - READ-ONLY; Resource status of the endpoint. Possible values include: 'EndpointResourceStateCreating', 'EndpointResourceStateDeleting', 'EndpointResourceStateRunning', 'EndpointResourceStateStarting', 'EndpointResourceStateStopped', 'EndpointResourceStateStopping' ResourceState EndpointResourceState `json:"resourceState,omitempty"` - // ProvisioningState - Provisioning status of the endpoint. + // ProvisioningState - READ-ONLY; Provisioning status of the endpoint. ProvisioningState *string `json:"provisioningState,omitempty"` // OriginHostHeader - The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. OriginHostHeader *string `json:"originHostHeader,omitempty"` @@ -1657,7 +1776,7 @@ type EndpointsCreateFuture struct { // If the operation has not completed it will return an error. func (future *EndpointsCreateFuture) Result(client EndpointsClient) (e Endpoint, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsCreateFuture", "Result", future.Response(), "Polling failure") return @@ -1686,7 +1805,7 @@ type EndpointsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *EndpointsDeleteFuture) Result(client EndpointsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1709,7 +1828,7 @@ type EndpointsLoadContentFuture struct { // If the operation has not completed it will return an error. func (future *EndpointsLoadContentFuture) Result(client EndpointsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsLoadContentFuture", "Result", future.Response(), "Polling failure") return @@ -1732,7 +1851,7 @@ type EndpointsPurgeContentFuture struct { // If the operation has not completed it will return an error. func (future *EndpointsPurgeContentFuture) Result(client EndpointsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsPurgeContentFuture", "Result", future.Response(), "Polling failure") return @@ -1755,7 +1874,7 @@ type EndpointsStartFuture struct { // If the operation has not completed it will return an error. func (future *EndpointsStartFuture) Result(client EndpointsClient) (e Endpoint, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsStartFuture", "Result", future.Response(), "Polling failure") return @@ -1784,7 +1903,7 @@ type EndpointsStopFuture struct { // If the operation has not completed it will return an error. func (future *EndpointsStopFuture) Result(client EndpointsClient) (e Endpoint, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsStopFuture", "Result", future.Response(), "Polling failure") return @@ -1813,7 +1932,7 @@ type EndpointsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *EndpointsUpdateFuture) Result(client EndpointsClient) (e Endpoint, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "cdn.EndpointsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1887,9 +2006,9 @@ func (eup *EndpointUpdateParameters) UnmarshalJSON(body []byte) error { // ErrorResponse error response indicates CDN service is not able to process the incoming request. The // reason is provided in the error message. type ErrorResponse struct { - // Code - Error code. + // Code - READ-ONLY; Error code. Code *string `json:"code,omitempty"` - // Message - Error message indicating why the operation failed. + // Message - READ-ONLY; Error message indicating why the operation failed. Message *string `json:"message,omitempty"` } @@ -1913,15 +2032,82 @@ type IPAddressGroup struct { Ipv6Addresses *[]CidrIPAddress `json:"ipv6Addresses,omitempty"` } +// KeyVaultCertificateSourceParameters describes the parameters for using a user's KeyVault certificate for +// securing custom domain. +type KeyVaultCertificateSourceParameters struct { + OdataType *string `json:"@odata.type,omitempty"` + // SubscriptionID - Subscription Id of the user's Key Vault containing the SSL certificate + SubscriptionID *string `json:"subscriptionId,omitempty"` + // ResourceGroupName - Resource group of the user's Key Vault containing the SSL certificate + ResourceGroupName *string `json:"resourceGroupName,omitempty"` + // VaultName - The name of the user's Key Vault containing the SSL certificate + VaultName *string `json:"vaultName,omitempty"` + // SecretName - The name of Key Vault Secret (representing the full certificate PFX) in Key Vault. + SecretName *string `json:"secretName,omitempty"` + // SecretVersion - The version(GUID) of Key Vault Secret in Key Vault. + SecretVersion *string `json:"secretVersion,omitempty"` + // UpdateRule - Describes the action that shall be taken when the certificate is updated in Key Vault. + UpdateRule *string `json:"updateRule,omitempty"` + // DeleteRule - Describes the action that shall be taken when the certificate is removed from Key Vault. + DeleteRule *string `json:"deleteRule,omitempty"` +} + // LoadParameters parameters required for content load. type LoadParameters struct { // ContentPaths - The path to the content to be loaded. Path should be a relative file URL of the origin. ContentPaths *[]string `json:"contentPaths,omitempty"` } +// ManagedHTTPSParameters defines the certificate source parameters using CDN managed certificate for +// enabling SSL. +type ManagedHTTPSParameters struct { + // CertificateSourceParameters - Defines the certificate source parameters using CDN managed certificate for enabling SSL. + CertificateSourceParameters *CertificateSourceParameters `json:"certificateSourceParameters,omitempty"` + // ProtocolType - Defines the TLS extension protocol that is used for secure delivery. Possible values include: 'ServerNameIndication', 'IPBased' + ProtocolType ProtocolType `json:"protocolType,omitempty"` + // CertificateSource - Possible values include: 'CertificateSourceCustomDomainHTTPSParameters', 'CertificateSourceCdn', 'CertificateSourceAzureKeyVault' + CertificateSource CertificateSource `json:"certificateSource,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagedHTTPSParameters. +func (mhp ManagedHTTPSParameters) MarshalJSON() ([]byte, error) { + mhp.CertificateSource = CertificateSourceCdn + objectMap := make(map[string]interface{}) + if mhp.CertificateSourceParameters != nil { + objectMap["certificateSourceParameters"] = mhp.CertificateSourceParameters + } + if mhp.ProtocolType != "" { + objectMap["protocolType"] = mhp.ProtocolType + } + if mhp.CertificateSource != "" { + objectMap["certificateSource"] = mhp.CertificateSource + } + return json.Marshal(objectMap) +} + +// AsManagedHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for ManagedHTTPSParameters. +func (mhp ManagedHTTPSParameters) AsManagedHTTPSParameters() (*ManagedHTTPSParameters, bool) { + return &mhp, true +} + +// AsUserManagedHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for ManagedHTTPSParameters. +func (mhp ManagedHTTPSParameters) AsUserManagedHTTPSParameters() (*UserManagedHTTPSParameters, bool) { + return nil, false +} + +// AsCustomDomainHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for ManagedHTTPSParameters. +func (mhp ManagedHTTPSParameters) AsCustomDomainHTTPSParameters() (*CustomDomainHTTPSParameters, bool) { + return nil, false +} + +// AsBasicCustomDomainHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for ManagedHTTPSParameters. +func (mhp ManagedHTTPSParameters) AsBasicCustomDomainHTTPSParameters() (BasicCustomDomainHTTPSParameters, bool) { + return &mhp, true +} + // Operation CDN REST API operation type Operation struct { - // Name - Operation name: {provider}/{resource}/{operation} + // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // Display - The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` @@ -1929,11 +2115,11 @@ type Operation struct { // OperationDisplay the object that represents the operation. type OperationDisplay struct { - // Provider - Service provider: Microsoft.Cdn + // Provider - READ-ONLY; Service provider: Microsoft.Cdn Provider *string `json:"provider,omitempty"` - // Resource - Resource on which the operation is performed: Profile, endpoint, etc. + // Resource - READ-ONLY; Resource on which the operation is performed: Profile, endpoint, etc. Resource *string `json:"resource,omitempty"` - // Operation - Operation type: Read, write, delete, etc. + // Operation - READ-ONLY; Operation type: Read, write, delete, etc. Operation *string `json:"operation,omitempty"` } @@ -1941,7 +2127,7 @@ type OperationDisplay struct { // a URL link to get the next set of results. type OperationsListResult struct { autorest.Response `json:"-"` - // Value - List of CDN operations supported by the CDN resource provider. + // Value - READ-ONLY; List of CDN operations supported by the CDN resource provider. Value *[]Operation `json:"value,omitempty"` // NextLink - URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` @@ -2094,11 +2280,11 @@ type Origin struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -2114,15 +2300,6 @@ func (o Origin) MarshalJSON() ([]byte, error) { if o.Tags != nil { objectMap["tags"] = o.Tags } - if o.ID != nil { - objectMap["id"] = o.ID - } - if o.Name != nil { - objectMap["name"] = o.Name - } - if o.Type != nil { - objectMap["type"] = o.Type - } return json.Marshal(objectMap) } @@ -2199,7 +2376,7 @@ func (o *Origin) UnmarshalJSON(body []byte) error { // link to get the next set of results. type OriginListResult struct { autorest.Response `json:"-"` - // Value - List of CDN origins within an endpoint + // Value - READ-ONLY; List of CDN origins within an endpoint Value *[]Origin `json:"value,omitempty"` // NextLink - URL to get the next set of origin objects if there are any. NextLink *string `json:"nextLink,omitempty"` @@ -2350,9 +2527,9 @@ type OriginProperties struct { HTTPPort *int32 `json:"httpPort,omitempty"` // HTTPSPort - The value of the https port. Must be between 1 and 65535. HTTPSPort *int32 `json:"httpsPort,omitempty"` - // ResourceState - Resource status of the origin. Possible values include: 'OriginResourceStateCreating', 'OriginResourceStateActive', 'OriginResourceStateDeleting' + // ResourceState - READ-ONLY; Resource status of the origin. Possible values include: 'OriginResourceStateCreating', 'OriginResourceStateActive', 'OriginResourceStateDeleting' ResourceState OriginResourceState `json:"resourceState,omitempty"` - // ProvisioningState - Provisioning status of the origin. + // ProvisioningState - READ-ONLY; Provisioning status of the origin. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -2376,7 +2553,7 @@ type OriginsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *OriginsUpdateFuture) Result(client OriginsClient) (o Origin, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "cdn.OriginsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -2444,11 +2621,11 @@ type Profile struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -2467,15 +2644,6 @@ func (p Profile) MarshalJSON() ([]byte, error) { if p.Tags != nil { objectMap["tags"] = p.Tags } - if p.ID != nil { - objectMap["id"] = p.ID - } - if p.Name != nil { - objectMap["name"] = p.Name - } - if p.Type != nil { - objectMap["type"] = p.Type - } return json.Marshal(objectMap) } @@ -2561,7 +2729,7 @@ func (p *Profile) UnmarshalJSON(body []byte) error { // URL link to get the next set of results. type ProfileListResult struct { autorest.Response `json:"-"` - // Value - List of CDN profiles within a resource group. + // Value - READ-ONLY; List of CDN profiles within a resource group. Value *[]Profile `json:"value,omitempty"` // NextLink - URL to get the next set of profile objects if there are any. NextLink *string `json:"nextLink,omitempty"` @@ -2706,9 +2874,9 @@ func NewProfileListResultPage(getNextPage func(context.Context, ProfileListResul // ProfileProperties the JSON object that contains the properties required to create a profile. type ProfileProperties struct { - // ResourceState - Resource status of the profile. Possible values include: 'ProfileResourceStateCreating', 'ProfileResourceStateActive', 'ProfileResourceStateDeleting', 'ProfileResourceStateDisabled' + // ResourceState - READ-ONLY; Resource status of the profile. Possible values include: 'ProfileResourceStateCreating', 'ProfileResourceStateActive', 'ProfileResourceStateDeleting', 'ProfileResourceStateDisabled' ResourceState ProfileResourceState `json:"resourceState,omitempty"` - // ProvisioningState - Provisioning status of the profile. + // ProvisioningState - READ-ONLY; Provisioning status of the profile. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -2722,7 +2890,7 @@ type ProfilesCreateFuture struct { // If the operation has not completed it will return an error. func (future *ProfilesCreateFuture) Result(client ProfilesClient) (p Profile, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesCreateFuture", "Result", future.Response(), "Polling failure") return @@ -2751,7 +2919,7 @@ type ProfilesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ProfilesDeleteFuture) Result(client ProfilesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -2774,7 +2942,7 @@ type ProfilesUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ProfilesUpdateFuture) Result(client ProfilesClient) (p Profile, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "cdn.ProfilesUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -2811,11 +2979,11 @@ func (pup ProfileUpdateParameters) MarshalJSON() ([]byte, error) { // ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than // required location and tags type ProxyResource struct { - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -2827,30 +2995,30 @@ type PurgeParameters struct { // Resource the core properties of ARM resources type Resource struct { - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // ResourceUsage output of check resource usage API. type ResourceUsage struct { - // ResourceType - Resource type for which the usage is provided. + // ResourceType - READ-ONLY; Resource type for which the usage is provided. ResourceType *string `json:"resourceType,omitempty"` - // Unit - Unit of the usage. e.g. Count. + // Unit - READ-ONLY; Unit of the usage. e.g. Count. Unit *string `json:"unit,omitempty"` - // CurrentValue - Actual value of usage on the specified resource type. + // CurrentValue - READ-ONLY; Actual value of usage on the specified resource type. CurrentValue *int32 `json:"currentValue,omitempty"` - // Limit - Quota of the specified resource type. + // Limit - READ-ONLY; Quota of the specified resource type. Limit *int32 `json:"limit,omitempty"` } // ResourceUsageListResult output of check resource usage API. type ResourceUsageListResult struct { autorest.Response `json:"-"` - // Value - List of resource usages. + // Value - READ-ONLY; List of resource usages. Value *[]ResourceUsage `json:"value,omitempty"` // NextLink - URL to get the next set of custom domain objects if there are any. NextLink *string `json:"nextLink,omitempty"` @@ -2995,21 +3163,21 @@ func NewResourceUsageListResultPage(getNextPage func(context.Context, ResourceUs // Sku the pricing tier (defines a CDN provider, feature list and rate) of the CDN profile. type Sku struct { - // Name - Name of the pricing tier. Possible values include: 'StandardVerizon', 'PremiumVerizon', 'CustomVerizon', 'StandardAkamai', 'StandardChinaCdn', 'StandardMicrosoft' + // Name - Name of the pricing tier. Possible values include: 'StandardVerizon', 'PremiumVerizon', 'CustomVerizon', 'StandardAkamai', 'StandardChinaCdn', 'PremiumChinaCdn', 'StandardMicrosoft' Name SkuName `json:"name,omitempty"` } // SsoURI the URI required to login to the supplemental portal from the Azure portal. type SsoURI struct { autorest.Response `json:"-"` - // SsoURIValue - The URI used to login to the supplemental portal. + // SsoURIValue - READ-ONLY; The URI used to login to the supplemental portal. SsoURIValue *string `json:"ssoUriValue,omitempty"` } // SupportedOptimizationTypesListResult the result of the GetSupportedOptimizationTypes API type SupportedOptimizationTypesListResult struct { autorest.Response `json:"-"` - // SupportedOptimizationTypes - Supported optimization types for a profile. + // SupportedOptimizationTypes - READ-ONLY; Supported optimization types for a profile. SupportedOptimizationTypes *[]OptimizationType `json:"supportedOptimizationTypes,omitempty"` } @@ -3019,11 +3187,11 @@ type TrackedResource struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -3036,15 +3204,6 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Tags != nil { objectMap["tags"] = tr.Tags } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } @@ -3064,6 +3223,53 @@ type URLPathConditionParameters struct { MatchType MatchType `json:"matchType,omitempty"` } +// UserManagedHTTPSParameters defines the certificate source parameters using user's keyvault certificate +// for enabling SSL. +type UserManagedHTTPSParameters struct { + // CertificateSourceParameters - Defines the certificate source parameters using user's keyvault certificate for enabling SSL. + CertificateSourceParameters *KeyVaultCertificateSourceParameters `json:"certificateSourceParameters,omitempty"` + // ProtocolType - Defines the TLS extension protocol that is used for secure delivery. Possible values include: 'ServerNameIndication', 'IPBased' + ProtocolType ProtocolType `json:"protocolType,omitempty"` + // CertificateSource - Possible values include: 'CertificateSourceCustomDomainHTTPSParameters', 'CertificateSourceCdn', 'CertificateSourceAzureKeyVault' + CertificateSource CertificateSource `json:"certificateSource,omitempty"` +} + +// MarshalJSON is the custom marshaler for UserManagedHTTPSParameters. +func (umhp UserManagedHTTPSParameters) MarshalJSON() ([]byte, error) { + umhp.CertificateSource = CertificateSourceAzureKeyVault + objectMap := make(map[string]interface{}) + if umhp.CertificateSourceParameters != nil { + objectMap["certificateSourceParameters"] = umhp.CertificateSourceParameters + } + if umhp.ProtocolType != "" { + objectMap["protocolType"] = umhp.ProtocolType + } + if umhp.CertificateSource != "" { + objectMap["certificateSource"] = umhp.CertificateSource + } + return json.Marshal(objectMap) +} + +// AsManagedHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for UserManagedHTTPSParameters. +func (umhp UserManagedHTTPSParameters) AsManagedHTTPSParameters() (*ManagedHTTPSParameters, bool) { + return nil, false +} + +// AsUserManagedHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for UserManagedHTTPSParameters. +func (umhp UserManagedHTTPSParameters) AsUserManagedHTTPSParameters() (*UserManagedHTTPSParameters, bool) { + return &umhp, true +} + +// AsCustomDomainHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for UserManagedHTTPSParameters. +func (umhp UserManagedHTTPSParameters) AsCustomDomainHTTPSParameters() (*CustomDomainHTTPSParameters, bool) { + return nil, false +} + +// AsBasicCustomDomainHTTPSParameters is the BasicCustomDomainHTTPSParameters implementation for UserManagedHTTPSParameters. +func (umhp UserManagedHTTPSParameters) AsBasicCustomDomainHTTPSParameters() (BasicCustomDomainHTTPSParameters, bool) { + return &umhp, true +} + // ValidateCustomDomainInput input of the custom domain to be validated for DNS mapping. type ValidateCustomDomainInput struct { // HostName - The host name of the custom domain. Must be a domain name. @@ -3073,11 +3279,11 @@ type ValidateCustomDomainInput struct { // ValidateCustomDomainOutput output of custom domain validation. type ValidateCustomDomainOutput struct { autorest.Response `json:"-"` - // CustomDomainValidated - Indicates whether the custom domain is valid or not. + // CustomDomainValidated - READ-ONLY; Indicates whether the custom domain is valid or not. CustomDomainValidated *bool `json:"customDomainValidated,omitempty"` - // Reason - The reason why the custom domain is not valid. + // Reason - READ-ONLY; The reason why the custom domain is not valid. Reason *string `json:"reason,omitempty"` - // Message - Error message describing why the custom domain is not valid. + // Message - READ-ONLY; Error message describing why the custom domain is not valid. Message *string `json:"message,omitempty"` } @@ -3090,10 +3296,10 @@ type ValidateProbeInput struct { // ValidateProbeOutput output of the validate probe API. type ValidateProbeOutput struct { autorest.Response `json:"-"` - // IsValid - Indicates whether the probe URL is accepted or not. + // IsValid - READ-ONLY; Indicates whether the probe URL is accepted or not. IsValid *bool `json:"isValid,omitempty"` - // ErrorCode - Specifies the error code when the probe url is not accepted. + // ErrorCode - READ-ONLY; Specifies the error code when the probe url is not accepted. ErrorCode *string `json:"errorCode,omitempty"` - // Message - The detailed error message describing why the probe URL is not accepted. + // Message - READ-ONLY; The detailed error message describing why the probe URL is not accepted. Message *string `json:"message,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/models.go index 93b6e68402ff..c903c6b5d6c6 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/models.go @@ -164,13 +164,13 @@ type Account struct { autorest.Response `json:"-"` // Etag - Entity Tag Etag *string `json:"etag,omitempty"` - // ID - The id of the created account + // ID - READ-ONLY; The id of the created account ID *string `json:"id,omitempty"` // Kind - Type of cognitive service account. Kind *string `json:"kind,omitempty"` // Location - The location of the resource Location *string `json:"location,omitempty"` - // Name - The name of the created account + // Name - READ-ONLY; The name of the created account Name *string `json:"name,omitempty"` // AccountProperties - Properties of Cognitive Services account. *AccountProperties `json:"properties,omitempty"` @@ -178,7 +178,7 @@ type Account struct { Sku *Sku `json:"sku,omitempty"` // Tags - Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. Tags map[string]*string `json:"tags"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -188,18 +188,12 @@ func (a Account) MarshalJSON() ([]byte, error) { if a.Etag != nil { objectMap["etag"] = a.Etag } - if a.ID != nil { - objectMap["id"] = a.ID - } if a.Kind != nil { objectMap["kind"] = a.Kind } if a.Location != nil { objectMap["location"] = a.Location } - if a.Name != nil { - objectMap["name"] = a.Name - } if a.AccountProperties != nil { objectMap["properties"] = a.AccountProperties } @@ -209,9 +203,6 @@ func (a Account) MarshalJSON() ([]byte, error) { if a.Tags != nil { objectMap["tags"] = a.Tags } - if a.Type != nil { - objectMap["type"] = a.Type - } return json.Marshal(objectMap) } @@ -349,7 +340,7 @@ func (acp AccountCreateParameters) MarshalJSON() ([]byte, error) { // AccountEnumerateSkusResult the list of cognitive services accounts operation response. type AccountEnumerateSkusResult struct { autorest.Response `json:"-"` - // Value - Gets the list of Cognitive Services accounts and their properties. + // Value - READ-ONLY; Gets the list of Cognitive Services accounts and their properties. Value *[]ResourceAndSku `json:"value,omitempty"` } @@ -367,7 +358,7 @@ type AccountListResult struct { autorest.Response `json:"-"` // NextLink - The link used to get the next page of accounts. NextLink *string `json:"nextLink,omitempty"` - // Value - Gets the list of Cognitive Services accounts and their properties. + // Value - READ-ONLY; Gets the list of Cognitive Services accounts and their properties. Value *[]Account `json:"value,omitempty"` } @@ -510,7 +501,7 @@ func NewAccountListResultPage(getNextPage func(context.Context, AccountListResul // AccountProperties properties of Cognitive Services account. type AccountProperties struct { - // ProvisioningState - Gets the status of the cognitive services account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Moving', 'Deleting', 'Succeeded', 'Failed' + // ProvisioningState - READ-ONLY; Gets the status of the cognitive services account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Moving', 'Deleting', 'Succeeded', 'Failed' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // Endpoint - Endpoint of the created account. Endpoint *string `json:"endpoint,omitempty"` @@ -526,6 +517,8 @@ type AccountUpdateParameters struct { Sku *Sku `json:"sku,omitempty"` // Tags - Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. Tags map[string]*string `json:"tags"` + // Properties - Additional properties for Account. Only provided fields will be updated. + Properties interface{} `json:"properties,omitempty"` } // MarshalJSON is the custom marshaler for AccountUpdateParameters. @@ -537,6 +530,9 @@ func (aup AccountUpdateParameters) MarshalJSON() ([]byte, error) { if aup.Tags != nil { objectMap["tags"] = aup.Tags } + if aup.Properties != nil { + objectMap["properties"] = aup.Properties + } return json.Marshal(objectMap) } @@ -589,9 +585,9 @@ type ErrorBody struct { // MetricName a metric name. type MetricName struct { - // Value - The name of the metric. + // Value - READ-ONLY; The name of the metric. Value *string `json:"value,omitempty"` - // LocalizedValue - The friendly name of the metric. + // LocalizedValue - READ-ONLY; The friendly name of the metric. LocalizedValue *string `json:"localizedValue,omitempty"` } @@ -781,37 +777,37 @@ type ResourceAndSku struct { // ResourceSku describes an available Cognitive Services SKU. type ResourceSku struct { - // ResourceType - The type of resource the SKU applies to. + // ResourceType - READ-ONLY; The type of resource the SKU applies to. ResourceType *string `json:"resourceType,omitempty"` - // Name - The name of SKU. + // Name - READ-ONLY; The name of SKU. Name *string `json:"name,omitempty"` - // Tier - Specifies the tier of Cognitive Services account. + // Tier - READ-ONLY; Specifies the tier of Cognitive Services account. Tier *string `json:"tier,omitempty"` - // Kind - The Kind of resources that are supported in this SKU. + // Kind - READ-ONLY; The Kind of resources that are supported in this SKU. Kind *string `json:"kind,omitempty"` - // Locations - The set of locations that the SKU is available. + // Locations - READ-ONLY; The set of locations that the SKU is available. Locations *[]string `json:"locations,omitempty"` - // Restrictions - The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. + // Restrictions - READ-ONLY; The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } // ResourceSkuRestrictionInfo ... type ResourceSkuRestrictionInfo struct { - // Locations - Locations where the SKU is restricted + // Locations - READ-ONLY; Locations where the SKU is restricted Locations *[]string `json:"locations,omitempty"` - // Zones - List of availability zones where the SKU is restricted. + // Zones - READ-ONLY; List of availability zones where the SKU is restricted. Zones *[]string `json:"zones,omitempty"` } // ResourceSkuRestrictions describes restrictions of a SKU. type ResourceSkuRestrictions struct { - // Type - The type of restrictions. Possible values include: 'Location', 'Zone' + // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone' Type ResourceSkuRestrictionsType `json:"type,omitempty"` - // Values - The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. + // Values - READ-ONLY; The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. Values *[]string `json:"values,omitempty"` - // RestrictionInfo - The information about the restriction where the SKU cannot be used. + // RestrictionInfo - READ-ONLY; The information about the restriction where the SKU cannot be used. RestrictionInfo *ResourceSkuRestrictionInfo `json:"restrictionInfo,omitempty"` - // ReasonCode - The reason for restriction. Possible values include: 'QuotaID', 'NotAvailableForSubscription' + // ReasonCode - READ-ONLY; The reason for restriction. Possible values include: 'QuotaID', 'NotAvailableForSubscription' ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } @@ -965,7 +961,7 @@ func NewResourceSkusResultPage(getNextPage func(context.Context, ResourceSkusRes type Sku struct { // Name - Gets or sets the sku name. Required for account creation, optional for update. Name *string `json:"name,omitempty"` - // Tier - Gets the sku tier. This is based on the SKU name. Possible values include: 'Free', 'Standard', 'Premium' + // Tier - READ-ONLY; Gets the sku tier. This is based on the SKU name. Possible values include: 'Free', 'Standard', 'Premium' Tier SkuTier `json:"tier,omitempty"` } @@ -973,15 +969,15 @@ type Sku struct { type Usage struct { // Unit - The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' Unit UnitType `json:"unit,omitempty"` - // Name - The name information for the metric. + // Name - READ-ONLY; The name information for the metric. Name *MetricName `json:"name,omitempty"` - // QuotaPeriod - The quota period used to summarize the usage values. + // QuotaPeriod - READ-ONLY; The quota period used to summarize the usage values. QuotaPeriod *string `json:"quotaPeriod,omitempty"` - // Limit - Maximum value for this metric. + // Limit - READ-ONLY; Maximum value for this metric. Limit *float64 `json:"limit,omitempty"` - // CurrentValue - Current value for this metric. + // CurrentValue - READ-ONLY; Current value for this metric. CurrentValue *float64 `json:"currentValue,omitempty"` - // NextResetTime - Next reset time for current quota. + // NextResetTime - READ-ONLY; Next reset time for current quota. NextResetTime *string `json:"nextResetTime,omitempty"` // Status - Cognitive Services account quota usage status. Possible values include: 'Included', 'Blocked', 'InOverage', 'Unknown' Status QuotaUsageStatus `json:"status,omitempty"` @@ -990,6 +986,6 @@ type Usage struct { // UsagesResult the response to a list usage request. type UsagesResult struct { autorest.Response `json:"-"` - // Value - The list of usages for Cognitive Service account. + // Value - READ-ONLY; The list of usages for Cognitive Service account. Value *[]Usage `json:"value,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/disks.go b/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/disks.go index 3de3e1d5a01e..0692b0b0b798 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/disks.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/disks.go @@ -108,6 +108,7 @@ func (client DisksClient) CreateOrUpdatePreparer(ctx context.Context, resourceGr "api-version": APIVersion, } + disk.ManagedBy = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/models.go index ca81f8953a49..00148c04c44b 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/models.go @@ -516,6 +516,21 @@ func PossibleProvisioningState2Values() []ProvisioningState2 { return []ProvisioningState2{ProvisioningState2Creating, ProvisioningState2Deleting, ProvisioningState2Failed, ProvisioningState2Migrating, ProvisioningState2Succeeded, ProvisioningState2Updating} } +// ProximityPlacementGroupType enumerates the values for proximity placement group type. +type ProximityPlacementGroupType string + +const ( + // Standard ... + Standard ProximityPlacementGroupType = "Standard" + // Ultra ... + Ultra ProximityPlacementGroupType = "Ultra" +) + +// PossibleProximityPlacementGroupTypeValues returns an array of possible values for the ProximityPlacementGroupType const type. +func PossibleProximityPlacementGroupTypeValues() []ProximityPlacementGroupType { + return []ProximityPlacementGroupType{Standard, Ultra} +} + // ReplicationState enumerates the values for replication state. type ReplicationState string @@ -1160,7 +1175,7 @@ func PossibleVirtualMachineSizeTypesValues() []VirtualMachineSizeTypes { // AccessURI a disk access SAS uri. type AccessURI struct { autorest.Response `json:"-"` - // AccessSAS - A SAS uri for accessing a disk. + // AccessSAS - READ-ONLY; A SAS uri for accessing a disk. AccessSAS *string `json:"accessSAS,omitempty"` } @@ -1236,11 +1251,11 @@ type AvailabilitySet struct { *AvailabilitySetProperties `json:"properties,omitempty"` // Sku - Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'. Sku *Sku `json:"sku,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -1257,15 +1272,6 @@ func (as AvailabilitySet) MarshalJSON() ([]byte, error) { if as.Sku != nil { objectMap["sku"] = as.Sku } - if as.ID != nil { - objectMap["id"] = as.ID - } - if as.Name != nil { - objectMap["name"] = as.Name - } - if as.Type != nil { - objectMap["type"] = as.Type - } if as.Location != nil { objectMap["location"] = as.Location } @@ -1507,7 +1513,9 @@ type AvailabilitySetProperties struct { PlatformFaultDomainCount *int32 `json:"platformFaultDomainCount,omitempty"` // VirtualMachines - A list of references to all virtual machines in the availability set. VirtualMachines *[]SubResource `json:"virtualMachines,omitempty"` - // Statuses - The resource status information. + // ProximityPlacementGroup - Specifies information about the proximity placement group that the availability set should be assigned to.

Minimum api-version: 2018-04-01. + ProximityPlacementGroup *SubResource `json:"proximityPlacementGroup,omitempty"` + // Statuses - READ-ONLY; The resource status information. Statuses *[]InstanceViewStatus `json:"statuses,omitempty"` } @@ -1590,11 +1598,11 @@ type BootDiagnostics struct { // BootDiagnosticsInstanceView the instance view of a virtual machine boot diagnostics. type BootDiagnosticsInstanceView struct { - // ConsoleScreenshotBlobURI - The console screenshot blob URI. + // ConsoleScreenshotBlobURI - READ-ONLY; The console screenshot blob URI. ConsoleScreenshotBlobURI *string `json:"consoleScreenshotBlobUri,omitempty"` - // SerialConsoleLogBlobURI - The Linux serial console log blob Uri. + // SerialConsoleLogBlobURI - READ-ONLY; The Linux serial console log blob Uri. SerialConsoleLogBlobURI *string `json:"serialConsoleLogBlobUri,omitempty"` - // Status - The boot diagnostics status information for the VM.

NOTE: It will be set only if there are errors encountered in enabling boot diagnostics. + // Status - READ-ONLY; The boot diagnostics status information for the VM.

NOTE: It will be set only if there are errors encountered in enabling boot diagnostics. Status *InstanceViewStatus `json:"status,omitempty"` } @@ -1607,11 +1615,11 @@ type CloudError struct { type ContainerService struct { autorest.Response `json:"-"` *ContainerServiceProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -1625,15 +1633,6 @@ func (cs ContainerService) MarshalJSON() ([]byte, error) { if cs.ContainerServiceProperties != nil { objectMap["properties"] = cs.ContainerServiceProperties } - if cs.ID != nil { - objectMap["id"] = cs.ID - } - if cs.Name != nil { - objectMap["name"] = cs.Name - } - if cs.Type != nil { - objectMap["type"] = cs.Type - } if cs.Location != nil { objectMap["location"] = cs.Location } @@ -1722,7 +1721,7 @@ type ContainerServiceAgentPoolProfile struct { VMSize ContainerServiceVMSizeTypes `json:"vmSize,omitempty"` // DNSPrefix - DNS prefix to be used to create the FQDN for the agent pool. DNSPrefix *string `json:"dnsPrefix,omitempty"` - // Fqdn - FQDN for the agent pool. + // Fqdn - READ-ONLY; FQDN for the agent pool. Fqdn *string `json:"fqdn,omitempty"` } @@ -1898,7 +1897,7 @@ type ContainerServiceMasterProfile struct { Count *int32 `json:"count,omitempty"` // DNSPrefix - DNS prefix to be used to create the FQDN for master. DNSPrefix *string `json:"dnsPrefix,omitempty"` - // Fqdn - FQDN for the master. + // Fqdn - READ-ONLY; FQDN for the master. Fqdn *string `json:"fqdn,omitempty"` } @@ -1910,7 +1909,7 @@ type ContainerServiceOrchestratorProfile struct { // ContainerServiceProperties properties of the container service. type ContainerServiceProperties struct { - // ProvisioningState - the current deployment or provisioning state, which only appears in the response. + // ProvisioningState - READ-ONLY; the current deployment or provisioning state, which only appears in the response. ProvisioningState *string `json:"provisioningState,omitempty"` // OrchestratorProfile - Properties of the orchestrator. OrchestratorProfile *ContainerServiceOrchestratorProfile `json:"orchestratorProfile,omitempty"` @@ -1940,7 +1939,7 @@ type ContainerServicesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ContainerServicesCreateOrUpdateFuture) Result(client ContainerServicesClient) (cs ContainerService, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1969,7 +1968,7 @@ type ContainerServicesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ContainerServicesDeleteFuture) Result(client ContainerServicesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.ContainerServicesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -2007,7 +2006,7 @@ type ContainerServiceSSHPublicKey struct { type ContainerServiceVMDiagnostics struct { // Enabled - Whether the VM diagnostic agent is provisioned on the VM. Enabled *bool `json:"enabled,omitempty"` - // StorageURI - The URI of the storage account where diagnostics are stored. + // StorageURI - READ-ONLY; The URI of the storage account where diagnostics are stored. StorageURI *string `json:"storageUri,omitempty"` } @@ -2057,7 +2056,7 @@ type DataDisk struct { // DataDiskImage contains the data disk images information. type DataDiskImage struct { - // Lun - Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. + // Lun - READ-ONLY; Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. Lun *int32 `json:"lun,omitempty"` } @@ -2084,17 +2083,17 @@ type Disallowed struct { // Disk disk resource. type Disk struct { autorest.Response `json:"-"` - // ManagedBy - A relative URI containing the ID of the VM that has the disk attached. + // ManagedBy - READ-ONLY; A relative URI containing the ID of the VM that has the disk attached. ManagedBy *string `json:"managedBy,omitempty"` Sku *DiskSku `json:"sku,omitempty"` // Zones - The Logical zone list for Disk. Zones *[]string `json:"zones,omitempty"` *DiskProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -2105,9 +2104,6 @@ type Disk struct { // MarshalJSON is the custom marshaler for Disk. func (d Disk) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if d.ManagedBy != nil { - objectMap["managedBy"] = d.ManagedBy - } if d.Sku != nil { objectMap["sku"] = d.Sku } @@ -2117,15 +2113,6 @@ func (d Disk) MarshalJSON() ([]byte, error) { if d.DiskProperties != nil { objectMap["properties"] = d.DiskProperties } - if d.ID != nil { - objectMap["id"] = d.ID - } - if d.Name != nil { - objectMap["name"] = d.Name - } - if d.Type != nil { - objectMap["type"] = d.Type - } if d.Location != nil { objectMap["location"] = d.Location } @@ -2399,7 +2386,7 @@ func NewDiskListPage(getNextPage func(context.Context, DiskList) (DiskList, erro // DiskProperties disk resource properties. type DiskProperties struct { - // TimeCreated - The time when the disk was created. + // TimeCreated - READ-ONLY; The time when the disk was created. TimeCreated *date.Time `json:"timeCreated,omitempty"` // OsType - The Operating System type. Possible values include: 'Windows', 'Linux' OsType OperatingSystemTypes `json:"osType,omitempty"` @@ -2409,7 +2396,7 @@ type DiskProperties struct { DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` // EncryptionSettings - Encryption settings for disk or snapshot EncryptionSettings *EncryptionSettings `json:"encryptionSettings,omitempty"` - // ProvisioningState - The disk provisioning state. + // ProvisioningState - READ-ONLY; The disk provisioning state. ProvisioningState *string `json:"provisioningState,omitempty"` // DiskIOPSReadWrite - The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes. For a description of the range of values you can set, see [Ultra SSD Managed Disk Offerings](https://docs.microsoft.com/azure/virtual-machines/windows/disks-ultra-ssd#ultra-ssd-managed-disk-offerings). DiskIOPSReadWrite *int64 `json:"diskIOPSReadWrite,omitempty"` @@ -2427,7 +2414,7 @@ type DisksCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *DisksCreateOrUpdateFuture) Result(client DisksClient) (d Disk, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -2455,7 +2442,7 @@ type DisksDeleteFuture struct { // If the operation has not completed it will return an error. func (future *DisksDeleteFuture) Result(client DisksClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -2478,7 +2465,7 @@ type DisksGrantAccessFuture struct { // If the operation has not completed it will return an error. func (future *DisksGrantAccessFuture) Result(client DisksClient) (au AccessURI, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksGrantAccessFuture", "Result", future.Response(), "Polling failure") return @@ -2501,7 +2488,7 @@ func (future *DisksGrantAccessFuture) Result(client DisksClient) (au AccessURI, type DiskSku struct { // Name - The sku name. Possible values include: 'StandardLRS', 'PremiumLRS', 'StandardSSDLRS', 'UltraSSDLRS' Name DiskStorageAccountTypes `json:"name,omitempty"` - // Tier - The sku tier. + // Tier - READ-ONLY; The sku tier. Tier *string `json:"tier,omitempty"` } @@ -2515,7 +2502,7 @@ type DisksRevokeAccessFuture struct { // If the operation has not completed it will return an error. func (future *DisksRevokeAccessFuture) Result(client DisksClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksRevokeAccessFuture", "Result", future.Response(), "Polling failure") return @@ -2537,7 +2524,7 @@ type DisksUpdateFuture struct { // If the operation has not completed it will return an error. func (future *DisksUpdateFuture) Result(client DisksClient) (d Disk, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.DisksUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -2655,7 +2642,7 @@ type GalleriesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *GalleriesCreateOrUpdateFuture) Result(client GalleriesClient) (g Gallery, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -2684,7 +2671,7 @@ type GalleriesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *GalleriesDeleteFuture) Result(client GalleriesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleriesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -2701,11 +2688,11 @@ func (future *GalleriesDeleteFuture) Result(client GalleriesClient) (ar autorest type Gallery struct { autorest.Response `json:"-"` *GalleryProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -2719,15 +2706,6 @@ func (g Gallery) MarshalJSON() ([]byte, error) { if g.GalleryProperties != nil { objectMap["properties"] = g.GalleryProperties } - if g.ID != nil { - objectMap["id"] = g.ID - } - if g.Name != nil { - objectMap["name"] = g.Name - } - if g.Type != nil { - objectMap["type"] = g.Type - } if g.Location != nil { objectMap["location"] = g.Location } @@ -2820,25 +2798,25 @@ type GalleryArtifactSource struct { // GalleryDataDiskImage this is the data disk image. type GalleryDataDiskImage struct { - // Lun - This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine. + // Lun - READ-ONLY; This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine. Lun *int32 `json:"lun,omitempty"` - // SizeInGB - This property indicates the size of the VHD to be created. + // SizeInGB - READ-ONLY; This property indicates the size of the VHD to be created. SizeInGB *int32 `json:"sizeInGB,omitempty"` - // HostCaching - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Possible values include: 'HostCachingNone', 'HostCachingReadOnly', 'HostCachingReadWrite' + // HostCaching - READ-ONLY; The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Possible values include: 'HostCachingNone', 'HostCachingReadOnly', 'HostCachingReadWrite' HostCaching HostCaching `json:"hostCaching,omitempty"` } // GalleryDiskImage this is the disk image base class. type GalleryDiskImage struct { - // SizeInGB - This property indicates the size of the VHD to be created. + // SizeInGB - READ-ONLY; This property indicates the size of the VHD to be created. SizeInGB *int32 `json:"sizeInGB,omitempty"` - // HostCaching - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Possible values include: 'HostCachingNone', 'HostCachingReadOnly', 'HostCachingReadWrite' + // HostCaching - READ-ONLY; The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Possible values include: 'HostCachingNone', 'HostCachingReadOnly', 'HostCachingReadWrite' HostCaching HostCaching `json:"hostCaching,omitempty"` } // GalleryIdentifier describes the gallery unique name. type GalleryIdentifier struct { - // UniqueName - The unique name of the Shared Image Gallery. This name is generated automatically by Azure. + // UniqueName - READ-ONLY; The unique name of the Shared Image Gallery. This name is generated automatically by Azure. UniqueName *string `json:"uniqueName,omitempty"` } @@ -2846,11 +2824,11 @@ type GalleryIdentifier struct { type GalleryImage struct { autorest.Response `json:"-"` *GalleryImageProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -2864,15 +2842,6 @@ func (gi GalleryImage) MarshalJSON() ([]byte, error) { if gi.GalleryImageProperties != nil { objectMap["properties"] = gi.GalleryImageProperties } - if gi.ID != nil { - objectMap["id"] = gi.ID - } - if gi.Name != nil { - objectMap["name"] = gi.Name - } - if gi.Type != nil { - objectMap["type"] = gi.Type - } if gi.Location != nil { objectMap["location"] = gi.Location } @@ -3127,7 +3096,7 @@ type GalleryImageProperties struct { Recommended *RecommendedMachineConfiguration `json:"recommended,omitempty"` Disallowed *Disallowed `json:"disallowed,omitempty"` PurchasePlan *ImagePurchasePlan `json:"purchasePlan,omitempty"` - // ProvisioningState - The provisioning state, which only appears in the response. Possible values include: 'ProvisioningState1Creating', 'ProvisioningState1Updating', 'ProvisioningState1Failed', 'ProvisioningState1Succeeded', 'ProvisioningState1Deleting', 'ProvisioningState1Migrating' + // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response. Possible values include: 'ProvisioningState1Creating', 'ProvisioningState1Updating', 'ProvisioningState1Failed', 'ProvisioningState1Succeeded', 'ProvisioningState1Deleting', 'ProvisioningState1Migrating' ProvisioningState ProvisioningState1 `json:"provisioningState,omitempty"` } @@ -3141,7 +3110,7 @@ type GalleryImagesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *GalleryImagesCreateOrUpdateFuture) Result(client GalleryImagesClient) (gi GalleryImage, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -3170,7 +3139,7 @@ type GalleryImagesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *GalleryImagesDeleteFuture) Result(client GalleryImagesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImagesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -3188,11 +3157,11 @@ func (future *GalleryImagesDeleteFuture) Result(client GalleryImagesClient) (ar type GalleryImageVersion struct { autorest.Response `json:"-"` *GalleryImageVersionProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -3206,15 +3175,6 @@ func (giv GalleryImageVersion) MarshalJSON() ([]byte, error) { if giv.GalleryImageVersionProperties != nil { objectMap["properties"] = giv.GalleryImageVersionProperties } - if giv.ID != nil { - objectMap["id"] = giv.ID - } - if giv.Name != nil { - objectMap["name"] = giv.Name - } - if giv.Type != nil { - objectMap["type"] = giv.Type - } if giv.Location != nil { objectMap["location"] = giv.Location } @@ -3442,10 +3402,12 @@ func NewGalleryImageVersionListPage(getNextPage func(context.Context, GalleryIma // GalleryImageVersionProperties describes the properties of a gallery Image Version. type GalleryImageVersionProperties struct { PublishingProfile *GalleryImageVersionPublishingProfile `json:"publishingProfile,omitempty"` - // ProvisioningState - The provisioning state, which only appears in the response. Possible values include: 'ProvisioningState2Creating', 'ProvisioningState2Updating', 'ProvisioningState2Failed', 'ProvisioningState2Succeeded', 'ProvisioningState2Deleting', 'ProvisioningState2Migrating' - ProvisioningState ProvisioningState2 `json:"provisioningState,omitempty"` - StorageProfile *GalleryImageVersionStorageProfile `json:"storageProfile,omitempty"` - ReplicationStatus *ReplicationStatus `json:"replicationStatus,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response. Possible values include: 'ProvisioningState2Creating', 'ProvisioningState2Updating', 'ProvisioningState2Failed', 'ProvisioningState2Succeeded', 'ProvisioningState2Deleting', 'ProvisioningState2Migrating' + ProvisioningState ProvisioningState2 `json:"provisioningState,omitempty"` + // StorageProfile - READ-ONLY + StorageProfile *GalleryImageVersionStorageProfile `json:"storageProfile,omitempty"` + // ReplicationStatus - READ-ONLY + ReplicationStatus *ReplicationStatus `json:"replicationStatus,omitempty"` } // GalleryImageVersionPublishingProfile the publishing profile of a gallery Image Version. @@ -3454,7 +3416,7 @@ type GalleryImageVersionPublishingProfile struct { ReplicaCount *int32 `json:"replicaCount,omitempty"` // ExcludeFromLatest - If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. ExcludeFromLatest *bool `json:"excludeFromLatest,omitempty"` - // PublishedDate - The timestamp for when the gallery Image Version is published. + // PublishedDate - READ-ONLY; The timestamp for when the gallery Image Version is published. PublishedDate *date.Time `json:"publishedDate,omitempty"` // EndOfLifeDate - The end of life date of the gallery Image Version. This property can be used for decommissioning purposes. This property is updatable. EndOfLifeDate *date.Time `json:"endOfLifeDate,omitempty"` @@ -3473,7 +3435,7 @@ type GalleryImageVersionsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *GalleryImageVersionsCreateOrUpdateFuture) Result(client GalleryImageVersionsClient) (giv GalleryImageVersion, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -3502,7 +3464,7 @@ type GalleryImageVersionsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *GalleryImageVersionsDeleteFuture) Result(client GalleryImageVersionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.GalleryImageVersionsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -3517,8 +3479,9 @@ func (future *GalleryImageVersionsDeleteFuture) Result(client GalleryImageVersio // GalleryImageVersionStorageProfile this is the storage profile of a gallery Image Version. type GalleryImageVersionStorageProfile struct { + // OsDiskImage - READ-ONLY OsDiskImage *GalleryOSDiskImage `json:"osDiskImage,omitempty"` - // DataDiskImages - A list of data disk images. + // DataDiskImages - READ-ONLY; A list of data disk images. DataDiskImages *[]GalleryDataDiskImage `json:"dataDiskImages,omitempty"` } @@ -3670,9 +3633,9 @@ func NewGalleryListPage(getNextPage func(context.Context, GalleryList) (GalleryL // GalleryOSDiskImage this is the OS disk image. type GalleryOSDiskImage struct { - // SizeInGB - This property indicates the size of the VHD to be created. + // SizeInGB - READ-ONLY; This property indicates the size of the VHD to be created. SizeInGB *int32 `json:"sizeInGB,omitempty"` - // HostCaching - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Possible values include: 'HostCachingNone', 'HostCachingReadOnly', 'HostCachingReadWrite' + // HostCaching - READ-ONLY; The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Possible values include: 'HostCachingNone', 'HostCachingReadOnly', 'HostCachingReadWrite' HostCaching HostCaching `json:"hostCaching,omitempty"` } @@ -3681,7 +3644,7 @@ type GalleryProperties struct { // Description - The description of this Shared Image Gallery resource. This property is updatable. Description *string `json:"description,omitempty"` Identifier *GalleryIdentifier `json:"identifier,omitempty"` - // ProvisioningState - The provisioning state, which only appears in the response. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateFailed', 'ProvisioningStateSucceeded', 'ProvisioningStateDeleting', 'ProvisioningStateMigrating' + // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateUpdating', 'ProvisioningStateFailed', 'ProvisioningStateSucceeded', 'ProvisioningStateDeleting', 'ProvisioningStateMigrating' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } @@ -3705,11 +3668,11 @@ type HardwareProfile struct { type Image struct { autorest.Response `json:"-"` *ImageProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -3723,15 +3686,6 @@ func (i Image) MarshalJSON() ([]byte, error) { if i.ImageProperties != nil { objectMap["properties"] = i.ImageProperties } - if i.ID != nil { - objectMap["id"] = i.ID - } - if i.Name != nil { - objectMap["name"] = i.Name - } - if i.Type != nil { - objectMap["type"] = i.Type - } if i.Location != nil { objectMap["location"] = i.Location } @@ -4008,7 +3962,7 @@ type ImageProperties struct { SourceVirtualMachine *SubResource `json:"sourceVirtualMachine,omitempty"` // StorageProfile - Specifies the storage settings for the virtual machine disks. StorageProfile *ImageStorageProfile `json:"storageProfile,omitempty"` - // ProvisioningState - The provisioning state. + // ProvisioningState - READ-ONLY; The provisioning state. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -4050,7 +4004,7 @@ type ImagesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ImagesCreateOrUpdateFuture) Result(client ImagesClient) (i Image, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -4078,7 +4032,7 @@ type ImagesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ImagesDeleteFuture) Result(client ImagesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -4110,7 +4064,7 @@ type ImagesUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ImagesUpdateFuture) Result(client ImagesClient) (i Image, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.ImagesUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -4418,7 +4372,7 @@ type LogAnalyticsExportRequestRateByIntervalFuture struct { // If the operation has not completed it will return an error. func (future *LogAnalyticsExportRequestRateByIntervalFuture) Result(client LogAnalyticsClient) (laor LogAnalyticsOperationResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.LogAnalyticsExportRequestRateByIntervalFuture", "Result", future.Response(), "Polling failure") return @@ -4447,7 +4401,7 @@ type LogAnalyticsExportThrottledRequestsFuture struct { // If the operation has not completed it will return an error. func (future *LogAnalyticsExportThrottledRequestsFuture) Result(client LogAnalyticsClient) (laor LogAnalyticsOperationResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.LogAnalyticsExportThrottledRequestsFuture", "Result", future.Response(), "Polling failure") return @@ -4485,13 +4439,13 @@ type LogAnalyticsInputBase struct { // LogAnalyticsOperationResult logAnalytics operation status response type LogAnalyticsOperationResult struct { autorest.Response `json:"-"` - // Properties - LogAnalyticsOutput + // Properties - READ-ONLY; LogAnalyticsOutput Properties *LogAnalyticsOutput `json:"properties,omitempty"` } // LogAnalyticsOutput logAnalytics output properties type LogAnalyticsOutput struct { - // Output - Output file Uri path to blob container. + // Output - READ-ONLY; Output file Uri path to blob container. Output *string `json:"output,omitempty"` } @@ -4594,15 +4548,15 @@ type NetworkProfile struct { // OperationListResult the List Compute Operation operation response. type OperationListResult struct { autorest.Response `json:"-"` - // Value - The list of compute operations + // Value - READ-ONLY; The list of compute operations Value *[]OperationValue `json:"value,omitempty"` } // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { - // Origin - The origin of the compute operation. + // Origin - READ-ONLY; The origin of the compute operation. Origin *string `json:"origin,omitempty"` - // Name - The name of the compute operation. + // Name - READ-ONLY; The name of the compute operation. Name *string `json:"name,omitempty"` *OperationValueDisplay `json:"display,omitempty"` } @@ -4610,12 +4564,6 @@ type OperationValue struct { // MarshalJSON is the custom marshaler for OperationValue. func (ov OperationValue) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if ov.Origin != nil { - objectMap["origin"] = ov.Origin - } - if ov.Name != nil { - objectMap["name"] = ov.Name - } if ov.OperationValueDisplay != nil { objectMap["display"] = ov.OperationValueDisplay } @@ -4666,13 +4614,13 @@ func (ov *OperationValue) UnmarshalJSON(body []byte) error { // OperationValueDisplay describes the properties of a Compute Operation Value Display. type OperationValueDisplay struct { - // Operation - The display name of the compute operation. + // Operation - READ-ONLY; The display name of the compute operation. Operation *string `json:"operation,omitempty"` - // Resource - The display name of the resource the operation applies to. + // Resource - READ-ONLY; The display name of the resource the operation applies to. Resource *string `json:"resource,omitempty"` - // Description - The description of the operation. + // Description - READ-ONLY; The description of the operation. Description *string `json:"description,omitempty"` - // Provider - The resource provider for the operation. + // Provider - READ-ONLY; The resource provider for the operation. Provider *string `json:"provider,omitempty"` } @@ -4746,6 +4694,281 @@ type Plan struct { PromotionCode *string `json:"promotionCode,omitempty"` } +// ProximityPlacementGroup specifies information about the proximity placement group. +type ProximityPlacementGroup struct { + autorest.Response `json:"-"` + // ProximityPlacementGroupProperties - Describes the properties of a Proximity Placement Group. + *ProximityPlacementGroupProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type + Type *string `json:"type,omitempty"` + // Location - Resource location + Location *string `json:"location,omitempty"` + // Tags - Resource tags + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for ProximityPlacementGroup. +func (ppg ProximityPlacementGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ppg.ProximityPlacementGroupProperties != nil { + objectMap["properties"] = ppg.ProximityPlacementGroupProperties + } + if ppg.Location != nil { + objectMap["location"] = ppg.Location + } + if ppg.Tags != nil { + objectMap["tags"] = ppg.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ProximityPlacementGroup struct. +func (ppg *ProximityPlacementGroup) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var proximityPlacementGroupProperties ProximityPlacementGroupProperties + err = json.Unmarshal(*v, &proximityPlacementGroupProperties) + if err != nil { + return err + } + ppg.ProximityPlacementGroupProperties = &proximityPlacementGroupProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ppg.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ppg.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ppg.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + ppg.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + ppg.Tags = tags + } + } + } + + return nil +} + +// ProximityPlacementGroupListResult the List Proximity Placement Group operation response. +type ProximityPlacementGroupListResult struct { + autorest.Response `json:"-"` + // Value - The list of proximity placement groups + Value *[]ProximityPlacementGroup `json:"value,omitempty"` + // NextLink - The URI to fetch the next page of proximity placement groups. + NextLink *string `json:"nextLink,omitempty"` +} + +// ProximityPlacementGroupListResultIterator provides access to a complete listing of +// ProximityPlacementGroup values. +type ProximityPlacementGroupListResultIterator struct { + i int + page ProximityPlacementGroupListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ProximityPlacementGroupListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProximityPlacementGroupListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ProximityPlacementGroupListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ProximityPlacementGroupListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ProximityPlacementGroupListResultIterator) Response() ProximityPlacementGroupListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ProximityPlacementGroupListResultIterator) Value() ProximityPlacementGroup { + if !iter.page.NotDone() { + return ProximityPlacementGroup{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ProximityPlacementGroupListResultIterator type. +func NewProximityPlacementGroupListResultIterator(page ProximityPlacementGroupListResultPage) ProximityPlacementGroupListResultIterator { + return ProximityPlacementGroupListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ppglr ProximityPlacementGroupListResult) IsEmpty() bool { + return ppglr.Value == nil || len(*ppglr.Value) == 0 +} + +// proximityPlacementGroupListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ppglr ProximityPlacementGroupListResult) proximityPlacementGroupListResultPreparer(ctx context.Context) (*http.Request, error) { + if ppglr.NextLink == nil || len(to.String(ppglr.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ppglr.NextLink))) +} + +// ProximityPlacementGroupListResultPage contains a page of ProximityPlacementGroup values. +type ProximityPlacementGroupListResultPage struct { + fn func(context.Context, ProximityPlacementGroupListResult) (ProximityPlacementGroupListResult, error) + ppglr ProximityPlacementGroupListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ProximityPlacementGroupListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProximityPlacementGroupListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.ppglr) + if err != nil { + return err + } + page.ppglr = next + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ProximityPlacementGroupListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ProximityPlacementGroupListResultPage) NotDone() bool { + return !page.ppglr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ProximityPlacementGroupListResultPage) Response() ProximityPlacementGroupListResult { + return page.ppglr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ProximityPlacementGroupListResultPage) Values() []ProximityPlacementGroup { + if page.ppglr.IsEmpty() { + return nil + } + return *page.ppglr.Value +} + +// Creates a new instance of the ProximityPlacementGroupListResultPage type. +func NewProximityPlacementGroupListResultPage(getNextPage func(context.Context, ProximityPlacementGroupListResult) (ProximityPlacementGroupListResult, error)) ProximityPlacementGroupListResultPage { + return ProximityPlacementGroupListResultPage{fn: getNextPage} +} + +// ProximityPlacementGroupProperties describes the properties of a Proximity Placement Group. +type ProximityPlacementGroupProperties struct { + // ProximityPlacementGroupType - Specifies the type of the proximity placement group.

Possible values are:

**Standard**

**Ultra**. Possible values include: 'Standard', 'Ultra' + ProximityPlacementGroupType ProximityPlacementGroupType `json:"proximityPlacementGroupType,omitempty"` + // VirtualMachines - READ-ONLY; A list of references to all virtual machines in the proximity placement group. + VirtualMachines *[]SubResource `json:"virtualMachines,omitempty"` + // VirtualMachineScaleSets - READ-ONLY; A list of references to all virtual machine scale sets in the proximity placement group. + VirtualMachineScaleSets *[]SubResource `json:"virtualMachineScaleSets,omitempty"` + // AvailabilitySets - READ-ONLY; A list of references to all availability sets in the proximity placement group. + AvailabilitySets *[]SubResource `json:"availabilitySets,omitempty"` +} + +// ProximityPlacementGroupUpdate specifies information about the proximity placement group. +type ProximityPlacementGroupUpdate struct { + // Tags - Resource tags + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for ProximityPlacementGroupUpdate. +func (ppgu ProximityPlacementGroupUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ppgu.Tags != nil { + objectMap["tags"] = ppgu.Tags + } + return json.Marshal(objectMap) +} + // PurchasePlan used for establishing the purchase context of any 3rd Party artifact through MarketPlace. type PurchasePlan struct { // Publisher - The publisher ID. @@ -4766,29 +4989,29 @@ type RecommendedMachineConfiguration struct { // RecoveryWalkResponse response after calling a manual recovery walk type RecoveryWalkResponse struct { autorest.Response `json:"-"` - // WalkPerformed - Whether the recovery walk was performed + // WalkPerformed - READ-ONLY; Whether the recovery walk was performed WalkPerformed *bool `json:"walkPerformed,omitempty"` - // NextPlatformUpdateDomain - The next update domain that needs to be walked. Null means walk spanning all update domains has been completed + // NextPlatformUpdateDomain - READ-ONLY; The next update domain that needs to be walked. Null means walk spanning all update domains has been completed NextPlatformUpdateDomain *int32 `json:"nextPlatformUpdateDomain,omitempty"` } // RegionalReplicationStatus this is the regional replication status. type RegionalReplicationStatus struct { - // Region - The region to which the gallery Image Version is being replicated to. + // Region - READ-ONLY; The region to which the gallery Image Version is being replicated to. Region *string `json:"region,omitempty"` - // State - This is the regional replication state. Possible values include: 'ReplicationStateUnknown', 'ReplicationStateReplicating', 'ReplicationStateCompleted', 'ReplicationStateFailed' + // State - READ-ONLY; This is the regional replication state. Possible values include: 'ReplicationStateUnknown', 'ReplicationStateReplicating', 'ReplicationStateCompleted', 'ReplicationStateFailed' State ReplicationState `json:"state,omitempty"` - // Details - The details of the replication status. + // Details - READ-ONLY; The details of the replication status. Details *string `json:"details,omitempty"` - // Progress - It indicates progress of the replication job. + // Progress - READ-ONLY; It indicates progress of the replication job. Progress *int32 `json:"progress,omitempty"` } // ReplicationStatus this is the replication status of the gallery Image Version. type ReplicationStatus struct { - // AggregatedState - This is the aggregated replication status based on all the regional replication status flags. Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed' + // AggregatedState - READ-ONLY; This is the aggregated replication status based on all the regional replication status flags. Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed' AggregatedState AggregatedReplicationState `json:"aggregatedState,omitempty"` - // Summary - This is a summary of replication status for each region. + // Summary - READ-ONLY; This is a summary of replication status for each region. Summary *[]RegionalReplicationStatus `json:"summary,omitempty"` } @@ -4812,11 +5035,11 @@ type RequestRateByIntervalInput struct { // Resource the Resource model definition. type Resource struct { - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -4827,15 +5050,6 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -4855,89 +5069,89 @@ type ResourceRange struct { // ResourceSku describes an available Compute SKU. type ResourceSku struct { - // ResourceType - The type of resource the SKU applies to. + // ResourceType - READ-ONLY; The type of resource the SKU applies to. ResourceType *string `json:"resourceType,omitempty"` - // Name - The name of SKU. + // Name - READ-ONLY; The name of SKU. Name *string `json:"name,omitempty"` - // Tier - Specifies the tier of virtual machines in a scale set.

Possible Values:

**Standard**

**Basic** + // Tier - READ-ONLY; Specifies the tier of virtual machines in a scale set.

Possible Values:

**Standard**

**Basic** Tier *string `json:"tier,omitempty"` - // Size - The Size of the SKU. + // Size - READ-ONLY; The Size of the SKU. Size *string `json:"size,omitempty"` - // Family - The Family of this particular SKU. + // Family - READ-ONLY; The Family of this particular SKU. Family *string `json:"family,omitempty"` - // Kind - The Kind of resources that are supported in this SKU. + // Kind - READ-ONLY; The Kind of resources that are supported in this SKU. Kind *string `json:"kind,omitempty"` - // Capacity - Specifies the number of virtual machines in the scale set. + // Capacity - READ-ONLY; Specifies the number of virtual machines in the scale set. Capacity *ResourceSkuCapacity `json:"capacity,omitempty"` - // Locations - The set of locations that the SKU is available. + // Locations - READ-ONLY; The set of locations that the SKU is available. Locations *[]string `json:"locations,omitempty"` - // LocationInfo - A list of locations and availability zones in those locations where the SKU is available. + // LocationInfo - READ-ONLY; A list of locations and availability zones in those locations where the SKU is available. LocationInfo *[]ResourceSkuLocationInfo `json:"locationInfo,omitempty"` - // APIVersions - The api versions that support this SKU. + // APIVersions - READ-ONLY; The api versions that support this SKU. APIVersions *[]string `json:"apiVersions,omitempty"` - // Costs - Metadata for retrieving price info. + // Costs - READ-ONLY; Metadata for retrieving price info. Costs *[]ResourceSkuCosts `json:"costs,omitempty"` - // Capabilities - A name value pair to describe the capability. + // Capabilities - READ-ONLY; A name value pair to describe the capability. Capabilities *[]ResourceSkuCapabilities `json:"capabilities,omitempty"` - // Restrictions - The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. + // Restrictions - READ-ONLY; The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` } // ResourceSkuCapabilities describes The SKU capabilities object. type ResourceSkuCapabilities struct { - // Name - An invariant to describe the feature. + // Name - READ-ONLY; An invariant to describe the feature. Name *string `json:"name,omitempty"` - // Value - An invariant if the feature is measured by quantity. + // Value - READ-ONLY; An invariant if the feature is measured by quantity. Value *string `json:"value,omitempty"` } // ResourceSkuCapacity describes scaling information of a SKU. type ResourceSkuCapacity struct { - // Minimum - The minimum capacity. + // Minimum - READ-ONLY; The minimum capacity. Minimum *int64 `json:"minimum,omitempty"` - // Maximum - The maximum capacity that can be set. + // Maximum - READ-ONLY; The maximum capacity that can be set. Maximum *int64 `json:"maximum,omitempty"` - // Default - The default capacity. + // Default - READ-ONLY; The default capacity. Default *int64 `json:"default,omitempty"` - // ScaleType - The scale type applicable to the sku. Possible values include: 'ResourceSkuCapacityScaleTypeAutomatic', 'ResourceSkuCapacityScaleTypeManual', 'ResourceSkuCapacityScaleTypeNone' + // ScaleType - READ-ONLY; The scale type applicable to the sku. Possible values include: 'ResourceSkuCapacityScaleTypeAutomatic', 'ResourceSkuCapacityScaleTypeManual', 'ResourceSkuCapacityScaleTypeNone' ScaleType ResourceSkuCapacityScaleType `json:"scaleType,omitempty"` } // ResourceSkuCosts describes metadata for retrieving price info. type ResourceSkuCosts struct { - // MeterID - Used for querying price from commerce. + // MeterID - READ-ONLY; Used for querying price from commerce. MeterID *string `json:"meterID,omitempty"` - // Quantity - The multiplier is needed to extend the base metered cost. + // Quantity - READ-ONLY; The multiplier is needed to extend the base metered cost. Quantity *int64 `json:"quantity,omitempty"` - // ExtendedUnit - An invariant to show the extended unit. + // ExtendedUnit - READ-ONLY; An invariant to show the extended unit. ExtendedUnit *string `json:"extendedUnit,omitempty"` } // ResourceSkuLocationInfo ... type ResourceSkuLocationInfo struct { - // Location - Location of the SKU + // Location - READ-ONLY; Location of the SKU Location *string `json:"location,omitempty"` - // Zones - List of availability zones where the SKU is supported. + // Zones - READ-ONLY; List of availability zones where the SKU is supported. Zones *[]string `json:"zones,omitempty"` } // ResourceSkuRestrictionInfo ... type ResourceSkuRestrictionInfo struct { - // Locations - Locations where the SKU is restricted + // Locations - READ-ONLY; Locations where the SKU is restricted Locations *[]string `json:"locations,omitempty"` - // Zones - List of availability zones where the SKU is restricted. + // Zones - READ-ONLY; List of availability zones where the SKU is restricted. Zones *[]string `json:"zones,omitempty"` } // ResourceSkuRestrictions describes scaling information of a SKU. type ResourceSkuRestrictions struct { - // Type - The type of restrictions. Possible values include: 'Location', 'Zone' + // Type - READ-ONLY; The type of restrictions. Possible values include: 'Location', 'Zone' Type ResourceSkuRestrictionsType `json:"type,omitempty"` - // Values - The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. + // Values - READ-ONLY; The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. Values *[]string `json:"values,omitempty"` - // RestrictionInfo - The information about the restriction where the SKU cannot be used. + // RestrictionInfo - READ-ONLY; The information about the restriction where the SKU cannot be used. RestrictionInfo *ResourceSkuRestrictionInfo `json:"restrictionInfo,omitempty"` - // ReasonCode - The reason for restriction. Possible values include: 'QuotaID', 'NotAvailableForSubscription' + // ReasonCode - READ-ONLY; The reason for restriction. Possible values include: 'QuotaID', 'NotAvailableForSubscription' ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } @@ -5089,11 +5303,11 @@ func NewResourceSkusResultPage(getNextPage func(context.Context, ResourceSkusRes // RollbackStatusInfo information about rollback on failed VM instances after a OS Upgrade operation. type RollbackStatusInfo struct { - // SuccessfullyRolledbackInstanceCount - The number of instances which have been successfully rolled back. + // SuccessfullyRolledbackInstanceCount - READ-ONLY; The number of instances which have been successfully rolled back. SuccessfullyRolledbackInstanceCount *int32 `json:"successfullyRolledbackInstanceCount,omitempty"` - // FailedRolledbackInstanceCount - The number of instances which failed to rollback. + // FailedRolledbackInstanceCount - READ-ONLY; The number of instances which failed to rollback. FailedRolledbackInstanceCount *int32 `json:"failedRolledbackInstanceCount,omitempty"` - // RollbackError - Error details if OS rollback failed. + // RollbackError - READ-ONLY; Error details if OS rollback failed. RollbackError *APIError `json:"rollbackError,omitempty"` } @@ -5112,25 +5326,25 @@ type RollingUpgradePolicy struct { // RollingUpgradeProgressInfo information about the number of virtual machine instances in each upgrade // state. type RollingUpgradeProgressInfo struct { - // SuccessfulInstanceCount - The number of instances that have been successfully upgraded. + // SuccessfulInstanceCount - READ-ONLY; The number of instances that have been successfully upgraded. SuccessfulInstanceCount *int32 `json:"successfulInstanceCount,omitempty"` - // FailedInstanceCount - The number of instances that have failed to be upgraded successfully. + // FailedInstanceCount - READ-ONLY; The number of instances that have failed to be upgraded successfully. FailedInstanceCount *int32 `json:"failedInstanceCount,omitempty"` - // InProgressInstanceCount - The number of instances that are currently being upgraded. + // InProgressInstanceCount - READ-ONLY; The number of instances that are currently being upgraded. InProgressInstanceCount *int32 `json:"inProgressInstanceCount,omitempty"` - // PendingInstanceCount - The number of instances that have not yet begun to be upgraded. + // PendingInstanceCount - READ-ONLY; The number of instances that have not yet begun to be upgraded. PendingInstanceCount *int32 `json:"pendingInstanceCount,omitempty"` } // RollingUpgradeRunningStatus information about the current running state of the overall upgrade. type RollingUpgradeRunningStatus struct { - // Code - Code indicating the current status of the upgrade. Possible values include: 'RollingUpgradeStatusCodeRollingForward', 'RollingUpgradeStatusCodeCancelled', 'RollingUpgradeStatusCodeCompleted', 'RollingUpgradeStatusCodeFaulted' + // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'RollingUpgradeStatusCodeRollingForward', 'RollingUpgradeStatusCodeCancelled', 'RollingUpgradeStatusCodeCompleted', 'RollingUpgradeStatusCodeFaulted' Code RollingUpgradeStatusCode `json:"code,omitempty"` - // StartTime - Start time of the upgrade. + // StartTime - READ-ONLY; Start time of the upgrade. StartTime *date.Time `json:"startTime,omitempty"` - // LastAction - The last action performed on the rolling upgrade. Possible values include: 'Start', 'Cancel' + // LastAction - READ-ONLY; The last action performed on the rolling upgrade. Possible values include: 'Start', 'Cancel' LastAction RollingUpgradeActionType `json:"lastAction,omitempty"` - // LastActionTime - Last action time of the upgrade. + // LastActionTime - READ-ONLY; Last action time of the upgrade. LastActionTime *date.Time `json:"lastActionTime,omitempty"` } @@ -5138,11 +5352,11 @@ type RollingUpgradeRunningStatus struct { type RollingUpgradeStatusInfo struct { autorest.Response `json:"-"` *RollingUpgradeStatusInfoProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -5156,15 +5370,6 @@ func (rusi RollingUpgradeStatusInfo) MarshalJSON() ([]byte, error) { if rusi.RollingUpgradeStatusInfoProperties != nil { objectMap["properties"] = rusi.RollingUpgradeStatusInfoProperties } - if rusi.ID != nil { - objectMap["id"] = rusi.ID - } - if rusi.Name != nil { - objectMap["name"] = rusi.Name - } - if rusi.Type != nil { - objectMap["type"] = rusi.Type - } if rusi.Location != nil { objectMap["location"] = rusi.Location } @@ -5245,13 +5450,13 @@ func (rusi *RollingUpgradeStatusInfo) UnmarshalJSON(body []byte) error { // RollingUpgradeStatusInfoProperties the status of the latest virtual machine scale set rolling upgrade. type RollingUpgradeStatusInfoProperties struct { - // Policy - The rolling upgrade policies applied for this upgrade. + // Policy - READ-ONLY; The rolling upgrade policies applied for this upgrade. Policy *RollingUpgradePolicy `json:"policy,omitempty"` - // RunningStatus - Information about the current running state of the overall upgrade. + // RunningStatus - READ-ONLY; Information about the current running state of the overall upgrade. RunningStatus *RollingUpgradeRunningStatus `json:"runningStatus,omitempty"` - // Progress - Information about the number of virtual machine instances in each upgrade state. + // Progress - READ-ONLY; Information about the number of virtual machine instances in each upgrade state. Progress *RollingUpgradeProgressInfo `json:"progress,omitempty"` - // Error - Error details for this upgrade, if there are any. + // Error - READ-ONLY; Error details for this upgrade, if there are any. Error *APIError `json:"error,omitempty"` } @@ -5484,15 +5689,15 @@ type Sku struct { // Snapshot snapshot resource. type Snapshot struct { autorest.Response `json:"-"` - // ManagedBy - Unused. Always Null. + // ManagedBy - READ-ONLY; Unused. Always Null. ManagedBy *string `json:"managedBy,omitempty"` Sku *SnapshotSku `json:"sku,omitempty"` *SnapshotProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -5503,24 +5708,12 @@ type Snapshot struct { // MarshalJSON is the custom marshaler for Snapshot. func (s Snapshot) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if s.ManagedBy != nil { - objectMap["managedBy"] = s.ManagedBy - } if s.Sku != nil { objectMap["sku"] = s.Sku } if s.SnapshotProperties != nil { objectMap["properties"] = s.SnapshotProperties } - if s.ID != nil { - objectMap["id"] = s.ID - } - if s.Name != nil { - objectMap["name"] = s.Name - } - if s.Type != nil { - objectMap["type"] = s.Type - } if s.Location != nil { objectMap["location"] = s.Location } @@ -5765,7 +5958,7 @@ func NewSnapshotListPage(getNextPage func(context.Context, SnapshotList) (Snapsh // SnapshotProperties snapshot resource properties. type SnapshotProperties struct { - // TimeCreated - The time when the disk was created. + // TimeCreated - READ-ONLY; The time when the disk was created. TimeCreated *date.Time `json:"timeCreated,omitempty"` // OsType - The Operating System type. Possible values include: 'Windows', 'Linux' OsType OperatingSystemTypes `json:"osType,omitempty"` @@ -5775,7 +5968,7 @@ type SnapshotProperties struct { DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` // EncryptionSettings - Encryption settings for disk or snapshot EncryptionSettings *EncryptionSettings `json:"encryptionSettings,omitempty"` - // ProvisioningState - The disk provisioning state. + // ProvisioningState - READ-ONLY; The disk provisioning state. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -5789,7 +5982,7 @@ type SnapshotsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *SnapshotsCreateOrUpdateFuture) Result(client SnapshotsClient) (s Snapshot, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -5818,7 +6011,7 @@ type SnapshotsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *SnapshotsDeleteFuture) Result(client SnapshotsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -5841,7 +6034,7 @@ type SnapshotsGrantAccessFuture struct { // If the operation has not completed it will return an error. func (future *SnapshotsGrantAccessFuture) Result(client SnapshotsClient) (au AccessURI, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsGrantAccessFuture", "Result", future.Response(), "Polling failure") return @@ -5864,7 +6057,7 @@ func (future *SnapshotsGrantAccessFuture) Result(client SnapshotsClient) (au Acc type SnapshotSku struct { // Name - The sku name. Possible values include: 'SnapshotStorageAccountTypesStandardLRS', 'SnapshotStorageAccountTypesPremiumLRS', 'SnapshotStorageAccountTypesStandardZRS' Name SnapshotStorageAccountTypes `json:"name,omitempty"` - // Tier - The sku tier. + // Tier - READ-ONLY; The sku tier. Tier *string `json:"tier,omitempty"` } @@ -5878,7 +6071,7 @@ type SnapshotsRevokeAccessFuture struct { // If the operation has not completed it will return an error. func (future *SnapshotsRevokeAccessFuture) Result(client SnapshotsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsRevokeAccessFuture", "Result", future.Response(), "Polling failure") return @@ -5901,7 +6094,7 @@ type SnapshotsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *SnapshotsUpdateFuture) Result(client SnapshotsClient) (s Snapshot, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.SnapshotsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -6035,7 +6228,7 @@ type SubResource struct { // SubResourceReadOnly ... type SubResourceReadOnly struct { - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` } @@ -6080,38 +6273,38 @@ func (ur UpdateResource) MarshalJSON() ([]byte, error) { // UpgradeOperationHistoricalStatusInfo virtual Machine Scale Set OS Upgrade History operation response. type UpgradeOperationHistoricalStatusInfo struct { - // Properties - Information about the properties of the upgrade operation. + // Properties - READ-ONLY; Information about the properties of the upgrade operation. Properties *UpgradeOperationHistoricalStatusInfoProperties `json:"properties,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` - // Location - Resource location + // Location - READ-ONLY; Resource location Location *string `json:"location,omitempty"` } // UpgradeOperationHistoricalStatusInfoProperties describes each OS upgrade on the Virtual Machine Scale // Set. type UpgradeOperationHistoricalStatusInfoProperties struct { - // RunningStatus - Information about the overall status of the upgrade operation. + // RunningStatus - READ-ONLY; Information about the overall status of the upgrade operation. RunningStatus *UpgradeOperationHistoryStatus `json:"runningStatus,omitempty"` - // Progress - Counts of the VMs in each state. + // Progress - READ-ONLY; Counts of the VMs in each state. Progress *RollingUpgradeProgressInfo `json:"progress,omitempty"` - // Error - Error Details for this upgrade if there are any. + // Error - READ-ONLY; Error Details for this upgrade if there are any. Error *APIError `json:"error,omitempty"` - // StartedBy - Invoker of the Upgrade Operation. Possible values include: 'UpgradeOperationInvokerUnknown', 'UpgradeOperationInvokerUser', 'UpgradeOperationInvokerPlatform' + // StartedBy - READ-ONLY; Invoker of the Upgrade Operation. Possible values include: 'UpgradeOperationInvokerUnknown', 'UpgradeOperationInvokerUser', 'UpgradeOperationInvokerPlatform' StartedBy UpgradeOperationInvoker `json:"startedBy,omitempty"` - // TargetImageReference - Image Reference details + // TargetImageReference - READ-ONLY; Image Reference details TargetImageReference *ImageReference `json:"targetImageReference,omitempty"` - // RollbackInfo - Information about OS rollback if performed + // RollbackInfo - READ-ONLY; Information about OS rollback if performed RollbackInfo *RollbackStatusInfo `json:"rollbackInfo,omitempty"` } // UpgradeOperationHistoryStatus information about the current running state of the overall upgrade. type UpgradeOperationHistoryStatus struct { - // Code - Code indicating the current status of the upgrade. Possible values include: 'UpgradeStateRollingForward', 'UpgradeStateCancelled', 'UpgradeStateCompleted', 'UpgradeStateFaulted' + // Code - READ-ONLY; Code indicating the current status of the upgrade. Possible values include: 'UpgradeStateRollingForward', 'UpgradeStateCancelled', 'UpgradeStateCompleted', 'UpgradeStateFaulted' Code UpgradeState `json:"code,omitempty"` - // StartTime - Start time of the upgrade. + // StartTime - READ-ONLY; Start time of the upgrade. StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - End time of the upgrade. + // EndTime - READ-ONLY; End time of the upgrade. EndTime *date.Time `json:"endTime,omitempty"` } @@ -6176,17 +6369,17 @@ type VirtualMachine struct { // Plan - Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. Plan *Plan `json:"plan,omitempty"` *VirtualMachineProperties `json:"properties,omitempty"` - // Resources - The virtual machine child extension resources. + // Resources - READ-ONLY; The virtual machine child extension resources. Resources *[]VirtualMachineExtension `json:"resources,omitempty"` // Identity - The identity of the virtual machine, if configured. Identity *VirtualMachineIdentity `json:"identity,omitempty"` // Zones - The virtual machine zones. Zones *[]string `json:"zones,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -6203,24 +6396,12 @@ func (VM VirtualMachine) MarshalJSON() ([]byte, error) { if VM.VirtualMachineProperties != nil { objectMap["properties"] = VM.VirtualMachineProperties } - if VM.Resources != nil { - objectMap["resources"] = VM.Resources - } if VM.Identity != nil { objectMap["identity"] = VM.Identity } if VM.Zones != nil { objectMap["zones"] = VM.Zones } - if VM.ID != nil { - objectMap["id"] = VM.ID - } - if VM.Name != nil { - objectMap["name"] = VM.Name - } - if VM.Type != nil { - objectMap["type"] = VM.Type - } if VM.Location != nil { objectMap["location"] = VM.Location } @@ -6358,13 +6539,13 @@ type VirtualMachineCaptureParameters struct { // VirtualMachineCaptureResult output of virtual machine capture operation. type VirtualMachineCaptureResult struct { autorest.Response `json:"-"` - // Schema - the schema of the captured virtual machine + // Schema - READ-ONLY; the schema of the captured virtual machine Schema *string `json:"$schema,omitempty"` - // ContentVersion - the version of the content + // ContentVersion - READ-ONLY; the version of the content ContentVersion *string `json:"contentVersion,omitempty"` - // Parameters - parameters of the captured virtual machine + // Parameters - READ-ONLY; parameters of the captured virtual machine Parameters interface{} `json:"parameters,omitempty"` - // Resources - a list of resource items of the captured virtual machine + // Resources - READ-ONLY; a list of resource items of the captured virtual machine Resources *[]interface{} `json:"resources,omitempty"` // ID - Resource Id ID *string `json:"id,omitempty"` @@ -6374,11 +6555,11 @@ type VirtualMachineCaptureResult struct { type VirtualMachineExtension struct { autorest.Response `json:"-"` *VirtualMachineExtensionProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -6392,15 +6573,6 @@ func (vme VirtualMachineExtension) MarshalJSON() ([]byte, error) { if vme.VirtualMachineExtensionProperties != nil { objectMap["properties"] = vme.VirtualMachineExtensionProperties } - if vme.ID != nil { - objectMap["id"] = vme.ID - } - if vme.Name != nil { - objectMap["name"] = vme.Name - } - if vme.Type != nil { - objectMap["type"] = vme.Type - } if vme.Location != nil { objectMap["location"] = vme.Location } @@ -6493,11 +6665,11 @@ type VirtualMachineExtensionHandlerInstanceView struct { type VirtualMachineExtensionImage struct { autorest.Response `json:"-"` *VirtualMachineExtensionImageProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -6511,15 +6683,6 @@ func (vmei VirtualMachineExtensionImage) MarshalJSON() ([]byte, error) { if vmei.VirtualMachineExtensionImageProperties != nil { objectMap["properties"] = vmei.VirtualMachineExtensionImageProperties } - if vmei.ID != nil { - objectMap["id"] = vmei.ID - } - if vmei.Name != nil { - objectMap["name"] = vmei.Name - } - if vmei.Type != nil { - objectMap["type"] = vmei.Type - } if vmei.Location != nil { objectMap["location"] = vmei.Location } @@ -6642,7 +6805,7 @@ type VirtualMachineExtensionProperties struct { Settings interface{} `json:"settings,omitempty"` // ProtectedSettings - The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. ProtectedSettings interface{} `json:"protectedSettings,omitempty"` - // ProvisioningState - The provisioning state, which only appears in the response. + // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response. ProvisioningState *string `json:"provisioningState,omitempty"` // InstanceView - The virtual machine extension instance view. InstanceView *VirtualMachineExtensionInstanceView `json:"instanceView,omitempty"` @@ -6658,7 +6821,7 @@ type VirtualMachineExtensionsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineExtensionsCreateOrUpdateFuture) Result(client VirtualMachineExtensionsClient) (vme VirtualMachineExtension, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -6687,7 +6850,7 @@ type VirtualMachineExtensionsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineExtensionsDeleteFuture) Result(client VirtualMachineExtensionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -6717,7 +6880,7 @@ type VirtualMachineExtensionsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineExtensionsUpdateFuture) Result(client VirtualMachineExtensionsClient) (vme VirtualMachineExtension, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineExtensionsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -6808,15 +6971,15 @@ type VirtualMachineExtensionUpdateProperties struct { // VirtualMachineHealthStatus the health status of the VM. type VirtualMachineHealthStatus struct { - // Status - The health status information for the VM. + // Status - READ-ONLY; The health status information for the VM. Status *InstanceViewStatus `json:"status,omitempty"` } // VirtualMachineIdentity identity for the virtual machine. type VirtualMachineIdentity struct { - // PrincipalID - The principal id of virtual machine identity. This property will only be provided for a system assigned identity. + // PrincipalID - READ-ONLY; The principal id of virtual machine identity. This property will only be provided for a system assigned identity. PrincipalID *string `json:"principalId,omitempty"` - // TenantID - The tenant id associated with the virtual machine. This property will only be provided for a system assigned identity. + // TenantID - READ-ONLY; The tenant id associated with the virtual machine. This property will only be provided for a system assigned identity. TenantID *string `json:"tenantId,omitempty"` // Type - The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine. Possible values include: 'ResourceIdentityTypeSystemAssigned', 'ResourceIdentityTypeUserAssigned', 'ResourceIdentityTypeSystemAssignedUserAssigned', 'ResourceIdentityTypeNone' Type ResourceIdentityType `json:"type,omitempty"` @@ -6827,12 +6990,6 @@ type VirtualMachineIdentity struct { // MarshalJSON is the custom marshaler for VirtualMachineIdentity. func (vmi VirtualMachineIdentity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if vmi.PrincipalID != nil { - objectMap["principalId"] = vmi.PrincipalID - } - if vmi.TenantID != nil { - objectMap["tenantId"] = vmi.TenantID - } if vmi.Type != "" { objectMap["type"] = vmi.Type } @@ -6844,9 +7001,9 @@ func (vmi VirtualMachineIdentity) MarshalJSON() ([]byte, error) { // VirtualMachineIdentityUserAssignedIdentitiesValue ... type VirtualMachineIdentityUserAssignedIdentitiesValue struct { - // PrincipalID - The principal id of user assigned identity. + // PrincipalID - READ-ONLY; The principal id of user assigned identity. PrincipalID *string `json:"principalId,omitempty"` - // ClientID - The client id of user assigned identity. + // ClientID - READ-ONLY; The client id of user assigned identity. ClientID *string `json:"clientId,omitempty"` } @@ -7173,13 +7330,15 @@ type VirtualMachineProperties struct { DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"` // AvailabilitySet - Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).

For more information on Azure planned maintenance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. AvailabilitySet *SubResource `json:"availabilitySet,omitempty"` - // ProvisioningState - The provisioning state, which only appears in the response. + // ProximityPlacementGroup - Specifies information about the proximity placement group that the virtual machine should be assigned to.

Minimum api-version: 2018-04-01. + ProximityPlacementGroup *SubResource `json:"proximityPlacementGroup,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response. ProvisioningState *string `json:"provisioningState,omitempty"` - // InstanceView - The virtual machine instance view. + // InstanceView - READ-ONLY; The virtual machine instance view. InstanceView *VirtualMachineInstanceView `json:"instanceView,omitempty"` // LicenseType - Specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system.

Possible values are:

Windows_Client

Windows_Server

If this element is included in a request for an update, the value must match the initial value. This value cannot be updated.

For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

Minimum api-version: 2015-06-15 LicenseType *string `json:"licenseType,omitempty"` - // VMID - Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. + // VMID - READ-ONLY; Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. VMID *string `json:"vmId,omitempty"` } @@ -7202,11 +7361,11 @@ type VirtualMachineScaleSet struct { Identity *VirtualMachineScaleSetIdentity `json:"identity,omitempty"` // Zones - The virtual machine scale set zones. Zones *[]string `json:"zones,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -7232,15 +7391,6 @@ func (vmss VirtualMachineScaleSet) MarshalJSON() ([]byte, error) { if vmss.Zones != nil { objectMap["zones"] = vmss.Zones } - if vmss.ID != nil { - objectMap["id"] = vmss.ID - } - if vmss.Name != nil { - objectMap["name"] = vmss.Name - } - if vmss.Type != nil { - objectMap["type"] = vmss.Type - } if vmss.Location != nil { objectMap["location"] = vmss.Location } @@ -7379,7 +7529,7 @@ type VirtualMachineScaleSetExtension struct { // Name - The name of the extension. Name *string `json:"name,omitempty"` *VirtualMachineScaleSetExtensionProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` } @@ -7392,9 +7542,6 @@ func (vmsse VirtualMachineScaleSetExtension) MarshalJSON() ([]byte, error) { if vmsse.VirtualMachineScaleSetExtensionProperties != nil { objectMap["properties"] = vmsse.VirtualMachineScaleSetExtensionProperties } - if vmsse.ID != nil { - objectMap["id"] = vmsse.ID - } return json.Marshal(objectMap) } @@ -7610,7 +7757,7 @@ type VirtualMachineScaleSetExtensionProperties struct { Settings interface{} `json:"settings,omitempty"` // ProtectedSettings - The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. ProtectedSettings interface{} `json:"protectedSettings,omitempty"` - // ProvisioningState - The provisioning state, which only appears in the response. + // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response. ProvisioningState *string `json:"provisioningState,omitempty"` // ProvisionAfterExtensions - Collection of extension names after which this extension needs to be provisioned. ProvisionAfterExtensions *[]string `json:"provisionAfterExtensions,omitempty"` @@ -7626,7 +7773,7 @@ type VirtualMachineScaleSetExtensionsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetExtensionsCreateOrUpdateFuture) Result(client VirtualMachineScaleSetExtensionsClient) (vmsse VirtualMachineScaleSetExtension, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -7655,7 +7802,7 @@ type VirtualMachineScaleSetExtensionsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetExtensionsDeleteFuture) Result(client VirtualMachineScaleSetExtensionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetExtensionsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -7670,9 +7817,9 @@ func (future *VirtualMachineScaleSetExtensionsDeleteFuture) Result(client Virtua // VirtualMachineScaleSetIdentity identity for the virtual machine scale set. type VirtualMachineScaleSetIdentity struct { - // PrincipalID - The principal id of virtual machine scale set identity. This property will only be provided for a system assigned identity. + // PrincipalID - READ-ONLY; The principal id of virtual machine scale set identity. This property will only be provided for a system assigned identity. PrincipalID *string `json:"principalId,omitempty"` - // TenantID - The tenant id associated with the virtual machine scale set. This property will only be provided for a system assigned identity. + // TenantID - READ-ONLY; The tenant id associated with the virtual machine scale set. This property will only be provided for a system assigned identity. TenantID *string `json:"tenantId,omitempty"` // Type - The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine scale set. Possible values include: 'ResourceIdentityTypeSystemAssigned', 'ResourceIdentityTypeUserAssigned', 'ResourceIdentityTypeSystemAssignedUserAssigned', 'ResourceIdentityTypeNone' Type ResourceIdentityType `json:"type,omitempty"` @@ -7683,12 +7830,6 @@ type VirtualMachineScaleSetIdentity struct { // MarshalJSON is the custom marshaler for VirtualMachineScaleSetIdentity. func (vmssi VirtualMachineScaleSetIdentity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if vmssi.PrincipalID != nil { - objectMap["principalId"] = vmssi.PrincipalID - } - if vmssi.TenantID != nil { - objectMap["tenantId"] = vmssi.TenantID - } if vmssi.Type != "" { objectMap["type"] = vmssi.Type } @@ -7700,18 +7841,18 @@ func (vmssi VirtualMachineScaleSetIdentity) MarshalJSON() ([]byte, error) { // VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue ... type VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue struct { - // PrincipalID - The principal id of user assigned identity. + // PrincipalID - READ-ONLY; The principal id of user assigned identity. PrincipalID *string `json:"principalId,omitempty"` - // ClientID - The client id of user assigned identity. + // ClientID - READ-ONLY; The client id of user assigned identity. ClientID *string `json:"clientId,omitempty"` } // VirtualMachineScaleSetInstanceView the instance view of a virtual machine scale set. type VirtualMachineScaleSetInstanceView struct { autorest.Response `json:"-"` - // VirtualMachine - The instance view status summary for the virtual machine scale set. + // VirtualMachine - READ-ONLY; The instance view status summary for the virtual machine scale set. VirtualMachine *VirtualMachineScaleSetInstanceViewStatusesSummary `json:"virtualMachine,omitempty"` - // Extensions - The extensions information. + // Extensions - READ-ONLY; The extensions information. Extensions *[]VirtualMachineScaleSetVMExtensionsSummary `json:"extensions,omitempty"` // Statuses - The resource status information. Statuses *[]InstanceViewStatus `json:"statuses,omitempty"` @@ -7720,7 +7861,7 @@ type VirtualMachineScaleSetInstanceView struct { // VirtualMachineScaleSetInstanceViewStatusesSummary instance view statuses summary for virtual machines of // a virtual machine scale set. type VirtualMachineScaleSetInstanceViewStatusesSummary struct { - // StatusesSummary - The extensions information. + // StatusesSummary - READ-ONLY; The extensions information. StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } @@ -8563,11 +8704,11 @@ type VirtualMachineScaleSetProperties struct { UpgradePolicy *UpgradePolicy `json:"upgradePolicy,omitempty"` // VirtualMachineProfile - The virtual machine profile. VirtualMachineProfile *VirtualMachineScaleSetVMProfile `json:"virtualMachineProfile,omitempty"` - // ProvisioningState - The provisioning state, which only appears in the response. + // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response. ProvisioningState *string `json:"provisioningState,omitempty"` // Overprovision - Specifies whether the Virtual Machine Scale Set should be overprovisioned. Overprovision *bool `json:"overprovision,omitempty"` - // UniqueID - Specifies the ID which uniquely identifies a Virtual Machine Scale Set. + // UniqueID - READ-ONLY; Specifies the ID which uniquely identifies a Virtual Machine Scale Set. UniqueID *string `json:"uniqueId,omitempty"` // SinglePlacementGroup - When true this limits the scale set to a single placement group, of max size 100 virtual machines. SinglePlacementGroup *bool `json:"singlePlacementGroup,omitempty"` @@ -8575,6 +8716,8 @@ type VirtualMachineScaleSetProperties struct { ZoneBalance *bool `json:"zoneBalance,omitempty"` // PlatformFaultDomainCount - Fault Domain count for each placement group. PlatformFaultDomainCount *int32 `json:"platformFaultDomainCount,omitempty"` + // ProximityPlacementGroup - Specifies information about the proximity placement group that the virtual machine scale set should be assigned to.

Minimum api-version: 2018-04-01. + ProximityPlacementGroup *SubResource `json:"proximityPlacementGroup,omitempty"` } // VirtualMachineScaleSetPublicIPAddressConfiguration describes a virtual machines scale set IP @@ -8668,7 +8811,7 @@ type VirtualMachineScaleSetRollingUpgradesCancelFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetRollingUpgradesCancelFuture) Result(client VirtualMachineScaleSetRollingUpgradesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesCancelFuture", "Result", future.Response(), "Polling failure") return @@ -8691,7 +8834,7 @@ type VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeFuture) Result(client VirtualMachineScaleSetRollingUpgradesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeFuture", "Result", future.Response(), "Polling failure") return @@ -8714,7 +8857,7 @@ type VirtualMachineScaleSetRollingUpgradesStartOSUpgradeFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetRollingUpgradesStartOSUpgradeFuture) Result(client VirtualMachineScaleSetRollingUpgradesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetRollingUpgradesStartOSUpgradeFuture", "Result", future.Response(), "Polling failure") return @@ -8737,7 +8880,7 @@ type VirtualMachineScaleSetsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetsCreateOrUpdateFuture) Result(client VirtualMachineScaleSetsClient) (vmss VirtualMachineScaleSet, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -8766,7 +8909,7 @@ type VirtualMachineScaleSetsDeallocateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetsDeallocateFuture) Result(client VirtualMachineScaleSetsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsDeallocateFuture", "Result", future.Response(), "Polling failure") return @@ -8789,7 +8932,7 @@ type VirtualMachineScaleSetsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetsDeleteFuture) Result(client VirtualMachineScaleSetsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -8812,7 +8955,7 @@ type VirtualMachineScaleSetsDeleteInstancesFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetsDeleteInstancesFuture) Result(client VirtualMachineScaleSetsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsDeleteInstancesFuture", "Result", future.Response(), "Polling failure") return @@ -8827,23 +8970,23 @@ func (future *VirtualMachineScaleSetsDeleteInstancesFuture) Result(client Virtua // VirtualMachineScaleSetSku describes an available virtual machine scale set sku. type VirtualMachineScaleSetSku struct { - // ResourceType - The type of resource the sku applies to. + // ResourceType - READ-ONLY; The type of resource the sku applies to. ResourceType *string `json:"resourceType,omitempty"` - // Sku - The Sku. + // Sku - READ-ONLY; The Sku. Sku *Sku `json:"sku,omitempty"` - // Capacity - Specifies the number of virtual machines in the scale set. + // Capacity - READ-ONLY; Specifies the number of virtual machines in the scale set. Capacity *VirtualMachineScaleSetSkuCapacity `json:"capacity,omitempty"` } // VirtualMachineScaleSetSkuCapacity describes scaling information of a sku. type VirtualMachineScaleSetSkuCapacity struct { - // Minimum - The minimum capacity. + // Minimum - READ-ONLY; The minimum capacity. Minimum *int64 `json:"minimum,omitempty"` - // Maximum - The maximum capacity that can be set. + // Maximum - READ-ONLY; The maximum capacity that can be set. Maximum *int64 `json:"maximum,omitempty"` - // DefaultCapacity - The default capacity. + // DefaultCapacity - READ-ONLY; The default capacity. DefaultCapacity *int64 `json:"defaultCapacity,omitempty"` - // ScaleType - The scale type applicable to the sku. Possible values include: 'VirtualMachineScaleSetSkuScaleTypeAutomatic', 'VirtualMachineScaleSetSkuScaleTypeNone' + // ScaleType - READ-ONLY; The scale type applicable to the sku. Possible values include: 'VirtualMachineScaleSetSkuScaleTypeAutomatic', 'VirtualMachineScaleSetSkuScaleTypeNone' ScaleType VirtualMachineScaleSetSkuScaleType `json:"scaleType,omitempty"` } @@ -8857,7 +9000,7 @@ type VirtualMachineScaleSetsPerformMaintenanceFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetsPerformMaintenanceFuture) Result(client VirtualMachineScaleSetsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsPerformMaintenanceFuture", "Result", future.Response(), "Polling failure") return @@ -8880,7 +9023,7 @@ type VirtualMachineScaleSetsPowerOffFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetsPowerOffFuture) Result(client VirtualMachineScaleSetsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsPowerOffFuture", "Result", future.Response(), "Polling failure") return @@ -8903,7 +9046,7 @@ type VirtualMachineScaleSetsRedeployFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetsRedeployFuture) Result(client VirtualMachineScaleSetsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsRedeployFuture", "Result", future.Response(), "Polling failure") return @@ -8926,7 +9069,7 @@ type VirtualMachineScaleSetsReimageAllFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetsReimageAllFuture) Result(client VirtualMachineScaleSetsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsReimageAllFuture", "Result", future.Response(), "Polling failure") return @@ -8949,7 +9092,7 @@ type VirtualMachineScaleSetsReimageFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetsReimageFuture) Result(client VirtualMachineScaleSetsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsReimageFuture", "Result", future.Response(), "Polling failure") return @@ -8972,7 +9115,7 @@ type VirtualMachineScaleSetsRestartFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetsRestartFuture) Result(client VirtualMachineScaleSetsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsRestartFuture", "Result", future.Response(), "Polling failure") return @@ -8995,7 +9138,7 @@ type VirtualMachineScaleSetsStartFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetsStartFuture) Result(client VirtualMachineScaleSetsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsStartFuture", "Result", future.Response(), "Polling failure") return @@ -9028,7 +9171,7 @@ type VirtualMachineScaleSetsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetsUpdateFuture) Result(client VirtualMachineScaleSetsClient) (vmss VirtualMachineScaleSet, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -9057,7 +9200,7 @@ type VirtualMachineScaleSetsUpdateInstancesFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetsUpdateInstancesFuture) Result(client VirtualMachineScaleSetsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetsUpdateInstancesFuture", "Result", future.Response(), "Polling failure") return @@ -9475,22 +9618,22 @@ type VirtualMachineScaleSetUpdateVMProfile struct { // VirtualMachineScaleSetVM describes a virtual machine scale set virtual machine. type VirtualMachineScaleSetVM struct { autorest.Response `json:"-"` - // InstanceID - The virtual machine instance ID. + // InstanceID - READ-ONLY; The virtual machine instance ID. InstanceID *string `json:"instanceId,omitempty"` - // Sku - The virtual machine SKU. + // Sku - READ-ONLY; The virtual machine SKU. Sku *Sku `json:"sku,omitempty"` *VirtualMachineScaleSetVMProperties `json:"properties,omitempty"` // Plan - Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. Plan *Plan `json:"plan,omitempty"` - // Resources - The virtual machine child extension resources. + // Resources - READ-ONLY; The virtual machine child extension resources. Resources *[]VirtualMachineExtension `json:"resources,omitempty"` - // Zones - The virtual machine zones. + // Zones - READ-ONLY; The virtual machine zones. Zones *[]string `json:"zones,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -9501,33 +9644,12 @@ type VirtualMachineScaleSetVM struct { // MarshalJSON is the custom marshaler for VirtualMachineScaleSetVM. func (vmssv VirtualMachineScaleSetVM) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if vmssv.InstanceID != nil { - objectMap["instanceId"] = vmssv.InstanceID - } - if vmssv.Sku != nil { - objectMap["sku"] = vmssv.Sku - } if vmssv.VirtualMachineScaleSetVMProperties != nil { objectMap["properties"] = vmssv.VirtualMachineScaleSetVMProperties } if vmssv.Plan != nil { objectMap["plan"] = vmssv.Plan } - if vmssv.Resources != nil { - objectMap["resources"] = vmssv.Resources - } - if vmssv.Zones != nil { - objectMap["zones"] = vmssv.Zones - } - if vmssv.ID != nil { - objectMap["id"] = vmssv.ID - } - if vmssv.Name != nil { - objectMap["name"] = vmssv.Name - } - if vmssv.Type != nil { - objectMap["type"] = vmssv.Type - } if vmssv.Location != nil { objectMap["location"] = vmssv.Location } @@ -9654,9 +9776,9 @@ func (vmssv *VirtualMachineScaleSetVM) UnmarshalJSON(body []byte) error { // VirtualMachineScaleSetVMExtensionsSummary extensions summary for virtual machines of a virtual machine // scale set. type VirtualMachineScaleSetVMExtensionsSummary struct { - // Name - The extension name. + // Name - READ-ONLY; The extension name. Name *string `json:"name,omitempty"` - // StatusesSummary - The extensions information. + // StatusesSummary - READ-ONLY; The extensions information. StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"` } @@ -9691,7 +9813,7 @@ type VirtualMachineScaleSetVMInstanceView struct { Disks *[]DiskInstanceView `json:"disks,omitempty"` // Extensions - The extensions information. Extensions *[]VirtualMachineExtensionInstanceView `json:"extensions,omitempty"` - // VMHealth - The health status for the VM. + // VMHealth - READ-ONLY; The health status for the VM. VMHealth *VirtualMachineHealthStatus `json:"vmHealth,omitempty"` // BootDiagnostics - Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the VM from the hypervisor. BootDiagnostics *BootDiagnosticsInstanceView `json:"bootDiagnostics,omitempty"` @@ -9873,11 +9995,11 @@ type VirtualMachineScaleSetVMProfile struct { // VirtualMachineScaleSetVMProperties describes the properties of a virtual machine scale set virtual // machine. type VirtualMachineScaleSetVMProperties struct { - // LatestModelApplied - Specifies whether the latest model has been applied to the virtual machine. + // LatestModelApplied - READ-ONLY; Specifies whether the latest model has been applied to the virtual machine. LatestModelApplied *bool `json:"latestModelApplied,omitempty"` - // VMID - Azure VM unique ID. + // VMID - READ-ONLY; Azure VM unique ID. VMID *string `json:"vmId,omitempty"` - // InstanceView - The virtual machine instance view. + // InstanceView - READ-ONLY; The virtual machine instance view. InstanceView *VirtualMachineScaleSetVMInstanceView `json:"instanceView,omitempty"` // HardwareProfile - Specifies the hardware settings for the virtual machine. HardwareProfile *HardwareProfile `json:"hardwareProfile,omitempty"` @@ -9893,7 +10015,7 @@ type VirtualMachineScaleSetVMProperties struct { DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"` // AvailabilitySet - Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).

For more information on Azure planned maintenance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. AvailabilitySet *SubResource `json:"availabilitySet,omitempty"` - // ProvisioningState - The provisioning state, which only appears in the response. + // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response. ProvisioningState *string `json:"provisioningState,omitempty"` // LicenseType - Specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system.

Possible values are:

Windows_Client

Windows_Server

If this element is included in a request for an update, the value must match the initial value. This value cannot be updated.

For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

Minimum api-version: 2015-06-15 LicenseType *string `json:"licenseType,omitempty"` @@ -9915,7 +10037,7 @@ type VirtualMachineScaleSetVMsDeallocateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetVMsDeallocateFuture) Result(client VirtualMachineScaleSetVMsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsDeallocateFuture", "Result", future.Response(), "Polling failure") return @@ -9938,7 +10060,7 @@ type VirtualMachineScaleSetVMsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetVMsDeleteFuture) Result(client VirtualMachineScaleSetVMsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -9961,7 +10083,7 @@ type VirtualMachineScaleSetVMsPerformMaintenanceFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetVMsPerformMaintenanceFuture) Result(client VirtualMachineScaleSetVMsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsPerformMaintenanceFuture", "Result", future.Response(), "Polling failure") return @@ -9984,7 +10106,7 @@ type VirtualMachineScaleSetVMsPowerOffFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetVMsPowerOffFuture) Result(client VirtualMachineScaleSetVMsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsPowerOffFuture", "Result", future.Response(), "Polling failure") return @@ -10007,7 +10129,7 @@ type VirtualMachineScaleSetVMsRedeployFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetVMsRedeployFuture) Result(client VirtualMachineScaleSetVMsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsRedeployFuture", "Result", future.Response(), "Polling failure") return @@ -10030,7 +10152,7 @@ type VirtualMachineScaleSetVMsReimageAllFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetVMsReimageAllFuture) Result(client VirtualMachineScaleSetVMsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsReimageAllFuture", "Result", future.Response(), "Polling failure") return @@ -10053,7 +10175,7 @@ type VirtualMachineScaleSetVMsReimageFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetVMsReimageFuture) Result(client VirtualMachineScaleSetVMsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsReimageFuture", "Result", future.Response(), "Polling failure") return @@ -10076,7 +10198,7 @@ type VirtualMachineScaleSetVMsRestartFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetVMsRestartFuture) Result(client VirtualMachineScaleSetVMsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsRestartFuture", "Result", future.Response(), "Polling failure") return @@ -10099,7 +10221,7 @@ type VirtualMachineScaleSetVMsRunCommandFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetVMsRunCommandFuture) Result(client VirtualMachineScaleSetVMsClient) (rcr RunCommandResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsRunCommandFuture", "Result", future.Response(), "Polling failure") return @@ -10128,7 +10250,7 @@ type VirtualMachineScaleSetVMsStartFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetVMsStartFuture) Result(client VirtualMachineScaleSetVMsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsStartFuture", "Result", future.Response(), "Polling failure") return @@ -10151,7 +10273,7 @@ type VirtualMachineScaleSetVMsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineScaleSetVMsUpdateFuture) Result(client VirtualMachineScaleSetVMsClient) (vmssv VirtualMachineScaleSetVM, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -10180,7 +10302,7 @@ type VirtualMachinesCaptureFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesCaptureFuture) Result(client VirtualMachinesClient) (vmcr VirtualMachineCaptureResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesCaptureFuture", "Result", future.Response(), "Polling failure") return @@ -10209,7 +10331,7 @@ type VirtualMachinesConvertToManagedDisksFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesConvertToManagedDisksFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesConvertToManagedDisksFuture", "Result", future.Response(), "Polling failure") return @@ -10232,7 +10354,7 @@ type VirtualMachinesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesCreateOrUpdateFuture) Result(client VirtualMachinesClient) (VM VirtualMachine, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -10261,7 +10383,7 @@ type VirtualMachinesDeallocateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesDeallocateFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesDeallocateFuture", "Result", future.Response(), "Polling failure") return @@ -10284,7 +10406,7 @@ type VirtualMachinesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesDeleteFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -10330,7 +10452,7 @@ type VirtualMachinesPerformMaintenanceFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesPerformMaintenanceFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesPerformMaintenanceFuture", "Result", future.Response(), "Polling failure") return @@ -10353,7 +10475,7 @@ type VirtualMachinesPowerOffFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesPowerOffFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesPowerOffFuture", "Result", future.Response(), "Polling failure") return @@ -10376,7 +10498,7 @@ type VirtualMachinesRedeployFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesRedeployFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesRedeployFuture", "Result", future.Response(), "Polling failure") return @@ -10399,7 +10521,7 @@ type VirtualMachinesReimageFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesReimageFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesReimageFuture", "Result", future.Response(), "Polling failure") return @@ -10422,7 +10544,7 @@ type VirtualMachinesRestartFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesRestartFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesRestartFuture", "Result", future.Response(), "Polling failure") return @@ -10445,7 +10567,7 @@ type VirtualMachinesRunCommandFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesRunCommandFuture) Result(client VirtualMachinesClient) (rcr RunCommandResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesRunCommandFuture", "Result", future.Response(), "Polling failure") return @@ -10474,7 +10596,7 @@ type VirtualMachinesStartFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesStartFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesStartFuture", "Result", future.Response(), "Polling failure") return @@ -10490,9 +10612,9 @@ func (future *VirtualMachinesStartFuture) Result(client VirtualMachinesClient) ( // VirtualMachineStatusCodeCount the status code and count of the virtual machine scale set instance view // status summary. type VirtualMachineStatusCodeCount struct { - // Code - The instance view status code. + // Code - READ-ONLY; The instance view status code. Code *string `json:"code,omitempty"` - // Count - The number of instances having a particular status code. + // Count - READ-ONLY; The number of instances having a particular status code. Count *int32 `json:"count,omitempty"` } @@ -10506,7 +10628,7 @@ type VirtualMachinesUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesUpdateFuture) Result(client VirtualMachinesClient) (VM VirtualMachine, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "compute.VirtualMachinesUpdateFuture", "Result", future.Response(), "Polling failure") return diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/proximityplacementgroups.go b/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/proximityplacementgroups.go new file mode 100644 index 000000000000..bedadb403387 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/proximityplacementgroups.go @@ -0,0 +1,577 @@ +package compute + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ProximityPlacementGroupsClient is the compute Client +type ProximityPlacementGroupsClient struct { + BaseClient +} + +// NewProximityPlacementGroupsClient creates an instance of the ProximityPlacementGroupsClient client. +func NewProximityPlacementGroupsClient(subscriptionID string) ProximityPlacementGroupsClient { + return NewProximityPlacementGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewProximityPlacementGroupsClientWithBaseURI creates an instance of the ProximityPlacementGroupsClient client. +func NewProximityPlacementGroupsClientWithBaseURI(baseURI string, subscriptionID string) ProximityPlacementGroupsClient { + return ProximityPlacementGroupsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CreateOrUpdate create or update a proximity placement group. +// Parameters: +// resourceGroupName - the name of the resource group. +// proximityPlacementGroupName - the name of the proximity placement group. +// parameters - parameters supplied to the Create Proximity Placement Group operation. +func (client ProximityPlacementGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string, parameters ProximityPlacementGroup) (result ProximityPlacementGroup, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProximityPlacementGroupsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, proximityPlacementGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "CreateOrUpdate", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client ProximityPlacementGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string, parameters ProximityPlacementGroup) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "proximityPlacementGroupName": autorest.Encode("path", proximityPlacementGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client ProximityPlacementGroupsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client ProximityPlacementGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result ProximityPlacementGroup, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete delete a proximity placement group. +// Parameters: +// resourceGroupName - the name of the resource group. +// proximityPlacementGroupName - the name of the proximity placement group. +func (client ProximityPlacementGroupsClient) Delete(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProximityPlacementGroupsClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceGroupName, proximityPlacementGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Delete", resp, "Failure responding to request") + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ProximityPlacementGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "proximityPlacementGroupName": autorest.Encode("path", proximityPlacementGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ProximityPlacementGroupsClient) DeleteSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ProximityPlacementGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get retrieves information about a proximity placement group . +// Parameters: +// resourceGroupName - the name of the resource group. +// proximityPlacementGroupName - the name of the proximity placement group. +func (client ProximityPlacementGroupsClient) Get(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string) (result ProximityPlacementGroup, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProximityPlacementGroupsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceGroupName, proximityPlacementGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client ProximityPlacementGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "proximityPlacementGroupName": autorest.Encode("path", proximityPlacementGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ProximityPlacementGroupsClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ProximityPlacementGroupsClient) GetResponder(resp *http.Response) (result ProximityPlacementGroup, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByResourceGroup lists all proximity placement groups in a resource group. +// Parameters: +// resourceGroupName - the name of the resource group. +func (client ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ProximityPlacementGroupListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProximityPlacementGroupsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.ppglr.Response.Response != nil { + sc = result.ppglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.ppglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.ppglr, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListByResourceGroup", resp, "Failure responding to request") + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client ProximityPlacementGroupsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client ProximityPlacementGroupsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client ProximityPlacementGroupsClient) ListByResourceGroupResponder(resp *http.Response) (result ProximityPlacementGroupListResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client ProximityPlacementGroupsClient) listByResourceGroupNextResults(ctx context.Context, lastResults ProximityPlacementGroupListResult) (result ProximityPlacementGroupListResult, err error) { + req, err := lastResults.proximityPlacementGroupListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client ProximityPlacementGroupsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ProximityPlacementGroupListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProximityPlacementGroupsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// ListBySubscription lists all proximity placement groups in a subscription. +func (client ProximityPlacementGroupsClient) ListBySubscription(ctx context.Context) (result ProximityPlacementGroupListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProximityPlacementGroupsClient.ListBySubscription") + defer func() { + sc := -1 + if result.ppglr.Response.Response != nil { + sc = result.ppglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listBySubscriptionNextResults + req, err := client.ListBySubscriptionPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListBySubscription", nil, "Failure preparing request") + return + } + + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.ppglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListBySubscription", resp, "Failure sending request") + return + } + + result.ppglr, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "ListBySubscription", resp, "Failure responding to request") + } + + return +} + +// ListBySubscriptionPreparer prepares the ListBySubscription request. +func (client ProximityPlacementGroupsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListBySubscriptionSender sends the ListBySubscription request. The method will close the +// http.Response Body if it receives an error. +func (client ProximityPlacementGroupsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always +// closes the http.Response Body. +func (client ProximityPlacementGroupsClient) ListBySubscriptionResponder(resp *http.Response) (result ProximityPlacementGroupListResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listBySubscriptionNextResults retrieves the next set of results, if any. +func (client ProximityPlacementGroupsClient) listBySubscriptionNextResults(ctx context.Context, lastResults ProximityPlacementGroupListResult) (result ProximityPlacementGroupListResult, err error) { + req, err := lastResults.proximityPlacementGroupListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listBySubscriptionNextResults", resp, "Failure sending next results request") + } + result, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required. +func (client ProximityPlacementGroupsClient) ListBySubscriptionComplete(ctx context.Context) (result ProximityPlacementGroupListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProximityPlacementGroupsClient.ListBySubscription") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListBySubscription(ctx) + return +} + +// Update update a proximity placement group. +// Parameters: +// resourceGroupName - the name of the resource group. +// proximityPlacementGroupName - the name of the proximity placement group. +// parameters - parameters supplied to the Update Proximity Placement Group operation. +func (client ProximityPlacementGroupsClient) Update(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string, parameters ProximityPlacementGroupUpdate) (result ProximityPlacementGroup, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ProximityPlacementGroupsClient.Update") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdatePreparer(ctx, resourceGroupName, proximityPlacementGroupName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "compute.ProximityPlacementGroupsClient", "Update", resp, "Failure responding to request") + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client ProximityPlacementGroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, proximityPlacementGroupName string, parameters ProximityPlacementGroupUpdate) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "proximityPlacementGroupName": autorest.Encode("path", proximityPlacementGroupName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client ProximityPlacementGroupsClient) UpdateSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client ProximityPlacementGroupsClient) UpdateResponder(resp *http.Response) (result ProximityPlacementGroup, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/snapshots.go b/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/snapshots.go index 0109710db174..85e27ce92dd2 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/snapshots.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/snapshots.go @@ -107,6 +107,7 @@ func (client SnapshotsClient) CreateOrUpdatePreparer(ctx context.Context, resour "api-version": APIVersion, } + snapshot.ManagedBy = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/virtualmachines.go b/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/virtualmachines.go index d60492e1439f..2ee67d893800 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/virtualmachines.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/virtualmachines.go @@ -272,6 +272,7 @@ func (client VirtualMachinesClient) CreateOrUpdatePreparer(ctx context.Context, "api-version": APIVersion, } + parameters.Resources = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesetvms.go b/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesetvms.go index c6aeb85c6415..06312f220fe9 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesetvms.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute/virtualmachinescalesetvms.go @@ -1193,6 +1193,10 @@ func (client VirtualMachineScaleSetVMsClient) UpdatePreparer(ctx context.Context "api-version": APIVersion, } + parameters.InstanceID = nil + parameters.Sku = nil + parameters.Resources = nil + parameters.Zones = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2018-10-01/containerinstance/containergroups.go b/vendor/github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2018-10-01/containerinstance/containergroups.go index 6912f56c6513..7ed01e33c73e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2018-10-01/containerinstance/containergroups.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2018-10-01/containerinstance/containergroups.go @@ -804,6 +804,9 @@ func (client ContainerGroupsClient) UpdatePreparer(ctx context.Context, resource "api-version": APIVersion, } + resource.ID = nil + resource.Name = nil + resource.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPatch(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2018-10-01/containerinstance/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2018-10-01/containerinstance/models.go index 922c9f898dea..7d5b3341c1d7 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2018-10-01/containerinstance/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2018-10-01/containerinstance/models.go @@ -222,27 +222,27 @@ type CachedImagesListResult struct { // Capabilities the regional capabilities. type Capabilities struct { - // ResourceType - The resource type that this capability describes. + // ResourceType - READ-ONLY; The resource type that this capability describes. ResourceType *string `json:"resourceType,omitempty"` - // OsType - The OS type that this capability describes. + // OsType - READ-ONLY; The OS type that this capability describes. OsType *string `json:"osType,omitempty"` - // Location - The resource location. + // Location - READ-ONLY; The resource location. Location *string `json:"location,omitempty"` - // IPAddressType - The ip address type that this capability describes. + // IPAddressType - READ-ONLY; The ip address type that this capability describes. IPAddressType *string `json:"ipAddressType,omitempty"` - // Gpu - The GPU sku that this capability describes. + // Gpu - READ-ONLY; The GPU sku that this capability describes. Gpu *string `json:"gpu,omitempty"` - // Capabilities - The supported capabilities. + // Capabilities - READ-ONLY; The supported capabilities. Capabilities *CapabilitiesCapabilities `json:"capabilities,omitempty"` } // CapabilitiesCapabilities the supported capabilities. type CapabilitiesCapabilities struct { - // MaxMemoryInGB - The maximum allowed memory request in GB. + // MaxMemoryInGB - READ-ONLY; The maximum allowed memory request in GB. MaxMemoryInGB *float64 `json:"maxMemoryInGB,omitempty"` - // MaxCPU - The maximum allowed CPU request in cores. + // MaxCPU - READ-ONLY; The maximum allowed CPU request in cores. MaxCPU *float64 `json:"maxCpu,omitempty"` - // MaxGpuCount - The maximum allowed GPU count. + // MaxGpuCount - READ-ONLY; The maximum allowed GPU count. MaxGpuCount *float64 `json:"maxGpuCount,omitempty"` } @@ -362,11 +362,11 @@ type ContainerGroup struct { // Identity - The identity of the container group, if configured. Identity *ContainerGroupIdentity `json:"identity,omitempty"` *ContainerGroupProperties `json:"properties,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -383,15 +383,6 @@ func (cg ContainerGroup) MarshalJSON() ([]byte, error) { if cg.ContainerGroupProperties != nil { objectMap["properties"] = cg.ContainerGroupProperties } - if cg.ID != nil { - objectMap["id"] = cg.ID - } - if cg.Name != nil { - objectMap["name"] = cg.Name - } - if cg.Type != nil { - objectMap["type"] = cg.Type - } if cg.Location != nil { objectMap["location"] = cg.Location } @@ -487,9 +478,9 @@ type ContainerGroupDiagnostics struct { // ContainerGroupIdentity identity for the container group. type ContainerGroupIdentity struct { - // PrincipalID - The principal id of the container group identity. This property will only be provided for a system assigned identity. + // PrincipalID - READ-ONLY; The principal id of the container group identity. This property will only be provided for a system assigned identity. PrincipalID *string `json:"principalId,omitempty"` - // TenantID - The tenant id associated with the container group. This property will only be provided for a system assigned identity. + // TenantID - READ-ONLY; The tenant id associated with the container group. This property will only be provided for a system assigned identity. TenantID *string `json:"tenantId,omitempty"` // Type - The type of identity used for the container group. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the container group. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssignedUserAssigned', 'None' Type ResourceIdentityType `json:"type,omitempty"` @@ -500,12 +491,6 @@ type ContainerGroupIdentity struct { // MarshalJSON is the custom marshaler for ContainerGroupIdentity. func (cgiVar ContainerGroupIdentity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if cgiVar.PrincipalID != nil { - objectMap["principalId"] = cgiVar.PrincipalID - } - if cgiVar.TenantID != nil { - objectMap["tenantId"] = cgiVar.TenantID - } if cgiVar.Type != "" { objectMap["type"] = cgiVar.Type } @@ -517,9 +502,9 @@ func (cgiVar ContainerGroupIdentity) MarshalJSON() ([]byte, error) { // ContainerGroupIdentityUserAssignedIdentitiesValue ... type ContainerGroupIdentityUserAssignedIdentitiesValue struct { - // PrincipalID - The principal id of user assigned identity. + // PrincipalID - READ-ONLY; The principal id of user assigned identity. PrincipalID *string `json:"principalId,omitempty"` - // ClientID - The client id of user assigned identity. + // ClientID - READ-ONLY; The client id of user assigned identity. ClientID *string `json:"clientId,omitempty"` } @@ -677,7 +662,7 @@ type ContainerGroupNetworkProfile struct { // ContainerGroupProperties ... type ContainerGroupProperties struct { - // ProvisioningState - The provisioning state of the container group. This only appears in the response. + // ProvisioningState - READ-ONLY; The provisioning state of the container group. This only appears in the response. ProvisioningState *string `json:"provisioningState,omitempty"` // Containers - The containers within the container group. Containers *[]Container `json:"containers,omitempty"` @@ -695,7 +680,7 @@ type ContainerGroupProperties struct { OsType OperatingSystemTypes `json:"osType,omitempty"` // Volumes - The list of volumes that can be mounted by containers in this container group. Volumes *[]Volume `json:"volumes,omitempty"` - // InstanceView - The instance view of the container group. Only valid in response. + // InstanceView - READ-ONLY; The instance view of the container group. Only valid in response. InstanceView *ContainerGroupPropertiesInstanceView `json:"instanceView,omitempty"` // Diagnostics - The diagnostic information for a container group. Diagnostics *ContainerGroupDiagnostics `json:"diagnostics,omitempty"` @@ -707,9 +692,9 @@ type ContainerGroupProperties struct { // ContainerGroupPropertiesInstanceView the instance view of the container group. Only valid in response. type ContainerGroupPropertiesInstanceView struct { - // Events - The events of this container group. + // Events - READ-ONLY; The events of this container group. Events *[]Event `json:"events,omitempty"` - // State - The state of the container group. Only valid in response. + // State - READ-ONLY; The state of the container group. Only valid in response. State *string `json:"state,omitempty"` } @@ -723,7 +708,7 @@ type ContainerGroupsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ContainerGroupsCreateOrUpdateFuture) Result(client ContainerGroupsClient) (cg ContainerGroup, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -752,7 +737,7 @@ type ContainerGroupsRestartFuture struct { // If the operation has not completed it will return an error. func (future *ContainerGroupsRestartFuture) Result(client ContainerGroupsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsRestartFuture", "Result", future.Response(), "Polling failure") return @@ -775,7 +760,7 @@ type ContainerGroupsStartFuture struct { // If the operation has not completed it will return an error. func (future *ContainerGroupsStartFuture) Result(client ContainerGroupsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerinstance.ContainerGroupsStartFuture", "Result", future.Response(), "Polling failure") return @@ -834,7 +819,7 @@ type ContainerProperties struct { Ports *[]ContainerPort `json:"ports,omitempty"` // EnvironmentVariables - The environment variables to set in the container instance. EnvironmentVariables *[]EnvironmentVariable `json:"environmentVariables,omitempty"` - // InstanceView - The instance view of the container instance. Only valid in response. + // InstanceView - READ-ONLY; The instance view of the container instance. Only valid in response. InstanceView *ContainerPropertiesInstanceView `json:"instanceView,omitempty"` // Resources - The resource requirements of the container instance. Resources *ResourceRequirements `json:"resources,omitempty"` @@ -848,13 +833,13 @@ type ContainerProperties struct { // ContainerPropertiesInstanceView the instance view of the container instance. Only valid in response. type ContainerPropertiesInstanceView struct { - // RestartCount - The number of times that the container instance has been restarted. + // RestartCount - READ-ONLY; The number of times that the container instance has been restarted. RestartCount *int32 `json:"restartCount,omitempty"` - // CurrentState - Current container instance state. + // CurrentState - READ-ONLY; Current container instance state. CurrentState *ContainerState `json:"currentState,omitempty"` - // PreviousState - Previous container instance state. + // PreviousState - READ-ONLY; Previous container instance state. PreviousState *ContainerState `json:"previousState,omitempty"` - // Events - The events of the container instance. + // Events - READ-ONLY; The events of the container instance. Events *[]Event `json:"events,omitempty"` } @@ -946,7 +931,7 @@ type IPAddress struct { IP *string `json:"ip,omitempty"` // DNSNameLabel - The Dns name label for the IP. DNSNameLabel *string `json:"dnsNameLabel,omitempty"` - // Fqdn - The FQDN for the IP. + // Fqdn - READ-ONLY; The FQDN for the IP. Fqdn *string `json:"fqdn,omitempty"` } @@ -1031,11 +1016,11 @@ type Port struct { // Resource the Resource model definition. type Resource struct { - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -1046,15 +1031,6 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -1094,27 +1070,28 @@ type ResourceRequirements struct { // Usage a single usage result type Usage struct { - // Unit - Unit of the usage result + // Unit - READ-ONLY; Unit of the usage result Unit *string `json:"unit,omitempty"` - // CurrentValue - The current usage of the resource + // CurrentValue - READ-ONLY; The current usage of the resource CurrentValue *int32 `json:"currentValue,omitempty"` - // Limit - The maximum permitted usage of the resource. + // Limit - READ-ONLY; The maximum permitted usage of the resource. Limit *int32 `json:"limit,omitempty"` - // Name - The name object of the resource + // Name - READ-ONLY; The name object of the resource Name *UsageName `json:"name,omitempty"` } // UsageListResult the response containing the usage data type UsageListResult struct { autorest.Response `json:"-"` - Value *[]Usage `json:"value,omitempty"` + // Value - READ-ONLY + Value *[]Usage `json:"value,omitempty"` } // UsageName the name object of the resource type UsageName struct { - // Value - The name of the resource + // Value - READ-ONLY; The name of the resource Value *string `json:"value,omitempty"` - // LocalizedValue - The localized name of the resource + // LocalizedValue - READ-ONLY; The localized name of the resource LocalizedValue *string `json:"localizedValue,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go index dc74474134f7..3e8a7933a0a1 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go @@ -850,7 +850,7 @@ type RegistriesCreateFuture struct { // If the operation has not completed it will return an error. func (future *RegistriesCreateFuture) Result(client RegistriesClient) (r Registry, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesCreateFuture", "Result", future.Response(), "Polling failure") return @@ -879,7 +879,7 @@ type RegistriesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *RegistriesDeleteFuture) Result(client RegistriesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -902,7 +902,7 @@ type RegistriesImportImageFuture struct { // If the operation has not completed it will return an error. func (future *RegistriesImportImageFuture) Result(client RegistriesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesImportImageFuture", "Result", future.Response(), "Polling failure") return @@ -925,7 +925,7 @@ type RegistriesUpdateFuture struct { // If the operation has not completed it will return an error. func (future *RegistriesUpdateFuture) Result(client RegistriesClient) (r Registry, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -954,7 +954,7 @@ type RegistriesUpdatePoliciesFuture struct { // If the operation has not completed it will return an error. func (future *RegistriesUpdatePoliciesFuture) Result(client RegistriesClient) (rp RegistryPolicies, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.RegistriesUpdatePoliciesFuture", "Result", future.Response(), "Polling failure") return @@ -982,11 +982,11 @@ type Registry struct { Identity *RegistryIdentity `json:"identity,omitempty"` // RegistryProperties - The properties of the container registry. *RegistryProperties `json:"properties,omitempty"` - // ID - The resource ID. + // ID - READ-ONLY; The resource ID. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. This cannot be changed after the resource is created. Location *string `json:"location,omitempty"` @@ -1006,15 +1006,6 @@ func (r Registry) MarshalJSON() ([]byte, error) { if r.RegistryProperties != nil { objectMap["properties"] = r.RegistryProperties } - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -1314,13 +1305,13 @@ type RegistryPolicies struct { // RegistryProperties the properties of a container registry. type RegistryProperties struct { - // LoginServer - The URL that can be used to log into the container registry. + // LoginServer - READ-ONLY; The URL that can be used to log into the container registry. LoginServer *string `json:"loginServer,omitempty"` - // CreationDate - The creation date of the container registry in ISO8601 format. + // CreationDate - READ-ONLY; The creation date of the container registry in ISO8601 format. CreationDate *date.Time `json:"creationDate,omitempty"` - // ProvisioningState - The provisioning state of the container registry at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + // ProvisioningState - READ-ONLY; The provisioning state of the container registry at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` - // Status - The status of the container registry at the time the operation was called. + // Status - READ-ONLY; The status of the container registry at the time the operation was called. Status *Status `json:"status,omitempty"` // AdminUserEnabled - The value that indicates whether the admin user is enabled. AdminUserEnabled *bool `json:"adminUserEnabled,omitempty"` @@ -1445,11 +1436,11 @@ type Replication struct { autorest.Response `json:"-"` // ReplicationProperties - The properties of the replication. *ReplicationProperties `json:"properties,omitempty"` - // ID - The resource ID. + // ID - READ-ONLY; The resource ID. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. This cannot be changed after the resource is created. Location *string `json:"location,omitempty"` @@ -1463,15 +1454,6 @@ func (r Replication) MarshalJSON() ([]byte, error) { if r.ReplicationProperties != nil { objectMap["properties"] = r.ReplicationProperties } - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -1698,9 +1680,9 @@ func NewReplicationListResultPage(getNextPage func(context.Context, ReplicationL // ReplicationProperties the properties of a replication. type ReplicationProperties struct { - // ProvisioningState - The provisioning state of the replication at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + // ProvisioningState - READ-ONLY; The provisioning state of the replication at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` - // Status - The status of the replication at the time the operation was called. + // Status - READ-ONLY; The status of the replication at the time the operation was called. Status *Status `json:"status,omitempty"` } @@ -1714,7 +1696,7 @@ type ReplicationsCreateFuture struct { // If the operation has not completed it will return an error. func (future *ReplicationsCreateFuture) Result(client ReplicationsClient) (r Replication, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsCreateFuture", "Result", future.Response(), "Polling failure") return @@ -1743,7 +1725,7 @@ type ReplicationsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ReplicationsDeleteFuture) Result(client ReplicationsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1766,7 +1748,7 @@ type ReplicationsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ReplicationsUpdateFuture) Result(client ReplicationsClient) (r Replication, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.ReplicationsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1816,11 +1798,11 @@ type Request struct { // Resource an Azure resource. type Resource struct { - // ID - The resource ID. + // ID - READ-ONLY; The resource ID. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. This cannot be changed after the resource is created. Location *string `json:"location,omitempty"` @@ -1831,15 +1813,6 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -1853,7 +1826,7 @@ func (r Resource) MarshalJSON() ([]byte, error) { type Sku struct { // Name - The SKU name of the container registry. Required for registry creation. Possible values include: 'Classic', 'Basic', 'Standard', 'Premium' Name SkuName `json:"name,omitempty"` - // Tier - The SKU tier based on the SKU name. Possible values include: 'SkuTierClassic', 'SkuTierBasic', 'SkuTierStandard', 'SkuTierPremium' + // Tier - READ-ONLY; The SKU tier based on the SKU name. Possible values include: 'SkuTierClassic', 'SkuTierBasic', 'SkuTierStandard', 'SkuTierPremium' Tier SkuTier `json:"tier,omitempty"` } @@ -1868,11 +1841,11 @@ type Source struct { // Status the status of an Azure resource at the time the operation was called. type Status struct { - // DisplayStatus - The short label for the status. + // DisplayStatus - READ-ONLY; The short label for the status. DisplayStatus *string `json:"displayStatus,omitempty"` - // Message - The detailed message for the status, including alerts and error messages. + // Message - READ-ONLY; The detailed message for the status, including alerts and error messages. Message *string `json:"message,omitempty"` - // Timestamp - The timestamp when the status was changed to the current value. + // Timestamp - READ-ONLY; The timestamp when the status was changed to the current value. Timestamp *date.Time `json:"timestamp,omitempty"` } @@ -1899,6 +1872,10 @@ type Target struct { URL *string `json:"url,omitempty"` // Tag - The tag name. Tag *string `json:"tag,omitempty"` + // Name - The name of the artifact. + Name *string `json:"name,omitempty"` + // Version - The version of the artifact. + Version *string `json:"version,omitempty"` } // TrustPolicy an object that represents content trust policy for a container registry. @@ -1922,11 +1899,11 @@ type Webhook struct { autorest.Response `json:"-"` // WebhookProperties - The properties of the webhook. *WebhookProperties `json:"properties,omitempty"` - // ID - The resource ID. + // ID - READ-ONLY; The resource ID. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. This cannot be changed after the resource is created. Location *string `json:"location,omitempty"` @@ -1940,15 +1917,6 @@ func (w Webhook) MarshalJSON() ([]byte, error) { if w.WebhookProperties != nil { objectMap["properties"] = w.WebhookProperties } - if w.ID != nil { - objectMap["id"] = w.ID - } - if w.Name != nil { - objectMap["name"] = w.Name - } - if w.Type != nil { - objectMap["type"] = w.Type - } if w.Location != nil { objectMap["location"] = w.Location } @@ -2248,7 +2216,7 @@ type WebhookProperties struct { Scope *string `json:"scope,omitempty"` // Actions - The list of actions that trigger the webhook to post notifications. Actions *[]WebhookAction `json:"actions,omitempty"` - // ProvisioningState - The provisioning state of the webhook at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + // ProvisioningState - READ-ONLY; The provisioning state of the webhook at the time the operation was called. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } @@ -2332,7 +2300,7 @@ type WebhooksCreateFuture struct { // If the operation has not completed it will return an error. func (future *WebhooksCreateFuture) Result(client WebhooksClient) (w Webhook, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksCreateFuture", "Result", future.Response(), "Polling failure") return @@ -2361,7 +2329,7 @@ type WebhooksDeleteFuture struct { // If the operation has not completed it will return an error. func (future *WebhooksDeleteFuture) Result(client WebhooksClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -2384,7 +2352,7 @@ type WebhooksUpdateFuture struct { // If the operation has not completed it will return an error. func (future *WebhooksUpdateFuture) Result(client WebhooksClient) (w Webhook, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerregistry.WebhooksUpdateFuture", "Result", future.Response(), "Polling failure") return diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/client.go b/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/client.go deleted file mode 100644 index 09a36def717c..000000000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/client.go +++ /dev/null @@ -1,51 +0,0 @@ -// Package containerservice implements the Azure ARM Containerservice service API version . -// -// The Container Service Client. -package containerservice - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/Azure/go-autorest/autorest" -) - -const ( - // DefaultBaseURI is the default URI used for the service Containerservice - DefaultBaseURI = "https://management.azure.com" -) - -// BaseClient is the base client for Containerservice. -type BaseClient struct { - autorest.Client - BaseURI string - SubscriptionID string -} - -// New creates an instance of the BaseClient client. -func New(subscriptionID string) BaseClient { - return NewWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// NewWithBaseURI creates an instance of the BaseClient client. -func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { - return BaseClient{ - Client: autorest.NewClientWithUserAgent(UserAgent()), - BaseURI: baseURI, - SubscriptionID: subscriptionID, - } -} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/containerservices.go b/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/containerservices.go deleted file mode 100644 index 1fa4695e5adb..000000000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/containerservices.go +++ /dev/null @@ -1,621 +0,0 @@ -package containerservice - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// ContainerServicesClient is the the Container Service Client. -type ContainerServicesClient struct { - BaseClient -} - -// NewContainerServicesClient creates an instance of the ContainerServicesClient client. -func NewContainerServicesClient(subscriptionID string) ContainerServicesClient { - return NewContainerServicesClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// NewContainerServicesClientWithBaseURI creates an instance of the ContainerServicesClient client. -func NewContainerServicesClientWithBaseURI(baseURI string, subscriptionID string) ContainerServicesClient { - return ContainerServicesClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// CreateOrUpdate creates or updates a container service with the specified configuration of orchestrator, masters, and -// agents. -// Parameters: -// resourceGroupName - the name of the resource group. -// containerServiceName - the name of the container service in the specified subscription and resource group. -// parameters - parameters supplied to the Create or Update a Container Service operation. -func (client ContainerServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, containerServiceName string, parameters ContainerService) (result ContainerServicesCreateOrUpdateFutureType, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.Properties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.Properties.OrchestratorProfile", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.Properties.CustomProfile", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.Properties.CustomProfile.Orchestrator", Name: validation.Null, Rule: true, Chain: nil}}}, - {Target: "parameters.Properties.ServicePrincipalProfile", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.Properties.ServicePrincipalProfile.ClientID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.Properties.ServicePrincipalProfile.KeyVaultSecretRef", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.Properties.ServicePrincipalProfile.KeyVaultSecretRef.VaultID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.Properties.ServicePrincipalProfile.KeyVaultSecretRef.SecretName", Name: validation.Null, Rule: true, Chain: nil}, - }}, - }}, - {Target: "parameters.Properties.MasterProfile", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.Properties.MasterProfile.DNSPrefix", Name: validation.Null, Rule: true, Chain: nil}}}, - {Target: "parameters.Properties.WindowsProfile", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.Properties.WindowsProfile.AdminUsername", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.Properties.WindowsProfile.AdminUsername", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([._]?[a-zA-Z0-9]+)*$`, Chain: nil}}}, - {Target: "parameters.Properties.WindowsProfile.AdminPassword", Name: validation.Null, Rule: true, Chain: nil}, - }}, - {Target: "parameters.Properties.LinuxProfile", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.Properties.LinuxProfile.AdminUsername", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.Properties.LinuxProfile.AdminUsername", Name: validation.Pattern, Rule: `^[A-Za-z][-A-Za-z0-9_]*$`, Chain: nil}}}, - {Target: "parameters.Properties.LinuxProfile.SSH", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.Properties.LinuxProfile.SSH.PublicKeys", Name: validation.Null, Rule: true, Chain: nil}}}, - }}, - {Target: "parameters.Properties.DiagnosticsProfile", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.Properties.DiagnosticsProfile.VMDiagnostics", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.Properties.DiagnosticsProfile.VMDiagnostics.Enabled", Name: validation.Null, Rule: true, Chain: nil}}}, - }}, - }}}}}); err != nil { - return result, validation.NewError("containerservice.ContainerServicesClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, containerServiceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - result, err = client.CreateOrUpdateSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "CreateOrUpdate", result.Response(), "Failure sending request") - return - } - - return -} - -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client ContainerServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, containerServiceName string, parameters ContainerService) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "containerServiceName": autorest.Encode("path", containerServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-07-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client ContainerServicesClient) CreateOrUpdateSender(req *http.Request) (future ContainerServicesCreateOrUpdateFutureType, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return -} - -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client ContainerServicesClient) CreateOrUpdateResponder(resp *http.Response) (result ContainerService, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Delete deletes the specified container service in the specified subscription and resource group. The operation does -// not delete other resources created as part of creating a container service, including storage accounts, VMs, and -// availability sets. All the other resources created with the container service are part of the same resource group -// and can be deleted individually. -// Parameters: -// resourceGroupName - the name of the resource group. -// containerServiceName - the name of the container service in the specified subscription and resource group. -func (client ContainerServicesClient) Delete(ctx context.Context, resourceGroupName string, containerServiceName string) (result ContainerServicesDeleteFutureType, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.Delete") - defer func() { - sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - req, err := client.DeletePreparer(ctx, resourceGroupName, containerServiceName) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Delete", nil, "Failure preparing request") - return - } - - result, err = client.DeleteSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Delete", result.Response(), "Failure sending request") - return - } - - return -} - -// DeletePreparer prepares the Delete request. -func (client ContainerServicesClient) DeletePreparer(ctx context.Context, resourceGroupName string, containerServiceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "containerServiceName": autorest.Encode("path", containerServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-07-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client ContainerServicesClient) DeleteSender(req *http.Request) (future ContainerServicesDeleteFutureType, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return -} - -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client ContainerServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Get gets the properties of the specified container service in the specified subscription and resource group. The -// operation returns the properties including state, orchestrator, number of masters and agents, and FQDNs of masters -// and agents. -// Parameters: -// resourceGroupName - the name of the resource group. -// containerServiceName - the name of the container service in the specified subscription and resource group. -func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName string, containerServiceName string) (result ContainerService, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - req, err := client.GetPreparer(ctx, resourceGroupName, containerServiceName) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request") - } - - return -} - -// GetPreparer prepares the Get request. -func (client ContainerServicesClient) GetPreparer(ctx context.Context, resourceGroupName string, containerServiceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "containerServiceName": autorest.Encode("path", containerServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-07-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ContainerServicesClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ContainerServicesClient) GetResponder(resp *http.Response) (result ContainerService, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// List gets a list of container services in the specified subscription. The operation returns properties of each -// container service including state, orchestrator, number of masters and agents, and FQDNs of masters and agents. -func (client ContainerServicesClient) List(ctx context.Context) (result ListResultPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.List") - defer func() { - sc := -1 - if result.lr.Response.Response != nil { - sc = result.lr.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.lr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure sending request") - return - } - - result.lr, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request") - } - - return -} - -// ListPreparer prepares the List request. -func (client ContainerServicesClient) ListPreparer(ctx context.Context) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-07-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/containerServices", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client ContainerServicesClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client ContainerServicesClient) ListResponder(resp *http.Response) (result ListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client ContainerServicesClient) listNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) { - req, err := lastResults.listResultPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client ContainerServicesClient) ListComplete(ctx context.Context) (result ListResultIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.List") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.List(ctx) - return -} - -// ListByResourceGroup gets a list of container services in the specified subscription and resource group. The -// operation returns properties of each container service including state, orchestrator, number of masters and agents, -// and FQDNs of masters and agents. -// Parameters: -// resourceGroupName - the name of the resource group. -func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListResultPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.ListByResourceGroup") - defer func() { - sc := -1 - if result.lr.Response.Response != nil { - sc = result.lr.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.fn = client.listByResourceGroupNextResults - req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", nil, "Failure preparing request") - return - } - - resp, err := client.ListByResourceGroupSender(req) - if err != nil { - result.lr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure sending request") - return - } - - result.lr, err = client.ListByResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request") - } - - return -} - -// ListByResourceGroupPreparer prepares the ListByResourceGroup request. -func (client ContainerServicesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-07-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the -// http.Response Body if it receives an error. -func (client ContainerServicesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always -// closes the http.Response Body. -func (client ContainerServicesClient) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByResourceGroupNextResults retrieves the next set of results, if any. -func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) { - req, err := lastResults.listResultPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByResourceGroupSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. -func (client ContainerServicesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListResultIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.ListByResourceGroup") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) - return -} - -// ListOrchestrators gets a list of supported orchestrators in the specified subscription. The operation returns -// properties of each orchestrator including version and available upgrades. -// Parameters: -// location - the name of a supported Azure region. -// resourceType - resource type for which the list of orchestrators needs to be returned -func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, location string, resourceType string) (result OrchestratorVersionProfileListResult, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.ListOrchestrators") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - req, err := client.ListOrchestratorsPreparer(ctx, location, resourceType) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", nil, "Failure preparing request") - return - } - - resp, err := client.ListOrchestratorsSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure sending request") - return - } - - result, err = client.ListOrchestratorsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request") - } - - return -} - -// ListOrchestratorsPreparer prepares the ListOrchestrators request. -func (client ContainerServicesClient) ListOrchestratorsPreparer(ctx context.Context, location string, resourceType string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "location": autorest.Encode("path", location), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-30" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(resourceType) > 0 { - queryParameters["resource-type"] = autorest.Encode("query", resourceType) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/orchestrators", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListOrchestratorsSender sends the ListOrchestrators request. The method will close the -// http.Response Body if it receives an error. -func (client ContainerServicesClient) ListOrchestratorsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// ListOrchestratorsResponder handles the response to the ListOrchestrators request. The method always -// closes the http.Response Body. -func (client ContainerServicesClient) ListOrchestratorsResponder(resp *http.Response) (result OrchestratorVersionProfileListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/managedclusters.go b/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/managedclusters.go deleted file mode 100644 index 22242acefbfe..000000000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/managedclusters.go +++ /dev/null @@ -1,1149 +0,0 @@ -package containerservice - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// ManagedClustersClient is the the Container Service Client. -type ManagedClustersClient struct { - BaseClient -} - -// NewManagedClustersClient creates an instance of the ManagedClustersClient client. -func NewManagedClustersClient(subscriptionID string) ManagedClustersClient { - return NewManagedClustersClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// NewManagedClustersClientWithBaseURI creates an instance of the ManagedClustersClient client. -func NewManagedClustersClientWithBaseURI(baseURI string, subscriptionID string) ManagedClustersClient { - return ManagedClustersClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// CreateOrUpdate creates or updates a managed cluster with the specified configuration for agents and Kubernetes -// version. -// Parameters: -// resourceGroupName - the name of the resource group. -// resourceName - the name of the managed cluster resource. -// parameters - parameters supplied to the Create or Update a Managed Cluster operation. -func (client ManagedClustersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedCluster) (result ManagedClustersCreateOrUpdateFuture, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.ManagedClusterProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.LinuxProfile", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.LinuxProfile.AdminUsername", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.LinuxProfile.AdminUsername", Name: validation.Pattern, Rule: `^[A-Za-z][-A-Za-z0-9_]*$`, Chain: nil}}}, - {Target: "parameters.ManagedClusterProperties.LinuxProfile.SSH", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.LinuxProfile.SSH.PublicKeys", Name: validation.Null, Rule: true, Chain: nil}}}, - }}, - {Target: "parameters.ManagedClusterProperties.ServicePrincipalProfile", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.ServicePrincipalProfile.ClientID", Name: validation.Null, Rule: true, Chain: nil}}}, - {Target: "parameters.ManagedClusterProperties.NetworkProfile", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.PodCidr", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.PodCidr", Name: validation.Pattern, Rule: `^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$`, Chain: nil}}}, - {Target: "parameters.ManagedClusterProperties.NetworkProfile.ServiceCidr", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.ServiceCidr", Name: validation.Pattern, Rule: `^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$`, Chain: nil}}}, - {Target: "parameters.ManagedClusterProperties.NetworkProfile.DNSServiceIP", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.DNSServiceIP", Name: validation.Pattern, Rule: `^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$`, Chain: nil}}}, - {Target: "parameters.ManagedClusterProperties.NetworkProfile.DockerBridgeCidr", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.DockerBridgeCidr", Name: validation.Pattern, Rule: `^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$`, Chain: nil}}}, - }}, - {Target: "parameters.ManagedClusterProperties.AadProfile", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.AadProfile.ClientAppID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.ManagedClusterProperties.AadProfile.ServerAppID", Name: validation.Null, Rule: true, Chain: nil}, - }}, - }}}}}); err != nil { - return result, validation.NewError("containerservice.ManagedClustersClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, resourceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - result, err = client.CreateOrUpdateSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "CreateOrUpdate", result.Response(), "Failure sending request") - return - } - - return -} - -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client ManagedClustersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedCluster) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "resourceName": autorest.Encode("path", resourceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-03-31" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client ManagedClustersClient) CreateOrUpdateSender(req *http.Request) (future ManagedClustersCreateOrUpdateFuture, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return -} - -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client ManagedClustersClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedCluster, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Delete deletes the managed cluster with a specified resource group and name. -// Parameters: -// resourceGroupName - the name of the resource group. -// resourceName - the name of the managed cluster resource. -func (client ManagedClustersClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result ManagedClustersDeleteFuture, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.Delete") - defer func() { - sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { - return result, validation.NewError("containerservice.ManagedClustersClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Delete", nil, "Failure preparing request") - return - } - - result, err = client.DeleteSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Delete", result.Response(), "Failure sending request") - return - } - - return -} - -// DeletePreparer prepares the Delete request. -func (client ManagedClustersClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "resourceName": autorest.Encode("path", resourceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-03-31" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client ManagedClustersClient) DeleteSender(req *http.Request) (future ManagedClustersDeleteFuture, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return -} - -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client ManagedClustersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Get gets the details of the managed cluster with a specified resource group and name. -// Parameters: -// resourceGroupName - the name of the resource group. -// resourceName - the name of the managed cluster resource. -func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result ManagedCluster, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { - return result, validation.NewError("containerservice.ManagedClustersClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, resourceName) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request") - } - - return -} - -// GetPreparer prepares the Get request. -func (client ManagedClustersClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "resourceName": autorest.Encode("path", resourceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-03-31" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ManagedClustersClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ManagedClustersClient) GetResponder(resp *http.Response) (result ManagedCluster, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// GetAccessProfile gets the accessProfile for the specified role name of the managed cluster with a specified resource -// group and name. -// Parameters: -// resourceGroupName - the name of the resource group. -// resourceName - the name of the managed cluster resource. -// roleName - the name of the role for managed cluster accessProfile resource. -func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resourceGroupName string, resourceName string, roleName string) (result ManagedClusterAccessProfile, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.GetAccessProfile") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { - return result, validation.NewError("containerservice.ManagedClustersClient", "GetAccessProfile", err.Error()) - } - - req, err := client.GetAccessProfilePreparer(ctx, resourceGroupName, resourceName, roleName) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", nil, "Failure preparing request") - return - } - - resp, err := client.GetAccessProfileSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure sending request") - return - } - - result, err = client.GetAccessProfileResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request") - } - - return -} - -// GetAccessProfilePreparer prepares the GetAccessProfile request. -func (client ManagedClustersClient) GetAccessProfilePreparer(ctx context.Context, resourceGroupName string, resourceName string, roleName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "resourceName": autorest.Encode("path", resourceName), - "roleName": autorest.Encode("path", roleName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-03-31" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/accessProfiles/{roleName}/listCredential", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// GetAccessProfileSender sends the GetAccessProfile request. The method will close the -// http.Response Body if it receives an error. -func (client ManagedClustersClient) GetAccessProfileSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// GetAccessProfileResponder handles the response to the GetAccessProfile request. The method always -// closes the http.Response Body. -func (client ManagedClustersClient) GetAccessProfileResponder(resp *http.Response) (result ManagedClusterAccessProfile, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// GetUpgradeProfile gets the details of the upgrade profile for a managed cluster with a specified resource group and -// name. -// Parameters: -// resourceGroupName - the name of the resource group. -// resourceName - the name of the managed cluster resource. -func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resourceGroupName string, resourceName string) (result ManagedClusterUpgradeProfile, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.GetUpgradeProfile") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { - return result, validation.NewError("containerservice.ManagedClustersClient", "GetUpgradeProfile", err.Error()) - } - - req, err := client.GetUpgradeProfilePreparer(ctx, resourceGroupName, resourceName) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", nil, "Failure preparing request") - return - } - - resp, err := client.GetUpgradeProfileSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure sending request") - return - } - - result, err = client.GetUpgradeProfileResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request") - } - - return -} - -// GetUpgradeProfilePreparer prepares the GetUpgradeProfile request. -func (client ManagedClustersClient) GetUpgradeProfilePreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "resourceName": autorest.Encode("path", resourceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-03-31" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// GetUpgradeProfileSender sends the GetUpgradeProfile request. The method will close the -// http.Response Body if it receives an error. -func (client ManagedClustersClient) GetUpgradeProfileSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// GetUpgradeProfileResponder handles the response to the GetUpgradeProfile request. The method always -// closes the http.Response Body. -func (client ManagedClustersClient) GetUpgradeProfileResponder(resp *http.Response) (result ManagedClusterUpgradeProfile, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// List gets a list of managed clusters in the specified subscription. The operation returns properties of each managed -// cluster. -func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClusterListResultPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.List") - defer func() { - sc := -1 - if result.mclr.Response.Response != nil { - sc = result.mclr.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.mclr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure sending request") - return - } - - result.mclr, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request") - } - - return -} - -// ListPreparer prepares the List request. -func (client ManagedClustersClient) ListPreparer(ctx context.Context) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-03-31" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client ManagedClustersClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client ManagedClustersClient) ListResponder(resp *http.Response) (result ManagedClusterListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client ManagedClustersClient) listNextResults(ctx context.Context, lastResults ManagedClusterListResult) (result ManagedClusterListResult, err error) { - req, err := lastResults.managedClusterListResultPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client ManagedClustersClient) ListComplete(ctx context.Context) (result ManagedClusterListResultIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.List") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.List(ctx) - return -} - -// ListByResourceGroup lists managed clusters in the specified subscription and resource group. The operation returns -// properties of each managed cluster. -// Parameters: -// resourceGroupName - the name of the resource group. -func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ManagedClusterListResultPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ListByResourceGroup") - defer func() { - sc := -1 - if result.mclr.Response.Response != nil { - sc = result.mclr.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { - return result, validation.NewError("containerservice.ManagedClustersClient", "ListByResourceGroup", err.Error()) - } - - result.fn = client.listByResourceGroupNextResults - req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", nil, "Failure preparing request") - return - } - - resp, err := client.ListByResourceGroupSender(req) - if err != nil { - result.mclr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure sending request") - return - } - - result.mclr, err = client.ListByResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request") - } - - return -} - -// ListByResourceGroupPreparer prepares the ListByResourceGroup request. -func (client ManagedClustersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-03-31" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the -// http.Response Body if it receives an error. -func (client ManagedClustersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always -// closes the http.Response Body. -func (client ManagedClustersClient) ListByResourceGroupResponder(resp *http.Response) (result ManagedClusterListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByResourceGroupNextResults retrieves the next set of results, if any. -func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.Context, lastResults ManagedClusterListResult) (result ManagedClusterListResult, err error) { - req, err := lastResults.managedClusterListResultPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByResourceGroupSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - } - return -} - -// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. -func (client ManagedClustersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ManagedClusterListResultIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ListByResourceGroup") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) - return -} - -// ListClusterAdminCredentials gets cluster admin credential of the managed cluster with a specified resource group and -// name. -// Parameters: -// resourceGroupName - the name of the resource group. -// resourceName - the name of the managed cluster resource. -func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Context, resourceGroupName string, resourceName string) (result CredentialResults, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ListClusterAdminCredentials") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { - return result, validation.NewError("containerservice.ManagedClustersClient", "ListClusterAdminCredentials", err.Error()) - } - - req, err := client.ListClusterAdminCredentialsPreparer(ctx, resourceGroupName, resourceName) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", nil, "Failure preparing request") - return - } - - resp, err := client.ListClusterAdminCredentialsSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure sending request") - return - } - - result, err = client.ListClusterAdminCredentialsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request") - } - - return -} - -// ListClusterAdminCredentialsPreparer prepares the ListClusterAdminCredentials request. -func (client ManagedClustersClient) ListClusterAdminCredentialsPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "resourceName": autorest.Encode("path", resourceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-03-31" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListClusterAdminCredentialsSender sends the ListClusterAdminCredentials request. The method will close the -// http.Response Body if it receives an error. -func (client ManagedClustersClient) ListClusterAdminCredentialsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// ListClusterAdminCredentialsResponder handles the response to the ListClusterAdminCredentials request. The method always -// closes the http.Response Body. -func (client ManagedClustersClient) ListClusterAdminCredentialsResponder(resp *http.Response) (result CredentialResults, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// ListClusterUserCredentials gets cluster user credential of the managed cluster with a specified resource group and -// name. -// Parameters: -// resourceGroupName - the name of the resource group. -// resourceName - the name of the managed cluster resource. -func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Context, resourceGroupName string, resourceName string) (result CredentialResults, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ListClusterUserCredentials") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { - return result, validation.NewError("containerservice.ManagedClustersClient", "ListClusterUserCredentials", err.Error()) - } - - req, err := client.ListClusterUserCredentialsPreparer(ctx, resourceGroupName, resourceName) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", nil, "Failure preparing request") - return - } - - resp, err := client.ListClusterUserCredentialsSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure sending request") - return - } - - result, err = client.ListClusterUserCredentialsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request") - } - - return -} - -// ListClusterUserCredentialsPreparer prepares the ListClusterUserCredentials request. -func (client ManagedClustersClient) ListClusterUserCredentialsPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "resourceName": autorest.Encode("path", resourceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-03-31" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterUserCredential", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListClusterUserCredentialsSender sends the ListClusterUserCredentials request. The method will close the -// http.Response Body if it receives an error. -func (client ManagedClustersClient) ListClusterUserCredentialsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// ListClusterUserCredentialsResponder handles the response to the ListClusterUserCredentials request. The method always -// closes the http.Response Body. -func (client ManagedClustersClient) ListClusterUserCredentialsResponder(resp *http.Response) (result CredentialResults, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// ResetAADProfile update the AAD Profile for a managed cluster. -// Parameters: -// resourceGroupName - the name of the resource group. -// resourceName - the name of the managed cluster resource. -// parameters - parameters supplied to the Reset AAD Profile operation for a Managed Cluster. -func (client ManagedClustersClient) ResetAADProfile(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedClusterAADProfile) (result ManagedClustersResetAADProfileFuture, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ResetAADProfile") - defer func() { - sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.ClientAppID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.ServerAppID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("containerservice.ManagedClustersClient", "ResetAADProfile", err.Error()) - } - - req, err := client.ResetAADProfilePreparer(ctx, resourceGroupName, resourceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ResetAADProfile", nil, "Failure preparing request") - return - } - - result, err = client.ResetAADProfileSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ResetAADProfile", result.Response(), "Failure sending request") - return - } - - return -} - -// ResetAADProfilePreparer prepares the ResetAADProfile request. -func (client ManagedClustersClient) ResetAADProfilePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedClusterAADProfile) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "resourceName": autorest.Encode("path", resourceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-03-31" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ResetAADProfileSender sends the ResetAADProfile request. The method will close the -// http.Response Body if it receives an error. -func (client ManagedClustersClient) ResetAADProfileSender(req *http.Request) (future ManagedClustersResetAADProfileFuture, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return -} - -// ResetAADProfileResponder handles the response to the ResetAADProfile request. The method always -// closes the http.Response Body. -func (client ManagedClustersClient) ResetAADProfileResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// ResetServicePrincipalProfile update the service principal Profile for a managed cluster. -// Parameters: -// resourceGroupName - the name of the resource group. -// resourceName - the name of the managed cluster resource. -// parameters - parameters supplied to the Reset Service Principal Profile operation for a Managed Cluster. -func (client ManagedClustersClient) ResetServicePrincipalProfile(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedClusterServicePrincipalProfile) (result ManagedClustersResetServicePrincipalProfileFuture, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ResetServicePrincipalProfile") - defer func() { - sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.ClientID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("containerservice.ManagedClustersClient", "ResetServicePrincipalProfile", err.Error()) - } - - req, err := client.ResetServicePrincipalProfilePreparer(ctx, resourceGroupName, resourceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ResetServicePrincipalProfile", nil, "Failure preparing request") - return - } - - result, err = client.ResetServicePrincipalProfileSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ResetServicePrincipalProfile", result.Response(), "Failure sending request") - return - } - - return -} - -// ResetServicePrincipalProfilePreparer prepares the ResetServicePrincipalProfile request. -func (client ManagedClustersClient) ResetServicePrincipalProfilePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedClusterServicePrincipalProfile) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "resourceName": autorest.Encode("path", resourceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-03-31" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ResetServicePrincipalProfileSender sends the ResetServicePrincipalProfile request. The method will close the -// http.Response Body if it receives an error. -func (client ManagedClustersClient) ResetServicePrincipalProfileSender(req *http.Request) (future ManagedClustersResetServicePrincipalProfileFuture, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return -} - -// ResetServicePrincipalProfileResponder handles the response to the ResetServicePrincipalProfile request. The method always -// closes the http.Response Body. -func (client ManagedClustersClient) ResetServicePrincipalProfileResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// UpdateTags updates a managed cluster with the specified tags. -// Parameters: -// resourceGroupName - the name of the resource group. -// resourceName - the name of the managed cluster resource. -// parameters - parameters supplied to the Update Managed Cluster Tags operation. -func (client ManagedClustersClient) UpdateTags(ctx context.Context, resourceGroupName string, resourceName string, parameters TagsObject) (result ManagedClustersUpdateTagsFuture, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.UpdateTags") - defer func() { - sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { - return result, validation.NewError("containerservice.ManagedClustersClient", "UpdateTags", err.Error()) - } - - req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, resourceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "UpdateTags", nil, "Failure preparing request") - return - } - - result, err = client.UpdateTagsSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "UpdateTags", result.Response(), "Failure sending request") - return - } - - return -} - -// UpdateTagsPreparer prepares the UpdateTags request. -func (client ManagedClustersClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters TagsObject) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "resourceName": autorest.Encode("path", resourceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-03-31" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// UpdateTagsSender sends the UpdateTags request. The method will close the -// http.Response Body if it receives an error. -func (client ManagedClustersClient) UpdateTagsSender(req *http.Request) (future ManagedClustersUpdateTagsFuture, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return -} - -// UpdateTagsResponder handles the response to the UpdateTags request. The method always -// closes the http.Response Body. -func (client ManagedClustersClient) UpdateTagsResponder(resp *http.Response) (result ManagedCluster, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/models.go deleted file mode 100644 index 29b97b40794c..000000000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/models.go +++ /dev/null @@ -1,1927 +0,0 @@ -package containerservice - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "encoding/json" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/to" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// The package's fully qualified name. -const fqdn = "github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice" - -// NetworkPlugin enumerates the values for network plugin. -type NetworkPlugin string - -const ( - // Azure ... - Azure NetworkPlugin = "azure" - // Kubenet ... - Kubenet NetworkPlugin = "kubenet" -) - -// PossibleNetworkPluginValues returns an array of possible values for the NetworkPlugin const type. -func PossibleNetworkPluginValues() []NetworkPlugin { - return []NetworkPlugin{Azure, Kubenet} -} - -// NetworkPolicy enumerates the values for network policy. -type NetworkPolicy string - -const ( - // Calico ... - Calico NetworkPolicy = "calico" -) - -// PossibleNetworkPolicyValues returns an array of possible values for the NetworkPolicy const type. -func PossibleNetworkPolicyValues() []NetworkPolicy { - return []NetworkPolicy{Calico} -} - -// OrchestratorTypes enumerates the values for orchestrator types. -type OrchestratorTypes string - -const ( - // Custom ... - Custom OrchestratorTypes = "Custom" - // DCOS ... - DCOS OrchestratorTypes = "DCOS" - // DockerCE ... - DockerCE OrchestratorTypes = "DockerCE" - // Kubernetes ... - Kubernetes OrchestratorTypes = "Kubernetes" - // Swarm ... - Swarm OrchestratorTypes = "Swarm" -) - -// PossibleOrchestratorTypesValues returns an array of possible values for the OrchestratorTypes const type. -func PossibleOrchestratorTypesValues() []OrchestratorTypes { - return []OrchestratorTypes{Custom, DCOS, DockerCE, Kubernetes, Swarm} -} - -// OSType enumerates the values for os type. -type OSType string - -const ( - // Linux ... - Linux OSType = "Linux" - // Windows ... - Windows OSType = "Windows" -) - -// PossibleOSTypeValues returns an array of possible values for the OSType const type. -func PossibleOSTypeValues() []OSType { - return []OSType{Linux, Windows} -} - -// StorageProfileTypes enumerates the values for storage profile types. -type StorageProfileTypes string - -const ( - // ManagedDisks ... - ManagedDisks StorageProfileTypes = "ManagedDisks" - // StorageAccount ... - StorageAccount StorageProfileTypes = "StorageAccount" -) - -// PossibleStorageProfileTypesValues returns an array of possible values for the StorageProfileTypes const type. -func PossibleStorageProfileTypesValues() []StorageProfileTypes { - return []StorageProfileTypes{ManagedDisks, StorageAccount} -} - -// VMSizeTypes enumerates the values for vm size types. -type VMSizeTypes string - -const ( - // StandardA1 ... - StandardA1 VMSizeTypes = "Standard_A1" - // StandardA10 ... - StandardA10 VMSizeTypes = "Standard_A10" - // StandardA11 ... - StandardA11 VMSizeTypes = "Standard_A11" - // StandardA1V2 ... - StandardA1V2 VMSizeTypes = "Standard_A1_v2" - // StandardA2 ... - StandardA2 VMSizeTypes = "Standard_A2" - // StandardA2mV2 ... - StandardA2mV2 VMSizeTypes = "Standard_A2m_v2" - // StandardA2V2 ... - StandardA2V2 VMSizeTypes = "Standard_A2_v2" - // StandardA3 ... - StandardA3 VMSizeTypes = "Standard_A3" - // StandardA4 ... - StandardA4 VMSizeTypes = "Standard_A4" - // StandardA4mV2 ... - StandardA4mV2 VMSizeTypes = "Standard_A4m_v2" - // StandardA4V2 ... - StandardA4V2 VMSizeTypes = "Standard_A4_v2" - // StandardA5 ... - StandardA5 VMSizeTypes = "Standard_A5" - // StandardA6 ... - StandardA6 VMSizeTypes = "Standard_A6" - // StandardA7 ... - StandardA7 VMSizeTypes = "Standard_A7" - // StandardA8 ... - StandardA8 VMSizeTypes = "Standard_A8" - // StandardA8mV2 ... - StandardA8mV2 VMSizeTypes = "Standard_A8m_v2" - // StandardA8V2 ... - StandardA8V2 VMSizeTypes = "Standard_A8_v2" - // StandardA9 ... - StandardA9 VMSizeTypes = "Standard_A9" - // StandardB2ms ... - StandardB2ms VMSizeTypes = "Standard_B2ms" - // StandardB2s ... - StandardB2s VMSizeTypes = "Standard_B2s" - // StandardB4ms ... - StandardB4ms VMSizeTypes = "Standard_B4ms" - // StandardB8ms ... - StandardB8ms VMSizeTypes = "Standard_B8ms" - // StandardD1 ... - StandardD1 VMSizeTypes = "Standard_D1" - // StandardD11 ... - StandardD11 VMSizeTypes = "Standard_D11" - // StandardD11V2 ... - StandardD11V2 VMSizeTypes = "Standard_D11_v2" - // StandardD11V2Promo ... - StandardD11V2Promo VMSizeTypes = "Standard_D11_v2_Promo" - // StandardD12 ... - StandardD12 VMSizeTypes = "Standard_D12" - // StandardD12V2 ... - StandardD12V2 VMSizeTypes = "Standard_D12_v2" - // StandardD12V2Promo ... - StandardD12V2Promo VMSizeTypes = "Standard_D12_v2_Promo" - // StandardD13 ... - StandardD13 VMSizeTypes = "Standard_D13" - // StandardD13V2 ... - StandardD13V2 VMSizeTypes = "Standard_D13_v2" - // StandardD13V2Promo ... - StandardD13V2Promo VMSizeTypes = "Standard_D13_v2_Promo" - // StandardD14 ... - StandardD14 VMSizeTypes = "Standard_D14" - // StandardD14V2 ... - StandardD14V2 VMSizeTypes = "Standard_D14_v2" - // StandardD14V2Promo ... - StandardD14V2Promo VMSizeTypes = "Standard_D14_v2_Promo" - // StandardD15V2 ... - StandardD15V2 VMSizeTypes = "Standard_D15_v2" - // StandardD16sV3 ... - StandardD16sV3 VMSizeTypes = "Standard_D16s_v3" - // StandardD16V3 ... - StandardD16V3 VMSizeTypes = "Standard_D16_v3" - // StandardD1V2 ... - StandardD1V2 VMSizeTypes = "Standard_D1_v2" - // StandardD2 ... - StandardD2 VMSizeTypes = "Standard_D2" - // StandardD2sV3 ... - StandardD2sV3 VMSizeTypes = "Standard_D2s_v3" - // StandardD2V2 ... - StandardD2V2 VMSizeTypes = "Standard_D2_v2" - // StandardD2V2Promo ... - StandardD2V2Promo VMSizeTypes = "Standard_D2_v2_Promo" - // StandardD2V3 ... - StandardD2V3 VMSizeTypes = "Standard_D2_v3" - // StandardD3 ... - StandardD3 VMSizeTypes = "Standard_D3" - // StandardD32sV3 ... - StandardD32sV3 VMSizeTypes = "Standard_D32s_v3" - // StandardD32V3 ... - StandardD32V3 VMSizeTypes = "Standard_D32_v3" - // StandardD3V2 ... - StandardD3V2 VMSizeTypes = "Standard_D3_v2" - // StandardD3V2Promo ... - StandardD3V2Promo VMSizeTypes = "Standard_D3_v2_Promo" - // StandardD4 ... - StandardD4 VMSizeTypes = "Standard_D4" - // StandardD4sV3 ... - StandardD4sV3 VMSizeTypes = "Standard_D4s_v3" - // StandardD4V2 ... - StandardD4V2 VMSizeTypes = "Standard_D4_v2" - // StandardD4V2Promo ... - StandardD4V2Promo VMSizeTypes = "Standard_D4_v2_Promo" - // StandardD4V3 ... - StandardD4V3 VMSizeTypes = "Standard_D4_v3" - // StandardD5V2 ... - StandardD5V2 VMSizeTypes = "Standard_D5_v2" - // StandardD5V2Promo ... - StandardD5V2Promo VMSizeTypes = "Standard_D5_v2_Promo" - // StandardD64sV3 ... - StandardD64sV3 VMSizeTypes = "Standard_D64s_v3" - // StandardD64V3 ... - StandardD64V3 VMSizeTypes = "Standard_D64_v3" - // StandardD8sV3 ... - StandardD8sV3 VMSizeTypes = "Standard_D8s_v3" - // StandardD8V3 ... - StandardD8V3 VMSizeTypes = "Standard_D8_v3" - // StandardDS1 ... - StandardDS1 VMSizeTypes = "Standard_DS1" - // StandardDS11 ... - StandardDS11 VMSizeTypes = "Standard_DS11" - // StandardDS11V2 ... - StandardDS11V2 VMSizeTypes = "Standard_DS11_v2" - // StandardDS11V2Promo ... - StandardDS11V2Promo VMSizeTypes = "Standard_DS11_v2_Promo" - // StandardDS12 ... - StandardDS12 VMSizeTypes = "Standard_DS12" - // StandardDS12V2 ... - StandardDS12V2 VMSizeTypes = "Standard_DS12_v2" - // StandardDS12V2Promo ... - StandardDS12V2Promo VMSizeTypes = "Standard_DS12_v2_Promo" - // StandardDS13 ... - StandardDS13 VMSizeTypes = "Standard_DS13" - // StandardDS132V2 ... - StandardDS132V2 VMSizeTypes = "Standard_DS13-2_v2" - // StandardDS134V2 ... - StandardDS134V2 VMSizeTypes = "Standard_DS13-4_v2" - // StandardDS13V2 ... - StandardDS13V2 VMSizeTypes = "Standard_DS13_v2" - // StandardDS13V2Promo ... - StandardDS13V2Promo VMSizeTypes = "Standard_DS13_v2_Promo" - // StandardDS14 ... - StandardDS14 VMSizeTypes = "Standard_DS14" - // StandardDS144V2 ... - StandardDS144V2 VMSizeTypes = "Standard_DS14-4_v2" - // StandardDS148V2 ... - StandardDS148V2 VMSizeTypes = "Standard_DS14-8_v2" - // StandardDS14V2 ... - StandardDS14V2 VMSizeTypes = "Standard_DS14_v2" - // StandardDS14V2Promo ... - StandardDS14V2Promo VMSizeTypes = "Standard_DS14_v2_Promo" - // StandardDS15V2 ... - StandardDS15V2 VMSizeTypes = "Standard_DS15_v2" - // StandardDS1V2 ... - StandardDS1V2 VMSizeTypes = "Standard_DS1_v2" - // StandardDS2 ... - StandardDS2 VMSizeTypes = "Standard_DS2" - // StandardDS2V2 ... - StandardDS2V2 VMSizeTypes = "Standard_DS2_v2" - // StandardDS2V2Promo ... - StandardDS2V2Promo VMSizeTypes = "Standard_DS2_v2_Promo" - // StandardDS3 ... - StandardDS3 VMSizeTypes = "Standard_DS3" - // StandardDS3V2 ... - StandardDS3V2 VMSizeTypes = "Standard_DS3_v2" - // StandardDS3V2Promo ... - StandardDS3V2Promo VMSizeTypes = "Standard_DS3_v2_Promo" - // StandardDS4 ... - StandardDS4 VMSizeTypes = "Standard_DS4" - // StandardDS4V2 ... - StandardDS4V2 VMSizeTypes = "Standard_DS4_v2" - // StandardDS4V2Promo ... - StandardDS4V2Promo VMSizeTypes = "Standard_DS4_v2_Promo" - // StandardDS5V2 ... - StandardDS5V2 VMSizeTypes = "Standard_DS5_v2" - // StandardDS5V2Promo ... - StandardDS5V2Promo VMSizeTypes = "Standard_DS5_v2_Promo" - // StandardE16sV3 ... - StandardE16sV3 VMSizeTypes = "Standard_E16s_v3" - // StandardE16V3 ... - StandardE16V3 VMSizeTypes = "Standard_E16_v3" - // StandardE2sV3 ... - StandardE2sV3 VMSizeTypes = "Standard_E2s_v3" - // StandardE2V3 ... - StandardE2V3 VMSizeTypes = "Standard_E2_v3" - // StandardE3216sV3 ... - StandardE3216sV3 VMSizeTypes = "Standard_E32-16s_v3" - // StandardE328sV3 ... - StandardE328sV3 VMSizeTypes = "Standard_E32-8s_v3" - // StandardE32sV3 ... - StandardE32sV3 VMSizeTypes = "Standard_E32s_v3" - // StandardE32V3 ... - StandardE32V3 VMSizeTypes = "Standard_E32_v3" - // StandardE4sV3 ... - StandardE4sV3 VMSizeTypes = "Standard_E4s_v3" - // StandardE4V3 ... - StandardE4V3 VMSizeTypes = "Standard_E4_v3" - // StandardE6416sV3 ... - StandardE6416sV3 VMSizeTypes = "Standard_E64-16s_v3" - // StandardE6432sV3 ... - StandardE6432sV3 VMSizeTypes = "Standard_E64-32s_v3" - // StandardE64sV3 ... - StandardE64sV3 VMSizeTypes = "Standard_E64s_v3" - // StandardE64V3 ... - StandardE64V3 VMSizeTypes = "Standard_E64_v3" - // StandardE8sV3 ... - StandardE8sV3 VMSizeTypes = "Standard_E8s_v3" - // StandardE8V3 ... - StandardE8V3 VMSizeTypes = "Standard_E8_v3" - // StandardF1 ... - StandardF1 VMSizeTypes = "Standard_F1" - // StandardF16 ... - StandardF16 VMSizeTypes = "Standard_F16" - // StandardF16s ... - StandardF16s VMSizeTypes = "Standard_F16s" - // StandardF16sV2 ... - StandardF16sV2 VMSizeTypes = "Standard_F16s_v2" - // StandardF1s ... - StandardF1s VMSizeTypes = "Standard_F1s" - // StandardF2 ... - StandardF2 VMSizeTypes = "Standard_F2" - // StandardF2s ... - StandardF2s VMSizeTypes = "Standard_F2s" - // StandardF2sV2 ... - StandardF2sV2 VMSizeTypes = "Standard_F2s_v2" - // StandardF32sV2 ... - StandardF32sV2 VMSizeTypes = "Standard_F32s_v2" - // StandardF4 ... - StandardF4 VMSizeTypes = "Standard_F4" - // StandardF4s ... - StandardF4s VMSizeTypes = "Standard_F4s" - // StandardF4sV2 ... - StandardF4sV2 VMSizeTypes = "Standard_F4s_v2" - // StandardF64sV2 ... - StandardF64sV2 VMSizeTypes = "Standard_F64s_v2" - // StandardF72sV2 ... - StandardF72sV2 VMSizeTypes = "Standard_F72s_v2" - // StandardF8 ... - StandardF8 VMSizeTypes = "Standard_F8" - // StandardF8s ... - StandardF8s VMSizeTypes = "Standard_F8s" - // StandardF8sV2 ... - StandardF8sV2 VMSizeTypes = "Standard_F8s_v2" - // StandardG1 ... - StandardG1 VMSizeTypes = "Standard_G1" - // StandardG2 ... - StandardG2 VMSizeTypes = "Standard_G2" - // StandardG3 ... - StandardG3 VMSizeTypes = "Standard_G3" - // StandardG4 ... - StandardG4 VMSizeTypes = "Standard_G4" - // StandardG5 ... - StandardG5 VMSizeTypes = "Standard_G5" - // StandardGS1 ... - StandardGS1 VMSizeTypes = "Standard_GS1" - // StandardGS2 ... - StandardGS2 VMSizeTypes = "Standard_GS2" - // StandardGS3 ... - StandardGS3 VMSizeTypes = "Standard_GS3" - // StandardGS4 ... - StandardGS4 VMSizeTypes = "Standard_GS4" - // StandardGS44 ... - StandardGS44 VMSizeTypes = "Standard_GS4-4" - // StandardGS48 ... - StandardGS48 VMSizeTypes = "Standard_GS4-8" - // StandardGS5 ... - StandardGS5 VMSizeTypes = "Standard_GS5" - // StandardGS516 ... - StandardGS516 VMSizeTypes = "Standard_GS5-16" - // StandardGS58 ... - StandardGS58 VMSizeTypes = "Standard_GS5-8" - // StandardH16 ... - StandardH16 VMSizeTypes = "Standard_H16" - // StandardH16m ... - StandardH16m VMSizeTypes = "Standard_H16m" - // StandardH16mr ... - StandardH16mr VMSizeTypes = "Standard_H16mr" - // StandardH16r ... - StandardH16r VMSizeTypes = "Standard_H16r" - // StandardH8 ... - StandardH8 VMSizeTypes = "Standard_H8" - // StandardH8m ... - StandardH8m VMSizeTypes = "Standard_H8m" - // StandardL16s ... - StandardL16s VMSizeTypes = "Standard_L16s" - // StandardL32s ... - StandardL32s VMSizeTypes = "Standard_L32s" - // StandardL4s ... - StandardL4s VMSizeTypes = "Standard_L4s" - // StandardL8s ... - StandardL8s VMSizeTypes = "Standard_L8s" - // StandardM12832ms ... - StandardM12832ms VMSizeTypes = "Standard_M128-32ms" - // StandardM12864ms ... - StandardM12864ms VMSizeTypes = "Standard_M128-64ms" - // StandardM128ms ... - StandardM128ms VMSizeTypes = "Standard_M128ms" - // StandardM128s ... - StandardM128s VMSizeTypes = "Standard_M128s" - // StandardM6416ms ... - StandardM6416ms VMSizeTypes = "Standard_M64-16ms" - // StandardM6432ms ... - StandardM6432ms VMSizeTypes = "Standard_M64-32ms" - // StandardM64ms ... - StandardM64ms VMSizeTypes = "Standard_M64ms" - // StandardM64s ... - StandardM64s VMSizeTypes = "Standard_M64s" - // StandardNC12 ... - StandardNC12 VMSizeTypes = "Standard_NC12" - // StandardNC12sV2 ... - StandardNC12sV2 VMSizeTypes = "Standard_NC12s_v2" - // StandardNC12sV3 ... - StandardNC12sV3 VMSizeTypes = "Standard_NC12s_v3" - // StandardNC24 ... - StandardNC24 VMSizeTypes = "Standard_NC24" - // StandardNC24r ... - StandardNC24r VMSizeTypes = "Standard_NC24r" - // StandardNC24rsV2 ... - StandardNC24rsV2 VMSizeTypes = "Standard_NC24rs_v2" - // StandardNC24rsV3 ... - StandardNC24rsV3 VMSizeTypes = "Standard_NC24rs_v3" - // StandardNC24sV2 ... - StandardNC24sV2 VMSizeTypes = "Standard_NC24s_v2" - // StandardNC24sV3 ... - StandardNC24sV3 VMSizeTypes = "Standard_NC24s_v3" - // StandardNC6 ... - StandardNC6 VMSizeTypes = "Standard_NC6" - // StandardNC6sV2 ... - StandardNC6sV2 VMSizeTypes = "Standard_NC6s_v2" - // StandardNC6sV3 ... - StandardNC6sV3 VMSizeTypes = "Standard_NC6s_v3" - // StandardND12s ... - StandardND12s VMSizeTypes = "Standard_ND12s" - // StandardND24rs ... - StandardND24rs VMSizeTypes = "Standard_ND24rs" - // StandardND24s ... - StandardND24s VMSizeTypes = "Standard_ND24s" - // StandardND6s ... - StandardND6s VMSizeTypes = "Standard_ND6s" - // StandardNV12 ... - StandardNV12 VMSizeTypes = "Standard_NV12" - // StandardNV24 ... - StandardNV24 VMSizeTypes = "Standard_NV24" - // StandardNV6 ... - StandardNV6 VMSizeTypes = "Standard_NV6" -) - -// PossibleVMSizeTypesValues returns an array of possible values for the VMSizeTypes const type. -func PossibleVMSizeTypesValues() []VMSizeTypes { - return []VMSizeTypes{StandardA1, StandardA10, StandardA11, StandardA1V2, StandardA2, StandardA2mV2, StandardA2V2, StandardA3, StandardA4, StandardA4mV2, StandardA4V2, StandardA5, StandardA6, StandardA7, StandardA8, StandardA8mV2, StandardA8V2, StandardA9, StandardB2ms, StandardB2s, StandardB4ms, StandardB8ms, StandardD1, StandardD11, StandardD11V2, StandardD11V2Promo, StandardD12, StandardD12V2, StandardD12V2Promo, StandardD13, StandardD13V2, StandardD13V2Promo, StandardD14, StandardD14V2, StandardD14V2Promo, StandardD15V2, StandardD16sV3, StandardD16V3, StandardD1V2, StandardD2, StandardD2sV3, StandardD2V2, StandardD2V2Promo, StandardD2V3, StandardD3, StandardD32sV3, StandardD32V3, StandardD3V2, StandardD3V2Promo, StandardD4, StandardD4sV3, StandardD4V2, StandardD4V2Promo, StandardD4V3, StandardD5V2, StandardD5V2Promo, StandardD64sV3, StandardD64V3, StandardD8sV3, StandardD8V3, StandardDS1, StandardDS11, StandardDS11V2, StandardDS11V2Promo, StandardDS12, StandardDS12V2, StandardDS12V2Promo, StandardDS13, StandardDS132V2, StandardDS134V2, StandardDS13V2, StandardDS13V2Promo, StandardDS14, StandardDS144V2, StandardDS148V2, StandardDS14V2, StandardDS14V2Promo, StandardDS15V2, StandardDS1V2, StandardDS2, StandardDS2V2, StandardDS2V2Promo, StandardDS3, StandardDS3V2, StandardDS3V2Promo, StandardDS4, StandardDS4V2, StandardDS4V2Promo, StandardDS5V2, StandardDS5V2Promo, StandardE16sV3, StandardE16V3, StandardE2sV3, StandardE2V3, StandardE3216sV3, StandardE328sV3, StandardE32sV3, StandardE32V3, StandardE4sV3, StandardE4V3, StandardE6416sV3, StandardE6432sV3, StandardE64sV3, StandardE64V3, StandardE8sV3, StandardE8V3, StandardF1, StandardF16, StandardF16s, StandardF16sV2, StandardF1s, StandardF2, StandardF2s, StandardF2sV2, StandardF32sV2, StandardF4, StandardF4s, StandardF4sV2, StandardF64sV2, StandardF72sV2, StandardF8, StandardF8s, StandardF8sV2, StandardG1, StandardG2, StandardG3, StandardG4, StandardG5, StandardGS1, StandardGS2, StandardGS3, StandardGS4, StandardGS44, StandardGS48, StandardGS5, StandardGS516, StandardGS58, StandardH16, StandardH16m, StandardH16mr, StandardH16r, StandardH8, StandardH8m, StandardL16s, StandardL32s, StandardL4s, StandardL8s, StandardM12832ms, StandardM12864ms, StandardM128ms, StandardM128s, StandardM6416ms, StandardM6432ms, StandardM64ms, StandardM64s, StandardNC12, StandardNC12sV2, StandardNC12sV3, StandardNC24, StandardNC24r, StandardNC24rsV2, StandardNC24rsV3, StandardNC24sV2, StandardNC24sV3, StandardNC6, StandardNC6sV2, StandardNC6sV3, StandardND12s, StandardND24rs, StandardND24s, StandardND6s, StandardNV12, StandardNV24, StandardNV6} -} - -// AccessProfile profile for enabling a user to access a managed cluster. -type AccessProfile struct { - // KubeConfig - Base64-encoded Kubernetes configuration file. - KubeConfig *[]byte `json:"kubeConfig,omitempty"` -} - -// AgentPoolProfile profile for the container service agent pool. -type AgentPoolProfile struct { - // Name - Unique name of the agent pool profile in the context of the subscription and resource group. - Name *string `json:"name,omitempty"` - // Count - Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1. - Count *int32 `json:"count,omitempty"` - // VMSize - Size of agent VMs. Possible values include: 'StandardA1', 'StandardA10', 'StandardA11', 'StandardA1V2', 'StandardA2', 'StandardA2V2', 'StandardA2mV2', 'StandardA3', 'StandardA4', 'StandardA4V2', 'StandardA4mV2', 'StandardA5', 'StandardA6', 'StandardA7', 'StandardA8', 'StandardA8V2', 'StandardA8mV2', 'StandardA9', 'StandardB2ms', 'StandardB2s', 'StandardB4ms', 'StandardB8ms', 'StandardD1', 'StandardD11', 'StandardD11V2', 'StandardD11V2Promo', 'StandardD12', 'StandardD12V2', 'StandardD12V2Promo', 'StandardD13', 'StandardD13V2', 'StandardD13V2Promo', 'StandardD14', 'StandardD14V2', 'StandardD14V2Promo', 'StandardD15V2', 'StandardD16V3', 'StandardD16sV3', 'StandardD1V2', 'StandardD2', 'StandardD2V2', 'StandardD2V2Promo', 'StandardD2V3', 'StandardD2sV3', 'StandardD3', 'StandardD32V3', 'StandardD32sV3', 'StandardD3V2', 'StandardD3V2Promo', 'StandardD4', 'StandardD4V2', 'StandardD4V2Promo', 'StandardD4V3', 'StandardD4sV3', 'StandardD5V2', 'StandardD5V2Promo', 'StandardD64V3', 'StandardD64sV3', 'StandardD8V3', 'StandardD8sV3', 'StandardDS1', 'StandardDS11', 'StandardDS11V2', 'StandardDS11V2Promo', 'StandardDS12', 'StandardDS12V2', 'StandardDS12V2Promo', 'StandardDS13', 'StandardDS132V2', 'StandardDS134V2', 'StandardDS13V2', 'StandardDS13V2Promo', 'StandardDS14', 'StandardDS144V2', 'StandardDS148V2', 'StandardDS14V2', 'StandardDS14V2Promo', 'StandardDS15V2', 'StandardDS1V2', 'StandardDS2', 'StandardDS2V2', 'StandardDS2V2Promo', 'StandardDS3', 'StandardDS3V2', 'StandardDS3V2Promo', 'StandardDS4', 'StandardDS4V2', 'StandardDS4V2Promo', 'StandardDS5V2', 'StandardDS5V2Promo', 'StandardE16V3', 'StandardE16sV3', 'StandardE2V3', 'StandardE2sV3', 'StandardE3216sV3', 'StandardE328sV3', 'StandardE32V3', 'StandardE32sV3', 'StandardE4V3', 'StandardE4sV3', 'StandardE6416sV3', 'StandardE6432sV3', 'StandardE64V3', 'StandardE64sV3', 'StandardE8V3', 'StandardE8sV3', 'StandardF1', 'StandardF16', 'StandardF16s', 'StandardF16sV2', 'StandardF1s', 'StandardF2', 'StandardF2s', 'StandardF2sV2', 'StandardF32sV2', 'StandardF4', 'StandardF4s', 'StandardF4sV2', 'StandardF64sV2', 'StandardF72sV2', 'StandardF8', 'StandardF8s', 'StandardF8sV2', 'StandardG1', 'StandardG2', 'StandardG3', 'StandardG4', 'StandardG5', 'StandardGS1', 'StandardGS2', 'StandardGS3', 'StandardGS4', 'StandardGS44', 'StandardGS48', 'StandardGS5', 'StandardGS516', 'StandardGS58', 'StandardH16', 'StandardH16m', 'StandardH16mr', 'StandardH16r', 'StandardH8', 'StandardH8m', 'StandardL16s', 'StandardL32s', 'StandardL4s', 'StandardL8s', 'StandardM12832ms', 'StandardM12864ms', 'StandardM128ms', 'StandardM128s', 'StandardM6416ms', 'StandardM6432ms', 'StandardM64ms', 'StandardM64s', 'StandardNC12', 'StandardNC12sV2', 'StandardNC12sV3', 'StandardNC24', 'StandardNC24r', 'StandardNC24rsV2', 'StandardNC24rsV3', 'StandardNC24sV2', 'StandardNC24sV3', 'StandardNC6', 'StandardNC6sV2', 'StandardNC6sV3', 'StandardND12s', 'StandardND24rs', 'StandardND24s', 'StandardND6s', 'StandardNV12', 'StandardNV24', 'StandardNV6' - VMSize VMSizeTypes `json:"vmSize,omitempty"` - // OsDiskSizeGB - OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified. - OsDiskSizeGB *int32 `json:"osDiskSizeGB,omitempty"` - // DNSPrefix - DNS prefix to be used to create the FQDN for the agent pool. - DNSPrefix *string `json:"dnsPrefix,omitempty"` - // Fqdn - FQDN for the agent pool. - Fqdn *string `json:"fqdn,omitempty"` - // Ports - Ports number array used to expose on this agent pool. The default opened ports are different based on your choice of orchestrator. - Ports *[]int32 `json:"ports,omitempty"` - // StorageProfile - Storage profile specifies what kind of storage used. Choose from StorageAccount and ManagedDisks. Leave it empty, we will choose for you based on the orchestrator choice. Possible values include: 'StorageAccount', 'ManagedDisks' - StorageProfile StorageProfileTypes `json:"storageProfile,omitempty"` - // VnetSubnetID - VNet SubnetID specifies the VNet's subnet identifier. - VnetSubnetID *string `json:"vnetSubnetID,omitempty"` - // OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows' - OsType OSType `json:"osType,omitempty"` -} - -// ContainerService container service. -type ContainerService struct { - autorest.Response `json:"-"` - // Properties - Properties of the container service. - *Properties `json:"properties,omitempty"` - // ID - Resource Id - ID *string `json:"id,omitempty"` - // Name - Resource name - Name *string `json:"name,omitempty"` - // Type - Resource type - Type *string `json:"type,omitempty"` - // Location - Resource location - Location *string `json:"location,omitempty"` - // Tags - Resource tags - Tags map[string]*string `json:"tags"` -} - -// MarshalJSON is the custom marshaler for ContainerService. -func (cs ContainerService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if cs.Properties != nil { - objectMap["properties"] = cs.Properties - } - if cs.ID != nil { - objectMap["id"] = cs.ID - } - if cs.Name != nil { - objectMap["name"] = cs.Name - } - if cs.Type != nil { - objectMap["type"] = cs.Type - } - if cs.Location != nil { - objectMap["location"] = cs.Location - } - if cs.Tags != nil { - objectMap["tags"] = cs.Tags - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for ContainerService struct. -func (cs *ContainerService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var properties Properties - err = json.Unmarshal(*v, &properties) - if err != nil { - return err - } - cs.Properties = &properties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - cs.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - cs.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cs.Type = &typeVar - } - case "location": - if v != nil { - var location string - err = json.Unmarshal(*v, &location) - if err != nil { - return err - } - cs.Location = &location - } - case "tags": - if v != nil { - var tags map[string]*string - err = json.Unmarshal(*v, &tags) - if err != nil { - return err - } - cs.Tags = tags - } - } - } - - return nil -} - -// ContainerServicesCreateOrUpdateFutureType an abstraction for monitoring and retrieving the results of a -// long-running operation. -type ContainerServicesCreateOrUpdateFutureType struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *ContainerServicesCreateOrUpdateFutureType) Result(client ContainerServicesClient) (cs ContainerService, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesCreateOrUpdateFutureType", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("containerservice.ContainerServicesCreateOrUpdateFutureType") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if cs.Response.Response, err = future.GetResult(sender); err == nil && cs.Response.Response.StatusCode != http.StatusNoContent { - cs, err = client.CreateOrUpdateResponder(cs.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesCreateOrUpdateFutureType", "Result", cs.Response.Response, "Failure responding to request") - } - } - return -} - -// ContainerServicesDeleteFutureType an abstraction for monitoring and retrieving the results of a -// long-running operation. -type ContainerServicesDeleteFutureType struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *ContainerServicesDeleteFutureType) Result(client ContainerServicesClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesDeleteFutureType", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("containerservice.ContainerServicesDeleteFutureType") - return - } - ar.Response = future.Response() - return -} - -// CredentialResult the credential result response. -type CredentialResult struct { - // Name - The name of the credential. - Name *string `json:"name,omitempty"` - // Value - Base64-encoded Kubernetes configuration file. - Value *[]byte `json:"value,omitempty"` -} - -// CredentialResults the list of credential result response. -type CredentialResults struct { - autorest.Response `json:"-"` - // Kubeconfigs - Base64-encoded Kubernetes configuration file. - Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` -} - -// CustomProfile properties to configure a custom container service cluster. -type CustomProfile struct { - // Orchestrator - The name of the custom orchestrator to use. - Orchestrator *string `json:"orchestrator,omitempty"` -} - -// DiagnosticsProfile profile for diagnostics on the container service cluster. -type DiagnosticsProfile struct { - // VMDiagnostics - Profile for diagnostics on the container service VMs. - VMDiagnostics *VMDiagnostics `json:"vmDiagnostics,omitempty"` -} - -// KeyVaultSecretRef reference to a secret stored in Azure Key Vault. -type KeyVaultSecretRef struct { - // VaultID - Key vault identifier. - VaultID *string `json:"vaultID,omitempty"` - // SecretName - The secret name. - SecretName *string `json:"secretName,omitempty"` - // Version - The secret version. - Version *string `json:"version,omitempty"` -} - -// LinuxProfile profile for Linux VMs in the container service cluster. -type LinuxProfile struct { - // AdminUsername - The administrator username to use for Linux VMs. - AdminUsername *string `json:"adminUsername,omitempty"` - // SSH - SSH configuration for Linux-based VMs running on Azure. - SSH *SSHConfiguration `json:"ssh,omitempty"` -} - -// ListResult the response from the List Container Services operation. -type ListResult struct { - autorest.Response `json:"-"` - // Value - The list of container services. - Value *[]ContainerService `json:"value,omitempty"` - // NextLink - The URL to get the next set of container service results. - NextLink *string `json:"nextLink,omitempty"` -} - -// ListResultIterator provides access to a complete listing of ContainerService values. -type ListResultIterator struct { - i int - page ListResultPage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *ListResultIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ListResultIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *ListResultIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter ListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter ListResultIterator) Response() ListResult { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter ListResultIterator) Value() ContainerService { - if !iter.page.NotDone() { - return ContainerService{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the ListResultIterator type. -func NewListResultIterator(page ListResultPage) ListResultIterator { - return ListResultIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (lr ListResult) IsEmpty() bool { - return lr.Value == nil || len(*lr.Value) == 0 -} - -// listResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (lr ListResult) listResultPreparer(ctx context.Context) (*http.Request, error) { - if lr.NextLink == nil || len(to.String(lr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(lr.NextLink))) -} - -// ListResultPage contains a page of ContainerService values. -type ListResultPage struct { - fn func(context.Context, ListResult) (ListResult, error) - lr ListResult -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *ListResultPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ListResultPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.lr) - if err != nil { - return err - } - page.lr = next - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *ListResultPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page ListResultPage) NotDone() bool { - return !page.lr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page ListResultPage) Response() ListResult { - return page.lr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page ListResultPage) Values() []ContainerService { - if page.lr.IsEmpty() { - return nil - } - return *page.lr.Value -} - -// Creates a new instance of the ListResultPage type. -func NewListResultPage(getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage { - return ListResultPage{fn: getNextPage} -} - -// ManagedCluster managed cluster. -type ManagedCluster struct { - autorest.Response `json:"-"` - // ManagedClusterProperties - Properties of a managed cluster. - *ManagedClusterProperties `json:"properties,omitempty"` - // ID - Resource Id - ID *string `json:"id,omitempty"` - // Name - Resource name - Name *string `json:"name,omitempty"` - // Type - Resource type - Type *string `json:"type,omitempty"` - // Location - Resource location - Location *string `json:"location,omitempty"` - // Tags - Resource tags - Tags map[string]*string `json:"tags"` -} - -// MarshalJSON is the custom marshaler for ManagedCluster. -func (mc ManagedCluster) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if mc.ManagedClusterProperties != nil { - objectMap["properties"] = mc.ManagedClusterProperties - } - if mc.ID != nil { - objectMap["id"] = mc.ID - } - if mc.Name != nil { - objectMap["name"] = mc.Name - } - if mc.Type != nil { - objectMap["type"] = mc.Type - } - if mc.Location != nil { - objectMap["location"] = mc.Location - } - if mc.Tags != nil { - objectMap["tags"] = mc.Tags - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for ManagedCluster struct. -func (mc *ManagedCluster) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var managedClusterProperties ManagedClusterProperties - err = json.Unmarshal(*v, &managedClusterProperties) - if err != nil { - return err - } - mc.ManagedClusterProperties = &managedClusterProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - mc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - mc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mc.Type = &typeVar - } - case "location": - if v != nil { - var location string - err = json.Unmarshal(*v, &location) - if err != nil { - return err - } - mc.Location = &location - } - case "tags": - if v != nil { - var tags map[string]*string - err = json.Unmarshal(*v, &tags) - if err != nil { - return err - } - mc.Tags = tags - } - } - } - - return nil -} - -// ManagedClusterAADProfile aADProfile specifies attributes for Azure Active Directory integration. -type ManagedClusterAADProfile struct { - // ClientAppID - The client AAD application ID. - ClientAppID *string `json:"clientAppID,omitempty"` - // ServerAppID - The server AAD application ID. - ServerAppID *string `json:"serverAppID,omitempty"` - // ServerAppSecret - The server AAD application secret. - ServerAppSecret *string `json:"serverAppSecret,omitempty"` - // TenantID - The AAD tenant ID to use for authentication. If not specified, will use the tenant of the deployment subscription. - TenantID *string `json:"tenantID,omitempty"` -} - -// ManagedClusterAccessProfile managed cluster Access Profile. -type ManagedClusterAccessProfile struct { - autorest.Response `json:"-"` - // AccessProfile - AccessProfile of a managed cluster. - *AccessProfile `json:"properties,omitempty"` - // ID - Resource Id - ID *string `json:"id,omitempty"` - // Name - Resource name - Name *string `json:"name,omitempty"` - // Type - Resource type - Type *string `json:"type,omitempty"` - // Location - Resource location - Location *string `json:"location,omitempty"` - // Tags - Resource tags - Tags map[string]*string `json:"tags"` -} - -// MarshalJSON is the custom marshaler for ManagedClusterAccessProfile. -func (mcap ManagedClusterAccessProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if mcap.AccessProfile != nil { - objectMap["properties"] = mcap.AccessProfile - } - if mcap.ID != nil { - objectMap["id"] = mcap.ID - } - if mcap.Name != nil { - objectMap["name"] = mcap.Name - } - if mcap.Type != nil { - objectMap["type"] = mcap.Type - } - if mcap.Location != nil { - objectMap["location"] = mcap.Location - } - if mcap.Tags != nil { - objectMap["tags"] = mcap.Tags - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for ManagedClusterAccessProfile struct. -func (mcap *ManagedClusterAccessProfile) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var accessProfile AccessProfile - err = json.Unmarshal(*v, &accessProfile) - if err != nil { - return err - } - mcap.AccessProfile = &accessProfile - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - mcap.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - mcap.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mcap.Type = &typeVar - } - case "location": - if v != nil { - var location string - err = json.Unmarshal(*v, &location) - if err != nil { - return err - } - mcap.Location = &location - } - case "tags": - if v != nil { - var tags map[string]*string - err = json.Unmarshal(*v, &tags) - if err != nil { - return err - } - mcap.Tags = tags - } - } - } - - return nil -} - -// ManagedClusterAddonProfile a Kubernetes add-on profile for a managed cluster. -type ManagedClusterAddonProfile struct { - // Enabled - Whether the add-on is enabled or not. - Enabled *bool `json:"enabled,omitempty"` - // Config - Key-value pairs for configuring an add-on. - Config map[string]*string `json:"config"` -} - -// MarshalJSON is the custom marshaler for ManagedClusterAddonProfile. -func (mcap ManagedClusterAddonProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if mcap.Enabled != nil { - objectMap["enabled"] = mcap.Enabled - } - if mcap.Config != nil { - objectMap["config"] = mcap.Config - } - return json.Marshal(objectMap) -} - -// ManagedClusterAgentPoolProfile profile for the container service agent pool. -type ManagedClusterAgentPoolProfile struct { - // Name - Unique name of the agent pool profile in the context of the subscription and resource group. - Name *string `json:"name,omitempty"` - // Count - Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1. - Count *int32 `json:"count,omitempty"` - // VMSize - Size of agent VMs. Possible values include: 'StandardA1', 'StandardA10', 'StandardA11', 'StandardA1V2', 'StandardA2', 'StandardA2V2', 'StandardA2mV2', 'StandardA3', 'StandardA4', 'StandardA4V2', 'StandardA4mV2', 'StandardA5', 'StandardA6', 'StandardA7', 'StandardA8', 'StandardA8V2', 'StandardA8mV2', 'StandardA9', 'StandardB2ms', 'StandardB2s', 'StandardB4ms', 'StandardB8ms', 'StandardD1', 'StandardD11', 'StandardD11V2', 'StandardD11V2Promo', 'StandardD12', 'StandardD12V2', 'StandardD12V2Promo', 'StandardD13', 'StandardD13V2', 'StandardD13V2Promo', 'StandardD14', 'StandardD14V2', 'StandardD14V2Promo', 'StandardD15V2', 'StandardD16V3', 'StandardD16sV3', 'StandardD1V2', 'StandardD2', 'StandardD2V2', 'StandardD2V2Promo', 'StandardD2V3', 'StandardD2sV3', 'StandardD3', 'StandardD32V3', 'StandardD32sV3', 'StandardD3V2', 'StandardD3V2Promo', 'StandardD4', 'StandardD4V2', 'StandardD4V2Promo', 'StandardD4V3', 'StandardD4sV3', 'StandardD5V2', 'StandardD5V2Promo', 'StandardD64V3', 'StandardD64sV3', 'StandardD8V3', 'StandardD8sV3', 'StandardDS1', 'StandardDS11', 'StandardDS11V2', 'StandardDS11V2Promo', 'StandardDS12', 'StandardDS12V2', 'StandardDS12V2Promo', 'StandardDS13', 'StandardDS132V2', 'StandardDS134V2', 'StandardDS13V2', 'StandardDS13V2Promo', 'StandardDS14', 'StandardDS144V2', 'StandardDS148V2', 'StandardDS14V2', 'StandardDS14V2Promo', 'StandardDS15V2', 'StandardDS1V2', 'StandardDS2', 'StandardDS2V2', 'StandardDS2V2Promo', 'StandardDS3', 'StandardDS3V2', 'StandardDS3V2Promo', 'StandardDS4', 'StandardDS4V2', 'StandardDS4V2Promo', 'StandardDS5V2', 'StandardDS5V2Promo', 'StandardE16V3', 'StandardE16sV3', 'StandardE2V3', 'StandardE2sV3', 'StandardE3216sV3', 'StandardE328sV3', 'StandardE32V3', 'StandardE32sV3', 'StandardE4V3', 'StandardE4sV3', 'StandardE6416sV3', 'StandardE6432sV3', 'StandardE64V3', 'StandardE64sV3', 'StandardE8V3', 'StandardE8sV3', 'StandardF1', 'StandardF16', 'StandardF16s', 'StandardF16sV2', 'StandardF1s', 'StandardF2', 'StandardF2s', 'StandardF2sV2', 'StandardF32sV2', 'StandardF4', 'StandardF4s', 'StandardF4sV2', 'StandardF64sV2', 'StandardF72sV2', 'StandardF8', 'StandardF8s', 'StandardF8sV2', 'StandardG1', 'StandardG2', 'StandardG3', 'StandardG4', 'StandardG5', 'StandardGS1', 'StandardGS2', 'StandardGS3', 'StandardGS4', 'StandardGS44', 'StandardGS48', 'StandardGS5', 'StandardGS516', 'StandardGS58', 'StandardH16', 'StandardH16m', 'StandardH16mr', 'StandardH16r', 'StandardH8', 'StandardH8m', 'StandardL16s', 'StandardL32s', 'StandardL4s', 'StandardL8s', 'StandardM12832ms', 'StandardM12864ms', 'StandardM128ms', 'StandardM128s', 'StandardM6416ms', 'StandardM6432ms', 'StandardM64ms', 'StandardM64s', 'StandardNC12', 'StandardNC12sV2', 'StandardNC12sV3', 'StandardNC24', 'StandardNC24r', 'StandardNC24rsV2', 'StandardNC24rsV3', 'StandardNC24sV2', 'StandardNC24sV3', 'StandardNC6', 'StandardNC6sV2', 'StandardNC6sV3', 'StandardND12s', 'StandardND24rs', 'StandardND24s', 'StandardND6s', 'StandardNV12', 'StandardNV24', 'StandardNV6' - VMSize VMSizeTypes `json:"vmSize,omitempty"` - // OsDiskSizeGB - OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified. - OsDiskSizeGB *int32 `json:"osDiskSizeGB,omitempty"` - // StorageProfile - Storage profile specifies what kind of storage used. Defaults to ManagedDisks. Possible values include: 'StorageAccount', 'ManagedDisks' - StorageProfile StorageProfileTypes `json:"storageProfile,omitempty"` - // VnetSubnetID - VNet SubnetID specifies the VNet's subnet identifier. - VnetSubnetID *string `json:"vnetSubnetID,omitempty"` - // MaxPods - Maximum number of pods that can run on a node. - MaxPods *int32 `json:"maxPods,omitempty"` - // OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows' - OsType OSType `json:"osType,omitempty"` -} - -// ManagedClusterListResult the response from the List Managed Clusters operation. -type ManagedClusterListResult struct { - autorest.Response `json:"-"` - // Value - The list of managed clusters. - Value *[]ManagedCluster `json:"value,omitempty"` - // NextLink - The URL to get the next set of managed cluster results. - NextLink *string `json:"nextLink,omitempty"` -} - -// ManagedClusterListResultIterator provides access to a complete listing of ManagedCluster values. -type ManagedClusterListResultIterator struct { - i int - page ManagedClusterListResultPage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *ManagedClusterListResultIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClusterListResultIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *ManagedClusterListResultIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter ManagedClusterListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter ManagedClusterListResultIterator) Response() ManagedClusterListResult { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter ManagedClusterListResultIterator) Value() ManagedCluster { - if !iter.page.NotDone() { - return ManagedCluster{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the ManagedClusterListResultIterator type. -func NewManagedClusterListResultIterator(page ManagedClusterListResultPage) ManagedClusterListResultIterator { - return ManagedClusterListResultIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (mclr ManagedClusterListResult) IsEmpty() bool { - return mclr.Value == nil || len(*mclr.Value) == 0 -} - -// managedClusterListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (mclr ManagedClusterListResult) managedClusterListResultPreparer(ctx context.Context) (*http.Request, error) { - if mclr.NextLink == nil || len(to.String(mclr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(mclr.NextLink))) -} - -// ManagedClusterListResultPage contains a page of ManagedCluster values. -type ManagedClusterListResultPage struct { - fn func(context.Context, ManagedClusterListResult) (ManagedClusterListResult, error) - mclr ManagedClusterListResult -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *ManagedClusterListResultPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClusterListResultPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.mclr) - if err != nil { - return err - } - page.mclr = next - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *ManagedClusterListResultPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page ManagedClusterListResultPage) NotDone() bool { - return !page.mclr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page ManagedClusterListResultPage) Response() ManagedClusterListResult { - return page.mclr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page ManagedClusterListResultPage) Values() []ManagedCluster { - if page.mclr.IsEmpty() { - return nil - } - return *page.mclr.Value -} - -// Creates a new instance of the ManagedClusterListResultPage type. -func NewManagedClusterListResultPage(getNextPage func(context.Context, ManagedClusterListResult) (ManagedClusterListResult, error)) ManagedClusterListResultPage { - return ManagedClusterListResultPage{fn: getNextPage} -} - -// ManagedClusterPoolUpgradeProfile the list of available upgrade versions. -type ManagedClusterPoolUpgradeProfile struct { - // KubernetesVersion - Kubernetes version (major, minor, patch). - KubernetesVersion *string `json:"kubernetesVersion,omitempty"` - // Name - Pool name. - Name *string `json:"name,omitempty"` - // OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows' - OsType OSType `json:"osType,omitempty"` - // Upgrades - List of orchestrator types and versions available for upgrade. - Upgrades *[]string `json:"upgrades,omitempty"` -} - -// ManagedClusterProperties properties of the managed cluster. -type ManagedClusterProperties struct { - // ProvisioningState - The current deployment or provisioning state, which only appears in the response. - ProvisioningState *string `json:"provisioningState,omitempty"` - // KubernetesVersion - Version of Kubernetes specified when creating the managed cluster. - KubernetesVersion *string `json:"kubernetesVersion,omitempty"` - // DNSPrefix - DNS prefix specified when creating the managed cluster. - DNSPrefix *string `json:"dnsPrefix,omitempty"` - // Fqdn - FQDN for the master pool. - Fqdn *string `json:"fqdn,omitempty"` - // AgentPoolProfiles - Properties of the agent pool. Currently only one agent pool can exist. - AgentPoolProfiles *[]ManagedClusterAgentPoolProfile `json:"agentPoolProfiles,omitempty"` - // LinuxProfile - Profile for Linux VMs in the container service cluster. - LinuxProfile *LinuxProfile `json:"linuxProfile,omitempty"` - // ServicePrincipalProfile - Information about a service principal identity for the cluster to use for manipulating Azure APIs. - ServicePrincipalProfile *ManagedClusterServicePrincipalProfile `json:"servicePrincipalProfile,omitempty"` - // AddonProfiles - Profile of managed cluster add-on. - AddonProfiles map[string]*ManagedClusterAddonProfile `json:"addonProfiles"` - // NodeResourceGroup - Name of the resource group containing agent pool nodes. - NodeResourceGroup *string `json:"nodeResourceGroup,omitempty"` - // EnableRBAC - Whether to enable Kubernetes Role-Based Access Control. - EnableRBAC *bool `json:"enableRBAC,omitempty"` - // NetworkProfile - Profile of network configuration. - NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"` - // AadProfile - Profile of Azure Active Directory configuration. - AadProfile *ManagedClusterAADProfile `json:"aadProfile,omitempty"` -} - -// MarshalJSON is the custom marshaler for ManagedClusterProperties. -func (mcp ManagedClusterProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if mcp.ProvisioningState != nil { - objectMap["provisioningState"] = mcp.ProvisioningState - } - if mcp.KubernetesVersion != nil { - objectMap["kubernetesVersion"] = mcp.KubernetesVersion - } - if mcp.DNSPrefix != nil { - objectMap["dnsPrefix"] = mcp.DNSPrefix - } - if mcp.Fqdn != nil { - objectMap["fqdn"] = mcp.Fqdn - } - if mcp.AgentPoolProfiles != nil { - objectMap["agentPoolProfiles"] = mcp.AgentPoolProfiles - } - if mcp.LinuxProfile != nil { - objectMap["linuxProfile"] = mcp.LinuxProfile - } - if mcp.ServicePrincipalProfile != nil { - objectMap["servicePrincipalProfile"] = mcp.ServicePrincipalProfile - } - if mcp.AddonProfiles != nil { - objectMap["addonProfiles"] = mcp.AddonProfiles - } - if mcp.NodeResourceGroup != nil { - objectMap["nodeResourceGroup"] = mcp.NodeResourceGroup - } - if mcp.EnableRBAC != nil { - objectMap["enableRBAC"] = mcp.EnableRBAC - } - if mcp.NetworkProfile != nil { - objectMap["networkProfile"] = mcp.NetworkProfile - } - if mcp.AadProfile != nil { - objectMap["aadProfile"] = mcp.AadProfile - } - return json.Marshal(objectMap) -} - -// ManagedClustersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type ManagedClustersCreateOrUpdateFuture struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *ManagedClustersCreateOrUpdateFuture) Result(client ManagedClustersClient) (mc ManagedCluster, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersCreateOrUpdateFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if mc.Response.Response, err = future.GetResult(sender); err == nil && mc.Response.Response.StatusCode != http.StatusNoContent { - mc, err = client.CreateOrUpdateResponder(mc.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersCreateOrUpdateFuture", "Result", mc.Response.Response, "Failure responding to request") - } - } - return -} - -// ManagedClustersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type ManagedClustersDeleteFuture struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *ManagedClustersDeleteFuture) Result(client ManagedClustersClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersDeleteFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersDeleteFuture") - return - } - ar.Response = future.Response() - return -} - -// ManagedClusterServicePrincipalProfile information about a service principal identity for the cluster to -// use for manipulating Azure APIs. -type ManagedClusterServicePrincipalProfile struct { - // ClientID - The ID for the service principal. - ClientID *string `json:"clientId,omitempty"` - // Secret - The secret password associated with the service principal in plain text. - Secret *string `json:"secret,omitempty"` -} - -// ManagedClustersResetAADProfileFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type ManagedClustersResetAADProfileFuture struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *ManagedClustersResetAADProfileFuture) Result(client ManagedClustersClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersResetAADProfileFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersResetAADProfileFuture") - return - } - ar.Response = future.Response() - return -} - -// ManagedClustersResetServicePrincipalProfileFuture an abstraction for monitoring and retrieving the -// results of a long-running operation. -type ManagedClustersResetServicePrincipalProfileFuture struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *ManagedClustersResetServicePrincipalProfileFuture) Result(client ManagedClustersClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersResetServicePrincipalProfileFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersResetServicePrincipalProfileFuture") - return - } - ar.Response = future.Response() - return -} - -// ManagedClustersUpdateTagsFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type ManagedClustersUpdateTagsFuture struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *ManagedClustersUpdateTagsFuture) Result(client ManagedClustersClient) (mc ManagedCluster, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersUpdateTagsFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersUpdateTagsFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if mc.Response.Response, err = future.GetResult(sender); err == nil && mc.Response.Response.StatusCode != http.StatusNoContent { - mc, err = client.UpdateTagsResponder(mc.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersUpdateTagsFuture", "Result", mc.Response.Response, "Failure responding to request") - } - } - return -} - -// ManagedClusterUpgradeProfile the list of available upgrades for compute pools. -type ManagedClusterUpgradeProfile struct { - autorest.Response `json:"-"` - // ID - Id of upgrade profile. - ID *string `json:"id,omitempty"` - // Name - Name of upgrade profile. - Name *string `json:"name,omitempty"` - // Type - Type of upgrade profile. - Type *string `json:"type,omitempty"` - // ManagedClusterUpgradeProfileProperties - Properties of upgrade profile. - *ManagedClusterUpgradeProfileProperties `json:"properties,omitempty"` -} - -// MarshalJSON is the custom marshaler for ManagedClusterUpgradeProfile. -func (mcup ManagedClusterUpgradeProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if mcup.ID != nil { - objectMap["id"] = mcup.ID - } - if mcup.Name != nil { - objectMap["name"] = mcup.Name - } - if mcup.Type != nil { - objectMap["type"] = mcup.Type - } - if mcup.ManagedClusterUpgradeProfileProperties != nil { - objectMap["properties"] = mcup.ManagedClusterUpgradeProfileProperties - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for ManagedClusterUpgradeProfile struct. -func (mcup *ManagedClusterUpgradeProfile) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - mcup.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - mcup.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mcup.Type = &typeVar - } - case "properties": - if v != nil { - var managedClusterUpgradeProfileProperties ManagedClusterUpgradeProfileProperties - err = json.Unmarshal(*v, &managedClusterUpgradeProfileProperties) - if err != nil { - return err - } - mcup.ManagedClusterUpgradeProfileProperties = &managedClusterUpgradeProfileProperties - } - } - } - - return nil -} - -// ManagedClusterUpgradeProfileProperties control plane and agent pool upgrade profiles. -type ManagedClusterUpgradeProfileProperties struct { - // ControlPlaneProfile - The list of available upgrade versions for the control plane. - ControlPlaneProfile *ManagedClusterPoolUpgradeProfile `json:"controlPlaneProfile,omitempty"` - // AgentPoolProfiles - The list of available upgrade versions for agent pools. - AgentPoolProfiles *[]ManagedClusterPoolUpgradeProfile `json:"agentPoolProfiles,omitempty"` -} - -// MasterProfile profile for the container service master. -type MasterProfile struct { - // Count - Number of masters (VMs) in the container service cluster. Allowed values are 1, 3, and 5. The default value is 1. - Count *int32 `json:"count,omitempty"` - // DNSPrefix - DNS prefix to be used to create the FQDN for the master pool. - DNSPrefix *string `json:"dnsPrefix,omitempty"` - // VMSize - Size of agent VMs. Possible values include: 'StandardA1', 'StandardA10', 'StandardA11', 'StandardA1V2', 'StandardA2', 'StandardA2V2', 'StandardA2mV2', 'StandardA3', 'StandardA4', 'StandardA4V2', 'StandardA4mV2', 'StandardA5', 'StandardA6', 'StandardA7', 'StandardA8', 'StandardA8V2', 'StandardA8mV2', 'StandardA9', 'StandardB2ms', 'StandardB2s', 'StandardB4ms', 'StandardB8ms', 'StandardD1', 'StandardD11', 'StandardD11V2', 'StandardD11V2Promo', 'StandardD12', 'StandardD12V2', 'StandardD12V2Promo', 'StandardD13', 'StandardD13V2', 'StandardD13V2Promo', 'StandardD14', 'StandardD14V2', 'StandardD14V2Promo', 'StandardD15V2', 'StandardD16V3', 'StandardD16sV3', 'StandardD1V2', 'StandardD2', 'StandardD2V2', 'StandardD2V2Promo', 'StandardD2V3', 'StandardD2sV3', 'StandardD3', 'StandardD32V3', 'StandardD32sV3', 'StandardD3V2', 'StandardD3V2Promo', 'StandardD4', 'StandardD4V2', 'StandardD4V2Promo', 'StandardD4V3', 'StandardD4sV3', 'StandardD5V2', 'StandardD5V2Promo', 'StandardD64V3', 'StandardD64sV3', 'StandardD8V3', 'StandardD8sV3', 'StandardDS1', 'StandardDS11', 'StandardDS11V2', 'StandardDS11V2Promo', 'StandardDS12', 'StandardDS12V2', 'StandardDS12V2Promo', 'StandardDS13', 'StandardDS132V2', 'StandardDS134V2', 'StandardDS13V2', 'StandardDS13V2Promo', 'StandardDS14', 'StandardDS144V2', 'StandardDS148V2', 'StandardDS14V2', 'StandardDS14V2Promo', 'StandardDS15V2', 'StandardDS1V2', 'StandardDS2', 'StandardDS2V2', 'StandardDS2V2Promo', 'StandardDS3', 'StandardDS3V2', 'StandardDS3V2Promo', 'StandardDS4', 'StandardDS4V2', 'StandardDS4V2Promo', 'StandardDS5V2', 'StandardDS5V2Promo', 'StandardE16V3', 'StandardE16sV3', 'StandardE2V3', 'StandardE2sV3', 'StandardE3216sV3', 'StandardE328sV3', 'StandardE32V3', 'StandardE32sV3', 'StandardE4V3', 'StandardE4sV3', 'StandardE6416sV3', 'StandardE6432sV3', 'StandardE64V3', 'StandardE64sV3', 'StandardE8V3', 'StandardE8sV3', 'StandardF1', 'StandardF16', 'StandardF16s', 'StandardF16sV2', 'StandardF1s', 'StandardF2', 'StandardF2s', 'StandardF2sV2', 'StandardF32sV2', 'StandardF4', 'StandardF4s', 'StandardF4sV2', 'StandardF64sV2', 'StandardF72sV2', 'StandardF8', 'StandardF8s', 'StandardF8sV2', 'StandardG1', 'StandardG2', 'StandardG3', 'StandardG4', 'StandardG5', 'StandardGS1', 'StandardGS2', 'StandardGS3', 'StandardGS4', 'StandardGS44', 'StandardGS48', 'StandardGS5', 'StandardGS516', 'StandardGS58', 'StandardH16', 'StandardH16m', 'StandardH16mr', 'StandardH16r', 'StandardH8', 'StandardH8m', 'StandardL16s', 'StandardL32s', 'StandardL4s', 'StandardL8s', 'StandardM12832ms', 'StandardM12864ms', 'StandardM128ms', 'StandardM128s', 'StandardM6416ms', 'StandardM6432ms', 'StandardM64ms', 'StandardM64s', 'StandardNC12', 'StandardNC12sV2', 'StandardNC12sV3', 'StandardNC24', 'StandardNC24r', 'StandardNC24rsV2', 'StandardNC24rsV3', 'StandardNC24sV2', 'StandardNC24sV3', 'StandardNC6', 'StandardNC6sV2', 'StandardNC6sV3', 'StandardND12s', 'StandardND24rs', 'StandardND24s', 'StandardND6s', 'StandardNV12', 'StandardNV24', 'StandardNV6' - VMSize VMSizeTypes `json:"vmSize,omitempty"` - // OsDiskSizeGB - OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified. - OsDiskSizeGB *int32 `json:"osDiskSizeGB,omitempty"` - // VnetSubnetID - VNet SubnetID specifies the VNet's subnet identifier. - VnetSubnetID *string `json:"vnetSubnetID,omitempty"` - // FirstConsecutiveStaticIP - FirstConsecutiveStaticIP used to specify the first static ip of masters. - FirstConsecutiveStaticIP *string `json:"firstConsecutiveStaticIP,omitempty"` - // StorageProfile - Storage profile specifies what kind of storage used. Choose from StorageAccount and ManagedDisks. Leave it empty, we will choose for you based on the orchestrator choice. Possible values include: 'StorageAccount', 'ManagedDisks' - StorageProfile StorageProfileTypes `json:"storageProfile,omitempty"` - // Fqdn - FQDN for the master pool. - Fqdn *string `json:"fqdn,omitempty"` -} - -// NetworkProfile profile of network configuration. -type NetworkProfile struct { - // NetworkPlugin - Network plugin used for building Kubernetes network. Possible values include: 'Azure', 'Kubenet' - NetworkPlugin NetworkPlugin `json:"networkPlugin,omitempty"` - // NetworkPolicy - Network policy used for building Kubernetes network. Possible values include: 'Calico' - NetworkPolicy NetworkPolicy `json:"networkPolicy,omitempty"` - // PodCidr - A CIDR notation IP range from which to assign pod IPs when kubenet is used. - PodCidr *string `json:"podCidr,omitempty"` - // ServiceCidr - A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges. - ServiceCidr *string `json:"serviceCidr,omitempty"` - // DNSServiceIP - An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr. - DNSServiceIP *string `json:"dnsServiceIP,omitempty"` - // DockerBridgeCidr - A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range. - DockerBridgeCidr *string `json:"dockerBridgeCidr,omitempty"` -} - -// OperationListResult the List Compute Operation operation response. -type OperationListResult struct { - autorest.Response `json:"-"` - // Value - The list of compute operations - Value *[]OperationValue `json:"value,omitempty"` -} - -// OperationValue describes the properties of a Compute Operation value. -type OperationValue struct { - // Origin - The origin of the compute operation. - Origin *string `json:"origin,omitempty"` - // Name - The name of the compute operation. - Name *string `json:"name,omitempty"` - // OperationValueDisplay - Describes the properties of a Compute Operation Value Display. - *OperationValueDisplay `json:"display,omitempty"` -} - -// MarshalJSON is the custom marshaler for OperationValue. -func (ov OperationValue) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ov.Origin != nil { - objectMap["origin"] = ov.Origin - } - if ov.Name != nil { - objectMap["name"] = ov.Name - } - if ov.OperationValueDisplay != nil { - objectMap["display"] = ov.OperationValueDisplay - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for OperationValue struct. -func (ov *OperationValue) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "origin": - if v != nil { - var origin string - err = json.Unmarshal(*v, &origin) - if err != nil { - return err - } - ov.Origin = &origin - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ov.Name = &name - } - case "display": - if v != nil { - var operationValueDisplay OperationValueDisplay - err = json.Unmarshal(*v, &operationValueDisplay) - if err != nil { - return err - } - ov.OperationValueDisplay = &operationValueDisplay - } - } - } - - return nil -} - -// OperationValueDisplay describes the properties of a Compute Operation Value Display. -type OperationValueDisplay struct { - // Operation - The display name of the compute operation. - Operation *string `json:"operation,omitempty"` - // Resource - The display name of the resource the operation applies to. - Resource *string `json:"resource,omitempty"` - // Description - The description of the operation. - Description *string `json:"description,omitempty"` - // Provider - The resource provider for the operation. - Provider *string `json:"provider,omitempty"` -} - -// OrchestratorProfile contains information about orchestrator. -type OrchestratorProfile struct { - // OrchestratorType - Orchestrator type. - OrchestratorType *string `json:"orchestratorType,omitempty"` - // OrchestratorVersion - Orchestrator version (major, minor, patch). - OrchestratorVersion *string `json:"orchestratorVersion,omitempty"` -} - -// OrchestratorProfileType profile for the container service orchestrator. -type OrchestratorProfileType struct { - // OrchestratorType - The orchestrator to use to manage container service cluster resources. Valid values are Kubernetes, Swarm, DCOS, DockerCE and Custom. Possible values include: 'Kubernetes', 'Swarm', 'DCOS', 'DockerCE', 'Custom' - OrchestratorType OrchestratorTypes `json:"orchestratorType,omitempty"` - // OrchestratorVersion - The version of the orchestrator to use. You can specify the major.minor.patch part of the actual version.For example, you can specify version as "1.6.11". - OrchestratorVersion *string `json:"orchestratorVersion,omitempty"` -} - -// OrchestratorVersionProfile the profile of an orchestrator and its available versions. -type OrchestratorVersionProfile struct { - // OrchestratorType - Orchestrator type. - OrchestratorType *string `json:"orchestratorType,omitempty"` - // OrchestratorVersion - Orchestrator version (major, minor, patch). - OrchestratorVersion *string `json:"orchestratorVersion,omitempty"` - // Default - Installed by default if version is not specified. - Default *bool `json:"default,omitempty"` - // Upgrades - The list of available upgrade versions. - Upgrades *[]OrchestratorProfile `json:"upgrades,omitempty"` -} - -// OrchestratorVersionProfileListResult the list of versions for supported orchestrators. -type OrchestratorVersionProfileListResult struct { - autorest.Response `json:"-"` - // ID - Id of the orchestrator version profile list result. - ID *string `json:"id,omitempty"` - // Name - Name of the orchestrator version profile list result. - Name *string `json:"name,omitempty"` - // Type - Type of the orchestrator version profile list result. - Type *string `json:"type,omitempty"` - // OrchestratorVersionProfileProperties - The properties of an orchestrator version profile. - *OrchestratorVersionProfileProperties `json:"properties,omitempty"` -} - -// MarshalJSON is the custom marshaler for OrchestratorVersionProfileListResult. -func (ovplr OrchestratorVersionProfileListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ovplr.ID != nil { - objectMap["id"] = ovplr.ID - } - if ovplr.Name != nil { - objectMap["name"] = ovplr.Name - } - if ovplr.Type != nil { - objectMap["type"] = ovplr.Type - } - if ovplr.OrchestratorVersionProfileProperties != nil { - objectMap["properties"] = ovplr.OrchestratorVersionProfileProperties - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for OrchestratorVersionProfileListResult struct. -func (ovplr *OrchestratorVersionProfileListResult) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - ovplr.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ovplr.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ovplr.Type = &typeVar - } - case "properties": - if v != nil { - var orchestratorVersionProfileProperties OrchestratorVersionProfileProperties - err = json.Unmarshal(*v, &orchestratorVersionProfileProperties) - if err != nil { - return err - } - ovplr.OrchestratorVersionProfileProperties = &orchestratorVersionProfileProperties - } - } - } - - return nil -} - -// OrchestratorVersionProfileProperties the properties of an orchestrator version profile. -type OrchestratorVersionProfileProperties struct { - // Orchestrators - List of orchestrator version profiles. - Orchestrators *[]OrchestratorVersionProfile `json:"orchestrators,omitempty"` -} - -// Properties properties of the container service. -type Properties struct { - // ProvisioningState - The current deployment or provisioning state, which only appears in the response. - ProvisioningState *string `json:"provisioningState,omitempty"` - // OrchestratorProfile - Profile for the container service orchestrator. - OrchestratorProfile *OrchestratorProfileType `json:"orchestratorProfile,omitempty"` - // CustomProfile - Properties to configure a custom container service cluster. - CustomProfile *CustomProfile `json:"customProfile,omitempty"` - // ServicePrincipalProfile - Information about a service principal identity for the cluster to use for manipulating Azure APIs. Exact one of secret or keyVaultSecretRef need to be specified. - ServicePrincipalProfile *ServicePrincipalProfile `json:"servicePrincipalProfile,omitempty"` - // MasterProfile - Profile for the container service master. - MasterProfile *MasterProfile `json:"masterProfile,omitempty"` - // AgentPoolProfiles - Properties of the agent pool. - AgentPoolProfiles *[]AgentPoolProfile `json:"agentPoolProfiles,omitempty"` - // WindowsProfile - Profile for Windows VMs in the container service cluster. - WindowsProfile *WindowsProfile `json:"windowsProfile,omitempty"` - // LinuxProfile - Profile for Linux VMs in the container service cluster. - LinuxProfile *LinuxProfile `json:"linuxProfile,omitempty"` - // DiagnosticsProfile - Profile for diagnostics in the container service cluster. - DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"` -} - -// Resource the Resource model definition. -type Resource struct { - // ID - Resource Id - ID *string `json:"id,omitempty"` - // Name - Resource name - Name *string `json:"name,omitempty"` - // Type - Resource type - Type *string `json:"type,omitempty"` - // Location - Resource location - Location *string `json:"location,omitempty"` - // Tags - Resource tags - Tags map[string]*string `json:"tags"` -} - -// MarshalJSON is the custom marshaler for Resource. -func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } - if r.Location != nil { - objectMap["location"] = r.Location - } - if r.Tags != nil { - objectMap["tags"] = r.Tags - } - return json.Marshal(objectMap) -} - -// ServicePrincipalProfile information about a service principal identity for the cluster to use for -// manipulating Azure APIs. Either secret or keyVaultSecretRef must be specified. -type ServicePrincipalProfile struct { - // ClientID - The ID for the service principal. - ClientID *string `json:"clientId,omitempty"` - // Secret - The secret password associated with the service principal in plain text. - Secret *string `json:"secret,omitempty"` - // KeyVaultSecretRef - Reference to a secret stored in Azure Key Vault. - KeyVaultSecretRef *KeyVaultSecretRef `json:"keyVaultSecretRef,omitempty"` -} - -// SSHConfiguration SSH configuration for Linux-based VMs running on Azure. -type SSHConfiguration struct { - // PublicKeys - The list of SSH public keys used to authenticate with Linux-based VMs. Only expect one key specified. - PublicKeys *[]SSHPublicKey `json:"publicKeys,omitempty"` -} - -// SSHPublicKey contains information about SSH certificate public key data. -type SSHPublicKey struct { - // KeyData - Certificate public key used to authenticate with VMs through SSH. The certificate must be in PEM format with or without headers. - KeyData *string `json:"keyData,omitempty"` -} - -// TagsObject tags object for patch operations. -type TagsObject struct { - // Tags - Resource tags. - Tags map[string]*string `json:"tags"` -} - -// MarshalJSON is the custom marshaler for TagsObject. -func (toVar TagsObject) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if toVar.Tags != nil { - objectMap["tags"] = toVar.Tags - } - return json.Marshal(objectMap) -} - -// VMDiagnostics profile for diagnostics on the container service VMs. -type VMDiagnostics struct { - // Enabled - Whether the VM diagnostic agent is provisioned on the VM. - Enabled *bool `json:"enabled,omitempty"` - // StorageURI - The URI of the storage account where diagnostics are stored. - StorageURI *string `json:"storageUri,omitempty"` -} - -// WindowsProfile profile for Windows VMs in the container service cluster. -type WindowsProfile struct { - // AdminUsername - The administrator username to use for Windows VMs. - AdminUsername *string `json:"adminUsername,omitempty"` - // AdminPassword - The administrator password to use for Windows VMs. - AdminPassword *string `json:"adminPassword,omitempty"` -} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/operations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/operations.go deleted file mode 100644 index 0b2234c149d5..000000000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/operations.go +++ /dev/null @@ -1,109 +0,0 @@ -package containerservice - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// OperationsClient is the the Container Service Client. -type OperationsClient struct { - BaseClient -} - -// NewOperationsClient creates an instance of the OperationsClient client. -func NewOperationsClient(subscriptionID string) OperationsClient { - return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client. -func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { - return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// List gets a list of compute operations. -func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - req, err := client.ListPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure sending request") - return - } - - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request") - } - - return -} - -// ListPreparer prepares the List request. -func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2018-03-31" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/providers/Microsoft.ContainerService/operations"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/version.go b/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/version.go deleted file mode 100644 index c2c4f9aefef8..000000000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice/version.go +++ /dev/null @@ -1,30 +0,0 @@ -package containerservice - -import "github.com/Azure/azure-sdk-for-go/version" - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " containerservice/2018-03-31" -} - -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-02-01/containerservice/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-02-01/containerservice/models.go index e6946fb1df09..4195e16b47dd 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-02-01/containerservice/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-02-01/containerservice/models.go @@ -603,11 +603,11 @@ type AgentPool struct { autorest.Response `json:"-"` // ManagedClusterAgentPoolProfileProperties - Properties of an agent pool. *ManagedClusterAgentPoolProfileProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + // Name - READ-ONLY; The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -617,15 +617,6 @@ func (ap AgentPool) MarshalJSON() ([]byte, error) { if ap.ManagedClusterAgentPoolProfileProperties != nil { objectMap["properties"] = ap.ManagedClusterAgentPoolProfileProperties } - if ap.ID != nil { - objectMap["id"] = ap.ID - } - if ap.Name != nil { - objectMap["name"] = ap.Name - } - if ap.Type != nil { - objectMap["type"] = ap.Type - } return json.Marshal(objectMap) } @@ -685,7 +676,7 @@ type AgentPoolListResult struct { autorest.Response `json:"-"` // Value - The list of agent pools. Value *[]AgentPool `json:"value,omitempty"` - // NextLink - The URL to get the next set of agent pool results. + // NextLink - READ-ONLY; The URL to get the next set of agent pool results. NextLink *string `json:"nextLink,omitempty"` } @@ -838,7 +829,7 @@ type AgentPoolProfile struct { OsDiskSizeGB *int32 `json:"osDiskSizeGB,omitempty"` // DNSPrefix - DNS prefix to be used to create the FQDN for the agent pool. DNSPrefix *string `json:"dnsPrefix,omitempty"` - // Fqdn - FQDN for the agent pool. + // Fqdn - READ-ONLY; FQDN for the agent pool. Fqdn *string `json:"fqdn,omitempty"` // Ports - Ports number array used to expose on this agent pool. The default opened ports are different based on your choice of orchestrator. Ports *[]int32 `json:"ports,omitempty"` @@ -860,7 +851,7 @@ type AgentPoolsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *AgentPoolsCreateOrUpdateFuture) Result(client AgentPoolsClient) (ap AgentPool, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -889,7 +880,7 @@ type AgentPoolsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *AgentPoolsDeleteFuture) Result(client AgentPoolsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -925,11 +916,11 @@ type ContainerService struct { autorest.Response `json:"-"` // Properties - Properties of the container service. *Properties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -943,15 +934,6 @@ func (cs ContainerService) MarshalJSON() ([]byte, error) { if cs.Properties != nil { objectMap["properties"] = cs.Properties } - if cs.ID != nil { - objectMap["id"] = cs.ID - } - if cs.Name != nil { - objectMap["name"] = cs.Name - } - if cs.Type != nil { - objectMap["type"] = cs.Type - } if cs.Location != nil { objectMap["location"] = cs.Location } @@ -1040,7 +1022,7 @@ type ContainerServicesCreateOrUpdateFutureType struct { // If the operation has not completed it will return an error. func (future *ContainerServicesCreateOrUpdateFutureType) Result(client ContainerServicesClient) (cs ContainerService, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesCreateOrUpdateFutureType", "Result", future.Response(), "Polling failure") return @@ -1069,7 +1051,7 @@ type ContainerServicesDeleteFutureType struct { // If the operation has not completed it will return an error. func (future *ContainerServicesDeleteFutureType) Result(client ContainerServicesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesDeleteFutureType", "Result", future.Response(), "Polling failure") return @@ -1084,16 +1066,16 @@ func (future *ContainerServicesDeleteFutureType) Result(client ContainerServices // CredentialResult the credential result response. type CredentialResult struct { - // Name - The name of the credential. + // Name - READ-ONLY; The name of the credential. Name *string `json:"name,omitempty"` - // Value - Base64-encoded Kubernetes configuration file. + // Value - READ-ONLY; Base64-encoded Kubernetes configuration file. Value *[]byte `json:"value,omitempty"` } // CredentialResults the list of credential result response. type CredentialResults struct { autorest.Response `json:"-"` - // Kubeconfigs - Base64-encoded Kubernetes configuration file. + // Kubeconfigs - READ-ONLY; Base64-encoded Kubernetes configuration file. Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` } @@ -1132,7 +1114,7 @@ type ListResult struct { autorest.Response `json:"-"` // Value - The list of container services. Value *[]ContainerService `json:"value,omitempty"` - // NextLink - The URL to get the next set of container service results. + // NextLink - READ-ONLY; The URL to get the next set of container service results. NextLink *string `json:"nextLink,omitempty"` } @@ -1278,11 +1260,11 @@ type ManagedCluster struct { autorest.Response `json:"-"` // ManagedClusterProperties - Properties of a managed cluster. *ManagedClusterProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -1296,15 +1278,6 @@ func (mc ManagedCluster) MarshalJSON() ([]byte, error) { if mc.ManagedClusterProperties != nil { objectMap["properties"] = mc.ManagedClusterProperties } - if mc.ID != nil { - objectMap["id"] = mc.ID - } - if mc.Name != nil { - objectMap["name"] = mc.Name - } - if mc.Type != nil { - objectMap["type"] = mc.Type - } if mc.Location != nil { objectMap["location"] = mc.Location } @@ -1400,11 +1373,11 @@ type ManagedClusterAccessProfile struct { autorest.Response `json:"-"` // AccessProfile - AccessProfile of a managed cluster. *AccessProfile `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -1418,15 +1391,6 @@ func (mcap ManagedClusterAccessProfile) MarshalJSON() ([]byte, error) { if mcap.AccessProfile != nil { objectMap["properties"] = mcap.AccessProfile } - if mcap.ID != nil { - objectMap["id"] = mcap.ID - } - if mcap.Name != nil { - objectMap["name"] = mcap.Name - } - if mcap.Type != nil { - objectMap["type"] = mcap.Type - } if mcap.Location != nil { objectMap["location"] = mcap.Location } @@ -1551,7 +1515,7 @@ type ManagedClusterAgentPoolProfile struct { Type AgentPoolType `json:"type,omitempty"` // OrchestratorVersion - Version of orchestrator specified when creating the managed cluster. OrchestratorVersion *string `json:"orchestratorVersion,omitempty"` - // ProvisioningState - The current deployment or provisioning state, which only appears in the response. + // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response. ProvisioningState *string `json:"provisioningState,omitempty"` // AvailabilityZones - (PREVIEW) Availability zones for nodes. Must use VirtualMachineScaleSets AgentPoolType. AvailabilityZones *[]string `json:"availabilityZones,omitempty"` @@ -1581,7 +1545,7 @@ type ManagedClusterAgentPoolProfileProperties struct { Type AgentPoolType `json:"type,omitempty"` // OrchestratorVersion - Version of orchestrator specified when creating the managed cluster. OrchestratorVersion *string `json:"orchestratorVersion,omitempty"` - // ProvisioningState - The current deployment or provisioning state, which only appears in the response. + // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response. ProvisioningState *string `json:"provisioningState,omitempty"` // AvailabilityZones - (PREVIEW) Availability zones for nodes. Must use VirtualMachineScaleSets AgentPoolType. AvailabilityZones *[]string `json:"availabilityZones,omitempty"` @@ -1592,7 +1556,7 @@ type ManagedClusterListResult struct { autorest.Response `json:"-"` // Value - The list of managed clusters. Value *[]ManagedCluster `json:"value,omitempty"` - // NextLink - The URL to get the next set of managed cluster results. + // NextLink - READ-ONLY; The URL to get the next set of managed cluster results. NextLink *string `json:"nextLink,omitempty"` } @@ -1747,13 +1711,13 @@ type ManagedClusterPoolUpgradeProfile struct { // ManagedClusterProperties properties of the managed cluster. type ManagedClusterProperties struct { - // ProvisioningState - The current deployment or provisioning state, which only appears in the response. + // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response. ProvisioningState *string `json:"provisioningState,omitempty"` // KubernetesVersion - Version of Kubernetes specified when creating the managed cluster. KubernetesVersion *string `json:"kubernetesVersion,omitempty"` // DNSPrefix - DNS prefix specified when creating the managed cluster. DNSPrefix *string `json:"dnsPrefix,omitempty"` - // Fqdn - FQDN for the master pool. + // Fqdn - READ-ONLY; FQDN for the master pool. Fqdn *string `json:"fqdn,omitempty"` // AgentPoolProfiles - Properties of the agent pool. AgentPoolProfiles *[]ManagedClusterAgentPoolProfile `json:"agentPoolProfiles,omitempty"` @@ -1763,7 +1727,7 @@ type ManagedClusterProperties struct { ServicePrincipalProfile *ManagedClusterServicePrincipalProfile `json:"servicePrincipalProfile,omitempty"` // AddonProfiles - Profile of managed cluster add-on. AddonProfiles map[string]*ManagedClusterAddonProfile `json:"addonProfiles"` - // NodeResourceGroup - Name of the resource group containing agent pool nodes. + // NodeResourceGroup - READ-ONLY; Name of the resource group containing agent pool nodes. NodeResourceGroup *string `json:"nodeResourceGroup,omitempty"` // EnableRBAC - Whether to enable Kubernetes Role-Based Access Control. EnableRBAC *bool `json:"enableRBAC,omitempty"` @@ -1780,18 +1744,12 @@ type ManagedClusterProperties struct { // MarshalJSON is the custom marshaler for ManagedClusterProperties. func (mcp ManagedClusterProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if mcp.ProvisioningState != nil { - objectMap["provisioningState"] = mcp.ProvisioningState - } if mcp.KubernetesVersion != nil { objectMap["kubernetesVersion"] = mcp.KubernetesVersion } if mcp.DNSPrefix != nil { objectMap["dnsPrefix"] = mcp.DNSPrefix } - if mcp.Fqdn != nil { - objectMap["fqdn"] = mcp.Fqdn - } if mcp.AgentPoolProfiles != nil { objectMap["agentPoolProfiles"] = mcp.AgentPoolProfiles } @@ -1804,9 +1762,6 @@ func (mcp ManagedClusterProperties) MarshalJSON() ([]byte, error) { if mcp.AddonProfiles != nil { objectMap["addonProfiles"] = mcp.AddonProfiles } - if mcp.NodeResourceGroup != nil { - objectMap["nodeResourceGroup"] = mcp.NodeResourceGroup - } if mcp.EnableRBAC != nil { objectMap["enableRBAC"] = mcp.EnableRBAC } @@ -1835,7 +1790,7 @@ type ManagedClustersCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ManagedClustersCreateOrUpdateFuture) Result(client ManagedClustersClient) (mc ManagedCluster, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1864,7 +1819,7 @@ type ManagedClustersDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ManagedClustersDeleteFuture) Result(client ManagedClustersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1896,7 +1851,7 @@ type ManagedClustersResetAADProfileFuture struct { // If the operation has not completed it will return an error. func (future *ManagedClustersResetAADProfileFuture) Result(client ManagedClustersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersResetAADProfileFuture", "Result", future.Response(), "Polling failure") return @@ -1919,7 +1874,7 @@ type ManagedClustersResetServicePrincipalProfileFuture struct { // If the operation has not completed it will return an error. func (future *ManagedClustersResetServicePrincipalProfileFuture) Result(client ManagedClustersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersResetServicePrincipalProfileFuture", "Result", future.Response(), "Polling failure") return @@ -1942,7 +1897,7 @@ type ManagedClustersUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *ManagedClustersUpdateTagsFuture) Result(client ManagedClustersClient) (mc ManagedCluster, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -1964,11 +1919,11 @@ func (future *ManagedClustersUpdateTagsFuture) Result(client ManagedClustersClie // ManagedClusterUpgradeProfile the list of available upgrades for compute pools. type ManagedClusterUpgradeProfile struct { autorest.Response `json:"-"` - // ID - Id of upgrade profile. + // ID - READ-ONLY; Id of upgrade profile. ID *string `json:"id,omitempty"` - // Name - Name of upgrade profile. + // Name - READ-ONLY; Name of upgrade profile. Name *string `json:"name,omitempty"` - // Type - Type of upgrade profile. + // Type - READ-ONLY; Type of upgrade profile. Type *string `json:"type,omitempty"` // ManagedClusterUpgradeProfileProperties - Properties of upgrade profile. *ManagedClusterUpgradeProfileProperties `json:"properties,omitempty"` @@ -1977,15 +1932,6 @@ type ManagedClusterUpgradeProfile struct { // MarshalJSON is the custom marshaler for ManagedClusterUpgradeProfile. func (mcup ManagedClusterUpgradeProfile) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if mcup.ID != nil { - objectMap["id"] = mcup.ID - } - if mcup.Name != nil { - objectMap["name"] = mcup.Name - } - if mcup.Type != nil { - objectMap["type"] = mcup.Type - } if mcup.ManagedClusterUpgradeProfileProperties != nil { objectMap["properties"] = mcup.ManagedClusterUpgradeProfileProperties } @@ -2067,7 +2013,7 @@ type MasterProfile struct { FirstConsecutiveStaticIP *string `json:"firstConsecutiveStaticIP,omitempty"` // StorageProfile - Storage profile specifies what kind of storage used. Choose from StorageAccount and ManagedDisks. Leave it empty, we will choose for you based on the orchestrator choice. Possible values include: 'StorageAccount', 'ManagedDisks' StorageProfile StorageProfileTypes `json:"storageProfile,omitempty"` - // Fqdn - FQDN for the master pool. + // Fqdn - READ-ONLY; FQDN for the master pool. Fqdn *string `json:"fqdn,omitempty"` } @@ -2102,11 +2048,11 @@ type OpenShiftManagedCluster struct { Plan *PurchasePlan `json:"plan,omitempty"` // OpenShiftManagedClusterProperties - Properties of a OpenShift managed cluster. *OpenShiftManagedClusterProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -2123,15 +2069,6 @@ func (osmc OpenShiftManagedCluster) MarshalJSON() ([]byte, error) { if osmc.OpenShiftManagedClusterProperties != nil { objectMap["properties"] = osmc.OpenShiftManagedClusterProperties } - if osmc.ID != nil { - objectMap["id"] = osmc.ID - } - if osmc.Name != nil { - objectMap["name"] = osmc.Name - } - if osmc.Type != nil { - objectMap["type"] = osmc.Type - } if osmc.Location != nil { objectMap["location"] = osmc.Location } @@ -2227,6 +2164,8 @@ type OpenShiftManagedClusterAADIdentityProvider struct { Secret *string `json:"secret,omitempty"` // TenantID - The tenantId associated with the provider. TenantID *string `json:"tenantId,omitempty"` + // CustomerAdminGroupID - The groupId to be granted cluster admin role. + CustomerAdminGroupID *string `json:"customerAdminGroupId,omitempty"` // Kind - Possible values include: 'KindOpenShiftManagedClusterBaseIdentityProvider', 'KindAADIdentityProvider' Kind Kind `json:"kind,omitempty"` } @@ -2244,6 +2183,9 @@ func (osmcaip OpenShiftManagedClusterAADIdentityProvider) MarshalJSON() ([]byte, if osmcaip.TenantID != nil { objectMap["tenantId"] = osmcaip.TenantID } + if osmcaip.CustomerAdminGroupID != nil { + objectMap["customerAdminGroupId"] = osmcaip.CustomerAdminGroupID + } if osmcaip.Kind != "" { objectMap["kind"] = osmcaip.Kind } @@ -2408,7 +2350,7 @@ type OpenShiftManagedClusterListResult struct { autorest.Response `json:"-"` // Value - The list of OpenShift managed clusters. Value *[]OpenShiftManagedCluster `json:"value,omitempty"` - // NextLink - The URL to get the next set of OpenShift managed cluster results. + // NextLink - READ-ONLY; The URL to get the next set of OpenShift managed cluster results. NextLink *string `json:"nextLink,omitempty"` } @@ -2567,7 +2509,7 @@ type OpenShiftManagedClusterMasterPoolProfile struct { // OpenShiftManagedClusterProperties properties of the OpenShift managed cluster. type OpenShiftManagedClusterProperties struct { - // ProvisioningState - The current deployment or provisioning state, which only appears in the response. + // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response. ProvisioningState *string `json:"provisioningState,omitempty"` // OpenShiftVersion - Version of OpenShift specified when creating the cluster. OpenShiftVersion *string `json:"openShiftVersion,omitempty"` @@ -2597,7 +2539,7 @@ type OpenShiftManagedClustersCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *OpenShiftManagedClustersCreateOrUpdateFuture) Result(client OpenShiftManagedClustersClient) (osmc OpenShiftManagedCluster, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -2626,7 +2568,7 @@ type OpenShiftManagedClustersDeleteFuture struct { // If the operation has not completed it will return an error. func (future *OpenShiftManagedClustersDeleteFuture) Result(client OpenShiftManagedClustersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -2649,7 +2591,7 @@ type OpenShiftManagedClustersUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *OpenShiftManagedClustersUpdateTagsFuture) Result(client OpenShiftManagedClustersClient) (osmc OpenShiftManagedCluster, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -2674,22 +2616,22 @@ type OpenShiftRouterProfile struct { Name *string `json:"name,omitempty"` // PublicSubdomain - DNS subdomain for OpenShift router. PublicSubdomain *string `json:"publicSubdomain,omitempty"` - // Fqdn - Auto-allocated FQDN for the OpenShift router. + // Fqdn - READ-ONLY; Auto-allocated FQDN for the OpenShift router. Fqdn *string `json:"fqdn,omitempty"` } // OperationListResult the List Compute Operation operation response. type OperationListResult struct { autorest.Response `json:"-"` - // Value - The list of compute operations + // Value - READ-ONLY; The list of compute operations Value *[]OperationValue `json:"value,omitempty"` } // OperationValue describes the properties of a Compute Operation value. type OperationValue struct { - // Origin - The origin of the compute operation. + // Origin - READ-ONLY; The origin of the compute operation. Origin *string `json:"origin,omitempty"` - // Name - The name of the compute operation. + // Name - READ-ONLY; The name of the compute operation. Name *string `json:"name,omitempty"` // OperationValueDisplay - Describes the properties of a Compute Operation Value Display. *OperationValueDisplay `json:"display,omitempty"` @@ -2698,12 +2640,6 @@ type OperationValue struct { // MarshalJSON is the custom marshaler for OperationValue. func (ov OperationValue) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if ov.Origin != nil { - objectMap["origin"] = ov.Origin - } - if ov.Name != nil { - objectMap["name"] = ov.Name - } if ov.OperationValueDisplay != nil { objectMap["display"] = ov.OperationValueDisplay } @@ -2754,13 +2690,13 @@ func (ov *OperationValue) UnmarshalJSON(body []byte) error { // OperationValueDisplay describes the properties of a Compute Operation Value Display. type OperationValueDisplay struct { - // Operation - The display name of the compute operation. + // Operation - READ-ONLY; The display name of the compute operation. Operation *string `json:"operation,omitempty"` - // Resource - The display name of the resource the operation applies to. + // Resource - READ-ONLY; The display name of the resource the operation applies to. Resource *string `json:"resource,omitempty"` - // Description - The description of the operation. + // Description - READ-ONLY; The description of the operation. Description *string `json:"description,omitempty"` - // Provider - The resource provider for the operation. + // Provider - READ-ONLY; The resource provider for the operation. Provider *string `json:"provider,omitempty"` } @@ -2795,11 +2731,11 @@ type OrchestratorVersionProfile struct { // OrchestratorVersionProfileListResult the list of versions for supported orchestrators. type OrchestratorVersionProfileListResult struct { autorest.Response `json:"-"` - // ID - Id of the orchestrator version profile list result. + // ID - READ-ONLY; Id of the orchestrator version profile list result. ID *string `json:"id,omitempty"` - // Name - Name of the orchestrator version profile list result. + // Name - READ-ONLY; Name of the orchestrator version profile list result. Name *string `json:"name,omitempty"` - // Type - Type of the orchestrator version profile list result. + // Type - READ-ONLY; Type of the orchestrator version profile list result. Type *string `json:"type,omitempty"` // OrchestratorVersionProfileProperties - The properties of an orchestrator version profile. *OrchestratorVersionProfileProperties `json:"properties,omitempty"` @@ -2808,15 +2744,6 @@ type OrchestratorVersionProfileListResult struct { // MarshalJSON is the custom marshaler for OrchestratorVersionProfileListResult. func (ovplr OrchestratorVersionProfileListResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if ovplr.ID != nil { - objectMap["id"] = ovplr.ID - } - if ovplr.Name != nil { - objectMap["name"] = ovplr.Name - } - if ovplr.Type != nil { - objectMap["type"] = ovplr.Type - } if ovplr.OrchestratorVersionProfileProperties != nil { objectMap["properties"] = ovplr.OrchestratorVersionProfileProperties } @@ -2882,7 +2809,7 @@ type OrchestratorVersionProfileProperties struct { // Properties properties of the container service. type Properties struct { - // ProvisioningState - The current deployment or provisioning state, which only appears in the response. + // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response. ProvisioningState *string `json:"provisioningState,omitempty"` // OrchestratorProfile - Profile for the container service orchestrator. OrchestratorProfile *OrchestratorProfileType `json:"orchestratorProfile,omitempty"` @@ -2916,11 +2843,11 @@ type PurchasePlan struct { // Resource the Resource model definition. type Resource struct { - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -2931,15 +2858,6 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -2974,11 +2892,11 @@ type SSHPublicKey struct { // SubResource reference to another subresource. type SubResource struct { - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + // Name - READ-ONLY; The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -3001,7 +2919,7 @@ func (toVar TagsObject) MarshalJSON() ([]byte, error) { type VMDiagnostics struct { // Enabled - Whether the VM diagnostic agent is provisioned on the VM. Enabled *bool `json:"enabled,omitempty"` - // StorageURI - The URI of the storage account where diagnostics are stored. + // StorageURI - READ-ONLY; The URI of the storage account where diagnostics are stored. StorageURI *string `json:"storageUri,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2015-04-08/documentdb/databaseaccounts.go b/vendor/github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2015-04-08/documentdb/databaseaccounts.go index 3d73db83fc41..61149a9c9ac4 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2015-04-08/documentdb/databaseaccounts.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2015-04-08/documentdb/databaseaccounts.go @@ -228,13 +228,15 @@ func (client DatabaseAccountsClient) CreateOrUpdateResponder(resp *http.Response return } -// Delete deletes an existing Azure Cosmos DB database account. +// CreateUpdateCassandraKeyspace create or update an Azure Cosmos DB Cassandra keyspace // Parameters: // resourceGroupName - name of an Azure resource group. // accountName - cosmos DB database account name. -func (client DatabaseAccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountsDeleteFuture, err error) { +// keyspaceName - cosmos DB keyspace name. +// createUpdateCassandraKeyspaceParameters - the parameters to provide for the current Cassandra keyspace. +func (client DatabaseAccountsClient) CreateUpdateCassandraKeyspace(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, createUpdateCassandraKeyspaceParameters CassandraKeyspaceCreateUpdateParameters) (result DatabaseAccountsCreateUpdateCassandraKeyspaceFuture, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.Delete") + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.CreateUpdateCassandraKeyspace") defer func() { sc := -1 if result.Response() != nil { @@ -250,29 +252,36 @@ func (client DatabaseAccountsClient) Delete(ctx context.Context, resourceGroupNa {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, {TargetValue: accountName, Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { - return result, validation.NewError("documentdb.DatabaseAccountsClient", "Delete", err.Error()) + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: createUpdateCassandraKeyspaceParameters, + Constraints: []validation.Constraint{{Target: "createUpdateCassandraKeyspaceParameters.CassandraKeyspaceCreateUpdateProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateCassandraKeyspaceParameters.CassandraKeyspaceCreateUpdateProperties.Resource", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateCassandraKeyspaceParameters.CassandraKeyspaceCreateUpdateProperties.Resource.ID", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "createUpdateCassandraKeyspaceParameters.CassandraKeyspaceCreateUpdateProperties.Options", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "CreateUpdateCassandraKeyspace", err.Error()) } - req, err := client.DeletePreparer(ctx, resourceGroupName, accountName) + req, err := client.CreateUpdateCassandraKeyspacePreparer(ctx, resourceGroupName, accountName, keyspaceName, createUpdateCassandraKeyspaceParameters) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "Delete", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateCassandraKeyspace", nil, "Failure preparing request") return } - result, err = client.DeleteSender(req) + result, err = client.CreateUpdateCassandraKeyspaceSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "Delete", result.Response(), "Failure sending request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateCassandraKeyspace", result.Response(), "Failure sending request") return } return } -// DeletePreparer prepares the Delete request. -func (client DatabaseAccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { +// CreateUpdateCassandraKeyspacePreparer prepares the CreateUpdateCassandraKeyspace request. +func (client DatabaseAccountsClient) CreateUpdateCassandraKeyspacePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, createUpdateCassandraKeyspaceParameters CassandraKeyspaceCreateUpdateParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ "accountName": autorest.Encode("path", accountName), + "keyspaceName": autorest.Encode("path", keyspaceName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } @@ -283,16 +292,18 @@ func (client DatabaseAccountsClient) DeletePreparer(ctx context.Context, resourc } preparer := autorest.CreatePreparer( - autorest.AsDelete(), + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}", pathParameters), + autorest.WithJSON(createUpdateCassandraKeyspaceParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// DeleteSender sends the Delete request. The method will close the +// CreateUpdateCassandraKeyspaceSender sends the CreateUpdateCassandraKeyspace request. The method will close the // http.Response Body if it receives an error. -func (client DatabaseAccountsClient) DeleteSender(req *http.Request) (future DatabaseAccountsDeleteFuture, err error) { +func (client DatabaseAccountsClient) CreateUpdateCassandraKeyspaceSender(req *http.Request) (future DatabaseAccountsCreateUpdateCassandraKeyspaceFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) @@ -303,28 +314,29 @@ func (client DatabaseAccountsClient) DeleteSender(req *http.Request) (future Dat return } -// DeleteResponder handles the response to the Delete request. The method always +// CreateUpdateCassandraKeyspaceResponder handles the response to the CreateUpdateCassandraKeyspace request. The method always // closes the http.Response Body. -func (client DatabaseAccountsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { +func (client DatabaseAccountsClient) CreateUpdateCassandraKeyspaceResponder(resp *http.Response) (result CassandraKeyspace, err error) { err = autorest.Respond( resp, client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) - result.Response = resp + result.Response = autorest.Response{Response: resp} return } -// FailoverPriorityChange changes the failover priority for the Azure Cosmos DB database account. A failover priority -// of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover -// priority values must be unique for each of the regions in which the database account exists. +// CreateUpdateCassandraTable create or update an Azure Cosmos DB Cassandra Table // Parameters: // resourceGroupName - name of an Azure resource group. // accountName - cosmos DB database account name. -// failoverParameters - the new failover policies for the database account. -func (client DatabaseAccountsClient) FailoverPriorityChange(ctx context.Context, resourceGroupName string, accountName string, failoverParameters FailoverPolicies) (result DatabaseAccountsFailoverPriorityChangeFuture, err error) { +// keyspaceName - cosmos DB keyspace name. +// tableName - cosmos DB table name. +// createUpdateCassandraTableParameters - the parameters to provide for the current Cassandra Table. +func (client DatabaseAccountsClient) CreateUpdateCassandraTable(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, createUpdateCassandraTableParameters CassandraTableCreateUpdateParameters) (result DatabaseAccountsCreateUpdateCassandraTableFuture, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.FailoverPriorityChange") + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.CreateUpdateCassandraTable") defer func() { sc := -1 if result.Response() != nil { @@ -341,32 +353,38 @@ func (client DatabaseAccountsClient) FailoverPriorityChange(ctx context.Context, {TargetValue: accountName, Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, - {TargetValue: failoverParameters, - Constraints: []validation.Constraint{{Target: "failoverParameters.FailoverPolicies", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("documentdb.DatabaseAccountsClient", "FailoverPriorityChange", err.Error()) + {TargetValue: createUpdateCassandraTableParameters, + Constraints: []validation.Constraint{{Target: "createUpdateCassandraTableParameters.CassandraTableCreateUpdateProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateCassandraTableParameters.CassandraTableCreateUpdateProperties.Resource", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateCassandraTableParameters.CassandraTableCreateUpdateProperties.Resource.ID", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "createUpdateCassandraTableParameters.CassandraTableCreateUpdateProperties.Options", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "CreateUpdateCassandraTable", err.Error()) } - req, err := client.FailoverPriorityChangePreparer(ctx, resourceGroupName, accountName, failoverParameters) + req, err := client.CreateUpdateCassandraTablePreparer(ctx, resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "FailoverPriorityChange", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateCassandraTable", nil, "Failure preparing request") return } - result, err = client.FailoverPriorityChangeSender(req) + result, err = client.CreateUpdateCassandraTableSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "FailoverPriorityChange", result.Response(), "Failure sending request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateCassandraTable", result.Response(), "Failure sending request") return } return } -// FailoverPriorityChangePreparer prepares the FailoverPriorityChange request. -func (client DatabaseAccountsClient) FailoverPriorityChangePreparer(ctx context.Context, resourceGroupName string, accountName string, failoverParameters FailoverPolicies) (*http.Request, error) { +// CreateUpdateCassandraTablePreparer prepares the CreateUpdateCassandraTable request. +func (client DatabaseAccountsClient) CreateUpdateCassandraTablePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, createUpdateCassandraTableParameters CassandraTableCreateUpdateParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ "accountName": autorest.Encode("path", accountName), + "keyspaceName": autorest.Encode("path", keyspaceName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tableName": autorest.Encode("path", tableName), } const APIVersion = "2015-04-08" @@ -376,17 +394,17 @@ func (client DatabaseAccountsClient) FailoverPriorityChangePreparer(ctx context. preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), + autorest.AsPut(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/failoverPriorityChange", pathParameters), - autorest.WithJSON(failoverParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}", pathParameters), + autorest.WithJSON(createUpdateCassandraTableParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// FailoverPriorityChangeSender sends the FailoverPriorityChange request. The method will close the +// CreateUpdateCassandraTableSender sends the CreateUpdateCassandraTable request. The method will close the // http.Response Body if it receives an error. -func (client DatabaseAccountsClient) FailoverPriorityChangeSender(req *http.Request) (future DatabaseAccountsFailoverPriorityChangeFuture, err error) { +func (client DatabaseAccountsClient) CreateUpdateCassandraTableSender(req *http.Request) (future DatabaseAccountsCreateUpdateCassandraTableFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) @@ -397,25 +415,3311 @@ func (client DatabaseAccountsClient) FailoverPriorityChangeSender(req *http.Requ return } -// FailoverPriorityChangeResponder handles the response to the FailoverPriorityChange request. The method always +// CreateUpdateCassandraTableResponder handles the response to the CreateUpdateCassandraTable request. The method always // closes the http.Response Body. -func (client DatabaseAccountsClient) FailoverPriorityChangeResponder(resp *http.Response) (result autorest.Response, err error) { +func (client DatabaseAccountsClient) CreateUpdateCassandraTableResponder(resp *http.Response) (result CassandraTable, err error) { err = autorest.Respond( resp, client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) - result.Response = resp + result.Response = autorest.Response{Response: resp} return } -// Get retrieves the properties of an existing Azure Cosmos DB database account. +// CreateUpdateGremlinDatabase create or update an Azure Cosmos DB Gremlin database +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +// createUpdateGremlinDatabaseParameters - the parameters to provide for the current Gremlin database. +func (client DatabaseAccountsClient) CreateUpdateGremlinDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, createUpdateGremlinDatabaseParameters GremlinDatabaseCreateUpdateParameters) (result DatabaseAccountsCreateUpdateGremlinDatabaseFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.CreateUpdateGremlinDatabase") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: createUpdateGremlinDatabaseParameters, + Constraints: []validation.Constraint{{Target: "createUpdateGremlinDatabaseParameters.GremlinDatabaseCreateUpdateProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateGremlinDatabaseParameters.GremlinDatabaseCreateUpdateProperties.Resource", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateGremlinDatabaseParameters.GremlinDatabaseCreateUpdateProperties.Resource.ID", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "createUpdateGremlinDatabaseParameters.GremlinDatabaseCreateUpdateProperties.Options", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "CreateUpdateGremlinDatabase", err.Error()) + } + + req, err := client.CreateUpdateGremlinDatabasePreparer(ctx, resourceGroupName, accountName, databaseName, createUpdateGremlinDatabaseParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateGremlinDatabase", nil, "Failure preparing request") + return + } + + result, err = client.CreateUpdateGremlinDatabaseSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateGremlinDatabase", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateUpdateGremlinDatabasePreparer prepares the CreateUpdateGremlinDatabase request. +func (client DatabaseAccountsClient) CreateUpdateGremlinDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, createUpdateGremlinDatabaseParameters GremlinDatabaseCreateUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "databaseName": autorest.Encode("path", databaseName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}", pathParameters), + autorest.WithJSON(createUpdateGremlinDatabaseParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateUpdateGremlinDatabaseSender sends the CreateUpdateGremlinDatabase request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) CreateUpdateGremlinDatabaseSender(req *http.Request) (future DatabaseAccountsCreateUpdateGremlinDatabaseFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateUpdateGremlinDatabaseResponder handles the response to the CreateUpdateGremlinDatabase request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) CreateUpdateGremlinDatabaseResponder(resp *http.Response) (result GremlinDatabase, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CreateUpdateGremlinGraph create or update an Azure Cosmos DB Gremlin graph +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +// graphName - cosmos DB graph name. +// createUpdateGremlinGraphParameters - the parameters to provide for the current Gremlin graph. +func (client DatabaseAccountsClient) CreateUpdateGremlinGraph(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, createUpdateGremlinGraphParameters GremlinGraphCreateUpdateParameters) (result DatabaseAccountsCreateUpdateGremlinGraphFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.CreateUpdateGremlinGraph") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: createUpdateGremlinGraphParameters, + Constraints: []validation.Constraint{{Target: "createUpdateGremlinGraphParameters.GremlinGraphCreateUpdateProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateGremlinGraphParameters.GremlinGraphCreateUpdateProperties.Resource", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateGremlinGraphParameters.GremlinGraphCreateUpdateProperties.Resource.ID", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "createUpdateGremlinGraphParameters.GremlinGraphCreateUpdateProperties.Options", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "CreateUpdateGremlinGraph", err.Error()) + } + + req, err := client.CreateUpdateGremlinGraphPreparer(ctx, resourceGroupName, accountName, databaseName, graphName, createUpdateGremlinGraphParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateGremlinGraph", nil, "Failure preparing request") + return + } + + result, err = client.CreateUpdateGremlinGraphSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateGremlinGraph", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateUpdateGremlinGraphPreparer prepares the CreateUpdateGremlinGraph request. +func (client DatabaseAccountsClient) CreateUpdateGremlinGraphPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, createUpdateGremlinGraphParameters GremlinGraphCreateUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "databaseName": autorest.Encode("path", databaseName), + "graphName": autorest.Encode("path", graphName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}", pathParameters), + autorest.WithJSON(createUpdateGremlinGraphParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateUpdateGremlinGraphSender sends the CreateUpdateGremlinGraph request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) CreateUpdateGremlinGraphSender(req *http.Request) (future DatabaseAccountsCreateUpdateGremlinGraphFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateUpdateGremlinGraphResponder handles the response to the CreateUpdateGremlinGraph request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) CreateUpdateGremlinGraphResponder(resp *http.Response) (result GremlinGraph, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CreateUpdateMongoDBCollection create or update an Azure Cosmos DB MongoDB Collection +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +// collectionName - cosmos DB collection name. +// createUpdateMongoDBCollectionParameters - the parameters to provide for the current MongoDB Collection. +func (client DatabaseAccountsClient) CreateUpdateMongoDBCollection(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, createUpdateMongoDBCollectionParameters MongoDBCollectionCreateUpdateParameters) (result DatabaseAccountsCreateUpdateMongoDBCollectionFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.CreateUpdateMongoDBCollection") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: createUpdateMongoDBCollectionParameters, + Constraints: []validation.Constraint{{Target: "createUpdateMongoDBCollectionParameters.MongoDBCollectionCreateUpdateProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateMongoDBCollectionParameters.MongoDBCollectionCreateUpdateProperties.Resource", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateMongoDBCollectionParameters.MongoDBCollectionCreateUpdateProperties.Resource.ID", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "createUpdateMongoDBCollectionParameters.MongoDBCollectionCreateUpdateProperties.Options", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "CreateUpdateMongoDBCollection", err.Error()) + } + + req, err := client.CreateUpdateMongoDBCollectionPreparer(ctx, resourceGroupName, accountName, databaseName, collectionName, createUpdateMongoDBCollectionParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateMongoDBCollection", nil, "Failure preparing request") + return + } + + result, err = client.CreateUpdateMongoDBCollectionSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateMongoDBCollection", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateUpdateMongoDBCollectionPreparer prepares the CreateUpdateMongoDBCollection request. +func (client DatabaseAccountsClient) CreateUpdateMongoDBCollectionPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, createUpdateMongoDBCollectionParameters MongoDBCollectionCreateUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "collectionName": autorest.Encode("path", collectionName), + "databaseName": autorest.Encode("path", databaseName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}", pathParameters), + autorest.WithJSON(createUpdateMongoDBCollectionParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateUpdateMongoDBCollectionSender sends the CreateUpdateMongoDBCollection request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) CreateUpdateMongoDBCollectionSender(req *http.Request) (future DatabaseAccountsCreateUpdateMongoDBCollectionFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateUpdateMongoDBCollectionResponder handles the response to the CreateUpdateMongoDBCollection request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) CreateUpdateMongoDBCollectionResponder(resp *http.Response) (result MongoDBCollection, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CreateUpdateMongoDBDatabase create or updates Azure Cosmos DB MongoDB database +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +// createUpdateMongoDBDatabaseParameters - the parameters to provide for the current MongoDB database. +func (client DatabaseAccountsClient) CreateUpdateMongoDBDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, createUpdateMongoDBDatabaseParameters MongoDBDatabaseCreateUpdateParameters) (result DatabaseAccountsCreateUpdateMongoDBDatabaseFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.CreateUpdateMongoDBDatabase") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: createUpdateMongoDBDatabaseParameters, + Constraints: []validation.Constraint{{Target: "createUpdateMongoDBDatabaseParameters.MongoDBDatabaseCreateUpdateProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateMongoDBDatabaseParameters.MongoDBDatabaseCreateUpdateProperties.Resource", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateMongoDBDatabaseParameters.MongoDBDatabaseCreateUpdateProperties.Resource.ID", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "createUpdateMongoDBDatabaseParameters.MongoDBDatabaseCreateUpdateProperties.Options", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "CreateUpdateMongoDBDatabase", err.Error()) + } + + req, err := client.CreateUpdateMongoDBDatabasePreparer(ctx, resourceGroupName, accountName, databaseName, createUpdateMongoDBDatabaseParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateMongoDBDatabase", nil, "Failure preparing request") + return + } + + result, err = client.CreateUpdateMongoDBDatabaseSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateMongoDBDatabase", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateUpdateMongoDBDatabasePreparer prepares the CreateUpdateMongoDBDatabase request. +func (client DatabaseAccountsClient) CreateUpdateMongoDBDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, createUpdateMongoDBDatabaseParameters MongoDBDatabaseCreateUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "databaseName": autorest.Encode("path", databaseName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}", pathParameters), + autorest.WithJSON(createUpdateMongoDBDatabaseParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateUpdateMongoDBDatabaseSender sends the CreateUpdateMongoDBDatabase request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) CreateUpdateMongoDBDatabaseSender(req *http.Request) (future DatabaseAccountsCreateUpdateMongoDBDatabaseFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateUpdateMongoDBDatabaseResponder handles the response to the CreateUpdateMongoDBDatabase request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) CreateUpdateMongoDBDatabaseResponder(resp *http.Response) (result MongoDBDatabase, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CreateUpdateSQLContainer create or update an Azure Cosmos DB SQL container +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +// containerName - cosmos DB container name. +// createUpdateSQLContainerParameters - the parameters to provide for the current SQL container. +func (client DatabaseAccountsClient) CreateUpdateSQLContainer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, createUpdateSQLContainerParameters SQLContainerCreateUpdateParameters) (result DatabaseAccountsCreateUpdateSQLContainerFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.CreateUpdateSQLContainer") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: createUpdateSQLContainerParameters, + Constraints: []validation.Constraint{{Target: "createUpdateSQLContainerParameters.SQLContainerCreateUpdateProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateSQLContainerParameters.SQLContainerCreateUpdateProperties.Resource", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateSQLContainerParameters.SQLContainerCreateUpdateProperties.Resource.ID", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "createUpdateSQLContainerParameters.SQLContainerCreateUpdateProperties.Options", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "CreateUpdateSQLContainer", err.Error()) + } + + req, err := client.CreateUpdateSQLContainerPreparer(ctx, resourceGroupName, accountName, databaseName, containerName, createUpdateSQLContainerParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateSQLContainer", nil, "Failure preparing request") + return + } + + result, err = client.CreateUpdateSQLContainerSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateSQLContainer", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateUpdateSQLContainerPreparer prepares the CreateUpdateSQLContainer request. +func (client DatabaseAccountsClient) CreateUpdateSQLContainerPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, createUpdateSQLContainerParameters SQLContainerCreateUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "containerName": autorest.Encode("path", containerName), + "databaseName": autorest.Encode("path", databaseName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}", pathParameters), + autorest.WithJSON(createUpdateSQLContainerParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateUpdateSQLContainerSender sends the CreateUpdateSQLContainer request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) CreateUpdateSQLContainerSender(req *http.Request) (future DatabaseAccountsCreateUpdateSQLContainerFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateUpdateSQLContainerResponder handles the response to the CreateUpdateSQLContainer request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) CreateUpdateSQLContainerResponder(resp *http.Response) (result SQLContainer, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CreateUpdateSQLDatabase create or update an Azure Cosmos DB SQL database +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +// createUpdateSQLDatabaseParameters - the parameters to provide for the current SQL database. +func (client DatabaseAccountsClient) CreateUpdateSQLDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, createUpdateSQLDatabaseParameters SQLDatabaseCreateUpdateParameters) (result DatabaseAccountsCreateUpdateSQLDatabaseFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.CreateUpdateSQLDatabase") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: createUpdateSQLDatabaseParameters, + Constraints: []validation.Constraint{{Target: "createUpdateSQLDatabaseParameters.SQLDatabaseCreateUpdateProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateSQLDatabaseParameters.SQLDatabaseCreateUpdateProperties.Resource", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateSQLDatabaseParameters.SQLDatabaseCreateUpdateProperties.Resource.ID", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "createUpdateSQLDatabaseParameters.SQLDatabaseCreateUpdateProperties.Options", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "CreateUpdateSQLDatabase", err.Error()) + } + + req, err := client.CreateUpdateSQLDatabasePreparer(ctx, resourceGroupName, accountName, databaseName, createUpdateSQLDatabaseParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateSQLDatabase", nil, "Failure preparing request") + return + } + + result, err = client.CreateUpdateSQLDatabaseSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateSQLDatabase", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateUpdateSQLDatabasePreparer prepares the CreateUpdateSQLDatabase request. +func (client DatabaseAccountsClient) CreateUpdateSQLDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, createUpdateSQLDatabaseParameters SQLDatabaseCreateUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "databaseName": autorest.Encode("path", databaseName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}", pathParameters), + autorest.WithJSON(createUpdateSQLDatabaseParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateUpdateSQLDatabaseSender sends the CreateUpdateSQLDatabase request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) CreateUpdateSQLDatabaseSender(req *http.Request) (future DatabaseAccountsCreateUpdateSQLDatabaseFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateUpdateSQLDatabaseResponder handles the response to the CreateUpdateSQLDatabase request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) CreateUpdateSQLDatabaseResponder(resp *http.Response) (result SQLDatabase, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// CreateUpdateTable create or update an Azure Cosmos DB Table +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// tableName - cosmos DB table name. +// createUpdateTableParameters - the parameters to provide for the current Table. +func (client DatabaseAccountsClient) CreateUpdateTable(ctx context.Context, resourceGroupName string, accountName string, tableName string, createUpdateTableParameters TableCreateUpdateParameters) (result DatabaseAccountsCreateUpdateTableFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.CreateUpdateTable") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: createUpdateTableParameters, + Constraints: []validation.Constraint{{Target: "createUpdateTableParameters.TableCreateUpdateProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateTableParameters.TableCreateUpdateProperties.Resource", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "createUpdateTableParameters.TableCreateUpdateProperties.Resource.ID", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "createUpdateTableParameters.TableCreateUpdateProperties.Options", Name: validation.Null, Rule: true, Chain: nil}, + }}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "CreateUpdateTable", err.Error()) + } + + req, err := client.CreateUpdateTablePreparer(ctx, resourceGroupName, accountName, tableName, createUpdateTableParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateTable", nil, "Failure preparing request") + return + } + + result, err = client.CreateUpdateTableSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "CreateUpdateTable", result.Response(), "Failure sending request") + return + } + + return +} + +// CreateUpdateTablePreparer prepares the CreateUpdateTable request. +func (client DatabaseAccountsClient) CreateUpdateTablePreparer(ctx context.Context, resourceGroupName string, accountName string, tableName string, createUpdateTableParameters TableCreateUpdateParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tableName": autorest.Encode("path", tableName), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}", pathParameters), + autorest.WithJSON(createUpdateTableParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateUpdateTableSender sends the CreateUpdateTable request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) CreateUpdateTableSender(req *http.Request) (future DatabaseAccountsCreateUpdateTableFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// CreateUpdateTableResponder handles the response to the CreateUpdateTable request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) CreateUpdateTableResponder(resp *http.Response) (result Table, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes an existing Azure Cosmos DB database account. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +func (client DatabaseAccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountsDeleteFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.Delete") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "Delete", err.Error()) + } + + req, err := client.DeletePreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "Delete", result.Response(), "Failure sending request") + return + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client DatabaseAccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) DeleteSender(req *http.Request) (future DatabaseAccountsDeleteFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// DeleteCassandraKeyspace deletes an existing Azure Cosmos DB Cassandra keyspace. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// keyspaceName - cosmos DB keyspace name. +func (client DatabaseAccountsClient) DeleteCassandraKeyspace(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (result DatabaseAccountsDeleteCassandraKeyspaceFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.DeleteCassandraKeyspace") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "DeleteCassandraKeyspace", err.Error()) + } + + req, err := client.DeleteCassandraKeyspacePreparer(ctx, resourceGroupName, accountName, keyspaceName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteCassandraKeyspace", nil, "Failure preparing request") + return + } + + result, err = client.DeleteCassandraKeyspaceSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteCassandraKeyspace", result.Response(), "Failure sending request") + return + } + + return +} + +// DeleteCassandraKeyspacePreparer prepares the DeleteCassandraKeyspace request. +func (client DatabaseAccountsClient) DeleteCassandraKeyspacePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "keyspaceName": autorest.Encode("path", keyspaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteCassandraKeyspaceSender sends the DeleteCassandraKeyspace request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) DeleteCassandraKeyspaceSender(req *http.Request) (future DatabaseAccountsDeleteCassandraKeyspaceFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteCassandraKeyspaceResponder handles the response to the DeleteCassandraKeyspace request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) DeleteCassandraKeyspaceResponder(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 +} + +// DeleteCassandraTable deletes an existing Azure Cosmos DB Cassandra table. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// keyspaceName - cosmos DB keyspace name. +// tableName - cosmos DB table name. +func (client DatabaseAccountsClient) DeleteCassandraTable(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string) (result DatabaseAccountsDeleteCassandraTableFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.DeleteCassandraTable") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "DeleteCassandraTable", err.Error()) + } + + req, err := client.DeleteCassandraTablePreparer(ctx, resourceGroupName, accountName, keyspaceName, tableName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteCassandraTable", nil, "Failure preparing request") + return + } + + result, err = client.DeleteCassandraTableSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteCassandraTable", result.Response(), "Failure sending request") + return + } + + return +} + +// DeleteCassandraTablePreparer prepares the DeleteCassandraTable request. +func (client DatabaseAccountsClient) DeleteCassandraTablePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "keyspaceName": autorest.Encode("path", keyspaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tableName": autorest.Encode("path", tableName), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteCassandraTableSender sends the DeleteCassandraTable request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) DeleteCassandraTableSender(req *http.Request) (future DatabaseAccountsDeleteCassandraTableFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteCassandraTableResponder handles the response to the DeleteCassandraTable request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) DeleteCassandraTableResponder(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 +} + +// DeleteGremlinDatabase deletes an existing Azure Cosmos DB Gremlin database. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +func (client DatabaseAccountsClient) DeleteGremlinDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result DatabaseAccountsDeleteGremlinDatabaseFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.DeleteGremlinDatabase") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "DeleteGremlinDatabase", err.Error()) + } + + req, err := client.DeleteGremlinDatabasePreparer(ctx, resourceGroupName, accountName, databaseName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteGremlinDatabase", nil, "Failure preparing request") + return + } + + result, err = client.DeleteGremlinDatabaseSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteGremlinDatabase", result.Response(), "Failure sending request") + return + } + + return +} + +// DeleteGremlinDatabasePreparer prepares the DeleteGremlinDatabase request. +func (client DatabaseAccountsClient) DeleteGremlinDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "databaseName": autorest.Encode("path", databaseName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteGremlinDatabaseSender sends the DeleteGremlinDatabase request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) DeleteGremlinDatabaseSender(req *http.Request) (future DatabaseAccountsDeleteGremlinDatabaseFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteGremlinDatabaseResponder handles the response to the DeleteGremlinDatabase request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) DeleteGremlinDatabaseResponder(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 +} + +// DeleteGremlinGraph deletes an existing Azure Cosmos DB Gremlin graph. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +// graphName - cosmos DB graph name. +func (client DatabaseAccountsClient) DeleteGremlinGraph(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string) (result DatabaseAccountsDeleteGremlinGraphFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.DeleteGremlinGraph") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "DeleteGremlinGraph", err.Error()) + } + + req, err := client.DeleteGremlinGraphPreparer(ctx, resourceGroupName, accountName, databaseName, graphName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteGremlinGraph", nil, "Failure preparing request") + return + } + + result, err = client.DeleteGremlinGraphSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteGremlinGraph", result.Response(), "Failure sending request") + return + } + + return +} + +// DeleteGremlinGraphPreparer prepares the DeleteGremlinGraph request. +func (client DatabaseAccountsClient) DeleteGremlinGraphPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "databaseName": autorest.Encode("path", databaseName), + "graphName": autorest.Encode("path", graphName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteGremlinGraphSender sends the DeleteGremlinGraph request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) DeleteGremlinGraphSender(req *http.Request) (future DatabaseAccountsDeleteGremlinGraphFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteGremlinGraphResponder handles the response to the DeleteGremlinGraph request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) DeleteGremlinGraphResponder(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 +} + +// DeleteMongoDBCollection deletes an existing Azure Cosmos DB MongoDB Collection. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +// collectionName - cosmos DB collection name. +func (client DatabaseAccountsClient) DeleteMongoDBCollection(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string) (result DatabaseAccountsDeleteMongoDBCollectionFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.DeleteMongoDBCollection") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "DeleteMongoDBCollection", err.Error()) + } + + req, err := client.DeleteMongoDBCollectionPreparer(ctx, resourceGroupName, accountName, databaseName, collectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteMongoDBCollection", nil, "Failure preparing request") + return + } + + result, err = client.DeleteMongoDBCollectionSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteMongoDBCollection", result.Response(), "Failure sending request") + return + } + + return +} + +// DeleteMongoDBCollectionPreparer prepares the DeleteMongoDBCollection request. +func (client DatabaseAccountsClient) DeleteMongoDBCollectionPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "collectionName": autorest.Encode("path", collectionName), + "databaseName": autorest.Encode("path", databaseName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteMongoDBCollectionSender sends the DeleteMongoDBCollection request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) DeleteMongoDBCollectionSender(req *http.Request) (future DatabaseAccountsDeleteMongoDBCollectionFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteMongoDBCollectionResponder handles the response to the DeleteMongoDBCollection request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) DeleteMongoDBCollectionResponder(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 +} + +// DeleteMongoDBDatabase deletes an existing Azure Cosmos DB MongoDB database. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +func (client DatabaseAccountsClient) DeleteMongoDBDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result DatabaseAccountsDeleteMongoDBDatabaseFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.DeleteMongoDBDatabase") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "DeleteMongoDBDatabase", err.Error()) + } + + req, err := client.DeleteMongoDBDatabasePreparer(ctx, resourceGroupName, accountName, databaseName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteMongoDBDatabase", nil, "Failure preparing request") + return + } + + result, err = client.DeleteMongoDBDatabaseSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteMongoDBDatabase", result.Response(), "Failure sending request") + return + } + + return +} + +// DeleteMongoDBDatabasePreparer prepares the DeleteMongoDBDatabase request. +func (client DatabaseAccountsClient) DeleteMongoDBDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "databaseName": autorest.Encode("path", databaseName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteMongoDBDatabaseSender sends the DeleteMongoDBDatabase request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) DeleteMongoDBDatabaseSender(req *http.Request) (future DatabaseAccountsDeleteMongoDBDatabaseFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteMongoDBDatabaseResponder handles the response to the DeleteMongoDBDatabase request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) DeleteMongoDBDatabaseResponder(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 +} + +// DeleteSQLContainer deletes an existing Azure Cosmos DB SQL container. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +// containerName - cosmos DB container name. +func (client DatabaseAccountsClient) DeleteSQLContainer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string) (result DatabaseAccountsDeleteSQLContainerFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.DeleteSQLContainer") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "DeleteSQLContainer", err.Error()) + } + + req, err := client.DeleteSQLContainerPreparer(ctx, resourceGroupName, accountName, databaseName, containerName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteSQLContainer", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSQLContainerSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteSQLContainer", result.Response(), "Failure sending request") + return + } + + return +} + +// DeleteSQLContainerPreparer prepares the DeleteSQLContainer request. +func (client DatabaseAccountsClient) DeleteSQLContainerPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "containerName": autorest.Encode("path", containerName), + "databaseName": autorest.Encode("path", databaseName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSQLContainerSender sends the DeleteSQLContainer request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) DeleteSQLContainerSender(req *http.Request) (future DatabaseAccountsDeleteSQLContainerFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteSQLContainerResponder handles the response to the DeleteSQLContainer request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) DeleteSQLContainerResponder(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 +} + +// DeleteSQLDatabase deletes an existing Azure Cosmos DB SQL database. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +func (client DatabaseAccountsClient) DeleteSQLDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result DatabaseAccountsDeleteSQLDatabaseFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.DeleteSQLDatabase") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "DeleteSQLDatabase", err.Error()) + } + + req, err := client.DeleteSQLDatabasePreparer(ctx, resourceGroupName, accountName, databaseName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteSQLDatabase", nil, "Failure preparing request") + return + } + + result, err = client.DeleteSQLDatabaseSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteSQLDatabase", result.Response(), "Failure sending request") + return + } + + return +} + +// DeleteSQLDatabasePreparer prepares the DeleteSQLDatabase request. +func (client DatabaseAccountsClient) DeleteSQLDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "databaseName": autorest.Encode("path", databaseName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSQLDatabaseSender sends the DeleteSQLDatabase request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) DeleteSQLDatabaseSender(req *http.Request) (future DatabaseAccountsDeleteSQLDatabaseFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteSQLDatabaseResponder handles the response to the DeleteSQLDatabase request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) DeleteSQLDatabaseResponder(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 +} + +// DeleteTable deletes an existing Azure Cosmos DB Table. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// tableName - cosmos DB table name. +func (client DatabaseAccountsClient) DeleteTable(ctx context.Context, resourceGroupName string, accountName string, tableName string) (result DatabaseAccountsDeleteTableFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.DeleteTable") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "DeleteTable", err.Error()) + } + + req, err := client.DeleteTablePreparer(ctx, resourceGroupName, accountName, tableName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteTable", nil, "Failure preparing request") + return + } + + result, err = client.DeleteTableSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "DeleteTable", result.Response(), "Failure sending request") + return + } + + return +} + +// DeleteTablePreparer prepares the DeleteTable request. +func (client DatabaseAccountsClient) DeleteTablePreparer(ctx context.Context, resourceGroupName string, accountName string, tableName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tableName": autorest.Encode("path", tableName), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteTableSender sends the DeleteTable request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) DeleteTableSender(req *http.Request) (future DatabaseAccountsDeleteTableFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// DeleteTableResponder handles the response to the DeleteTable request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) DeleteTableResponder(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 +} + +// FailoverPriorityChange changes the failover priority for the Azure Cosmos DB database account. A failover priority +// of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover +// priority values must be unique for each of the regions in which the database account exists. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// failoverParameters - the new failover policies for the database account. +func (client DatabaseAccountsClient) FailoverPriorityChange(ctx context.Context, resourceGroupName string, accountName string, failoverParameters FailoverPolicies) (result DatabaseAccountsFailoverPriorityChangeFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.FailoverPriorityChange") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: failoverParameters, + Constraints: []validation.Constraint{{Target: "failoverParameters.FailoverPolicies", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "FailoverPriorityChange", err.Error()) + } + + req, err := client.FailoverPriorityChangePreparer(ctx, resourceGroupName, accountName, failoverParameters) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "FailoverPriorityChange", nil, "Failure preparing request") + return + } + + result, err = client.FailoverPriorityChangeSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "FailoverPriorityChange", result.Response(), "Failure sending request") + return + } + + return +} + +// FailoverPriorityChangePreparer prepares the FailoverPriorityChange request. +func (client DatabaseAccountsClient) FailoverPriorityChangePreparer(ctx context.Context, resourceGroupName string, accountName string, failoverParameters FailoverPolicies) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/failoverPriorityChange", pathParameters), + autorest.WithJSON(failoverParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// FailoverPriorityChangeSender sends the FailoverPriorityChange request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) FailoverPriorityChangeSender(req *http.Request) (future DatabaseAccountsFailoverPriorityChangeFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// FailoverPriorityChangeResponder handles the response to the FailoverPriorityChange request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) FailoverPriorityChangeResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get retrieves the properties of an existing Azure Cosmos DB database account. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +func (client DatabaseAccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccount, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client DatabaseAccountsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) GetResponder(resp *http.Response) (result DatabaseAccount, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetCassandraKeyspace gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the +// provided name. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// keyspaceName - cosmos DB keyspace name. +func (client DatabaseAccountsClient) GetCassandraKeyspace(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (result CassandraKeyspace, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.GetCassandraKeyspace") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "GetCassandraKeyspace", err.Error()) + } + + req, err := client.GetCassandraKeyspacePreparer(ctx, resourceGroupName, accountName, keyspaceName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetCassandraKeyspace", nil, "Failure preparing request") + return + } + + resp, err := client.GetCassandraKeyspaceSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetCassandraKeyspace", resp, "Failure sending request") + return + } + + result, err = client.GetCassandraKeyspaceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetCassandraKeyspace", resp, "Failure responding to request") + } + + return +} + +// GetCassandraKeyspacePreparer prepares the GetCassandraKeyspace request. +func (client DatabaseAccountsClient) GetCassandraKeyspacePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "keyspaceName": autorest.Encode("path", keyspaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetCassandraKeyspaceSender sends the GetCassandraKeyspace request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) GetCassandraKeyspaceSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetCassandraKeyspaceResponder handles the response to the GetCassandraKeyspace request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) GetCassandraKeyspaceResponder(resp *http.Response) (result CassandraKeyspace, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetCassandraTable gets the Cassandra table under an existing Azure Cosmos DB database account. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// keyspaceName - cosmos DB keyspace name. +// tableName - cosmos DB table name. +func (client DatabaseAccountsClient) GetCassandraTable(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string) (result CassandraTable, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.GetCassandraTable") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "GetCassandraTable", err.Error()) + } + + req, err := client.GetCassandraTablePreparer(ctx, resourceGroupName, accountName, keyspaceName, tableName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetCassandraTable", nil, "Failure preparing request") + return + } + + resp, err := client.GetCassandraTableSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetCassandraTable", resp, "Failure sending request") + return + } + + result, err = client.GetCassandraTableResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetCassandraTable", resp, "Failure responding to request") + } + + return +} + +// GetCassandraTablePreparer prepares the GetCassandraTable request. +func (client DatabaseAccountsClient) GetCassandraTablePreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "keyspaceName": autorest.Encode("path", keyspaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tableName": autorest.Encode("path", tableName), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetCassandraTableSender sends the GetCassandraTable request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) GetCassandraTableSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetCassandraTableResponder handles the response to the GetCassandraTable request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) GetCassandraTableResponder(resp *http.Response) (result CassandraTable, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetGremlinDatabase gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided +// name. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +func (client DatabaseAccountsClient) GetGremlinDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result GremlinDatabase, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.GetGremlinDatabase") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "GetGremlinDatabase", err.Error()) + } + + req, err := client.GetGremlinDatabasePreparer(ctx, resourceGroupName, accountName, databaseName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetGremlinDatabase", nil, "Failure preparing request") + return + } + + resp, err := client.GetGremlinDatabaseSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetGremlinDatabase", resp, "Failure sending request") + return + } + + result, err = client.GetGremlinDatabaseResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetGremlinDatabase", resp, "Failure responding to request") + } + + return +} + +// GetGremlinDatabasePreparer prepares the GetGremlinDatabase request. +func (client DatabaseAccountsClient) GetGremlinDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "databaseName": autorest.Encode("path", databaseName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetGremlinDatabaseSender sends the GetGremlinDatabase request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) GetGremlinDatabaseSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetGremlinDatabaseResponder handles the response to the GetGremlinDatabase request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) GetGremlinDatabaseResponder(resp *http.Response) (result GremlinDatabase, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetGremlinGraph gets the Gremlin graph under an existing Azure Cosmos DB database account. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +// graphName - cosmos DB graph name. +func (client DatabaseAccountsClient) GetGremlinGraph(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string) (result GremlinGraph, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.GetGremlinGraph") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "GetGremlinGraph", err.Error()) + } + + req, err := client.GetGremlinGraphPreparer(ctx, resourceGroupName, accountName, databaseName, graphName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetGremlinGraph", nil, "Failure preparing request") + return + } + + resp, err := client.GetGremlinGraphSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetGremlinGraph", resp, "Failure sending request") + return + } + + result, err = client.GetGremlinGraphResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetGremlinGraph", resp, "Failure responding to request") + } + + return +} + +// GetGremlinGraphPreparer prepares the GetGremlinGraph request. +func (client DatabaseAccountsClient) GetGremlinGraphPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "databaseName": autorest.Encode("path", databaseName), + "graphName": autorest.Encode("path", graphName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetGremlinGraphSender sends the GetGremlinGraph request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) GetGremlinGraphSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetGremlinGraphResponder handles the response to the GetGremlinGraph request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) GetGremlinGraphResponder(resp *http.Response) (result GremlinGraph, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetMongoDBCollection gets the MongoDB collection under an existing Azure Cosmos DB database account. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +// collectionName - cosmos DB collection name. +func (client DatabaseAccountsClient) GetMongoDBCollection(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string) (result MongoDBCollection, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.GetMongoDBCollection") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "GetMongoDBCollection", err.Error()) + } + + req, err := client.GetMongoDBCollectionPreparer(ctx, resourceGroupName, accountName, databaseName, collectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetMongoDBCollection", nil, "Failure preparing request") + return + } + + resp, err := client.GetMongoDBCollectionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetMongoDBCollection", resp, "Failure sending request") + return + } + + result, err = client.GetMongoDBCollectionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetMongoDBCollection", resp, "Failure responding to request") + } + + return +} + +// GetMongoDBCollectionPreparer prepares the GetMongoDBCollection request. +func (client DatabaseAccountsClient) GetMongoDBCollectionPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "collectionName": autorest.Encode("path", collectionName), + "databaseName": autorest.Encode("path", databaseName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetMongoDBCollectionSender sends the GetMongoDBCollection request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) GetMongoDBCollectionSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetMongoDBCollectionResponder handles the response to the GetMongoDBCollection request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) GetMongoDBCollectionResponder(resp *http.Response) (result MongoDBCollection, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetMongoDBDatabase gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided +// name. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +func (client DatabaseAccountsClient) GetMongoDBDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result MongoDBDatabase, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.GetMongoDBDatabase") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "GetMongoDBDatabase", err.Error()) + } + + req, err := client.GetMongoDBDatabasePreparer(ctx, resourceGroupName, accountName, databaseName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetMongoDBDatabase", nil, "Failure preparing request") + return + } + + resp, err := client.GetMongoDBDatabaseSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetMongoDBDatabase", resp, "Failure sending request") + return + } + + result, err = client.GetMongoDBDatabaseResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetMongoDBDatabase", resp, "Failure responding to request") + } + + return +} + +// GetMongoDBDatabasePreparer prepares the GetMongoDBDatabase request. +func (client DatabaseAccountsClient) GetMongoDBDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "databaseName": autorest.Encode("path", databaseName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetMongoDBDatabaseSender sends the GetMongoDBDatabase request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) GetMongoDBDatabaseSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetMongoDBDatabaseResponder handles the response to the GetMongoDBDatabase request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) GetMongoDBDatabaseResponder(resp *http.Response) (result MongoDBDatabase, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetReadOnlyKeys lists the read-only access keys for the specified Azure Cosmos DB database account. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +func (client DatabaseAccountsClient) GetReadOnlyKeys(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountListReadOnlyKeysResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.GetReadOnlyKeys") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "GetReadOnlyKeys", err.Error()) + } + + req, err := client.GetReadOnlyKeysPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetReadOnlyKeys", nil, "Failure preparing request") + return + } + + resp, err := client.GetReadOnlyKeysSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetReadOnlyKeys", resp, "Failure sending request") + return + } + + result, err = client.GetReadOnlyKeysResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetReadOnlyKeys", resp, "Failure responding to request") + } + + return +} + +// GetReadOnlyKeysPreparer prepares the GetReadOnlyKeys request. +func (client DatabaseAccountsClient) GetReadOnlyKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/readonlykeys", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetReadOnlyKeysSender sends the GetReadOnlyKeys request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) GetReadOnlyKeysSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetReadOnlyKeysResponder handles the response to the GetReadOnlyKeys request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) GetReadOnlyKeysResponder(resp *http.Response) (result DatabaseAccountListReadOnlyKeysResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetSQLContainer gets the SQL container under an existing Azure Cosmos DB database account. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +// containerName - cosmos DB container name. +func (client DatabaseAccountsClient) GetSQLContainer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string) (result SQLContainer, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.GetSQLContainer") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "GetSQLContainer", err.Error()) + } + + req, err := client.GetSQLContainerPreparer(ctx, resourceGroupName, accountName, databaseName, containerName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetSQLContainer", nil, "Failure preparing request") + return + } + + resp, err := client.GetSQLContainerSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetSQLContainer", resp, "Failure sending request") + return + } + + result, err = client.GetSQLContainerResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetSQLContainer", resp, "Failure responding to request") + } + + return +} + +// GetSQLContainerPreparer prepares the GetSQLContainer request. +func (client DatabaseAccountsClient) GetSQLContainerPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "containerName": autorest.Encode("path", containerName), + "databaseName": autorest.Encode("path", databaseName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSQLContainerSender sends the GetSQLContainer request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) GetSQLContainerSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetSQLContainerResponder handles the response to the GetSQLContainer request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) GetSQLContainerResponder(resp *http.Response) (result SQLContainer, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetSQLDatabase gets the SQL databases under an existing Azure Cosmos DB database account with the provided name. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +func (client DatabaseAccountsClient) GetSQLDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result SQLDatabase, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.GetSQLDatabase") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "GetSQLDatabase", err.Error()) + } + + req, err := client.GetSQLDatabasePreparer(ctx, resourceGroupName, accountName, databaseName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetSQLDatabase", nil, "Failure preparing request") + return + } + + resp, err := client.GetSQLDatabaseSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetSQLDatabase", resp, "Failure sending request") + return + } + + result, err = client.GetSQLDatabaseResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetSQLDatabase", resp, "Failure responding to request") + } + + return +} + +// GetSQLDatabasePreparer prepares the GetSQLDatabase request. +func (client DatabaseAccountsClient) GetSQLDatabasePreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "databaseName": autorest.Encode("path", databaseName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSQLDatabaseSender sends the GetSQLDatabase request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) GetSQLDatabaseSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetSQLDatabaseResponder handles the response to the GetSQLDatabase request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) GetSQLDatabaseResponder(resp *http.Response) (result SQLDatabase, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// GetTable gets the Tables under an existing Azure Cosmos DB database account with the provided name. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// tableName - cosmos DB table name. +func (client DatabaseAccountsClient) GetTable(ctx context.Context, resourceGroupName string, accountName string, tableName string) (result Table, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.GetTable") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "GetTable", err.Error()) + } + + req, err := client.GetTablePreparer(ctx, resourceGroupName, accountName, tableName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetTable", nil, "Failure preparing request") + return + } + + resp, err := client.GetTableSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetTable", resp, "Failure sending request") + return + } + + result, err = client.GetTableResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetTable", resp, "Failure responding to request") + } + + return +} + +// GetTablePreparer prepares the GetTable request. +func (client DatabaseAccountsClient) GetTablePreparer(ctx context.Context, resourceGroupName string, accountName string, tableName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "tableName": autorest.Encode("path", tableName), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetTableSender sends the GetTable request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) GetTableSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetTableResponder handles the response to the GetTable request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) GetTableResponder(resp *http.Response) (result Table, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List lists all the Azure Cosmos DB database accounts available under the subscription. +func (client DatabaseAccountsClient) List(ctx context.Context) (result DatabaseAccountsListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "List", resp, "Failure responding to request") + } + + return +} + +// ListPreparer prepares the List request. +func (client DatabaseAccountsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/databaseAccounts", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) ListSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) ListResponder(resp *http.Response) (result DatabaseAccountsListResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByResourceGroup lists all the Azure Cosmos DB database accounts available under the given resource group. +// Parameters: +// resourceGroupName - name of an Azure resource group. +func (client DatabaseAccountsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result DatabaseAccountsListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListByResourceGroup") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListByResourceGroup", err.Error()) + } + + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client DatabaseAccountsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) ListByResourceGroupResponder(resp *http.Response) (result DatabaseAccountsListResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListCassandraKeyspaces lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +func (client DatabaseAccountsClient) ListCassandraKeyspaces(ctx context.Context, resourceGroupName string, accountName string) (result CassandraKeyspaceListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListCassandraKeyspaces") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListCassandraKeyspaces", err.Error()) + } + + req, err := client.ListCassandraKeyspacesPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListCassandraKeyspaces", nil, "Failure preparing request") + return + } + + resp, err := client.ListCassandraKeyspacesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListCassandraKeyspaces", resp, "Failure sending request") + return + } + + result, err = client.ListCassandraKeyspacesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListCassandraKeyspaces", resp, "Failure responding to request") + } + + return +} + +// ListCassandraKeyspacesPreparer prepares the ListCassandraKeyspaces request. +func (client DatabaseAccountsClient) ListCassandraKeyspacesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListCassandraKeyspacesSender sends the ListCassandraKeyspaces request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) ListCassandraKeyspacesSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListCassandraKeyspacesResponder handles the response to the ListCassandraKeyspaces request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) ListCassandraKeyspacesResponder(resp *http.Response) (result CassandraKeyspaceListResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListCassandraTables lists the Cassandra table under an existing Azure Cosmos DB database account. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// keyspaceName - cosmos DB keyspace name. +func (client DatabaseAccountsClient) ListCassandraTables(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (result CassandraTableListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListCassandraTables") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListCassandraTables", err.Error()) + } + + req, err := client.ListCassandraTablesPreparer(ctx, resourceGroupName, accountName, keyspaceName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListCassandraTables", nil, "Failure preparing request") + return + } + + resp, err := client.ListCassandraTablesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListCassandraTables", resp, "Failure sending request") + return + } + + result, err = client.ListCassandraTablesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListCassandraTables", resp, "Failure responding to request") + } + + return +} + +// ListCassandraTablesPreparer prepares the ListCassandraTables request. +func (client DatabaseAccountsClient) ListCassandraTablesPreparer(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "keyspaceName": autorest.Encode("path", keyspaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListCassandraTablesSender sends the ListCassandraTables request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) ListCassandraTablesSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListCassandraTablesResponder handles the response to the ListCassandraTables request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) ListCassandraTablesResponder(resp *http.Response) (result CassandraTableListResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListConnectionStrings lists the connection strings for the specified Azure Cosmos DB database account. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +func (client DatabaseAccountsClient) ListConnectionStrings(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountListConnectionStringsResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListConnectionStrings") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListConnectionStrings", err.Error()) + } + + req, err := client.ListConnectionStringsPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListConnectionStrings", nil, "Failure preparing request") + return + } + + resp, err := client.ListConnectionStringsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListConnectionStrings", resp, "Failure sending request") + return + } + + result, err = client.ListConnectionStringsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListConnectionStrings", resp, "Failure responding to request") + } + + return +} + +// ListConnectionStringsPreparer prepares the ListConnectionStrings request. +func (client DatabaseAccountsClient) ListConnectionStringsPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listConnectionStrings", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListConnectionStringsSender sends the ListConnectionStrings request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) ListConnectionStringsSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListConnectionStringsResponder handles the response to the ListConnectionStrings request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) ListConnectionStringsResponder(resp *http.Response) (result DatabaseAccountListConnectionStringsResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListGremlinDatabases lists the Gremlin databases under an existing Azure Cosmos DB database account. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +func (client DatabaseAccountsClient) ListGremlinDatabases(ctx context.Context, resourceGroupName string, accountName string) (result GremlinDatabaseListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListGremlinDatabases") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListGremlinDatabases", err.Error()) + } + + req, err := client.ListGremlinDatabasesPreparer(ctx, resourceGroupName, accountName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListGremlinDatabases", nil, "Failure preparing request") + return + } + + resp, err := client.ListGremlinDatabasesSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListGremlinDatabases", resp, "Failure sending request") + return + } + + result, err = client.ListGremlinDatabasesResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListGremlinDatabases", resp, "Failure responding to request") + } + + return +} + +// ListGremlinDatabasesPreparer prepares the ListGremlinDatabases request. +func (client DatabaseAccountsClient) ListGremlinDatabasesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListGremlinDatabasesSender sends the ListGremlinDatabases request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) ListGremlinDatabasesSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListGremlinDatabasesResponder handles the response to the ListGremlinDatabases request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) ListGremlinDatabasesResponder(resp *http.Response) (result GremlinDatabaseListResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListGremlinGraphs lists the Gremlin graph under an existing Azure Cosmos DB database account. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +func (client DatabaseAccountsClient) ListGremlinGraphs(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result GremlinGraphListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListGremlinGraphs") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListGremlinGraphs", err.Error()) + } + + req, err := client.ListGremlinGraphsPreparer(ctx, resourceGroupName, accountName, databaseName) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListGremlinGraphs", nil, "Failure preparing request") + return + } + + resp, err := client.ListGremlinGraphsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListGremlinGraphs", resp, "Failure sending request") + return + } + + result, err = client.ListGremlinGraphsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListGremlinGraphs", resp, "Failure responding to request") + } + + return +} + +// ListGremlinGraphsPreparer prepares the ListGremlinGraphs request. +func (client DatabaseAccountsClient) ListGremlinGraphsPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "databaseName": autorest.Encode("path", databaseName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-04-08" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListGremlinGraphsSender sends the ListGremlinGraphs request. The method will close the +// http.Response Body if it receives an error. +func (client DatabaseAccountsClient) ListGremlinGraphsSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListGremlinGraphsResponder handles the response to the ListGremlinGraphs request. The method always +// closes the http.Response Body. +func (client DatabaseAccountsClient) ListGremlinGraphsResponder(resp *http.Response) (result GremlinGraphListResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListKeys lists the access keys for the specified Azure Cosmos DB database account. // Parameters: // resourceGroupName - name of an Azure resource group. // accountName - cosmos DB database account name. -func (client DatabaseAccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccount, err error) { +func (client DatabaseAccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountListKeysResult, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.Get") + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListKeys") defer func() { sc := -1 if result.Response.Response != nil { @@ -432,32 +3736,32 @@ func (client DatabaseAccountsClient) Get(ctx context.Context, resourceGroupName {TargetValue: accountName, Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { - return result, validation.NewError("documentdb.DatabaseAccountsClient", "Get", err.Error()) + return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListKeys", err.Error()) } - req, err := client.GetPreparer(ctx, resourceGroupName, accountName) + req, err := client.ListKeysPreparer(ctx, resourceGroupName, accountName) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "Get", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListKeys", nil, "Failure preparing request") return } - resp, err := client.GetSender(req) + resp, err := client.ListKeysSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "Get", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListKeys", resp, "Failure sending request") return } - result, err = client.GetResponder(resp) + result, err = client.ListKeysResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "Get", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListKeys", resp, "Failure responding to request") } return } -// GetPreparer prepares the Get request. -func (client DatabaseAccountsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { +// ListKeysPreparer prepares the ListKeys request. +func (client DatabaseAccountsClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "accountName": autorest.Encode("path", accountName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -470,23 +3774,23 @@ func (client DatabaseAccountsClient) GetPreparer(ctx context.Context, resourceGr } preparer := autorest.CreatePreparer( - autorest.AsGet(), + autorest.AsPost(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listKeys", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// GetSender sends the Get request. The method will close the +// ListKeysSender sends the ListKeys request. The method will close the // http.Response Body if it receives an error. -func (client DatabaseAccountsClient) GetSender(req *http.Request) (*http.Response, error) { +func (client DatabaseAccountsClient) ListKeysSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } -// GetResponder handles the response to the Get request. The method always +// ListKeysResponder handles the response to the ListKeys request. The method always // closes the http.Response Body. -func (client DatabaseAccountsClient) GetResponder(resp *http.Response) (result DatabaseAccount, err error) { +func (client DatabaseAccountsClient) ListKeysResponder(resp *http.Response) (result DatabaseAccountListKeysResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -497,13 +3801,13 @@ func (client DatabaseAccountsClient) GetResponder(resp *http.Response) (result D return } -// GetReadOnlyKeys lists the read-only access keys for the specified Azure Cosmos DB database account. +// ListMetricDefinitions retrieves metric definitions for the given database account. // Parameters: // resourceGroupName - name of an Azure resource group. // accountName - cosmos DB database account name. -func (client DatabaseAccountsClient) GetReadOnlyKeys(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountListReadOnlyKeysResult, err error) { +func (client DatabaseAccountsClient) ListMetricDefinitions(ctx context.Context, resourceGroupName string, accountName string) (result MetricDefinitionsListResult, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.GetReadOnlyKeys") + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListMetricDefinitions") defer func() { sc := -1 if result.Response.Response != nil { @@ -520,32 +3824,32 @@ func (client DatabaseAccountsClient) GetReadOnlyKeys(ctx context.Context, resour {TargetValue: accountName, Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { - return result, validation.NewError("documentdb.DatabaseAccountsClient", "GetReadOnlyKeys", err.Error()) + return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListMetricDefinitions", err.Error()) } - req, err := client.GetReadOnlyKeysPreparer(ctx, resourceGroupName, accountName) + req, err := client.ListMetricDefinitionsPreparer(ctx, resourceGroupName, accountName) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetReadOnlyKeys", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetricDefinitions", nil, "Failure preparing request") return } - resp, err := client.GetReadOnlyKeysSender(req) + resp, err := client.ListMetricDefinitionsSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetReadOnlyKeys", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetricDefinitions", resp, "Failure sending request") return } - result, err = client.GetReadOnlyKeysResponder(resp) + result, err = client.ListMetricDefinitionsResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "GetReadOnlyKeys", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetricDefinitions", resp, "Failure responding to request") } return } -// GetReadOnlyKeysPreparer prepares the GetReadOnlyKeys request. -func (client DatabaseAccountsClient) GetReadOnlyKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { +// ListMetricDefinitionsPreparer prepares the ListMetricDefinitions request. +func (client DatabaseAccountsClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "accountName": autorest.Encode("path", accountName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -560,21 +3864,21 @@ func (client DatabaseAccountsClient) GetReadOnlyKeysPreparer(ctx context.Context preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/readonlykeys", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/metricDefinitions", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// GetReadOnlyKeysSender sends the GetReadOnlyKeys request. The method will close the +// ListMetricDefinitionsSender sends the ListMetricDefinitions request. The method will close the // http.Response Body if it receives an error. -func (client DatabaseAccountsClient) GetReadOnlyKeysSender(req *http.Request) (*http.Response, error) { +func (client DatabaseAccountsClient) ListMetricDefinitionsSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } -// GetReadOnlyKeysResponder handles the response to the GetReadOnlyKeys request. The method always +// ListMetricDefinitionsResponder handles the response to the ListMetricDefinitions request. The method always // closes the http.Response Body. -func (client DatabaseAccountsClient) GetReadOnlyKeysResponder(resp *http.Response) (result DatabaseAccountListReadOnlyKeysResult, err error) { +func (client DatabaseAccountsClient) ListMetricDefinitionsResponder(resp *http.Response) (result MetricDefinitionsListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -585,10 +3889,16 @@ func (client DatabaseAccountsClient) GetReadOnlyKeysResponder(resp *http.Respons return } -// List lists all the Azure Cosmos DB database accounts available under the subscription. -func (client DatabaseAccountsClient) List(ctx context.Context) (result DatabaseAccountsListResult, err error) { +// ListMetrics retrieves the metrics determined by the given filter for the given database account. +// Parameters: +// resourceGroupName - name of an Azure resource group. +// accountName - cosmos DB database account name. +// filter - an OData filter expression that describes a subset of metrics to return. The parameters that can be +// filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and +// timeGrain. The supported operator is eq. +func (client DatabaseAccountsClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, filter string) (result MetricListResult, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.List") + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListMetrics") defer func() { sc := -1 if result.Response.Response != nil { @@ -597,56 +3907,70 @@ func (client DatabaseAccountsClient) List(ctx context.Context) (result DatabaseA tracing.EndSpan(ctx, sc, err) }() } - req, err := client.ListPreparer(ctx) + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListMetrics", err.Error()) + } + + req, err := client.ListMetricsPreparer(ctx, resourceGroupName, accountName, filter) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "List", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetrics", nil, "Failure preparing request") return } - resp, err := client.ListSender(req) + resp, err := client.ListMetricsSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "List", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetrics", resp, "Failure sending request") return } - result, err = client.ListResponder(resp) + result, err = client.ListMetricsResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "List", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetrics", resp, "Failure responding to request") } return } -// ListPreparer prepares the List request. -func (client DatabaseAccountsClient) ListPreparer(ctx context.Context) (*http.Request, error) { +// ListMetricsPreparer prepares the ListMetrics request. +func (client DatabaseAccountsClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, filter string) (*http.Request, error) { pathParameters := map[string]interface{}{ - "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "accountName": autorest.Encode("path", accountName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), } const APIVersion = "2015-04-08" queryParameters := map[string]interface{}{ + "$filter": autorest.Encode("query", filter), "api-version": APIVersion, } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/databaseAccounts", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/metrics", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// ListSender sends the List request. The method will close the +// ListMetricsSender sends the ListMetrics request. The method will close the // http.Response Body if it receives an error. -func (client DatabaseAccountsClient) ListSender(req *http.Request) (*http.Response, error) { +func (client DatabaseAccountsClient) ListMetricsSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } -// ListResponder handles the response to the List request. The method always +// ListMetricsResponder handles the response to the ListMetrics request. The method always // closes the http.Response Body. -func (client DatabaseAccountsClient) ListResponder(resp *http.Response) (result DatabaseAccountsListResult, err error) { +func (client DatabaseAccountsClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -657,12 +3981,14 @@ func (client DatabaseAccountsClient) ListResponder(resp *http.Response) (result return } -// ListByResourceGroup lists all the Azure Cosmos DB database accounts available under the given resource group. +// ListMongoDBCollections lists the MongoDB collection under an existing Azure Cosmos DB database account. // Parameters: // resourceGroupName - name of an Azure resource group. -func (client DatabaseAccountsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result DatabaseAccountsListResult, err error) { +// accountName - cosmos DB database account name. +// databaseName - cosmos DB database name. +func (client DatabaseAccountsClient) ListMongoDBCollections(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result MongoDBCollectionListResult, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListByResourceGroup") + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListMongoDBCollections") defer func() { sc := -1 if result.Response.Response != nil { @@ -675,34 +4001,39 @@ func (client DatabaseAccountsClient) ListByResourceGroup(ctx context.Context, re {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListByResourceGroup", err.Error()) + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { + return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListMongoDBCollections", err.Error()) } - req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + req, err := client.ListMongoDBCollectionsPreparer(ctx, resourceGroupName, accountName, databaseName) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListByResourceGroup", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMongoDBCollections", nil, "Failure preparing request") return } - resp, err := client.ListByResourceGroupSender(req) + resp, err := client.ListMongoDBCollectionsSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListByResourceGroup", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMongoDBCollections", resp, "Failure sending request") return } - result, err = client.ListByResourceGroupResponder(resp) + result, err = client.ListMongoDBCollectionsResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListByResourceGroup", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMongoDBCollections", resp, "Failure responding to request") } return } -// ListByResourceGroupPreparer prepares the ListByResourceGroup request. -func (client DatabaseAccountsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { +// ListMongoDBCollectionsPreparer prepares the ListMongoDBCollections request. +func (client DatabaseAccountsClient) ListMongoDBCollectionsPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error) { pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "databaseName": autorest.Encode("path", databaseName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } @@ -715,21 +4046,21 @@ func (client DatabaseAccountsClient) ListByResourceGroupPreparer(ctx context.Con preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// ListMongoDBCollectionsSender sends the ListMongoDBCollections request. The method will close the // http.Response Body if it receives an error. -func (client DatabaseAccountsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { +func (client DatabaseAccountsClient) ListMongoDBCollectionsSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } -// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// ListMongoDBCollectionsResponder handles the response to the ListMongoDBCollections request. The method always // closes the http.Response Body. -func (client DatabaseAccountsClient) ListByResourceGroupResponder(resp *http.Response) (result DatabaseAccountsListResult, err error) { +func (client DatabaseAccountsClient) ListMongoDBCollectionsResponder(resp *http.Response) (result MongoDBCollectionListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -740,13 +4071,13 @@ func (client DatabaseAccountsClient) ListByResourceGroupResponder(resp *http.Res return } -// ListConnectionStrings lists the connection strings for the specified Azure Cosmos DB database account. +// ListMongoDBDatabases lists the MongoDB databases under an existing Azure Cosmos DB database account. // Parameters: // resourceGroupName - name of an Azure resource group. // accountName - cosmos DB database account name. -func (client DatabaseAccountsClient) ListConnectionStrings(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountListConnectionStringsResult, err error) { +func (client DatabaseAccountsClient) ListMongoDBDatabases(ctx context.Context, resourceGroupName string, accountName string) (result MongoDBDatabaseListResult, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListConnectionStrings") + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListMongoDBDatabases") defer func() { sc := -1 if result.Response.Response != nil { @@ -763,32 +4094,32 @@ func (client DatabaseAccountsClient) ListConnectionStrings(ctx context.Context, {TargetValue: accountName, Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { - return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListConnectionStrings", err.Error()) + return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListMongoDBDatabases", err.Error()) } - req, err := client.ListConnectionStringsPreparer(ctx, resourceGroupName, accountName) + req, err := client.ListMongoDBDatabasesPreparer(ctx, resourceGroupName, accountName) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListConnectionStrings", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMongoDBDatabases", nil, "Failure preparing request") return } - resp, err := client.ListConnectionStringsSender(req) + resp, err := client.ListMongoDBDatabasesSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListConnectionStrings", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMongoDBDatabases", resp, "Failure sending request") return } - result, err = client.ListConnectionStringsResponder(resp) + result, err = client.ListMongoDBDatabasesResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListConnectionStrings", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMongoDBDatabases", resp, "Failure responding to request") } return } -// ListConnectionStringsPreparer prepares the ListConnectionStrings request. -func (client DatabaseAccountsClient) ListConnectionStringsPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { +// ListMongoDBDatabasesPreparer prepares the ListMongoDBDatabases request. +func (client DatabaseAccountsClient) ListMongoDBDatabasesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "accountName": autorest.Encode("path", accountName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -801,23 +4132,23 @@ func (client DatabaseAccountsClient) ListConnectionStringsPreparer(ctx context.C } preparer := autorest.CreatePreparer( - autorest.AsPost(), + autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listConnectionStrings", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// ListConnectionStringsSender sends the ListConnectionStrings request. The method will close the +// ListMongoDBDatabasesSender sends the ListMongoDBDatabases request. The method will close the // http.Response Body if it receives an error. -func (client DatabaseAccountsClient) ListConnectionStringsSender(req *http.Request) (*http.Response, error) { +func (client DatabaseAccountsClient) ListMongoDBDatabasesSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } -// ListConnectionStringsResponder handles the response to the ListConnectionStrings request. The method always +// ListMongoDBDatabasesResponder handles the response to the ListMongoDBDatabases request. The method always // closes the http.Response Body. -func (client DatabaseAccountsClient) ListConnectionStringsResponder(resp *http.Response) (result DatabaseAccountListConnectionStringsResult, err error) { +func (client DatabaseAccountsClient) ListMongoDBDatabasesResponder(resp *http.Response) (result MongoDBDatabaseListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -828,13 +4159,13 @@ func (client DatabaseAccountsClient) ListConnectionStringsResponder(resp *http.R return } -// ListKeys lists the access keys for the specified Azure Cosmos DB database account. +// ListReadOnlyKeys lists the read-only access keys for the specified Azure Cosmos DB database account. // Parameters: // resourceGroupName - name of an Azure resource group. // accountName - cosmos DB database account name. -func (client DatabaseAccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountListKeysResult, err error) { +func (client DatabaseAccountsClient) ListReadOnlyKeys(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountListReadOnlyKeysResult, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListKeys") + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListReadOnlyKeys") defer func() { sc := -1 if result.Response.Response != nil { @@ -851,32 +4182,32 @@ func (client DatabaseAccountsClient) ListKeys(ctx context.Context, resourceGroup {TargetValue: accountName, Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { - return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListKeys", err.Error()) + return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListReadOnlyKeys", err.Error()) } - req, err := client.ListKeysPreparer(ctx, resourceGroupName, accountName) + req, err := client.ListReadOnlyKeysPreparer(ctx, resourceGroupName, accountName) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListKeys", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListReadOnlyKeys", nil, "Failure preparing request") return } - resp, err := client.ListKeysSender(req) + resp, err := client.ListReadOnlyKeysSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListKeys", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListReadOnlyKeys", resp, "Failure sending request") return } - result, err = client.ListKeysResponder(resp) + result, err = client.ListReadOnlyKeysResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListKeys", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListReadOnlyKeys", resp, "Failure responding to request") } return } -// ListKeysPreparer prepares the ListKeys request. -func (client DatabaseAccountsClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { +// ListReadOnlyKeysPreparer prepares the ListReadOnlyKeys request. +func (client DatabaseAccountsClient) ListReadOnlyKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "accountName": autorest.Encode("path", accountName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -891,21 +4222,21 @@ func (client DatabaseAccountsClient) ListKeysPreparer(ctx context.Context, resou preparer := autorest.CreatePreparer( autorest.AsPost(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listKeys", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/readonlykeys", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// ListKeysSender sends the ListKeys request. The method will close the +// ListReadOnlyKeysSender sends the ListReadOnlyKeys request. The method will close the // http.Response Body if it receives an error. -func (client DatabaseAccountsClient) ListKeysSender(req *http.Request) (*http.Response, error) { +func (client DatabaseAccountsClient) ListReadOnlyKeysSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } -// ListKeysResponder handles the response to the ListKeys request. The method always +// ListReadOnlyKeysResponder handles the response to the ListReadOnlyKeys request. The method always // closes the http.Response Body. -func (client DatabaseAccountsClient) ListKeysResponder(resp *http.Response) (result DatabaseAccountListKeysResult, err error) { +func (client DatabaseAccountsClient) ListReadOnlyKeysResponder(resp *http.Response) (result DatabaseAccountListReadOnlyKeysResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -916,13 +4247,14 @@ func (client DatabaseAccountsClient) ListKeysResponder(resp *http.Response) (res return } -// ListMetricDefinitions retrieves metric definitions for the given database account. +// ListSQLContainers lists the SQL container under an existing Azure Cosmos DB database account. // Parameters: // resourceGroupName - name of an Azure resource group. // accountName - cosmos DB database account name. -func (client DatabaseAccountsClient) ListMetricDefinitions(ctx context.Context, resourceGroupName string, accountName string) (result MetricDefinitionsListResult, err error) { +// databaseName - cosmos DB database name. +func (client DatabaseAccountsClient) ListSQLContainers(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (result SQLContainerListResult, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListMetricDefinitions") + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListSQLContainers") defer func() { sc := -1 if result.Response.Response != nil { @@ -939,34 +4271,35 @@ func (client DatabaseAccountsClient) ListMetricDefinitions(ctx context.Context, {TargetValue: accountName, Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { - return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListMetricDefinitions", err.Error()) + return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListSQLContainers", err.Error()) } - req, err := client.ListMetricDefinitionsPreparer(ctx, resourceGroupName, accountName) + req, err := client.ListSQLContainersPreparer(ctx, resourceGroupName, accountName, databaseName) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetricDefinitions", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListSQLContainers", nil, "Failure preparing request") return } - resp, err := client.ListMetricDefinitionsSender(req) + resp, err := client.ListSQLContainersSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetricDefinitions", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListSQLContainers", resp, "Failure sending request") return } - result, err = client.ListMetricDefinitionsResponder(resp) + result, err = client.ListSQLContainersResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetricDefinitions", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListSQLContainers", resp, "Failure responding to request") } return } -// ListMetricDefinitionsPreparer prepares the ListMetricDefinitions request. -func (client DatabaseAccountsClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { +// ListSQLContainersPreparer prepares the ListSQLContainers request. +func (client DatabaseAccountsClient) ListSQLContainersPreparer(ctx context.Context, resourceGroupName string, accountName string, databaseName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "accountName": autorest.Encode("path", accountName), + "databaseName": autorest.Encode("path", databaseName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } @@ -979,21 +4312,21 @@ func (client DatabaseAccountsClient) ListMetricDefinitionsPreparer(ctx context.C preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/metricDefinitions", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// ListMetricDefinitionsSender sends the ListMetricDefinitions request. The method will close the +// ListSQLContainersSender sends the ListSQLContainers request. The method will close the // http.Response Body if it receives an error. -func (client DatabaseAccountsClient) ListMetricDefinitionsSender(req *http.Request) (*http.Response, error) { +func (client DatabaseAccountsClient) ListSQLContainersSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } -// ListMetricDefinitionsResponder handles the response to the ListMetricDefinitions request. The method always +// ListSQLContainersResponder handles the response to the ListSQLContainers request. The method always // closes the http.Response Body. -func (client DatabaseAccountsClient) ListMetricDefinitionsResponder(resp *http.Response) (result MetricDefinitionsListResult, err error) { +func (client DatabaseAccountsClient) ListSQLContainersResponder(resp *http.Response) (result SQLContainerListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -1004,16 +4337,13 @@ func (client DatabaseAccountsClient) ListMetricDefinitionsResponder(resp *http.R return } -// ListMetrics retrieves the metrics determined by the given filter for the given database account. +// ListSQLDatabases lists the SQL databases under an existing Azure Cosmos DB database account. // Parameters: // resourceGroupName - name of an Azure resource group. // accountName - cosmos DB database account name. -// filter - an OData filter expression that describes a subset of metrics to return. The parameters that can be -// filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and -// timeGrain. The supported operator is eq. -func (client DatabaseAccountsClient) ListMetrics(ctx context.Context, resourceGroupName string, accountName string, filter string) (result MetricListResult, err error) { +func (client DatabaseAccountsClient) ListSQLDatabases(ctx context.Context, resourceGroupName string, accountName string) (result SQLDatabaseListResult, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListMetrics") + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListSQLDatabases") defer func() { sc := -1 if result.Response.Response != nil { @@ -1030,32 +4360,32 @@ func (client DatabaseAccountsClient) ListMetrics(ctx context.Context, resourceGr {TargetValue: accountName, Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { - return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListMetrics", err.Error()) + return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListSQLDatabases", err.Error()) } - req, err := client.ListMetricsPreparer(ctx, resourceGroupName, accountName, filter) + req, err := client.ListSQLDatabasesPreparer(ctx, resourceGroupName, accountName) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetrics", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListSQLDatabases", nil, "Failure preparing request") return } - resp, err := client.ListMetricsSender(req) + resp, err := client.ListSQLDatabasesSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetrics", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListSQLDatabases", resp, "Failure sending request") return } - result, err = client.ListMetricsResponder(resp) + result, err = client.ListSQLDatabasesResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListMetrics", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListSQLDatabases", resp, "Failure responding to request") } return } -// ListMetricsPreparer prepares the ListMetrics request. -func (client DatabaseAccountsClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, accountName string, filter string) (*http.Request, error) { +// ListSQLDatabasesPreparer prepares the ListSQLDatabases request. +func (client DatabaseAccountsClient) ListSQLDatabasesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "accountName": autorest.Encode("path", accountName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -1064,28 +4394,27 @@ func (client DatabaseAccountsClient) ListMetricsPreparer(ctx context.Context, re const APIVersion = "2015-04-08" queryParameters := map[string]interface{}{ - "$filter": autorest.Encode("query", filter), "api-version": APIVersion, } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/metrics", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// ListMetricsSender sends the ListMetrics request. The method will close the +// ListSQLDatabasesSender sends the ListSQLDatabases request. The method will close the // http.Response Body if it receives an error. -func (client DatabaseAccountsClient) ListMetricsSender(req *http.Request) (*http.Response, error) { +func (client DatabaseAccountsClient) ListSQLDatabasesSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } -// ListMetricsResponder handles the response to the ListMetrics request. The method always +// ListSQLDatabasesResponder handles the response to the ListSQLDatabases request. The method always // closes the http.Response Body. -func (client DatabaseAccountsClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error) { +func (client DatabaseAccountsClient) ListSQLDatabasesResponder(resp *http.Response) (result SQLDatabaseListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -1096,13 +4425,13 @@ func (client DatabaseAccountsClient) ListMetricsResponder(resp *http.Response) ( return } -// ListReadOnlyKeys lists the read-only access keys for the specified Azure Cosmos DB database account. +// ListTables lists the Tables under an existing Azure Cosmos DB database account. // Parameters: // resourceGroupName - name of an Azure resource group. // accountName - cosmos DB database account name. -func (client DatabaseAccountsClient) ListReadOnlyKeys(ctx context.Context, resourceGroupName string, accountName string) (result DatabaseAccountListReadOnlyKeysResult, err error) { +func (client DatabaseAccountsClient) ListTables(ctx context.Context, resourceGroupName string, accountName string) (result TableListResult, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListReadOnlyKeys") + ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAccountsClient.ListTables") defer func() { sc := -1 if result.Response.Response != nil { @@ -1119,32 +4448,32 @@ func (client DatabaseAccountsClient) ListReadOnlyKeys(ctx context.Context, resou {TargetValue: accountName, Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 50, Chain: nil}, {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { - return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListReadOnlyKeys", err.Error()) + return result, validation.NewError("documentdb.DatabaseAccountsClient", "ListTables", err.Error()) } - req, err := client.ListReadOnlyKeysPreparer(ctx, resourceGroupName, accountName) + req, err := client.ListTablesPreparer(ctx, resourceGroupName, accountName) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListReadOnlyKeys", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListTables", nil, "Failure preparing request") return } - resp, err := client.ListReadOnlyKeysSender(req) + resp, err := client.ListTablesSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListReadOnlyKeys", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListTables", resp, "Failure sending request") return } - result, err = client.ListReadOnlyKeysResponder(resp) + result, err = client.ListTablesResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListReadOnlyKeys", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsClient", "ListTables", resp, "Failure responding to request") } return } -// ListReadOnlyKeysPreparer prepares the ListReadOnlyKeys request. -func (client DatabaseAccountsClient) ListReadOnlyKeysPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { +// ListTablesPreparer prepares the ListTables request. +func (client DatabaseAccountsClient) ListTablesPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "accountName": autorest.Encode("path", accountName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -1157,23 +4486,23 @@ func (client DatabaseAccountsClient) ListReadOnlyKeysPreparer(ctx context.Contex } preparer := autorest.CreatePreparer( - autorest.AsPost(), + autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/readonlykeys", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// ListReadOnlyKeysSender sends the ListReadOnlyKeys request. The method will close the +// ListTablesSender sends the ListTables request. The method will close the // http.Response Body if it receives an error. -func (client DatabaseAccountsClient) ListReadOnlyKeysSender(req *http.Request) (*http.Response, error) { +func (client DatabaseAccountsClient) ListTablesSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } -// ListReadOnlyKeysResponder handles the response to the ListReadOnlyKeys request. The method always +// ListTablesResponder handles the response to the ListTables request. The method always // closes the http.Response Body. -func (client DatabaseAccountsClient) ListReadOnlyKeysResponder(resp *http.Response) (result DatabaseAccountListReadOnlyKeysResult, err error) { +func (client DatabaseAccountsClient) ListTablesResponder(resp *http.Response) (result TableListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2015-04-08/documentdb/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2015-04-08/documentdb/models.go index 658cf6a0900c..1dc9ff610b1d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2015-04-08/documentdb/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2015-04-08/documentdb/models.go @@ -31,6 +31,21 @@ import ( // The package's fully qualified name. const fqdn = "github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2015-04-08/documentdb" +// ConflictResolutionMode enumerates the values for conflict resolution mode. +type ConflictResolutionMode string + +const ( + // Custom ... + Custom ConflictResolutionMode = "Custom" + // LastWriterWins ... + LastWriterWins ConflictResolutionMode = "LastWriterWins" +) + +// PossibleConflictResolutionModeValues returns an array of possible values for the ConflictResolutionMode const type. +func PossibleConflictResolutionModeValues() []ConflictResolutionMode { + return []ConflictResolutionMode{Custom, LastWriterWins} +} + // DatabaseAccountKind enumerates the values for database account kind. type DatabaseAccountKind string @@ -61,6 +76,29 @@ func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType { return []DatabaseAccountOfferType{Standard} } +// DataType enumerates the values for data type. +type DataType string + +const ( + // LineString ... + LineString DataType = "LineString" + // MultiPolygon ... + MultiPolygon DataType = "MultiPolygon" + // Number ... + Number DataType = "Number" + // Point ... + Point DataType = "Point" + // Polygon ... + Polygon DataType = "Polygon" + // String ... + String DataType = "String" +) + +// PossibleDataTypeValues returns an array of possible values for the DataType const type. +func PossibleDataTypeValues() []DataType { + return []DataType{LineString, MultiPolygon, Number, Point, Polygon, String} +} + // DefaultConsistencyLevel enumerates the values for default consistency level. type DefaultConsistencyLevel string @@ -82,6 +120,40 @@ func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel { return []DefaultConsistencyLevel{BoundedStaleness, ConsistentPrefix, Eventual, Session, Strong} } +// IndexingMode enumerates the values for indexing mode. +type IndexingMode string + +const ( + // Consistent ... + Consistent IndexingMode = "Consistent" + // Lazy ... + Lazy IndexingMode = "Lazy" + // None ... + None IndexingMode = "None" +) + +// PossibleIndexingModeValues returns an array of possible values for the IndexingMode const type. +func PossibleIndexingModeValues() []IndexingMode { + return []IndexingMode{Consistent, Lazy, None} +} + +// IndexKind enumerates the values for index kind. +type IndexKind string + +const ( + // Hash ... + Hash IndexKind = "Hash" + // Range ... + Range IndexKind = "Range" + // Spatial ... + Spatial IndexKind = "Spatial" +) + +// PossibleIndexKindValues returns an array of possible values for the IndexKind const type. +func PossibleIndexKindValues() []IndexKind { + return []IndexKind{Hash, Range, Spatial} +} + // KeyKind enumerates the values for key kind. type KeyKind string @@ -101,27 +173,42 @@ func PossibleKeyKindValues() []KeyKind { return []KeyKind{Primary, PrimaryReadonly, Secondary, SecondaryReadonly} } +// PartitionKind enumerates the values for partition kind. +type PartitionKind string + +const ( + // PartitionKindHash ... + PartitionKindHash PartitionKind = "Hash" + // PartitionKindRange ... + PartitionKindRange PartitionKind = "Range" +) + +// PossiblePartitionKindValues returns an array of possible values for the PartitionKind const type. +func PossiblePartitionKindValues() []PartitionKind { + return []PartitionKind{PartitionKindHash, PartitionKindRange} +} + // PrimaryAggregationType enumerates the values for primary aggregation type. type PrimaryAggregationType string const ( - // Average ... - Average PrimaryAggregationType = "Average" - // Last ... - Last PrimaryAggregationType = "Last" - // Maximum ... - Maximum PrimaryAggregationType = "Maximum" - // Minimimum ... - Minimimum PrimaryAggregationType = "Minimimum" - // None ... - None PrimaryAggregationType = "None" - // Total ... - Total PrimaryAggregationType = "Total" + // PrimaryAggregationTypeAverage ... + PrimaryAggregationTypeAverage PrimaryAggregationType = "Average" + // PrimaryAggregationTypeLast ... + PrimaryAggregationTypeLast PrimaryAggregationType = "Last" + // PrimaryAggregationTypeMaximum ... + PrimaryAggregationTypeMaximum PrimaryAggregationType = "Maximum" + // PrimaryAggregationTypeMinimimum ... + PrimaryAggregationTypeMinimimum PrimaryAggregationType = "Minimimum" + // PrimaryAggregationTypeNone ... + PrimaryAggregationTypeNone PrimaryAggregationType = "None" + // PrimaryAggregationTypeTotal ... + PrimaryAggregationTypeTotal PrimaryAggregationType = "Total" ) // PossiblePrimaryAggregationTypeValues returns an array of possible values for the PrimaryAggregationType const type. func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType { - return []PrimaryAggregationType{Average, Last, Maximum, Minimimum, None, Total} + return []PrimaryAggregationType{PrimaryAggregationTypeAverage, PrimaryAggregationTypeLast, PrimaryAggregationTypeMaximum, PrimaryAggregationTypeMinimimum, PrimaryAggregationTypeNone, PrimaryAggregationTypeTotal} } // UnitType enumerates the values for unit type. @@ -155,62 +242,39 @@ type Capability struct { Name *string `json:"name,omitempty"` } -// ConsistencyPolicy the consistency policy for the Cosmos DB database account. -type ConsistencyPolicy struct { - // DefaultConsistencyLevel - The default consistency level and configuration settings of the Cosmos DB account. Possible values include: 'Eventual', 'Session', 'BoundedStaleness', 'Strong', 'ConsistentPrefix' - DefaultConsistencyLevel DefaultConsistencyLevel `json:"defaultConsistencyLevel,omitempty"` - // MaxStalenessPrefix - When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 1 – 2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'. - MaxStalenessPrefix *int64 `json:"maxStalenessPrefix,omitempty"` - // MaxIntervalInSeconds - When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is 5 - 86400. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'. - MaxIntervalInSeconds *int32 `json:"maxIntervalInSeconds,omitempty"` -} - -// DatabaseAccount an Azure Cosmos DB database account. -type DatabaseAccount struct { +// CassandraKeyspace an Azure Cosmos DB Cassandra keyspace. +type CassandraKeyspace struct { autorest.Response `json:"-"` - // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' - Kind DatabaseAccountKind `json:"kind,omitempty"` - *DatabaseAccountProperties `json:"properties,omitempty"` - // ID - The unique resource identifier of the database account. + // CassandraKeyspaceProperties - The properties of an Azure Cosmos DB Cassandra keyspace + *CassandraKeyspaceProperties `json:"properties,omitempty"` + // ID - READ-ONLY; The unique resource identifier of the database account. ID *string `json:"id,omitempty"` - // Name - The name of the database account. + // Name - READ-ONLY; The name of the database account. Name *string `json:"name,omitempty"` - // Type - The type of Azure resource. + // Type - READ-ONLY; The type of Azure resource. Type *string `json:"type,omitempty"` // Location - The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` Tags map[string]*string `json:"tags"` } -// MarshalJSON is the custom marshaler for DatabaseAccount. -func (da DatabaseAccount) MarshalJSON() ([]byte, error) { +// MarshalJSON is the custom marshaler for CassandraKeyspace. +func (ck CassandraKeyspace) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if da.Kind != "" { - objectMap["kind"] = da.Kind - } - if da.DatabaseAccountProperties != nil { - objectMap["properties"] = da.DatabaseAccountProperties - } - if da.ID != nil { - objectMap["id"] = da.ID - } - if da.Name != nil { - objectMap["name"] = da.Name + if ck.CassandraKeyspaceProperties != nil { + objectMap["properties"] = ck.CassandraKeyspaceProperties } - if da.Type != nil { - objectMap["type"] = da.Type + if ck.Location != nil { + objectMap["location"] = ck.Location } - if da.Location != nil { - objectMap["location"] = da.Location - } - if da.Tags != nil { - objectMap["tags"] = da.Tags + if ck.Tags != nil { + objectMap["tags"] = ck.Tags } return json.Marshal(objectMap) } -// UnmarshalJSON is the custom unmarshaler for DatabaseAccount struct. -func (da *DatabaseAccount) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for CassandraKeyspace struct. +func (ck *CassandraKeyspace) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -218,23 +282,14 @@ func (da *DatabaseAccount) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "kind": - if v != nil { - var kind DatabaseAccountKind - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - da.Kind = kind - } case "properties": if v != nil { - var databaseAccountProperties DatabaseAccountProperties - err = json.Unmarshal(*v, &databaseAccountProperties) + var cassandraKeyspaceProperties CassandraKeyspaceProperties + err = json.Unmarshal(*v, &cassandraKeyspaceProperties) if err != nil { return err } - da.DatabaseAccountProperties = &databaseAccountProperties + ck.CassandraKeyspaceProperties = &cassandraKeyspaceProperties } case "id": if v != nil { @@ -243,7 +298,7 @@ func (da *DatabaseAccount) UnmarshalJSON(body []byte) error { if err != nil { return err } - da.ID = &ID + ck.ID = &ID } case "name": if v != nil { @@ -252,7 +307,7 @@ func (da *DatabaseAccount) UnmarshalJSON(body []byte) error { if err != nil { return err } - da.Name = &name + ck.Name = &name } case "type": if v != nil { @@ -261,7 +316,7 @@ func (da *DatabaseAccount) UnmarshalJSON(body []byte) error { if err != nil { return err } - da.Type = &typeVar + ck.Type = &typeVar } case "location": if v != nil { @@ -270,7 +325,7 @@ func (da *DatabaseAccount) UnmarshalJSON(body []byte) error { if err != nil { return err } - da.Location = &location + ck.Location = &location } case "tags": if v != nil { @@ -279,7 +334,7 @@ func (da *DatabaseAccount) UnmarshalJSON(body []byte) error { if err != nil { return err } - da.Tags = tags + ck.Tags = tags } } } @@ -287,59 +342,135 @@ func (da *DatabaseAccount) UnmarshalJSON(body []byte) error { return nil } -// DatabaseAccountConnectionString connection string for the Cosmos DB account -type DatabaseAccountConnectionString struct { - // ConnectionString - Value of the connection string - ConnectionString *string `json:"connectionString,omitempty"` - // Description - Description of the connection string - Description *string `json:"description,omitempty"` +// CassandraKeyspaceCreateUpdateParameters parameters to create and update Cosmos DB Cassandra keyspace. +type CassandraKeyspaceCreateUpdateParameters struct { + // CassandraKeyspaceCreateUpdateProperties - Properties to create and update Azure Cosmos DB Cassandra keyspace. + *CassandraKeyspaceCreateUpdateProperties `json:"properties,omitempty"` } -// DatabaseAccountCreateUpdateParameters parameters to create and update Cosmos DB database accounts. -type DatabaseAccountCreateUpdateParameters struct { - // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' - Kind DatabaseAccountKind `json:"kind,omitempty"` - *DatabaseAccountCreateUpdateProperties `json:"properties,omitempty"` - // ID - The unique resource identifier of the database account. +// MarshalJSON is the custom marshaler for CassandraKeyspaceCreateUpdateParameters. +func (ckcup CassandraKeyspaceCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ckcup.CassandraKeyspaceCreateUpdateProperties != nil { + objectMap["properties"] = ckcup.CassandraKeyspaceCreateUpdateProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for CassandraKeyspaceCreateUpdateParameters struct. +func (ckcup *CassandraKeyspaceCreateUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var cassandraKeyspaceCreateUpdateProperties CassandraKeyspaceCreateUpdateProperties + err = json.Unmarshal(*v, &cassandraKeyspaceCreateUpdateProperties) + if err != nil { + return err + } + ckcup.CassandraKeyspaceCreateUpdateProperties = &cassandraKeyspaceCreateUpdateProperties + } + } + } + + return nil +} + +// CassandraKeyspaceCreateUpdateProperties properties to create and update Azure Cosmos DB Cassandra +// keyspace. +type CassandraKeyspaceCreateUpdateProperties struct { + // Resource - The standard JSON format of a Cassandra keyspace + Resource *CassandraKeyspaceResource `json:"resource,omitempty"` + // Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + Options map[string]*string `json:"options"` +} + +// MarshalJSON is the custom marshaler for CassandraKeyspaceCreateUpdateProperties. +func (ckcup CassandraKeyspaceCreateUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ckcup.Resource != nil { + objectMap["resource"] = ckcup.Resource + } + if ckcup.Options != nil { + objectMap["options"] = ckcup.Options + } + return json.Marshal(objectMap) +} + +// CassandraKeyspaceListResult the List operation response, that contains the Cassandra keyspaces and their +// properties. +type CassandraKeyspaceListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of Cassandra keyspaces and their properties. + Value *[]CassandraKeyspace `json:"value,omitempty"` +} + +// CassandraKeyspaceProperties the properties of an Azure Cosmos DB Cassandra keyspace +type CassandraKeyspaceProperties struct { + // ID - Name of the Cosmos DB Cassandra keyspace + ID *string `json:"id,omitempty"` +} + +// CassandraKeyspaceResource cosmos DB Cassandra keyspace id object +type CassandraKeyspaceResource struct { + // ID - Name of the Cosmos DB Cassandra keyspace ID *string `json:"id,omitempty"` - // Name - The name of the database account. +} + +// CassandraPartitionKey cosmos DB Cassandra table partition key +type CassandraPartitionKey struct { + // Name - Name of the Cosmos DB Cassandra table partition key + Name *string `json:"name,omitempty"` +} + +// CassandraSchema cosmos DB Cassandra table schema +type CassandraSchema struct { + // Columns - List of Cassandra table columns. + Columns *[]Column `json:"columns,omitempty"` + // PartitionKeys - List of partition key. + PartitionKeys *[]CassandraPartitionKey `json:"partitionKeys,omitempty"` + // ClusterKeys - List of cluster key. + ClusterKeys *[]ClusterKey `json:"clusterKeys,omitempty"` +} + +// CassandraTable an Azure Cosmos DB Cassandra table. +type CassandraTable struct { + autorest.Response `json:"-"` + // CassandraTableProperties - The properties of an Azure Cosmos DB Cassandra table + *CassandraTableProperties `json:"properties,omitempty"` + // ID - READ-ONLY; The unique resource identifier of the database account. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the database account. Name *string `json:"name,omitempty"` - // Type - The type of Azure resource. + // Type - READ-ONLY; The type of Azure resource. Type *string `json:"type,omitempty"` // Location - The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` Tags map[string]*string `json:"tags"` } -// MarshalJSON is the custom marshaler for DatabaseAccountCreateUpdateParameters. -func (dacup DatabaseAccountCreateUpdateParameters) MarshalJSON() ([]byte, error) { +// MarshalJSON is the custom marshaler for CassandraTable. +func (ct CassandraTable) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if dacup.Kind != "" { - objectMap["kind"] = dacup.Kind - } - if dacup.DatabaseAccountCreateUpdateProperties != nil { - objectMap["properties"] = dacup.DatabaseAccountCreateUpdateProperties + if ct.CassandraTableProperties != nil { + objectMap["properties"] = ct.CassandraTableProperties } - if dacup.ID != nil { - objectMap["id"] = dacup.ID + if ct.Location != nil { + objectMap["location"] = ct.Location } - if dacup.Name != nil { - objectMap["name"] = dacup.Name - } - if dacup.Type != nil { - objectMap["type"] = dacup.Type - } - if dacup.Location != nil { - objectMap["location"] = dacup.Location - } - if dacup.Tags != nil { - objectMap["tags"] = dacup.Tags + if ct.Tags != nil { + objectMap["tags"] = ct.Tags } return json.Marshal(objectMap) } -// UnmarshalJSON is the custom unmarshaler for DatabaseAccountCreateUpdateParameters struct. -func (dacup *DatabaseAccountCreateUpdateParameters) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for CassandraTable struct. +func (ct *CassandraTable) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -347,23 +478,14 @@ func (dacup *DatabaseAccountCreateUpdateParameters) UnmarshalJSON(body []byte) e } for k, v := range m { switch k { - case "kind": - if v != nil { - var kind DatabaseAccountKind - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - dacup.Kind = kind - } case "properties": if v != nil { - var databaseAccountCreateUpdateProperties DatabaseAccountCreateUpdateProperties - err = json.Unmarshal(*v, &databaseAccountCreateUpdateProperties) + var cassandraTableProperties CassandraTableProperties + err = json.Unmarshal(*v, &cassandraTableProperties) if err != nil { return err } - dacup.DatabaseAccountCreateUpdateProperties = &databaseAccountCreateUpdateProperties + ct.CassandraTableProperties = &cassandraTableProperties } case "id": if v != nil { @@ -372,7 +494,7 @@ func (dacup *DatabaseAccountCreateUpdateParameters) UnmarshalJSON(body []byte) e if err != nil { return err } - dacup.ID = &ID + ct.ID = &ID } case "name": if v != nil { @@ -381,7 +503,7 @@ func (dacup *DatabaseAccountCreateUpdateParameters) UnmarshalJSON(body []byte) e if err != nil { return err } - dacup.Name = &name + ct.Name = &name } case "type": if v != nil { @@ -390,7 +512,7 @@ func (dacup *DatabaseAccountCreateUpdateParameters) UnmarshalJSON(body []byte) e if err != nil { return err } - dacup.Type = &typeVar + ct.Type = &typeVar } case "location": if v != nil { @@ -399,7 +521,7 @@ func (dacup *DatabaseAccountCreateUpdateParameters) UnmarshalJSON(body []byte) e if err != nil { return err } - dacup.Location = &location + ct.Location = &location } case "tags": if v != nil { @@ -408,7 +530,7 @@ func (dacup *DatabaseAccountCreateUpdateParameters) UnmarshalJSON(body []byte) e if err != nil { return err } - dacup.Tags = tags + ct.Tags = tags } } } @@ -416,61 +538,23 @@ func (dacup *DatabaseAccountCreateUpdateParameters) UnmarshalJSON(body []byte) e return nil } -// DatabaseAccountCreateUpdateProperties properties to create and update Azure Cosmos DB database accounts. -type DatabaseAccountCreateUpdateProperties struct { - // ConsistencyPolicy - The consistency policy for the Cosmos DB account. - ConsistencyPolicy *ConsistencyPolicy `json:"consistencyPolicy,omitempty"` - // Locations - An array that contains the georeplication locations enabled for the Cosmos DB account. - Locations *[]Location `json:"locations,omitempty"` - DatabaseAccountOfferType *string `json:"databaseAccountOfferType,omitempty"` - // IPRangeFilter - Cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces. - IPRangeFilter *string `json:"ipRangeFilter,omitempty"` - // IsVirtualNetworkFilterEnabled - Flag to indicate whether to enable/disable Virtual Network ACL rules. - IsVirtualNetworkFilterEnabled *bool `json:"isVirtualNetworkFilterEnabled,omitempty"` - // EnableAutomaticFailover - Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account. - EnableAutomaticFailover *bool `json:"enableAutomaticFailover,omitempty"` - // Capabilities - List of Cosmos DB capabilities for the account - Capabilities *[]Capability `json:"capabilities,omitempty"` - // VirtualNetworkRules - List of Virtual Network ACL rules configured for the Cosmos DB account. - VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` - // EnableMultipleWriteLocations - Enables the account to write in multiple locations - EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty"` -} - -// DatabaseAccountListConnectionStringsResult the connection strings for the given database account. -type DatabaseAccountListConnectionStringsResult struct { - autorest.Response `json:"-"` - // ConnectionStrings - An array that contains the connection strings for the Cosmos DB account. - ConnectionStrings *[]DatabaseAccountConnectionString `json:"connectionStrings,omitempty"` -} - -// DatabaseAccountListKeysResult the access keys for the given database account. -type DatabaseAccountListKeysResult struct { - autorest.Response `json:"-"` - // PrimaryMasterKey - Base 64 encoded value of the primary read-write key. - PrimaryMasterKey *string `json:"primaryMasterKey,omitempty"` - // SecondaryMasterKey - Base 64 encoded value of the secondary read-write key. - SecondaryMasterKey *string `json:"secondaryMasterKey,omitempty"` - *DatabaseAccountListReadOnlyKeysResult `json:"properties,omitempty"` +// CassandraTableCreateUpdateParameters parameters to create and update Cosmos DB Cassandra table. +type CassandraTableCreateUpdateParameters struct { + // CassandraTableCreateUpdateProperties - Properties to create and update Azure Cosmos DB Cassandra table. + *CassandraTableCreateUpdateProperties `json:"properties,omitempty"` } -// MarshalJSON is the custom marshaler for DatabaseAccountListKeysResult. -func (dalkr DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error) { +// MarshalJSON is the custom marshaler for CassandraTableCreateUpdateParameters. +func (ctcup CassandraTableCreateUpdateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if dalkr.PrimaryMasterKey != nil { - objectMap["primaryMasterKey"] = dalkr.PrimaryMasterKey - } - if dalkr.SecondaryMasterKey != nil { - objectMap["secondaryMasterKey"] = dalkr.SecondaryMasterKey - } - if dalkr.DatabaseAccountListReadOnlyKeysResult != nil { - objectMap["properties"] = dalkr.DatabaseAccountListReadOnlyKeysResult + if ctcup.CassandraTableCreateUpdateProperties != nil { + objectMap["properties"] = ctcup.CassandraTableCreateUpdateProperties } return json.Marshal(objectMap) } -// UnmarshalJSON is the custom unmarshaler for DatabaseAccountListKeysResult struct. -func (dalkr *DatabaseAccountListKeysResult) UnmarshalJSON(body []byte) error { +// UnmarshalJSON is the custom unmarshaler for CassandraTableCreateUpdateParameters struct. +func (ctcup *CassandraTableCreateUpdateParameters) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage err := json.Unmarshal(body, &m) if err != nil { @@ -478,32 +562,14 @@ func (dalkr *DatabaseAccountListKeysResult) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "primaryMasterKey": - if v != nil { - var primaryMasterKey string - err = json.Unmarshal(*v, &primaryMasterKey) - if err != nil { - return err - } - dalkr.PrimaryMasterKey = &primaryMasterKey - } - case "secondaryMasterKey": - if v != nil { - var secondaryMasterKey string - err = json.Unmarshal(*v, &secondaryMasterKey) - if err != nil { - return err - } - dalkr.SecondaryMasterKey = &secondaryMasterKey - } case "properties": if v != nil { - var databaseAccountListReadOnlyKeysResult DatabaseAccountListReadOnlyKeysResult - err = json.Unmarshal(*v, &databaseAccountListReadOnlyKeysResult) + var cassandraTableCreateUpdateProperties CassandraTableCreateUpdateProperties + err = json.Unmarshal(*v, &cassandraTableCreateUpdateProperties) if err != nil { return err } - dalkr.DatabaseAccountListReadOnlyKeysResult = &databaseAccountListReadOnlyKeysResult + ctcup.CassandraTableCreateUpdateProperties = &cassandraTableCreateUpdateProperties } } } @@ -511,42 +577,2024 @@ func (dalkr *DatabaseAccountListKeysResult) UnmarshalJSON(body []byte) error { return nil } -// DatabaseAccountListReadOnlyKeysResult the read-only access keys for the given database account. -type DatabaseAccountListReadOnlyKeysResult struct { - autorest.Response `json:"-"` - // PrimaryReadonlyMasterKey - Base 64 encoded value of the primary read-only key. - PrimaryReadonlyMasterKey *string `json:"primaryReadonlyMasterKey,omitempty"` - // SecondaryReadonlyMasterKey - Base 64 encoded value of the secondary read-only key. - SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` -} - -// DatabaseAccountPatchParameters parameters for patching Azure Cosmos DB database account properties. -type DatabaseAccountPatchParameters struct { - Tags map[string]*string `json:"tags"` - *DatabaseAccountPatchProperties `json:"properties,omitempty"` +// CassandraTableCreateUpdateProperties properties to create and update Azure Cosmos DB Cassandra table. +type CassandraTableCreateUpdateProperties struct { + // Resource - The standard JSON format of a Cassandra table + Resource *CassandraTableResource `json:"resource,omitempty"` + // Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + Options map[string]*string `json:"options"` } -// MarshalJSON is the custom marshaler for DatabaseAccountPatchParameters. -func (dapp DatabaseAccountPatchParameters) MarshalJSON() ([]byte, error) { +// MarshalJSON is the custom marshaler for CassandraTableCreateUpdateProperties. +func (ctcup CassandraTableCreateUpdateProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if dapp.Tags != nil { - objectMap["tags"] = dapp.Tags + if ctcup.Resource != nil { + objectMap["resource"] = ctcup.Resource } - if dapp.DatabaseAccountPatchProperties != nil { - objectMap["properties"] = dapp.DatabaseAccountPatchProperties + if ctcup.Options != nil { + objectMap["options"] = ctcup.Options } return json.Marshal(objectMap) } -// UnmarshalJSON is the custom unmarshaler for DatabaseAccountPatchParameters struct. -func (dapp *DatabaseAccountPatchParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { +// CassandraTableListResult the List operation response, that contains the Cassandra tables and their +// properties. +type CassandraTableListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of Cassandra tables and their properties. + Value *[]CassandraTable `json:"value,omitempty"` +} + +// CassandraTableProperties the properties of an Azure Cosmos DB Cassandra table +type CassandraTableProperties struct { + // ID - Name of the Cosmos DB Cassandra table + ID *string `json:"id,omitempty"` + // DefaultTTL - Time to live of the Cosmos DB Cassandra table + DefaultTTL *int32 `json:"defaultTtl,omitempty"` + // Schema - Schema of the Cosmos DB Cassandra table + Schema *CassandraSchema `json:"schema,omitempty"` +} + +// CassandraTableResource cosmos DB Cassandra table id object +type CassandraTableResource struct { + // ID - Name of the Cosmos DB Cassandra table + ID *string `json:"id,omitempty"` + // DefaultTTL - Time to live of the Cosmos DB Cassandra table + DefaultTTL *int32 `json:"defaultTtl,omitempty"` + // Schema - Schema of the Cosmos DB Cassandra table + Schema *CassandraSchema `json:"schema,omitempty"` +} + +// ClusterKey cosmos DB Cassandra table cluster key +type ClusterKey struct { + // Name - Name of the Cosmos DB Cassandra table cluster key + Name *string `json:"name,omitempty"` + // OrderBy - Order of the Cosmos DB Cassandra table cluster key, only support "Asc" and "Desc" + OrderBy *string `json:"orderBy,omitempty"` +} + +// Column cosmos DB Cassandra table column +type Column struct { + // Name - Name of the Cosmos DB Cassandra table column + Name *string `json:"name,omitempty"` + // Type - Type of the Cosmos DB Cassandra table column + Type *string `json:"type,omitempty"` +} + +// ConflictResolutionPolicy the conflict resolution policy for the container. +type ConflictResolutionPolicy struct { + // Mode - Indicates the conflict resolution mode. Possible values include: 'LastWriterWins', 'Custom' + Mode ConflictResolutionMode `json:"mode,omitempty"` + // ConflictResolutionPath - The conflict resolution path in the case of LastWriterWins mode. + ConflictResolutionPath *string `json:"conflictResolutionPath,omitempty"` + // ConflictResolutionProcedure - The procedure to resolve conflicts in the case of custom mode. + ConflictResolutionProcedure *string `json:"conflictResolutionProcedure,omitempty"` +} + +// ConsistencyPolicy the consistency policy for the Cosmos DB database account. +type ConsistencyPolicy struct { + // DefaultConsistencyLevel - The default consistency level and configuration settings of the Cosmos DB account. Possible values include: 'Eventual', 'Session', 'BoundedStaleness', 'Strong', 'ConsistentPrefix' + DefaultConsistencyLevel DefaultConsistencyLevel `json:"defaultConsistencyLevel,omitempty"` + // MaxStalenessPrefix - When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 1 – 2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'. + MaxStalenessPrefix *int64 `json:"maxStalenessPrefix,omitempty"` + // MaxIntervalInSeconds - When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is 5 - 86400. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'. + MaxIntervalInSeconds *int32 `json:"maxIntervalInSeconds,omitempty"` +} + +// ContainerPartitionKey the configuration of the partition key to be used for partitioning data into +// multiple partitions +type ContainerPartitionKey struct { + // Paths - List of paths using which data within the container can be partitioned + Paths *[]string `json:"paths,omitempty"` + // Kind - Indicates the kind of algorithm used for partitioning. Possible values include: 'PartitionKindHash', 'PartitionKindRange' + Kind PartitionKind `json:"kind,omitempty"` +} + +// DatabaseAccount an Azure Cosmos DB database account. +type DatabaseAccount struct { + autorest.Response `json:"-"` + // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' + Kind DatabaseAccountKind `json:"kind,omitempty"` + *DatabaseAccountProperties `json:"properties,omitempty"` + // ID - READ-ONLY; The unique resource identifier of the database account. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the database account. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of Azure resource. + Type *string `json:"type,omitempty"` + // Location - The location of the resource group to which the resource belongs. + Location *string `json:"location,omitempty"` + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for DatabaseAccount. +func (da DatabaseAccount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if da.Kind != "" { + objectMap["kind"] = da.Kind + } + if da.DatabaseAccountProperties != nil { + objectMap["properties"] = da.DatabaseAccountProperties + } + if da.Location != nil { + objectMap["location"] = da.Location + } + if da.Tags != nil { + objectMap["tags"] = da.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DatabaseAccount struct. +func (da *DatabaseAccount) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "kind": + if v != nil { + var kind DatabaseAccountKind + err = json.Unmarshal(*v, &kind) + if err != nil { + return err + } + da.Kind = kind + } + case "properties": + if v != nil { + var databaseAccountProperties DatabaseAccountProperties + err = json.Unmarshal(*v, &databaseAccountProperties) + if err != nil { + return err + } + da.DatabaseAccountProperties = &databaseAccountProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + da.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + da.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + da.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + da.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + da.Tags = tags + } + } + } + + return nil +} + +// DatabaseAccountConnectionString connection string for the Cosmos DB account +type DatabaseAccountConnectionString struct { + // ConnectionString - READ-ONLY; Value of the connection string + ConnectionString *string `json:"connectionString,omitempty"` + // Description - READ-ONLY; Description of the connection string + Description *string `json:"description,omitempty"` +} + +// DatabaseAccountCreateUpdateParameters parameters to create and update Cosmos DB database accounts. +type DatabaseAccountCreateUpdateParameters struct { + // Kind - Indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' + Kind DatabaseAccountKind `json:"kind,omitempty"` + *DatabaseAccountCreateUpdateProperties `json:"properties,omitempty"` + // ID - READ-ONLY; The unique resource identifier of the database account. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the database account. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of Azure resource. + Type *string `json:"type,omitempty"` + // Location - The location of the resource group to which the resource belongs. + Location *string `json:"location,omitempty"` + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for DatabaseAccountCreateUpdateParameters. +func (dacup DatabaseAccountCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dacup.Kind != "" { + objectMap["kind"] = dacup.Kind + } + if dacup.DatabaseAccountCreateUpdateProperties != nil { + objectMap["properties"] = dacup.DatabaseAccountCreateUpdateProperties + } + if dacup.Location != nil { + objectMap["location"] = dacup.Location + } + if dacup.Tags != nil { + objectMap["tags"] = dacup.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DatabaseAccountCreateUpdateParameters struct. +func (dacup *DatabaseAccountCreateUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "kind": + if v != nil { + var kind DatabaseAccountKind + err = json.Unmarshal(*v, &kind) + if err != nil { + return err + } + dacup.Kind = kind + } + case "properties": + if v != nil { + var databaseAccountCreateUpdateProperties DatabaseAccountCreateUpdateProperties + err = json.Unmarshal(*v, &databaseAccountCreateUpdateProperties) + if err != nil { + return err + } + dacup.DatabaseAccountCreateUpdateProperties = &databaseAccountCreateUpdateProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + dacup.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dacup.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dacup.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + dacup.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + dacup.Tags = tags + } + } + } + + return nil +} + +// DatabaseAccountCreateUpdateProperties properties to create and update Azure Cosmos DB database accounts. +type DatabaseAccountCreateUpdateProperties struct { + // ConsistencyPolicy - The consistency policy for the Cosmos DB account. + ConsistencyPolicy *ConsistencyPolicy `json:"consistencyPolicy,omitempty"` + // Locations - An array that contains the georeplication locations enabled for the Cosmos DB account. + Locations *[]Location `json:"locations,omitempty"` + // DatabaseAccountOfferType - The offer type for the database + DatabaseAccountOfferType *string `json:"databaseAccountOfferType,omitempty"` + // IPRangeFilter - Cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces. + IPRangeFilter *string `json:"ipRangeFilter,omitempty"` + // IsVirtualNetworkFilterEnabled - Flag to indicate whether to enable/disable Virtual Network ACL rules. + IsVirtualNetworkFilterEnabled *bool `json:"isVirtualNetworkFilterEnabled,omitempty"` + // EnableAutomaticFailover - Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account. + EnableAutomaticFailover *bool `json:"enableAutomaticFailover,omitempty"` + // Capabilities - List of Cosmos DB capabilities for the account + Capabilities *[]Capability `json:"capabilities,omitempty"` + // VirtualNetworkRules - List of Virtual Network ACL rules configured for the Cosmos DB account. + VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` + // EnableMultipleWriteLocations - Enables the account to write in multiple locations + EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty"` +} + +// DatabaseAccountListConnectionStringsResult the connection strings for the given database account. +type DatabaseAccountListConnectionStringsResult struct { + autorest.Response `json:"-"` + // ConnectionStrings - An array that contains the connection strings for the Cosmos DB account. + ConnectionStrings *[]DatabaseAccountConnectionString `json:"connectionStrings,omitempty"` +} + +// DatabaseAccountListKeysResult the access keys for the given database account. +type DatabaseAccountListKeysResult struct { + autorest.Response `json:"-"` + // PrimaryMasterKey - READ-ONLY; Base 64 encoded value of the primary read-write key. + PrimaryMasterKey *string `json:"primaryMasterKey,omitempty"` + // SecondaryMasterKey - READ-ONLY; Base 64 encoded value of the secondary read-write key. + SecondaryMasterKey *string `json:"secondaryMasterKey,omitempty"` + *DatabaseAccountListReadOnlyKeysResult `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for DatabaseAccountListKeysResult. +func (dalkr DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dalkr.DatabaseAccountListReadOnlyKeysResult != nil { + objectMap["properties"] = dalkr.DatabaseAccountListReadOnlyKeysResult + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DatabaseAccountListKeysResult struct. +func (dalkr *DatabaseAccountListKeysResult) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "primaryMasterKey": + if v != nil { + var primaryMasterKey string + err = json.Unmarshal(*v, &primaryMasterKey) + if err != nil { + return err + } + dalkr.PrimaryMasterKey = &primaryMasterKey + } + case "secondaryMasterKey": + if v != nil { + var secondaryMasterKey string + err = json.Unmarshal(*v, &secondaryMasterKey) + if err != nil { + return err + } + dalkr.SecondaryMasterKey = &secondaryMasterKey + } + case "properties": + if v != nil { + var databaseAccountListReadOnlyKeysResult DatabaseAccountListReadOnlyKeysResult + err = json.Unmarshal(*v, &databaseAccountListReadOnlyKeysResult) + if err != nil { + return err + } + dalkr.DatabaseAccountListReadOnlyKeysResult = &databaseAccountListReadOnlyKeysResult + } + } + } + + return nil +} + +// DatabaseAccountListReadOnlyKeysResult the read-only access keys for the given database account. +type DatabaseAccountListReadOnlyKeysResult struct { + autorest.Response `json:"-"` + // PrimaryReadonlyMasterKey - READ-ONLY; Base 64 encoded value of the primary read-only key. + PrimaryReadonlyMasterKey *string `json:"primaryReadonlyMasterKey,omitempty"` + // SecondaryReadonlyMasterKey - READ-ONLY; Base 64 encoded value of the secondary read-only key. + SecondaryReadonlyMasterKey *string `json:"secondaryReadonlyMasterKey,omitempty"` +} + +// DatabaseAccountPatchParameters parameters for patching Azure Cosmos DB database account properties. +type DatabaseAccountPatchParameters struct { + Tags map[string]*string `json:"tags"` + *DatabaseAccountPatchProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for DatabaseAccountPatchParameters. +func (dapp DatabaseAccountPatchParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dapp.Tags != nil { + objectMap["tags"] = dapp.Tags + } + if dapp.DatabaseAccountPatchProperties != nil { + objectMap["properties"] = dapp.DatabaseAccountPatchProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DatabaseAccountPatchParameters struct. +func (dapp *DatabaseAccountPatchParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + dapp.Tags = tags + } + case "properties": + if v != nil { + var databaseAccountPatchProperties DatabaseAccountPatchProperties + err = json.Unmarshal(*v, &databaseAccountPatchProperties) + if err != nil { + return err + } + dapp.DatabaseAccountPatchProperties = &databaseAccountPatchProperties + } + } + } + + return nil +} + +// DatabaseAccountPatchProperties properties to update Azure Cosmos DB database accounts. +type DatabaseAccountPatchProperties struct { + // Capabilities - List of Cosmos DB capabilities for the account + Capabilities *[]Capability `json:"capabilities,omitempty"` +} + +// DatabaseAccountProperties properties for the database account. +type DatabaseAccountProperties struct { + ProvisioningState *string `json:"provisioningState,omitempty"` + // DocumentEndpoint - READ-ONLY; The connection endpoint for the Cosmos DB database account. + DocumentEndpoint *string `json:"documentEndpoint,omitempty"` + // DatabaseAccountOfferType - READ-ONLY; The offer type for the Cosmos DB database account. Default value: Standard. Possible values include: 'Standard' + DatabaseAccountOfferType DatabaseAccountOfferType `json:"databaseAccountOfferType,omitempty"` + // IPRangeFilter - Cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces. + IPRangeFilter *string `json:"ipRangeFilter,omitempty"` + // IsVirtualNetworkFilterEnabled - Flag to indicate whether to enable/disable Virtual Network ACL rules. + IsVirtualNetworkFilterEnabled *bool `json:"isVirtualNetworkFilterEnabled,omitempty"` + // EnableAutomaticFailover - Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account. + EnableAutomaticFailover *bool `json:"enableAutomaticFailover,omitempty"` + // ConsistencyPolicy - The consistency policy for the Cosmos DB database account. + ConsistencyPolicy *ConsistencyPolicy `json:"consistencyPolicy,omitempty"` + // Capabilities - List of Cosmos DB capabilities for the account + Capabilities *[]Capability `json:"capabilities,omitempty"` + // WriteLocations - READ-ONLY; An array that contains the write location for the Cosmos DB account. + WriteLocations *[]Location `json:"writeLocations,omitempty"` + // ReadLocations - READ-ONLY; An array that contains of the read locations enabled for the Cosmos DB account. + ReadLocations *[]Location `json:"readLocations,omitempty"` + // FailoverPolicies - READ-ONLY; An array that contains the regions ordered by their failover priorities. + FailoverPolicies *[]FailoverPolicy `json:"failoverPolicies,omitempty"` + // VirtualNetworkRules - List of Virtual Network ACL rules configured for the Cosmos DB account. + VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` + // EnableMultipleWriteLocations - Enables the account to write in multiple locations + EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty"` +} + +// DatabaseAccountRegenerateKeyParameters parameters to regenerate the keys within the database account. +type DatabaseAccountRegenerateKeyParameters struct { + // KeyKind - The access key to regenerate. Possible values include: 'Primary', 'Secondary', 'PrimaryReadonly', 'SecondaryReadonly' + KeyKind KeyKind `json:"keyKind,omitempty"` +} + +// DatabaseAccountsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DatabaseAccountsCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsCreateOrUpdateFuture) Result(client DatabaseAccountsClient) (da DatabaseAccount, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if da.Response.Response, err = future.GetResult(sender); err == nil && da.Response.Response.StatusCode != http.StatusNoContent { + da, err = client.CreateOrUpdateResponder(da.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateOrUpdateFuture", "Result", da.Response.Response, "Failure responding to request") + } + } + return +} + +// DatabaseAccountsCreateUpdateCassandraKeyspaceFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type DatabaseAccountsCreateUpdateCassandraKeyspaceFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsCreateUpdateCassandraKeyspaceFuture) Result(client DatabaseAccountsClient) (ck CassandraKeyspace, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateCassandraKeyspaceFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsCreateUpdateCassandraKeyspaceFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ck.Response.Response, err = future.GetResult(sender); err == nil && ck.Response.Response.StatusCode != http.StatusNoContent { + ck, err = client.CreateUpdateCassandraKeyspaceResponder(ck.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateCassandraKeyspaceFuture", "Result", ck.Response.Response, "Failure responding to request") + } + } + return +} + +// DatabaseAccountsCreateUpdateCassandraTableFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type DatabaseAccountsCreateUpdateCassandraTableFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsCreateUpdateCassandraTableFuture) Result(client DatabaseAccountsClient) (ct CassandraTable, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateCassandraTableFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsCreateUpdateCassandraTableFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if ct.Response.Response, err = future.GetResult(sender); err == nil && ct.Response.Response.StatusCode != http.StatusNoContent { + ct, err = client.CreateUpdateCassandraTableResponder(ct.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateCassandraTableFuture", "Result", ct.Response.Response, "Failure responding to request") + } + } + return +} + +// DatabaseAccountsCreateUpdateGremlinDatabaseFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type DatabaseAccountsCreateUpdateGremlinDatabaseFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsCreateUpdateGremlinDatabaseFuture) Result(client DatabaseAccountsClient) (gd GremlinDatabase, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateGremlinDatabaseFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsCreateUpdateGremlinDatabaseFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if gd.Response.Response, err = future.GetResult(sender); err == nil && gd.Response.Response.StatusCode != http.StatusNoContent { + gd, err = client.CreateUpdateGremlinDatabaseResponder(gd.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateGremlinDatabaseFuture", "Result", gd.Response.Response, "Failure responding to request") + } + } + return +} + +// DatabaseAccountsCreateUpdateGremlinGraphFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type DatabaseAccountsCreateUpdateGremlinGraphFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsCreateUpdateGremlinGraphFuture) Result(client DatabaseAccountsClient) (gg GremlinGraph, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateGremlinGraphFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsCreateUpdateGremlinGraphFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if gg.Response.Response, err = future.GetResult(sender); err == nil && gg.Response.Response.StatusCode != http.StatusNoContent { + gg, err = client.CreateUpdateGremlinGraphResponder(gg.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateGremlinGraphFuture", "Result", gg.Response.Response, "Failure responding to request") + } + } + return +} + +// DatabaseAccountsCreateUpdateMongoDBCollectionFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type DatabaseAccountsCreateUpdateMongoDBCollectionFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsCreateUpdateMongoDBCollectionFuture) Result(client DatabaseAccountsClient) (mdc MongoDBCollection, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateMongoDBCollectionFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsCreateUpdateMongoDBCollectionFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if mdc.Response.Response, err = future.GetResult(sender); err == nil && mdc.Response.Response.StatusCode != http.StatusNoContent { + mdc, err = client.CreateUpdateMongoDBCollectionResponder(mdc.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateMongoDBCollectionFuture", "Result", mdc.Response.Response, "Failure responding to request") + } + } + return +} + +// DatabaseAccountsCreateUpdateMongoDBDatabaseFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. +type DatabaseAccountsCreateUpdateMongoDBDatabaseFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsCreateUpdateMongoDBDatabaseFuture) Result(client DatabaseAccountsClient) (mdd MongoDBDatabase, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateMongoDBDatabaseFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsCreateUpdateMongoDBDatabaseFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if mdd.Response.Response, err = future.GetResult(sender); err == nil && mdd.Response.Response.StatusCode != http.StatusNoContent { + mdd, err = client.CreateUpdateMongoDBDatabaseResponder(mdd.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateMongoDBDatabaseFuture", "Result", mdd.Response.Response, "Failure responding to request") + } + } + return +} + +// DatabaseAccountsCreateUpdateSQLContainerFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type DatabaseAccountsCreateUpdateSQLContainerFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsCreateUpdateSQLContainerFuture) Result(client DatabaseAccountsClient) (sc SQLContainer, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateSQLContainerFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsCreateUpdateSQLContainerFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if sc.Response.Response, err = future.GetResult(sender); err == nil && sc.Response.Response.StatusCode != http.StatusNoContent { + sc, err = client.CreateUpdateSQLContainerResponder(sc.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateSQLContainerFuture", "Result", sc.Response.Response, "Failure responding to request") + } + } + return +} + +// DatabaseAccountsCreateUpdateSQLDatabaseFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type DatabaseAccountsCreateUpdateSQLDatabaseFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsCreateUpdateSQLDatabaseFuture) Result(client DatabaseAccountsClient) (sd SQLDatabase, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateSQLDatabaseFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsCreateUpdateSQLDatabaseFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if sd.Response.Response, err = future.GetResult(sender); err == nil && sd.Response.Response.StatusCode != http.StatusNoContent { + sd, err = client.CreateUpdateSQLDatabaseResponder(sd.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateSQLDatabaseFuture", "Result", sd.Response.Response, "Failure responding to request") + } + } + return +} + +// DatabaseAccountsCreateUpdateTableFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DatabaseAccountsCreateUpdateTableFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsCreateUpdateTableFuture) Result(client DatabaseAccountsClient) (t Table, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateTableFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsCreateUpdateTableFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if t.Response.Response, err = future.GetResult(sender); err == nil && t.Response.Response.StatusCode != http.StatusNoContent { + t, err = client.CreateUpdateTableResponder(t.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateUpdateTableFuture", "Result", t.Response.Response, "Failure responding to request") + } + } + return +} + +// DatabaseAccountsDeleteCassandraKeyspaceFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type DatabaseAccountsDeleteCassandraKeyspaceFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsDeleteCassandraKeyspaceFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsDeleteCassandraKeyspaceFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsDeleteCassandraKeyspaceFuture") + return + } + ar.Response = future.Response() + return +} + +// DatabaseAccountsDeleteCassandraTableFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DatabaseAccountsDeleteCassandraTableFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsDeleteCassandraTableFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsDeleteCassandraTableFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsDeleteCassandraTableFuture") + return + } + ar.Response = future.Response() + return +} + +// DatabaseAccountsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type DatabaseAccountsDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsDeleteFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// DatabaseAccountsDeleteGremlinDatabaseFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. +type DatabaseAccountsDeleteGremlinDatabaseFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsDeleteGremlinDatabaseFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsDeleteGremlinDatabaseFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsDeleteGremlinDatabaseFuture") + return + } + ar.Response = future.Response() + return +} + +// DatabaseAccountsDeleteGremlinGraphFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DatabaseAccountsDeleteGremlinGraphFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsDeleteGremlinGraphFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsDeleteGremlinGraphFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsDeleteGremlinGraphFuture") + return + } + ar.Response = future.Response() + return +} + +// DatabaseAccountsDeleteMongoDBCollectionFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type DatabaseAccountsDeleteMongoDBCollectionFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsDeleteMongoDBCollectionFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsDeleteMongoDBCollectionFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsDeleteMongoDBCollectionFuture") + return + } + ar.Response = future.Response() + return +} + +// DatabaseAccountsDeleteMongoDBDatabaseFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. +type DatabaseAccountsDeleteMongoDBDatabaseFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsDeleteMongoDBDatabaseFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsDeleteMongoDBDatabaseFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsDeleteMongoDBDatabaseFuture") + return + } + ar.Response = future.Response() + return +} + +// DatabaseAccountsDeleteSQLContainerFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DatabaseAccountsDeleteSQLContainerFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsDeleteSQLContainerFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsDeleteSQLContainerFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsDeleteSQLContainerFuture") + return + } + ar.Response = future.Response() + return +} + +// DatabaseAccountsDeleteSQLDatabaseFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DatabaseAccountsDeleteSQLDatabaseFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsDeleteSQLDatabaseFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsDeleteSQLDatabaseFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsDeleteSQLDatabaseFuture") + return + } + ar.Response = future.Response() + return +} + +// DatabaseAccountsDeleteTableFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DatabaseAccountsDeleteTableFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsDeleteTableFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsDeleteTableFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsDeleteTableFuture") + return + } + ar.Response = future.Response() + return +} + +// DatabaseAccountsFailoverPriorityChangeFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. +type DatabaseAccountsFailoverPriorityChangeFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsFailoverPriorityChangeFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsFailoverPriorityChangeFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsFailoverPriorityChangeFuture") + return + } + ar.Response = future.Response() + return +} + +// DatabaseAccountsListResult the List operation response, that contains the database accounts and their +// properties. +type DatabaseAccountsListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of database account and their properties. + Value *[]DatabaseAccount `json:"value,omitempty"` +} + +// DatabaseAccountsOfflineRegionFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DatabaseAccountsOfflineRegionFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsOfflineRegionFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsOfflineRegionFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsOfflineRegionFuture") + return + } + ar.Response = future.Response() + return +} + +// DatabaseAccountsOnlineRegionFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DatabaseAccountsOnlineRegionFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsOnlineRegionFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsOnlineRegionFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsOnlineRegionFuture") + return + } + ar.Response = future.Response() + return +} + +// DatabaseAccountsPatchFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type DatabaseAccountsPatchFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsPatchFuture) Result(client DatabaseAccountsClient) (da DatabaseAccount, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsPatchFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsPatchFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if da.Response.Response, err = future.GetResult(sender); err == nil && da.Response.Response.StatusCode != http.StatusNoContent { + da, err = client.PatchResponder(da.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsPatchFuture", "Result", da.Response.Response, "Failure responding to request") + } + } + return +} + +// DatabaseAccountsRegenerateKeyFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DatabaseAccountsRegenerateKeyFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DatabaseAccountsRegenerateKeyFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsRegenerateKeyFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsRegenerateKeyFuture") + return + } + ar.Response = future.Response() + return +} + +// ErrorResponse error Response. +type ErrorResponse struct { + // Code - Error code. + Code *string `json:"code,omitempty"` + // Message - Error message indicating why the operation failed. + Message *string `json:"message,omitempty"` +} + +// ExcludedPath ... +type ExcludedPath struct { + // Path - The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*) + Path *string `json:"path,omitempty"` +} + +// ExtendedResourceProperties the system generated resource properties associated with SQL databases and +// SQL containers. +type ExtendedResourceProperties struct { + // Rid - A system generated property. A unique identifier. + Rid *string `json:"_rid,omitempty"` + // Ts - A system generated property that denotes the last updated timestamp of the resource. + Ts interface{} `json:"_ts,omitempty"` + // Etag - A system generated property representing the resource etag required for optimistic concurrency control. + Etag *string `json:"_etag,omitempty"` +} + +// FailoverPolicies the list of new failover policies for the failover priority change. +type FailoverPolicies struct { + // FailoverPolicies - List of failover policies. + FailoverPolicies *[]FailoverPolicy `json:"failoverPolicies,omitempty"` +} + +// FailoverPolicy the failover policy for a given region of a database account. +type FailoverPolicy struct { + // ID - READ-ONLY; The unique identifier of the region in which the database account replicates to. Example: <accountName>-<locationName>. + ID *string `json:"id,omitempty"` + // LocationName - The name of the region in which the database account exists. + LocationName *string `json:"locationName,omitempty"` + // FailoverPriority - The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. + FailoverPriority *int32 `json:"failoverPriority,omitempty"` +} + +// GremlinDatabase an Azure Cosmos DB Gremlin database. +type GremlinDatabase struct { + autorest.Response `json:"-"` + // GremlinDatabaseProperties - The properties of an Azure Cosmos DB SQL database + *GremlinDatabaseProperties `json:"properties,omitempty"` + // ID - READ-ONLY; The unique resource identifier of the database account. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the database account. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of Azure resource. + Type *string `json:"type,omitempty"` + // Location - The location of the resource group to which the resource belongs. + Location *string `json:"location,omitempty"` + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for GremlinDatabase. +func (gd GremlinDatabase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if gd.GremlinDatabaseProperties != nil { + objectMap["properties"] = gd.GremlinDatabaseProperties + } + if gd.Location != nil { + objectMap["location"] = gd.Location + } + if gd.Tags != nil { + objectMap["tags"] = gd.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for GremlinDatabase struct. +func (gd *GremlinDatabase) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var gremlinDatabaseProperties GremlinDatabaseProperties + err = json.Unmarshal(*v, &gremlinDatabaseProperties) + if err != nil { + return err + } + gd.GremlinDatabaseProperties = &gremlinDatabaseProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + gd.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + gd.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gd.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + gd.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + gd.Tags = tags + } + } + } + + return nil +} + +// GremlinDatabaseCreateUpdateParameters parameters to create and update Cosmos DB Gremlin database. +type GremlinDatabaseCreateUpdateParameters struct { + // GremlinDatabaseCreateUpdateProperties - Properties to create and update Azure Cosmos DB Gremlin database. + *GremlinDatabaseCreateUpdateProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for GremlinDatabaseCreateUpdateParameters. +func (gdcup GremlinDatabaseCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if gdcup.GremlinDatabaseCreateUpdateProperties != nil { + objectMap["properties"] = gdcup.GremlinDatabaseCreateUpdateProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for GremlinDatabaseCreateUpdateParameters struct. +func (gdcup *GremlinDatabaseCreateUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var gremlinDatabaseCreateUpdateProperties GremlinDatabaseCreateUpdateProperties + err = json.Unmarshal(*v, &gremlinDatabaseCreateUpdateProperties) + if err != nil { + return err + } + gdcup.GremlinDatabaseCreateUpdateProperties = &gremlinDatabaseCreateUpdateProperties + } + } + } + + return nil +} + +// GremlinDatabaseCreateUpdateProperties properties to create and update Azure Cosmos DB Gremlin database. +type GremlinDatabaseCreateUpdateProperties struct { + // Resource - The standard JSON format of a Gremlin database + Resource *GremlinDatabaseResource `json:"resource,omitempty"` + // Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + Options map[string]*string `json:"options"` +} + +// MarshalJSON is the custom marshaler for GremlinDatabaseCreateUpdateProperties. +func (gdcup GremlinDatabaseCreateUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if gdcup.Resource != nil { + objectMap["resource"] = gdcup.Resource + } + if gdcup.Options != nil { + objectMap["options"] = gdcup.Options + } + return json.Marshal(objectMap) +} + +// GremlinDatabaseListResult the List operation response, that contains the Gremlin databases and their +// properties. +type GremlinDatabaseListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of Gremlin databases and their properties. + Value *[]GremlinDatabase `json:"value,omitempty"` +} + +// GremlinDatabaseProperties the properties of an Azure Cosmos DB SQL database +type GremlinDatabaseProperties struct { + // Rid - A system generated property. A unique identifier. + Rid *string `json:"_rid,omitempty"` + // Ts - A system generated property that denotes the last updated timestamp of the resource. + Ts interface{} `json:"_ts,omitempty"` + // Etag - A system generated property representing the resource etag required for optimistic concurrency control. + Etag *string `json:"_etag,omitempty"` + // ID - Name of the Cosmos DB Gremlin database + ID *string `json:"id,omitempty"` +} + +// GremlinDatabaseResource cosmos DB Gremlin database id object +type GremlinDatabaseResource struct { + // ID - Name of the Cosmos DB Gremlin database + ID *string `json:"id,omitempty"` +} + +// GremlinGraph an Azure Cosmos DB Gremlin graph. +type GremlinGraph struct { + autorest.Response `json:"-"` + // GremlinGraphProperties - The properties of an Azure Cosmos DB Gremlin graph + *GremlinGraphProperties `json:"properties,omitempty"` + // ID - READ-ONLY; The unique resource identifier of the database account. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the database account. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of Azure resource. + Type *string `json:"type,omitempty"` + // Location - The location of the resource group to which the resource belongs. + Location *string `json:"location,omitempty"` + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for GremlinGraph. +func (gg GremlinGraph) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if gg.GremlinGraphProperties != nil { + objectMap["properties"] = gg.GremlinGraphProperties + } + if gg.Location != nil { + objectMap["location"] = gg.Location + } + if gg.Tags != nil { + objectMap["tags"] = gg.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for GremlinGraph struct. +func (gg *GremlinGraph) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var gremlinGraphProperties GremlinGraphProperties + err = json.Unmarshal(*v, &gremlinGraphProperties) + if err != nil { + return err + } + gg.GremlinGraphProperties = &gremlinGraphProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + gg.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + gg.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gg.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + gg.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + gg.Tags = tags + } + } + } + + return nil +} + +// GremlinGraphCreateUpdateParameters parameters to create and update Cosmos DB Gremlin graph. +type GremlinGraphCreateUpdateParameters struct { + // GremlinGraphCreateUpdateProperties - Properties to create and update Azure Cosmos DB Gremlin graph. + *GremlinGraphCreateUpdateProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for GremlinGraphCreateUpdateParameters. +func (ggcup GremlinGraphCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ggcup.GremlinGraphCreateUpdateProperties != nil { + objectMap["properties"] = ggcup.GremlinGraphCreateUpdateProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for GremlinGraphCreateUpdateParameters struct. +func (ggcup *GremlinGraphCreateUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var gremlinGraphCreateUpdateProperties GremlinGraphCreateUpdateProperties + err = json.Unmarshal(*v, &gremlinGraphCreateUpdateProperties) + if err != nil { + return err + } + ggcup.GremlinGraphCreateUpdateProperties = &gremlinGraphCreateUpdateProperties + } + } + } + + return nil +} + +// GremlinGraphCreateUpdateProperties properties to create and update Azure Cosmos DB Gremlin graph. +type GremlinGraphCreateUpdateProperties struct { + // Resource - The standard JSON format of a Gremlin graph + Resource *GremlinGraphResource `json:"resource,omitempty"` + // Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + Options map[string]*string `json:"options"` +} + +// MarshalJSON is the custom marshaler for GremlinGraphCreateUpdateProperties. +func (ggcup GremlinGraphCreateUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ggcup.Resource != nil { + objectMap["resource"] = ggcup.Resource + } + if ggcup.Options != nil { + objectMap["options"] = ggcup.Options + } + return json.Marshal(objectMap) +} + +// GremlinGraphListResult the List operation response, that contains the graphs and their properties. +type GremlinGraphListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of graphs and their properties. + Value *[]GremlinGraph `json:"value,omitempty"` +} + +// GremlinGraphProperties the properties of an Azure Cosmos DB Gremlin graph +type GremlinGraphProperties struct { + // ID - Name of the Cosmos DB Gremlin graph + ID *string `json:"id,omitempty"` + // IndexingPolicy - The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph + IndexingPolicy *IndexingPolicy `json:"indexingPolicy,omitempty"` + // PartitionKey - The configuration of the partition key to be used for partitioning data into multiple partitions + PartitionKey *ContainerPartitionKey `json:"partitionKey,omitempty"` + // DefaultTTL - Default time to live + DefaultTTL *int32 `json:"defaultTtl,omitempty"` + // UniqueKeyPolicy - The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service. + UniqueKeyPolicy *UniqueKeyPolicy `json:"uniqueKeyPolicy,omitempty"` + // ConflictResolutionPolicy - The conflict resolution policy for the graph. + ConflictResolutionPolicy *ConflictResolutionPolicy `json:"conflictResolutionPolicy,omitempty"` + // Rid - A system generated property. A unique identifier. + Rid *string `json:"_rid,omitempty"` + // Ts - A system generated property that denotes the last updated timestamp of the resource. + Ts interface{} `json:"_ts,omitempty"` + // Etag - A system generated property representing the resource etag required for optimistic concurrency control. + Etag *string `json:"_etag,omitempty"` +} + +// GremlinGraphResource cosmos DB Gremlin graph resource object +type GremlinGraphResource struct { + // ID - Name of the Cosmos DB Gremlin graph + ID *string `json:"id,omitempty"` + // IndexingPolicy - The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph + IndexingPolicy *IndexingPolicy `json:"indexingPolicy,omitempty"` + // PartitionKey - The configuration of the partition key to be used for partitioning data into multiple partitions + PartitionKey *ContainerPartitionKey `json:"partitionKey,omitempty"` + // DefaultTTL - Default time to live + DefaultTTL *int32 `json:"defaultTtl,omitempty"` + // UniqueKeyPolicy - The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service. + UniqueKeyPolicy *UniqueKeyPolicy `json:"uniqueKeyPolicy,omitempty"` + // ConflictResolutionPolicy - The conflict resolution policy for the graph. + ConflictResolutionPolicy *ConflictResolutionPolicy `json:"conflictResolutionPolicy,omitempty"` +} + +// IncludedPath the paths that are included in indexing +type IncludedPath struct { + // Path - The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*) + Path *string `json:"path,omitempty"` + // Indexes - List of indexes for this path + Indexes *[]Indexes `json:"indexes,omitempty"` +} + +// Indexes the indexes for the path. +type Indexes struct { + // DataType - The datatype for which the indexing behavior is applied to. Possible values include: 'String', 'Number', 'Point', 'Polygon', 'LineString', 'MultiPolygon' + DataType DataType `json:"dataType,omitempty"` + // Precision - The precision of the index. -1 is maximum precision. + Precision *int32 `json:"precision,omitempty"` + // Kind - Indicates the type of index. Possible values include: 'Hash', 'Range', 'Spatial' + Kind IndexKind `json:"kind,omitempty"` +} + +// IndexingPolicy cosmos DB indexing policy +type IndexingPolicy struct { + // Automatic - Indicates if the indexing policy is automatic + Automatic *bool `json:"automatic,omitempty"` + // IndexingMode - Indicates the indexing mode. Possible values include: 'Consistent', 'Lazy', 'None' + IndexingMode IndexingMode `json:"indexingMode,omitempty"` + // IncludedPaths - List of paths to include in the indexing + IncludedPaths *[]IncludedPath `json:"includedPaths,omitempty"` + // ExcludedPaths - List of paths to exclude from indexing + ExcludedPaths *[]ExcludedPath `json:"excludedPaths,omitempty"` +} + +// Location a region in which the Azure Cosmos DB database account is deployed. +type Location struct { + // ID - READ-ONLY; The unique identifier of the region within the database account. Example: <accountName>-<locationName>. + ID *string `json:"id,omitempty"` + // LocationName - The name of the region. + LocationName *string `json:"locationName,omitempty"` + // DocumentEndpoint - READ-ONLY; The connection endpoint for the specific region. Example: https://<accountName>-<locationName>.documents.azure.com:443/ + DocumentEndpoint *string `json:"documentEndpoint,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + // FailoverPriority - The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. + FailoverPriority *int32 `json:"failoverPriority,omitempty"` +} + +// Metric metric data +type Metric struct { + // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - READ-ONLY; The end time for the metric (ISO-8601 format). + EndTime *date.Time `json:"endTime,omitempty"` + // TimeGrain - READ-ONLY; The time grain to be used to summarize the metric values. + TimeGrain *string `json:"timeGrain,omitempty"` + // Unit - The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' + Unit UnitType `json:"unit,omitempty"` + // Name - READ-ONLY; The name information for the metric. + Name *MetricName `json:"name,omitempty"` + // MetricValues - READ-ONLY; The metric values for the specified time window and timestep. + MetricValues *[]MetricValue `json:"metricValues,omitempty"` +} + +// MetricAvailability the availability of the metric. +type MetricAvailability struct { + // TimeGrain - READ-ONLY; The time grain to be used to summarize the metric values. + TimeGrain *string `json:"timeGrain,omitempty"` + // Retention - READ-ONLY; The retention for the metric values. + Retention *string `json:"retention,omitempty"` +} + +// MetricDefinition the definition of a metric. +type MetricDefinition struct { + // MetricAvailabilities - READ-ONLY; The list of metric availabilities for the account. + MetricAvailabilities *[]MetricAvailability `json:"metricAvailabilities,omitempty"` + // PrimaryAggregationType - READ-ONLY; The primary aggregation type of the metric. Possible values include: 'PrimaryAggregationTypeNone', 'PrimaryAggregationTypeAverage', 'PrimaryAggregationTypeTotal', 'PrimaryAggregationTypeMinimimum', 'PrimaryAggregationTypeMaximum', 'PrimaryAggregationTypeLast' + PrimaryAggregationType PrimaryAggregationType `json:"primaryAggregationType,omitempty"` + // Unit - The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' + Unit UnitType `json:"unit,omitempty"` + // ResourceURI - READ-ONLY; The resource uri of the database. + ResourceURI *string `json:"resourceUri,omitempty"` + // Name - READ-ONLY; The name information for the metric. + Name *MetricName `json:"name,omitempty"` +} + +// MetricDefinitionsListResult the response to a list metric definitions request. +type MetricDefinitionsListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; The list of metric definitions for the account. + Value *[]MetricDefinition `json:"value,omitempty"` +} + +// MetricListResult the response to a list metrics request. +type MetricListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; The list of metrics for the account. + Value *[]Metric `json:"value,omitempty"` +} + +// MetricName a metric name. +type MetricName struct { + // Value - READ-ONLY; The name of the metric. + Value *string `json:"value,omitempty"` + // LocalizedValue - READ-ONLY; The friendly name of the metric. + LocalizedValue *string `json:"localizedValue,omitempty"` +} + +// MetricValue represents metrics values. +type MetricValue struct { + // Count - READ-ONLY; The number of values for the metric. + Count *float64 `json:"_count,omitempty"` + // Average - READ-ONLY; The average value of the metric. + Average *float64 `json:"average,omitempty"` + // Maximum - READ-ONLY; The max value of the metric. + Maximum *float64 `json:"maximum,omitempty"` + // Minimum - READ-ONLY; The min value of the metric. + Minimum *float64 `json:"minimum,omitempty"` + // Timestamp - READ-ONLY; The metric timestamp (ISO-8601 format). + Timestamp *date.Time `json:"timestamp,omitempty"` + // Total - READ-ONLY; The total value of the metric. + Total *float64 `json:"total,omitempty"` +} + +// MongoDBCollection an Azure Cosmos DB MongoDB collection. +type MongoDBCollection struct { + autorest.Response `json:"-"` + // MongoDBCollectionProperties - The properties of an Azure Cosmos DB MongoDB collection + *MongoDBCollectionProperties `json:"properties,omitempty"` + // ID - READ-ONLY; The unique resource identifier of the database account. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the database account. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of Azure resource. + Type *string `json:"type,omitempty"` + // Location - The location of the resource group to which the resource belongs. + Location *string `json:"location,omitempty"` + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for MongoDBCollection. +func (mdc MongoDBCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mdc.MongoDBCollectionProperties != nil { + objectMap["properties"] = mdc.MongoDBCollectionProperties + } + if mdc.Location != nil { + objectMap["location"] = mdc.Location + } + if mdc.Tags != nil { + objectMap["tags"] = mdc.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for MongoDBCollection struct. +func (mdc *MongoDBCollection) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var mongoDBCollectionProperties MongoDBCollectionProperties + err = json.Unmarshal(*v, &mongoDBCollectionProperties) + if err != nil { + return err + } + mdc.MongoDBCollectionProperties = &mongoDBCollectionProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + mdc.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + mdc.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mdc.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + mdc.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + mdc.Tags = tags + } + } + } + + return nil +} + +// MongoDBCollectionCreateUpdateParameters parameters to create and update Cosmos DB MongoDB collection. +type MongoDBCollectionCreateUpdateParameters struct { + // MongoDBCollectionCreateUpdateProperties - Properties to create and update Azure Cosmos DB MongoDB collection. + *MongoDBCollectionCreateUpdateProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for MongoDBCollectionCreateUpdateParameters. +func (mdccup MongoDBCollectionCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mdccup.MongoDBCollectionCreateUpdateProperties != nil { + objectMap["properties"] = mdccup.MongoDBCollectionCreateUpdateProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for MongoDBCollectionCreateUpdateParameters struct. +func (mdccup *MongoDBCollectionCreateUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var mongoDBCollectionCreateUpdateProperties MongoDBCollectionCreateUpdateProperties + err = json.Unmarshal(*v, &mongoDBCollectionCreateUpdateProperties) + if err != nil { + return err + } + mdccup.MongoDBCollectionCreateUpdateProperties = &mongoDBCollectionCreateUpdateProperties + } + } + } + + return nil +} + +// MongoDBCollectionCreateUpdateProperties properties to create and update Azure Cosmos DB MongoDB +// collection. +type MongoDBCollectionCreateUpdateProperties struct { + // Resource - The standard JSON format of a MongoDB collection + Resource *MongoDBCollectionResource `json:"resource,omitempty"` + // Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + Options map[string]*string `json:"options"` +} + +// MarshalJSON is the custom marshaler for MongoDBCollectionCreateUpdateProperties. +func (mdccup MongoDBCollectionCreateUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mdccup.Resource != nil { + objectMap["resource"] = mdccup.Resource + } + if mdccup.Options != nil { + objectMap["options"] = mdccup.Options + } + return json.Marshal(objectMap) +} + +// MongoDBCollectionListResult the List operation response, that contains the MongoDB collections and their +// properties. +type MongoDBCollectionListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of MongoDB collections and their properties. + Value *[]MongoDBCollection `json:"value,omitempty"` +} + +// MongoDBCollectionProperties the properties of an Azure Cosmos DB MongoDB collection +type MongoDBCollectionProperties struct { + // ID - Name of the Cosmos DB MongoDB collection + ID *string `json:"id,omitempty"` + // ShardKey - A key-value pair of shard keys to be applied for the request. + ShardKey map[string]*string `json:"shardKey"` + // Indexes - List of index keys + Indexes *[]MongoIndex `json:"indexes,omitempty"` +} + +// MarshalJSON is the custom marshaler for MongoDBCollectionProperties. +func (mdcp MongoDBCollectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mdcp.ID != nil { + objectMap["id"] = mdcp.ID + } + if mdcp.ShardKey != nil { + objectMap["shardKey"] = mdcp.ShardKey + } + if mdcp.Indexes != nil { + objectMap["indexes"] = mdcp.Indexes + } + return json.Marshal(objectMap) +} + +// MongoDBCollectionResource cosmos DB MongoDB collection resource object +type MongoDBCollectionResource struct { + // ID - Name of the Cosmos DB MongoDB collection + ID *string `json:"id,omitempty"` + // ShardKey - A key-value pair of shard keys to be applied for the request. + ShardKey map[string]*string `json:"shardKey"` + // Indexes - List of index keys + Indexes *[]MongoIndex `json:"indexes,omitempty"` +} + +// MarshalJSON is the custom marshaler for MongoDBCollectionResource. +func (mdcr MongoDBCollectionResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mdcr.ID != nil { + objectMap["id"] = mdcr.ID + } + if mdcr.ShardKey != nil { + objectMap["shardKey"] = mdcr.ShardKey + } + if mdcr.Indexes != nil { + objectMap["indexes"] = mdcr.Indexes + } + return json.Marshal(objectMap) +} + +// MongoDBDatabase an Azure Cosmos DB MongoDB database. +type MongoDBDatabase struct { + autorest.Response `json:"-"` + // MongoDBDatabaseProperties - The properties of an Azure Cosmos DB MongoDB database + *MongoDBDatabaseProperties `json:"properties,omitempty"` + // ID - READ-ONLY; The unique resource identifier of the database account. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the database account. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of Azure resource. + Type *string `json:"type,omitempty"` + // Location - The location of the resource group to which the resource belongs. + Location *string `json:"location,omitempty"` + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for MongoDBDatabase. +func (mdd MongoDBDatabase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mdd.MongoDBDatabaseProperties != nil { + objectMap["properties"] = mdd.MongoDBDatabaseProperties + } + if mdd.Location != nil { + objectMap["location"] = mdd.Location + } + if mdd.Tags != nil { + objectMap["tags"] = mdd.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for MongoDBDatabase struct. +func (mdd *MongoDBDatabase) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { switch k { + case "properties": + if v != nil { + var mongoDBDatabaseProperties MongoDBDatabaseProperties + err = json.Unmarshal(*v, &mongoDBDatabaseProperties) + if err != nil { + return err + } + mdd.MongoDBDatabaseProperties = &mongoDBDatabaseProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + mdd.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + mdd.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mdd.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + mdd.Location = &location + } case "tags": if v != nil { var tags map[string]*string @@ -554,16 +2602,46 @@ func (dapp *DatabaseAccountPatchParameters) UnmarshalJSON(body []byte) error { if err != nil { return err } - dapp.Tags = tags + mdd.Tags = tags } + } + } + + return nil +} + +// MongoDBDatabaseCreateUpdateParameters parameters to create and update Cosmos DB MongoDB database. +type MongoDBDatabaseCreateUpdateParameters struct { + // MongoDBDatabaseCreateUpdateProperties - Properties to create and update Azure Cosmos DB MongoDB database. + *MongoDBDatabaseCreateUpdateProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for MongoDBDatabaseCreateUpdateParameters. +func (mddcup MongoDBDatabaseCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mddcup.MongoDBDatabaseCreateUpdateProperties != nil { + objectMap["properties"] = mddcup.MongoDBDatabaseCreateUpdateProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for MongoDBDatabaseCreateUpdateParameters struct. +func (mddcup *MongoDBDatabaseCreateUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { case "properties": if v != nil { - var databaseAccountPatchProperties DatabaseAccountPatchProperties - err = json.Unmarshal(*v, &databaseAccountPatchProperties) + var mongoDBDatabaseCreateUpdateProperties MongoDBDatabaseCreateUpdateProperties + err = json.Unmarshal(*v, &mongoDBDatabaseCreateUpdateProperties) if err != nil { return err } - dapp.DatabaseAccountPatchProperties = &databaseAccountPatchProperties + mddcup.MongoDBDatabaseCreateUpdateProperties = &mongoDBDatabaseCreateUpdateProperties } } } @@ -571,671 +2649,973 @@ func (dapp *DatabaseAccountPatchParameters) UnmarshalJSON(body []byte) error { return nil } -// DatabaseAccountPatchProperties properties to update Azure Cosmos DB database accounts. -type DatabaseAccountPatchProperties struct { - // Capabilities - List of Cosmos DB capabilities for the account - Capabilities *[]Capability `json:"capabilities,omitempty"` +// MongoDBDatabaseCreateUpdateProperties properties to create and update Azure Cosmos DB MongoDB database. +type MongoDBDatabaseCreateUpdateProperties struct { + // Resource - The standard JSON format of a MongoDB database + Resource *MongoDBDatabaseResource `json:"resource,omitempty"` + // Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + Options map[string]*string `json:"options"` } -// DatabaseAccountProperties properties for the database account. -type DatabaseAccountProperties struct { - ProvisioningState *string `json:"provisioningState,omitempty"` - // DocumentEndpoint - The connection endpoint for the Cosmos DB database account. - DocumentEndpoint *string `json:"documentEndpoint,omitempty"` - // DatabaseAccountOfferType - The offer type for the Cosmos DB database account. Default value: Standard. Possible values include: 'Standard' - DatabaseAccountOfferType DatabaseAccountOfferType `json:"databaseAccountOfferType,omitempty"` - // IPRangeFilter - Cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces. - IPRangeFilter *string `json:"ipRangeFilter,omitempty"` - // IsVirtualNetworkFilterEnabled - Flag to indicate whether to enable/disable Virtual Network ACL rules. - IsVirtualNetworkFilterEnabled *bool `json:"isVirtualNetworkFilterEnabled,omitempty"` - // EnableAutomaticFailover - Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account. - EnableAutomaticFailover *bool `json:"enableAutomaticFailover,omitempty"` - // ConsistencyPolicy - The consistency policy for the Cosmos DB database account. - ConsistencyPolicy *ConsistencyPolicy `json:"consistencyPolicy,omitempty"` - // Capabilities - List of Cosmos DB capabilities for the account - Capabilities *[]Capability `json:"capabilities,omitempty"` - // WriteLocations - An array that contains the write location for the Cosmos DB account. - WriteLocations *[]Location `json:"writeLocations,omitempty"` - // ReadLocations - An array that contains of the read locations enabled for the Cosmos DB account. - ReadLocations *[]Location `json:"readLocations,omitempty"` - // FailoverPolicies - An array that contains the regions ordered by their failover priorities. - FailoverPolicies *[]FailoverPolicy `json:"failoverPolicies,omitempty"` - // VirtualNetworkRules - List of Virtual Network ACL rules configured for the Cosmos DB account. - VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` - // EnableMultipleWriteLocations - Enables the account to write in multiple locations - EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty"` +// MarshalJSON is the custom marshaler for MongoDBDatabaseCreateUpdateProperties. +func (mddcup MongoDBDatabaseCreateUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mddcup.Resource != nil { + objectMap["resource"] = mddcup.Resource + } + if mddcup.Options != nil { + objectMap["options"] = mddcup.Options + } + return json.Marshal(objectMap) } -// DatabaseAccountRegenerateKeyParameters parameters to regenerate the keys within the database account. -type DatabaseAccountRegenerateKeyParameters struct { - // KeyKind - The access key to regenerate. Possible values include: 'Primary', 'Secondary', 'PrimaryReadonly', 'SecondaryReadonly' - KeyKind KeyKind `json:"keyKind,omitempty"` +// MongoDBDatabaseListResult the List operation response, that contains the MongoDB databases and their +// properties. +type MongoDBDatabaseListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of MongoDB databases and their properties. + Value *[]MongoDBDatabase `json:"value,omitempty"` } -// DatabaseAccountsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type DatabaseAccountsCreateOrUpdateFuture struct { - azure.Future +// MongoDBDatabaseProperties the properties of an Azure Cosmos DB MongoDB database +type MongoDBDatabaseProperties struct { + // ID - Name of the Cosmos DB MongoDB database + ID *string `json:"id,omitempty"` } -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *DatabaseAccountsCreateOrUpdateFuture) Result(client DatabaseAccountsClient) (da DatabaseAccount, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsCreateOrUpdateFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if da.Response.Response, err = future.GetResult(sender); err == nil && da.Response.Response.StatusCode != http.StatusNoContent { - da, err = client.CreateOrUpdateResponder(da.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsCreateOrUpdateFuture", "Result", da.Response.Response, "Failure responding to request") - } - } - return +// MongoDBDatabaseResource cosmos DB MongoDB database id object +type MongoDBDatabaseResource struct { + // ID - Name of the Cosmos DB MongoDB database + ID *string `json:"id,omitempty"` } -// DatabaseAccountsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type DatabaseAccountsDeleteFuture struct { - azure.Future +// MongoIndex cosmos DB MongoDB collection index key +type MongoIndex struct { + // Key - Cosmos DB MongoDB collection index keys + Key *MongoIndexKeys `json:"key,omitempty"` + // Options - Cosmos DB MongoDB collection index key options + Options *MongoIndexOptions `json:"options,omitempty"` } -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *DatabaseAccountsDeleteFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsDeleteFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsDeleteFuture") - return - } - ar.Response = future.Response() - return +// MongoIndexKeys cosmos DB MongoDB collection resource object +type MongoIndexKeys struct { + // Keys - List of keys for each MongoDB collection in the Azure Cosmos DB service + Keys *[]string `json:"keys,omitempty"` } -// DatabaseAccountsFailoverPriorityChangeFuture an abstraction for monitoring and retrieving the results of -// a long-running operation. -type DatabaseAccountsFailoverPriorityChangeFuture struct { - azure.Future +// MongoIndexOptions cosmos DB MongoDB collection index options +type MongoIndexOptions struct { + // ExpireAfterSeconds - Expire after seconds + ExpireAfterSeconds *int32 `json:"expireAfterSeconds,omitempty"` + // Unique - Is unique or not + Unique *bool `json:"unique,omitempty"` } -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *DatabaseAccountsFailoverPriorityChangeFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsFailoverPriorityChangeFuture", "Result", future.Response(), "Polling failure") - return +// Operation REST API operation +type Operation struct { + // Name - Operation name: {provider}/{resource}/{operation} + Name *string `json:"name,omitempty"` + // Display - The object that represents the operation. + Display *OperationDisplay `json:"display,omitempty"` +} + +// OperationDisplay the object that represents the operation. +type OperationDisplay struct { + // Provider - Service provider: Microsoft.ResourceProvider + Provider *string `json:"Provider,omitempty"` + // Resource - Resource on which the operation is performed: Profile, endpoint, etc. + Resource *string `json:"Resource,omitempty"` + // Operation - Operation type: Read, write, delete, etc. + Operation *string `json:"Operation,omitempty"` + // Description - Description of operation + Description *string `json:"Description,omitempty"` +} + +// OperationListResult result of the request to list Resource Provider operations. It contains a list of +// operations and a URL link to get the next set of results. +type OperationListResult struct { + autorest.Response `json:"-"` + // Value - List of operations supported by the Resource Provider. + Value *[]Operation `json:"value,omitempty"` + // NextLink - URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// OperationListResultIterator provides access to a complete listing of Operation values. +type OperationListResultIterator struct { + i int + page OperationListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() } - if !done { - err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsFailoverPriorityChangeFuture") - return + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil } - ar.Response = future.Response() - return + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil } -// DatabaseAccountsListResult the List operation response, that contains the database accounts and their -// properties. -type DatabaseAccountsListResult struct { - autorest.Response `json:"-"` - // Value - List of database account and their properties. - Value *[]DatabaseAccount `json:"value,omitempty"` +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *OperationListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) } -// DatabaseAccountsOfflineRegionFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type DatabaseAccountsOfflineRegionFuture struct { - azure.Future +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter OperationListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *DatabaseAccountsOfflineRegionFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsOfflineRegionFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsOfflineRegionFuture") - return - } - ar.Response = future.Response() - return +// Response returns the raw server response from the last page request. +func (iter OperationListResultIterator) Response() OperationListResult { + return iter.page.Response() } -// DatabaseAccountsOnlineRegionFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type DatabaseAccountsOnlineRegionFuture struct { - azure.Future +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter OperationListResultIterator) Value() Operation { + if !iter.page.NotDone() { + return Operation{} + } + return iter.page.Values()[iter.i] } -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *DatabaseAccountsOnlineRegionFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsOnlineRegionFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsOnlineRegionFuture") - return - } - ar.Response = future.Response() - return +// Creates a new instance of the OperationListResultIterator type. +func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator { + return OperationListResultIterator{page: page} } -// DatabaseAccountsPatchFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type DatabaseAccountsPatchFuture struct { - azure.Future +// IsEmpty returns true if the ListResult contains no values. +func (olr OperationListResult) IsEmpty() bool { + return olr.Value == nil || len(*olr.Value) == 0 } -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *DatabaseAccountsPatchFuture) Result(client DatabaseAccountsClient) (da DatabaseAccount, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsPatchFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsPatchFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if da.Response.Response, err = future.GetResult(sender); err == nil && da.Response.Response.StatusCode != http.StatusNoContent { - da, err = client.PatchResponder(da.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsPatchFuture", "Result", da.Response.Response, "Failure responding to request") - } +// operationListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (olr OperationListResult) operationListResultPreparer(ctx context.Context) (*http.Request, error) { + if olr.NextLink == nil || len(to.String(olr.NextLink)) < 1 { + return nil, nil } - return + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(olr.NextLink))) } -// DatabaseAccountsRegenerateKeyFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type DatabaseAccountsRegenerateKeyFuture struct { - azure.Future +// OperationListResultPage contains a page of Operation values. +type OperationListResultPage struct { + fn func(context.Context, OperationListResult) (OperationListResult, error) + olr OperationListResult } -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *DatabaseAccountsRegenerateKeyFuture) Result(client DatabaseAccountsClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "documentdb.DatabaseAccountsRegenerateKeyFuture", "Result", future.Response(), "Polling failure") - return +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() } - if !done { - err = azure.NewAsyncOpIncompleteError("documentdb.DatabaseAccountsRegenerateKeyFuture") - return + next, err := page.fn(ctx, page.olr) + if err != nil { + return err } - ar.Response = future.Response() - return + page.olr = next + return nil } -// ErrorResponse error Response. -type ErrorResponse struct { - // Code - Error code. - Code *string `json:"code,omitempty"` - // Message - Error message indicating why the operation failed. - Message *string `json:"message,omitempty"` +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *OperationListResultPage) Next() error { + return page.NextWithContext(context.Background()) } -// FailoverPolicies the list of new failover policies for the failover priority change. -type FailoverPolicies struct { - // FailoverPolicies - List of failover policies. - FailoverPolicies *[]FailoverPolicy `json:"failoverPolicies,omitempty"` +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page OperationListResultPage) NotDone() bool { + return !page.olr.IsEmpty() } -// FailoverPolicy the failover policy for a given region of a database account. -type FailoverPolicy struct { - // ID - The unique identifier of the region in which the database account replicates to. Example: <accountName>-<locationName>. - ID *string `json:"id,omitempty"` - // LocationName - The name of the region in which the database account exists. - LocationName *string `json:"locationName,omitempty"` - // FailoverPriority - The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. - FailoverPriority *int32 `json:"failoverPriority,omitempty"` +// Response returns the raw server response from the last page request. +func (page OperationListResultPage) Response() OperationListResult { + return page.olr } -// Location a region in which the Azure Cosmos DB database account is deployed. -type Location struct { - // ID - The unique identifier of the region within the database account. Example: <accountName>-<locationName>. - ID *string `json:"id,omitempty"` - // LocationName - The name of the region. - LocationName *string `json:"locationName,omitempty"` - // DocumentEndpoint - The connection endpoint for the specific region. Example: https://<accountName>-<locationName>.documents.azure.com:443/ - DocumentEndpoint *string `json:"documentEndpoint,omitempty"` - ProvisioningState *string `json:"provisioningState,omitempty"` - // FailoverPriority - The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. - FailoverPriority *int32 `json:"failoverPriority,omitempty"` +// Values returns the slice of values for the current page or nil if there are no values. +func (page OperationListResultPage) Values() []Operation { + if page.olr.IsEmpty() { + return nil + } + return *page.olr.Value } -// Metric metric data -type Metric struct { - // StartTime - The start time for the metric (ISO-8601 format). +// Creates a new instance of the OperationListResultPage type. +func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage { + return OperationListResultPage{fn: getNextPage} +} + +// PartitionMetric the metric values for a single partition. +type PartitionMetric struct { + // PartitionID - READ-ONLY; The partition id (GUID identifier) of the metric values. + PartitionID *string `json:"partitionId,omitempty"` + // PartitionKeyRangeID - READ-ONLY; The partition key range id (integer identifier) of the metric values. + PartitionKeyRangeID *string `json:"partitionKeyRangeId,omitempty"` + // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - The end time for the metric (ISO-8601 format). + // EndTime - READ-ONLY; The end time for the metric (ISO-8601 format). EndTime *date.Time `json:"endTime,omitempty"` - // TimeGrain - The time grain to be used to summarize the metric values. + // TimeGrain - READ-ONLY; The time grain to be used to summarize the metric values. TimeGrain *string `json:"timeGrain,omitempty"` // Unit - The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' Unit UnitType `json:"unit,omitempty"` - // Name - The name information for the metric. + // Name - READ-ONLY; The name information for the metric. Name *MetricName `json:"name,omitempty"` - // MetricValues - The metric values for the specified time window and timestep. + // MetricValues - READ-ONLY; The metric values for the specified time window and timestep. MetricValues *[]MetricValue `json:"metricValues,omitempty"` } -// MetricAvailability the availability of the metric. -type MetricAvailability struct { - // TimeGrain - The time grain to be used to summarize the metric values. - TimeGrain *string `json:"timeGrain,omitempty"` - // Retention - The retention for the metric values. - Retention *string `json:"retention,omitempty"` +// PartitionMetricListResult the response to a list partition metrics request. +type PartitionMetricListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; The list of partition-level metrics for the account. + Value *[]PartitionMetric `json:"value,omitempty"` } -// MetricDefinition the definition of a metric. -type MetricDefinition struct { - // MetricAvailabilities - The list of metric availabilities for the account. - MetricAvailabilities *[]MetricAvailability `json:"metricAvailabilities,omitempty"` - // PrimaryAggregationType - The primary aggregation type of the metric. Possible values include: 'None', 'Average', 'Total', 'Minimimum', 'Maximum', 'Last' - PrimaryAggregationType PrimaryAggregationType `json:"primaryAggregationType,omitempty"` +// PartitionUsage the partition level usage data for a usage request. +type PartitionUsage struct { + // PartitionID - READ-ONLY; The partition id (GUID identifier) of the usages. + PartitionID *string `json:"partitionId,omitempty"` + // PartitionKeyRangeID - READ-ONLY; The partition key range id (integer identifier) of the usages. + PartitionKeyRangeID *string `json:"partitionKeyRangeId,omitempty"` // Unit - The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' Unit UnitType `json:"unit,omitempty"` - // ResourceURI - The resource uri of the database. - ResourceURI *string `json:"resourceUri,omitempty"` - // Name - The name information for the metric. + // Name - READ-ONLY; The name information for the metric. Name *MetricName `json:"name,omitempty"` + // QuotaPeriod - READ-ONLY; The quota period used to summarize the usage values. + QuotaPeriod *string `json:"quotaPeriod,omitempty"` + // Limit - READ-ONLY; Maximum value for this metric + Limit *int32 `json:"limit,omitempty"` + // CurrentValue - READ-ONLY; Current value for this metric + CurrentValue *int32 `json:"currentValue,omitempty"` } -// MetricDefinitionsListResult the response to a list metric definitions request. -type MetricDefinitionsListResult struct { +// PartitionUsagesResult the response to a list partition level usage request. +type PartitionUsagesResult struct { autorest.Response `json:"-"` - // Value - The list of metric definitions for the account. - Value *[]MetricDefinition `json:"value,omitempty"` + // Value - READ-ONLY; The list of partition-level usages for the database. A usage is a point in time metric + Value *[]PartitionUsage `json:"value,omitempty"` } -// MetricListResult the response to a list metrics request. -type MetricListResult struct { - autorest.Response `json:"-"` - // Value - The list of metrics for the account. - Value *[]Metric `json:"value,omitempty"` +// PercentileMetric percentile Metric data +type PercentileMetric struct { + // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - READ-ONLY; The end time for the metric (ISO-8601 format). + EndTime *date.Time `json:"endTime,omitempty"` + // TimeGrain - READ-ONLY; The time grain to be used to summarize the metric values. + TimeGrain *string `json:"timeGrain,omitempty"` + // Unit - The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' + Unit UnitType `json:"unit,omitempty"` + // Name - READ-ONLY; The name information for the metric. + Name *MetricName `json:"name,omitempty"` + // MetricValues - READ-ONLY; The percentile metric values for the specified time window and timestep. + MetricValues *[]PercentileMetricValue `json:"metricValues,omitempty"` } -// MetricName a metric name. -type MetricName struct { - // Value - The name of the metric. - Value *string `json:"value,omitempty"` - // LocalizedValue - The friendly name of the metric. - LocalizedValue *string `json:"localizedValue,omitempty"` +// PercentileMetricListResult the response to a list percentile metrics request. +type PercentileMetricListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; The list of percentile metrics for the account. + Value *[]PercentileMetric `json:"value,omitempty"` } -// MetricValue represents metrics values. -type MetricValue struct { - // Count - The number of values for the metric. +// PercentileMetricValue represents percentile metrics values. +type PercentileMetricValue struct { + // P10 - READ-ONLY; The 10th percentile value for the metric. + P10 *float64 `json:"P10,omitempty"` + // P25 - READ-ONLY; The 25th percentile value for the metric. + P25 *float64 `json:"P25,omitempty"` + // P50 - READ-ONLY; The 50th percentile value for the metric. + P50 *float64 `json:"P50,omitempty"` + // P75 - READ-ONLY; The 75th percentile value for the metric. + P75 *float64 `json:"P75,omitempty"` + // P90 - READ-ONLY; The 90th percentile value for the metric. + P90 *float64 `json:"P90,omitempty"` + // P95 - READ-ONLY; The 95th percentile value for the metric. + P95 *float64 `json:"P95,omitempty"` + // P99 - READ-ONLY; The 99th percentile value for the metric. + P99 *float64 `json:"P99,omitempty"` + // Count - READ-ONLY; The number of values for the metric. Count *float64 `json:"_count,omitempty"` - // Average - The average value of the metric. + // Average - READ-ONLY; The average value of the metric. Average *float64 `json:"average,omitempty"` - // Maximum - The max value of the metric. + // Maximum - READ-ONLY; The max value of the metric. Maximum *float64 `json:"maximum,omitempty"` - // Minimum - The min value of the metric. + // Minimum - READ-ONLY; The min value of the metric. Minimum *float64 `json:"minimum,omitempty"` - // Timestamp - The metric timestamp (ISO-8601 format). + // Timestamp - READ-ONLY; The metric timestamp (ISO-8601 format). Timestamp *date.Time `json:"timestamp,omitempty"` - // Total - The total value of the metric. + // Total - READ-ONLY; The total value of the metric. Total *float64 `json:"total,omitempty"` } -// Operation REST API operation -type Operation struct { - // Name - Operation name: {provider}/{resource}/{operation} +// RegionForOnlineOffline cosmos DB region to online or offline. +type RegionForOnlineOffline struct { + // Region - Cosmos DB region, with spaces between words and each word capitalized. + Region *string `json:"region,omitempty"` +} + +// Resource the core properties of ARM resources. +type Resource struct { + // ID - READ-ONLY; The unique resource identifier of the database account. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the database account. Name *string `json:"name,omitempty"` - // Display - The object that represents the operation. - Display *OperationDisplay `json:"display,omitempty"` + // Type - READ-ONLY; The type of Azure resource. + Type *string `json:"type,omitempty"` + // Location - The location of the resource group to which the resource belongs. + Location *string `json:"location,omitempty"` + Tags map[string]*string `json:"tags"` } -// OperationDisplay the object that represents the operation. -type OperationDisplay struct { - // Provider - Service provider: Microsoft.ResourceProvider - Provider *string `json:"Provider,omitempty"` - // Resource - Resource on which the operation is performed: Profile, endpoint, etc. - Resource *string `json:"Resource,omitempty"` - // Operation - Operation type: Read, write, delete, etc. - Operation *string `json:"Operation,omitempty"` - // Description - Description of operation - Description *string `json:"Description,omitempty"` +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if r.Location != nil { + objectMap["location"] = r.Location + } + if r.Tags != nil { + objectMap["tags"] = r.Tags + } + return json.Marshal(objectMap) } -// OperationListResult result of the request to list Resource Provider operations. It contains a list of -// operations and a URL link to get the next set of results. -type OperationListResult struct { +// SQLContainer an Azure Cosmos DB container. +type SQLContainer struct { autorest.Response `json:"-"` - // Value - List of operations supported by the Resource Provider. - Value *[]Operation `json:"value,omitempty"` - // NextLink - URL to get the next set of operation list results if there are any. - NextLink *string `json:"nextLink,omitempty"` + // SQLContainerProperties - The properties of an Azure Cosmos DB container + *SQLContainerProperties `json:"properties,omitempty"` + // ID - READ-ONLY; The unique resource identifier of the database account. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the database account. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of Azure resource. + Type *string `json:"type,omitempty"` + // Location - The location of the resource group to which the resource belongs. + Location *string `json:"location,omitempty"` + Tags map[string]*string `json:"tags"` } -// OperationListResultIterator provides access to a complete listing of Operation values. -type OperationListResultIterator struct { - i int - page OperationListResultPage +// MarshalJSON is the custom marshaler for SQLContainer. +func (sc SQLContainer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sc.SQLContainerProperties != nil { + objectMap["properties"] = sc.SQLContainerProperties + } + if sc.Location != nil { + objectMap["location"] = sc.Location + } + if sc.Tags != nil { + objectMap["tags"] = sc.Tags + } + return json.Marshal(objectMap) } -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode +// UnmarshalJSON is the custom unmarshaler for SQLContainer struct. +func (sc *SQLContainer) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var SQLContainerProperties SQLContainerProperties + err = json.Unmarshal(*v, &SQLContainerProperties) + if err != nil { + return err + } + sc.SQLContainerProperties = &SQLContainerProperties } - tracing.EndSpan(ctx, sc, err) - }() + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + sc.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + sc.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sc.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + sc.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + sc.Tags = tags + } + } } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil + + return nil +} + +// SQLContainerCreateUpdateParameters parameters to create and update Cosmos DB container. +type SQLContainerCreateUpdateParameters struct { + // SQLContainerCreateUpdateProperties - Properties to create and update Azure Cosmos DB container. + *SQLContainerCreateUpdateProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for SQLContainerCreateUpdateParameters. +func (sccup SQLContainerCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sccup.SQLContainerCreateUpdateProperties != nil { + objectMap["properties"] = sccup.SQLContainerCreateUpdateProperties } - err = iter.page.NextWithContext(ctx) + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for SQLContainerCreateUpdateParameters struct. +func (sccup *SQLContainerCreateUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) if err != nil { - iter.i-- return err } - iter.i = 0 + for k, v := range m { + switch k { + case "properties": + if v != nil { + var SQLContainerCreateUpdateProperties SQLContainerCreateUpdateProperties + err = json.Unmarshal(*v, &SQLContainerCreateUpdateProperties) + if err != nil { + return err + } + sccup.SQLContainerCreateUpdateProperties = &SQLContainerCreateUpdateProperties + } + } + } + return nil } -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *OperationListResultIterator) Next() error { - return iter.NextWithContext(context.Background()) +// SQLContainerCreateUpdateProperties properties to create and update Azure Cosmos DB container. +type SQLContainerCreateUpdateProperties struct { + // Resource - The standard JSON format of a container + Resource *SQLContainerResource `json:"resource,omitempty"` + // Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + Options map[string]*string `json:"options"` } -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter OperationListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) +// MarshalJSON is the custom marshaler for SQLContainerCreateUpdateProperties. +func (sccup SQLContainerCreateUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sccup.Resource != nil { + objectMap["resource"] = sccup.Resource + } + if sccup.Options != nil { + objectMap["options"] = sccup.Options + } + return json.Marshal(objectMap) } -// Response returns the raw server response from the last page request. -func (iter OperationListResultIterator) Response() OperationListResult { - return iter.page.Response() +// SQLContainerListResult the List operation response, that contains the containers and their properties. +type SQLContainerListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of containers and their properties. + Value *[]SQLContainer `json:"value,omitempty"` } -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter OperationListResultIterator) Value() Operation { - if !iter.page.NotDone() { - return Operation{} +// SQLContainerProperties the properties of an Azure Cosmos DB container +type SQLContainerProperties struct { + // ID - Name of the Cosmos DB SQL container + ID *string `json:"id,omitempty"` + // IndexingPolicy - The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container + IndexingPolicy *IndexingPolicy `json:"indexingPolicy,omitempty"` + // PartitionKey - The configuration of the partition key to be used for partitioning data into multiple partitions + PartitionKey *ContainerPartitionKey `json:"partitionKey,omitempty"` + // DefaultTTL - Default time to live + DefaultTTL *int32 `json:"defaultTtl,omitempty"` + // UniqueKeyPolicy - The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service. + UniqueKeyPolicy *UniqueKeyPolicy `json:"uniqueKeyPolicy,omitempty"` + // ConflictResolutionPolicy - The conflict resolution policy for the container. + ConflictResolutionPolicy *ConflictResolutionPolicy `json:"conflictResolutionPolicy,omitempty"` + // Rid - A system generated property. A unique identifier. + Rid *string `json:"_rid,omitempty"` + // Ts - A system generated property that denotes the last updated timestamp of the resource. + Ts interface{} `json:"_ts,omitempty"` + // Etag - A system generated property representing the resource etag required for optimistic concurrency control. + Etag *string `json:"_etag,omitempty"` +} + +// SQLContainerResource cosmos DB SQL container resource object +type SQLContainerResource struct { + // ID - Name of the Cosmos DB SQL container + ID *string `json:"id,omitempty"` + // IndexingPolicy - The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container + IndexingPolicy *IndexingPolicy `json:"indexingPolicy,omitempty"` + // PartitionKey - The configuration of the partition key to be used for partitioning data into multiple partitions + PartitionKey *ContainerPartitionKey `json:"partitionKey,omitempty"` + // DefaultTTL - Default time to live + DefaultTTL *int32 `json:"defaultTtl,omitempty"` + // UniqueKeyPolicy - The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service. + UniqueKeyPolicy *UniqueKeyPolicy `json:"uniqueKeyPolicy,omitempty"` + // ConflictResolutionPolicy - The conflict resolution policy for the container. + ConflictResolutionPolicy *ConflictResolutionPolicy `json:"conflictResolutionPolicy,omitempty"` +} + +// SQLDatabase an Azure Cosmos DB SQL database. +type SQLDatabase struct { + autorest.Response `json:"-"` + // SQLDatabaseProperties - The properties of an Azure Cosmos DB SQL database + *SQLDatabaseProperties `json:"properties,omitempty"` + // ID - READ-ONLY; The unique resource identifier of the database account. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the database account. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of Azure resource. + Type *string `json:"type,omitempty"` + // Location - The location of the resource group to which the resource belongs. + Location *string `json:"location,omitempty"` + Tags map[string]*string `json:"tags"` +} + +// MarshalJSON is the custom marshaler for SQLDatabase. +func (sd SQLDatabase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sd.SQLDatabaseProperties != nil { + objectMap["properties"] = sd.SQLDatabaseProperties + } + if sd.Location != nil { + objectMap["location"] = sd.Location + } + if sd.Tags != nil { + objectMap["tags"] = sd.Tags + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for SQLDatabase struct. +func (sd *SQLDatabase) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var SQLDatabaseProperties SQLDatabaseProperties + err = json.Unmarshal(*v, &SQLDatabaseProperties) + if err != nil { + return err + } + sd.SQLDatabaseProperties = &SQLDatabaseProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + sd.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + sd.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sd.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + sd.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + sd.Tags = tags + } + } } - return iter.page.Values()[iter.i] + + return nil } -// Creates a new instance of the OperationListResultIterator type. -func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator { - return OperationListResultIterator{page: page} +// SQLDatabaseCreateUpdateParameters parameters to create and update Cosmos DB SQL database. +type SQLDatabaseCreateUpdateParameters struct { + // SQLDatabaseCreateUpdateProperties - Properties to create and update Azure Cosmos DB SQL database. + *SQLDatabaseCreateUpdateProperties `json:"properties,omitempty"` } -// IsEmpty returns true if the ListResult contains no values. -func (olr OperationListResult) IsEmpty() bool { - return olr.Value == nil || len(*olr.Value) == 0 +// MarshalJSON is the custom marshaler for SQLDatabaseCreateUpdateParameters. +func (sdcup SQLDatabaseCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sdcup.SQLDatabaseCreateUpdateProperties != nil { + objectMap["properties"] = sdcup.SQLDatabaseCreateUpdateProperties + } + return json.Marshal(objectMap) } -// operationListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (olr OperationListResult) operationListResultPreparer(ctx context.Context) (*http.Request, error) { - if olr.NextLink == nil || len(to.String(olr.NextLink)) < 1 { - return nil, nil +// UnmarshalJSON is the custom unmarshaler for SQLDatabaseCreateUpdateParameters struct. +func (sdcup *SQLDatabaseCreateUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(olr.NextLink))) + for k, v := range m { + switch k { + case "properties": + if v != nil { + var SQLDatabaseCreateUpdateProperties SQLDatabaseCreateUpdateProperties + err = json.Unmarshal(*v, &SQLDatabaseCreateUpdateProperties) + if err != nil { + return err + } + sdcup.SQLDatabaseCreateUpdateProperties = &SQLDatabaseCreateUpdateProperties + } + } + } + + return nil } -// OperationListResultPage contains a page of Operation values. -type OperationListResultPage struct { - fn func(context.Context, OperationListResult) (OperationListResult, error) - olr OperationListResult +// SQLDatabaseCreateUpdateProperties properties to create and update Azure Cosmos DB SQL database. +type SQLDatabaseCreateUpdateProperties struct { + // Resource - The standard JSON format of a SQL database + Resource *SQLDatabaseResource `json:"resource,omitempty"` + // Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + Options map[string]*string `json:"options"` } -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() +// MarshalJSON is the custom marshaler for SQLDatabaseCreateUpdateProperties. +func (sdcup SQLDatabaseCreateUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sdcup.Resource != nil { + objectMap["resource"] = sdcup.Resource } - next, err := page.fn(ctx, page.olr) - if err != nil { - return err + if sdcup.Options != nil { + objectMap["options"] = sdcup.Options } - page.olr = next - return nil + return json.Marshal(objectMap) } -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *OperationListResultPage) Next() error { - return page.NextWithContext(context.Background()) +// SQLDatabaseListResult the List operation response, that contains the SQL databases and their properties. +type SQLDatabaseListResult struct { + autorest.Response `json:"-"` + // Value - READ-ONLY; List of SQL databases and their properties. + Value *[]SQLDatabase `json:"value,omitempty"` } -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page OperationListResultPage) NotDone() bool { - return !page.olr.IsEmpty() +// SQLDatabaseProperties the properties of an Azure Cosmos DB SQL database +type SQLDatabaseProperties struct { + // ID - Name of the Cosmos DB SQL database + ID *string `json:"id,omitempty"` + // Rid - A system generated property. A unique identifier. + Rid *string `json:"_rid,omitempty"` + // Ts - A system generated property that denotes the last updated timestamp of the resource. + Ts interface{} `json:"_ts,omitempty"` + // Etag - A system generated property representing the resource etag required for optimistic concurrency control. + Etag *string `json:"_etag,omitempty"` + // Colls - A system generated property that specified the addressable path of the collections resource. + Colls *string `json:"_colls,omitempty"` + // Users - A system generated property that specifies the addressable path of the users resource. + Users *string `json:"_users,omitempty"` +} + +// SQLDatabaseResource cosmos DB SQL database id object +type SQLDatabaseResource struct { + // ID - Name of the Cosmos DB SQL database + ID *string `json:"id,omitempty"` } -// Response returns the raw server response from the last page request. -func (page OperationListResultPage) Response() OperationListResult { - return page.olr +// Table an Azure Cosmos DB Table. +type Table struct { + autorest.Response `json:"-"` + // TableProperties - The properties of an Azure Cosmos DB Table + *TableProperties `json:"properties,omitempty"` + // ID - READ-ONLY; The unique resource identifier of the database account. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The name of the database account. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The type of Azure resource. + Type *string `json:"type,omitempty"` + // Location - The location of the resource group to which the resource belongs. + Location *string `json:"location,omitempty"` + Tags map[string]*string `json:"tags"` } -// Values returns the slice of values for the current page or nil if there are no values. -func (page OperationListResultPage) Values() []Operation { - if page.olr.IsEmpty() { - return nil +// MarshalJSON is the custom marshaler for Table. +func (t Table) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if t.TableProperties != nil { + objectMap["properties"] = t.TableProperties } - return *page.olr.Value + if t.Location != nil { + objectMap["location"] = t.Location + } + if t.Tags != nil { + objectMap["tags"] = t.Tags + } + return json.Marshal(objectMap) } -// Creates a new instance of the OperationListResultPage type. -func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage { - return OperationListResultPage{fn: getNextPage} +// UnmarshalJSON is the custom unmarshaler for Table struct. +func (t *Table) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var tableProperties TableProperties + err = json.Unmarshal(*v, &tableProperties) + if err != nil { + return err + } + t.TableProperties = &tableProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + t.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + t.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + t.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + t.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + t.Tags = tags + } + } + } + + return nil } -// PartitionMetric the metric values for a single partition. -type PartitionMetric struct { - // PartitionID - The partition id (GUID identifier) of the metric values. - PartitionID *string `json:"partitionId,omitempty"` - // PartitionKeyRangeID - The partition key range id (integer identifier) of the metric values. - PartitionKeyRangeID *string `json:"partitionKeyRangeId,omitempty"` - // StartTime - The start time for the metric (ISO-8601 format). - StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - The end time for the metric (ISO-8601 format). - EndTime *date.Time `json:"endTime,omitempty"` - // TimeGrain - The time grain to be used to summarize the metric values. - TimeGrain *string `json:"timeGrain,omitempty"` - // Unit - The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' - Unit UnitType `json:"unit,omitempty"` - // Name - The name information for the metric. - Name *MetricName `json:"name,omitempty"` - // MetricValues - The metric values for the specified time window and timestep. - MetricValues *[]MetricValue `json:"metricValues,omitempty"` +// TableCreateUpdateParameters parameters to create and update Cosmos DB Table. +type TableCreateUpdateParameters struct { + // TableCreateUpdateProperties - Properties to create and update Azure Cosmos DB Table. + *TableCreateUpdateProperties `json:"properties,omitempty"` } -// PartitionMetricListResult the response to a list partition metrics request. -type PartitionMetricListResult struct { - autorest.Response `json:"-"` - // Value - The list of partition-level metrics for the account. - Value *[]PartitionMetric `json:"value,omitempty"` +// MarshalJSON is the custom marshaler for TableCreateUpdateParameters. +func (tcup TableCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if tcup.TableCreateUpdateProperties != nil { + objectMap["properties"] = tcup.TableCreateUpdateProperties + } + return json.Marshal(objectMap) } -// PartitionUsage the partition level usage data for a usage request. -type PartitionUsage struct { - // PartitionID - The partition id (GUID identifier) of the usages. - PartitionID *string `json:"partitionId,omitempty"` - // PartitionKeyRangeID - The partition key range id (integer identifier) of the usages. - PartitionKeyRangeID *string `json:"partitionKeyRangeId,omitempty"` - // Unit - The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' - Unit UnitType `json:"unit,omitempty"` - // Name - The name information for the metric. - Name *MetricName `json:"name,omitempty"` - // QuotaPeriod - The quota period used to summarize the usage values. - QuotaPeriod *string `json:"quotaPeriod,omitempty"` - // Limit - Maximum value for this metric - Limit *int32 `json:"limit,omitempty"` - // CurrentValue - Current value for this metric - CurrentValue *int32 `json:"currentValue,omitempty"` +// UnmarshalJSON is the custom unmarshaler for TableCreateUpdateParameters struct. +func (tcup *TableCreateUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var tableCreateUpdateProperties TableCreateUpdateProperties + err = json.Unmarshal(*v, &tableCreateUpdateProperties) + if err != nil { + return err + } + tcup.TableCreateUpdateProperties = &tableCreateUpdateProperties + } + } + } + + return nil } -// PartitionUsagesResult the response to a list partition level usage request. -type PartitionUsagesResult struct { - autorest.Response `json:"-"` - // Value - The list of partition-level usages for the database. A usage is a point in time metric - Value *[]PartitionUsage `json:"value,omitempty"` +// TableCreateUpdateProperties properties to create and update Azure Cosmos DB Table. +type TableCreateUpdateProperties struct { + // Resource - The standard JSON format of a Table + Resource *TableResource `json:"resource,omitempty"` + // Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + Options map[string]*string `json:"options"` } -// PercentileMetric percentile Metric data -type PercentileMetric struct { - // StartTime - The start time for the metric (ISO-8601 format). - StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - The end time for the metric (ISO-8601 format). - EndTime *date.Time `json:"endTime,omitempty"` - // TimeGrain - The time grain to be used to summarize the metric values. - TimeGrain *string `json:"timeGrain,omitempty"` - // Unit - The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' - Unit UnitType `json:"unit,omitempty"` - // Name - The name information for the metric. - Name *MetricName `json:"name,omitempty"` - // MetricValues - The percentile metric values for the specified time window and timestep. - MetricValues *[]PercentileMetricValue `json:"metricValues,omitempty"` +// MarshalJSON is the custom marshaler for TableCreateUpdateProperties. +func (tcup TableCreateUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if tcup.Resource != nil { + objectMap["resource"] = tcup.Resource + } + if tcup.Options != nil { + objectMap["options"] = tcup.Options + } + return json.Marshal(objectMap) } -// PercentileMetricListResult the response to a list percentile metrics request. -type PercentileMetricListResult struct { +// TableListResult the List operation response, that contains the Table and their properties. +type TableListResult struct { autorest.Response `json:"-"` - // Value - The list of percentile metrics for the account. - Value *[]PercentileMetric `json:"value,omitempty"` + // Value - READ-ONLY; List of Table and their properties. + Value *[]Table `json:"value,omitempty"` } -// PercentileMetricValue represents percentile metrics values. -type PercentileMetricValue struct { - // P10 - The 10th percentile value for the metric. - P10 *float64 `json:"P10,omitempty"` - // P25 - The 25th percentile value for the metric. - P25 *float64 `json:"P25,omitempty"` - // P50 - The 50th percentile value for the metric. - P50 *float64 `json:"P50,omitempty"` - // P75 - The 75th percentile value for the metric. - P75 *float64 `json:"P75,omitempty"` - // P90 - The 90th percentile value for the metric. - P90 *float64 `json:"P90,omitempty"` - // P95 - The 95th percentile value for the metric. - P95 *float64 `json:"P95,omitempty"` - // P99 - The 99th percentile value for the metric. - P99 *float64 `json:"P99,omitempty"` - // Count - The number of values for the metric. - Count *float64 `json:"_count,omitempty"` - // Average - The average value of the metric. - Average *float64 `json:"average,omitempty"` - // Maximum - The max value of the metric. - Maximum *float64 `json:"maximum,omitempty"` - // Minimum - The min value of the metric. - Minimum *float64 `json:"minimum,omitempty"` - // Timestamp - The metric timestamp (ISO-8601 format). - Timestamp *date.Time `json:"timestamp,omitempty"` - // Total - The total value of the metric. - Total *float64 `json:"total,omitempty"` +// TableProperties the properties of an Azure Cosmos Table +type TableProperties struct { + // ID - Name of the Cosmos DB table + ID *string `json:"id,omitempty"` } -// RegionForOnlineOffline cosmos DB region to online or offline. -type RegionForOnlineOffline struct { - // Region - Cosmos DB region, with spaces between words and each word capitalized. - Region *string `json:"region,omitempty"` +// TableResource cosmos DB table id object +type TableResource struct { + // ID - Name of the Cosmos DB table + ID *string `json:"id,omitempty"` } -// Resource a database account resource. -type Resource struct { - // ID - The unique resource identifier of the database account. - ID *string `json:"id,omitempty"` - // Name - The name of the database account. - Name *string `json:"name,omitempty"` - // Type - The type of Azure resource. - Type *string `json:"type,omitempty"` - // Location - The location of the resource group to which the resource belongs. - Location *string `json:"location,omitempty"` - Tags map[string]*string `json:"tags"` +// UniqueKey the unique key on that enforces uniqueness constraint on documents in the collection in the +// Azure Cosmos DB service. +type UniqueKey struct { + // Paths - List of paths must be unique for each document in the Azure Cosmos DB service + Paths *[]string `json:"paths,omitempty"` } -// MarshalJSON is the custom marshaler for Resource. -func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } - if r.Location != nil { - objectMap["location"] = r.Location - } - if r.Tags != nil { - objectMap["tags"] = r.Tags - } - return json.Marshal(objectMap) +// UniqueKeyPolicy the unique key policy configuration for specifying uniqueness constraints on documents +// in the collection in the Azure Cosmos DB service. +type UniqueKeyPolicy struct { + // UniqueKeys - List of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service. + UniqueKeys *[]UniqueKey `json:"uniqueKeys,omitempty"` } // Usage the usage data for a usage request. type Usage struct { // Unit - The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' Unit UnitType `json:"unit,omitempty"` - // Name - The name information for the metric. + // Name - READ-ONLY; The name information for the metric. Name *MetricName `json:"name,omitempty"` - // QuotaPeriod - The quota period used to summarize the usage values. + // QuotaPeriod - READ-ONLY; The quota period used to summarize the usage values. QuotaPeriod *string `json:"quotaPeriod,omitempty"` - // Limit - Maximum value for this metric + // Limit - READ-ONLY; Maximum value for this metric Limit *int32 `json:"limit,omitempty"` - // CurrentValue - Current value for this metric + // CurrentValue - READ-ONLY; Current value for this metric CurrentValue *int32 `json:"currentValue,omitempty"` } // UsagesResult the response to a list usage request. type UsagesResult struct { autorest.Response `json:"-"` - // Value - The list of usages for the database. A usage is a point in time metric + // Value - READ-ONLY; The list of usages for the database. A usage is a point in time metric Value *[]Usage `json:"value,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/databricks/mgmt/2018-04-01/databricks/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/databricks/mgmt/2018-04-01/databricks/models.go index df74cfc3514e..706798de28bc 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/databricks/mgmt/2018-04-01/databricks/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/databricks/mgmt/2018-04-01/databricks/models.go @@ -259,11 +259,11 @@ func NewOperationListResultPage(getNextPage func(context.Context, OperationListR // Resource the core properties of ARM resources type Resource struct { - // ID - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` } @@ -281,11 +281,11 @@ type TrackedResource struct { Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` - // ID - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` } @@ -298,15 +298,6 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Location != nil { objectMap["location"] = tr.Location } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } @@ -321,11 +312,11 @@ type Workspace struct { Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` - // ID - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` } @@ -344,15 +335,6 @@ func (w Workspace) MarshalJSON() ([]byte, error) { if w.Location != nil { objectMap["location"] = w.Location } - if w.ID != nil { - objectMap["id"] = w.ID - } - if w.Name != nil { - objectMap["name"] = w.Name - } - if w.Type != nil { - objectMap["type"] = w.Type - } return json.Marshal(objectMap) } @@ -586,7 +568,7 @@ type WorkspaceProperties struct { ManagedResourceGroupID *string `json:"managedResourceGroupId,omitempty"` // Parameters - Name and value pairs that define the workspace parameters. Parameters interface{} `json:"parameters,omitempty"` - // ProvisioningState - The workspace provisioning state. Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', 'Updating' + // ProvisioningState - READ-ONLY; The workspace provisioning state. Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', 'Updating' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // UIDefinitionURI - The blob URI where the UI definition file is located. UIDefinitionURI *string `json:"uiDefinitionUri,omitempty"` @@ -612,7 +594,7 @@ type WorkspacesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *WorkspacesCreateOrUpdateFuture) Result(client WorkspacesClient) (w Workspace, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "databricks.WorkspacesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -641,7 +623,7 @@ type WorkspacesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *WorkspacesDeleteFuture) Result(client WorkspacesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "databricks.WorkspacesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -664,7 +646,7 @@ type WorkspacesUpdateFuture struct { // If the operation has not completed it will return an error. func (future *WorkspacesUpdateFuture) Result(client WorkspacesClient) (w Workspace, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "databricks.WorkspacesUpdateFuture", "Result", future.Response(), "Polling failure") return diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory/exposurecontrol.go b/vendor/github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory/exposurecontrol.go index 3b289fb4a5ad..6b157276427e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory/exposurecontrol.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory/exposurecontrol.go @@ -21,6 +21,7 @@ import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) @@ -118,3 +119,95 @@ func (client ExposureControlClient) GetFeatureValueResponder(resp *http.Response result.Response = autorest.Response{Response: resp} return } + +// GetFeatureValueByFactory get exposure control feature for specific factory. +// Parameters: +// resourceGroupName - the resource group name. +// factoryName - the factory name. +// exposureControlRequest - the exposure control request. +func (client ExposureControlClient) GetFeatureValueByFactory(ctx context.Context, resourceGroupName string, factoryName string, exposureControlRequest ExposureControlRequest) (result ExposureControlResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ExposureControlClient.GetFeatureValueByFactory") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: factoryName, + Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, + {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("datafactory.ExposureControlClient", "GetFeatureValueByFactory", err.Error()) + } + + req, err := client.GetFeatureValueByFactoryPreparer(ctx, resourceGroupName, factoryName, exposureControlRequest) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.ExposureControlClient", "GetFeatureValueByFactory", nil, "Failure preparing request") + return + } + + resp, err := client.GetFeatureValueByFactorySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "datafactory.ExposureControlClient", "GetFeatureValueByFactory", resp, "Failure sending request") + return + } + + result, err = client.GetFeatureValueByFactoryResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.ExposureControlClient", "GetFeatureValueByFactory", resp, "Failure responding to request") + } + + return +} + +// GetFeatureValueByFactoryPreparer prepares the GetFeatureValueByFactory request. +func (client ExposureControlClient) GetFeatureValueByFactoryPreparer(ctx context.Context, resourceGroupName string, factoryName string, exposureControlRequest ExposureControlRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "factoryName": autorest.Encode("path", factoryName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getFeatureValue", pathParameters), + autorest.WithJSON(exposureControlRequest), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetFeatureValueByFactorySender sends the GetFeatureValueByFactory request. The method will close the +// http.Response Body if it receives an error. +func (client ExposureControlClient) GetFeatureValueByFactorySender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetFeatureValueByFactoryResponder handles the response to the GetFeatureValueByFactory request. The method always +// closes the http.Response Body. +func (client ExposureControlClient) GetFeatureValueByFactoryResponder(resp *http.Response) (result ExposureControlResponse, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory/models.go index 50733e71a93f..24919987045d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory/models.go @@ -1266,15 +1266,19 @@ const ( TypeSQLServerStoredProcedure TypeBasicActivity = "SqlServerStoredProcedure" // TypeUntil ... TypeUntil TypeBasicActivity = "Until" + // TypeValidation ... + TypeValidation TypeBasicActivity = "Validation" // TypeWait ... TypeWait TypeBasicActivity = "Wait" // TypeWebActivity ... TypeWebActivity TypeBasicActivity = "WebActivity" + // TypeWebHook ... + TypeWebHook TypeBasicActivity = "WebHook" ) // PossibleTypeBasicActivityValues returns an array of possible values for the TypeBasicActivity const type. func PossibleTypeBasicActivityValues() []TypeBasicActivity { - return []TypeBasicActivity{TypeActivity, TypeAppendVariable, TypeAzureFunctionActivity, TypeAzureMLBatchExecution, TypeAzureMLUpdateResource, TypeContainer, TypeCopy, TypeCustom, TypeDatabricksNotebook, TypeDatabricksSparkJar, TypeDatabricksSparkPython, TypeDataLakeAnalyticsUSQL, TypeDelete, TypeExecutePipeline, TypeExecuteSSISPackage, TypeExecution, TypeFilter, TypeForEach, TypeGetMetadata, TypeHDInsightHive, TypeHDInsightMapReduce, TypeHDInsightPig, TypeHDInsightSpark, TypeHDInsightStreaming, TypeIfCondition, TypeLookup, TypeSetVariable, TypeSQLServerStoredProcedure, TypeUntil, TypeWait, TypeWebActivity} + return []TypeBasicActivity{TypeActivity, TypeAppendVariable, TypeAzureFunctionActivity, TypeAzureMLBatchExecution, TypeAzureMLUpdateResource, TypeContainer, TypeCopy, TypeCustom, TypeDatabricksNotebook, TypeDatabricksSparkJar, TypeDatabricksSparkPython, TypeDataLakeAnalyticsUSQL, TypeDelete, TypeExecutePipeline, TypeExecuteSSISPackage, TypeExecution, TypeFilter, TypeForEach, TypeGetMetadata, TypeHDInsightHive, TypeHDInsightMapReduce, TypeHDInsightPig, TypeHDInsightSpark, TypeHDInsightStreaming, TypeIfCondition, TypeLookup, TypeSetVariable, TypeSQLServerStoredProcedure, TypeUntil, TypeValidation, TypeWait, TypeWebActivity, TypeWebHook} } // TypeBasicCopySink enumerates the values for type basic copy sink. @@ -1486,8 +1490,6 @@ const ( TypeAzureBlobFSFile TypeBasicDataset = "AzureBlobFSFile" // TypeAzureDataExplorerTable ... TypeAzureDataExplorerTable TypeBasicDataset = "AzureDataExplorerTable" - // TypeAzureDataLakeStoreCosmosStructuredStreamFile ... - TypeAzureDataLakeStoreCosmosStructuredStreamFile TypeBasicDataset = "AzureDataLakeStoreCosmosStructuredStreamFile" // TypeAzureDataLakeStoreFile ... TypeAzureDataLakeStoreFile TypeBasicDataset = "AzureDataLakeStoreFile" // TypeAzureMySQLTable ... @@ -1610,7 +1612,7 @@ const ( // PossibleTypeBasicDatasetValues returns an array of possible values for the TypeBasicDataset const type. func PossibleTypeBasicDatasetValues() []TypeBasicDataset { - return []TypeBasicDataset{TypeAmazonMWSObject, TypeAmazonS3Object, TypeAzureBlob, TypeAzureBlobFSFile, TypeAzureDataExplorerTable, TypeAzureDataLakeStoreCosmosStructuredStreamFile, TypeAzureDataLakeStoreFile, TypeAzureMySQLTable, TypeAzurePostgreSQLTable, TypeAzureSearchIndex, TypeAzureSQLDWTable, TypeAzureSQLTable, TypeAzureTable, TypeCassandraTable, TypeConcurObject, TypeCosmosDbMongoDbAPICollection, TypeCouchbaseTable, TypeCustomDataset, TypeDataset, TypeDocumentDbCollection, TypeDrillTable, TypeDynamicsAXResource, TypeDynamicsEntity, TypeEloquaObject, TypeFileShare, TypeGoogleAdWordsObject, TypeGoogleBigQueryObject, TypeGreenplumTable, TypeHBaseObject, TypeHiveObject, TypeHTTPFile, TypeHubspotObject, TypeImpalaObject, TypeJiraObject, TypeMagentoObject, TypeMariaDBTable, TypeMarketoObject, TypeMongoDbCollection, TypeMongoDbV2Collection, TypeNetezzaTable, TypeODataResource, TypeOffice365Table, TypeOracleServiceCloudObject, TypeOracleTable, TypePaypalObject, TypePhoenixObject, TypePrestoObject, TypeQuickBooksObject, TypeRelationalTable, TypeResponsysObject, TypeRestResource, TypeSalesforceMarketingCloudObject, TypeSalesforceObject, TypeSapCloudForCustomerResource, TypeSapEccResource, TypeSapOpenHubTable, TypeServiceNowObject, TypeShopifyObject, TypeSparkObject, TypeSQLServerTable, TypeSquareObject, TypeVerticaTable, TypeWebTable, TypeXeroObject, TypeZohoObject} + return []TypeBasicDataset{TypeAmazonMWSObject, TypeAmazonS3Object, TypeAzureBlob, TypeAzureBlobFSFile, TypeAzureDataExplorerTable, TypeAzureDataLakeStoreFile, TypeAzureMySQLTable, TypeAzurePostgreSQLTable, TypeAzureSearchIndex, TypeAzureSQLDWTable, TypeAzureSQLTable, TypeAzureTable, TypeCassandraTable, TypeConcurObject, TypeCosmosDbMongoDbAPICollection, TypeCouchbaseTable, TypeCustomDataset, TypeDataset, TypeDocumentDbCollection, TypeDrillTable, TypeDynamicsAXResource, TypeDynamicsEntity, TypeEloquaObject, TypeFileShare, TypeGoogleAdWordsObject, TypeGoogleBigQueryObject, TypeGreenplumTable, TypeHBaseObject, TypeHiveObject, TypeHTTPFile, TypeHubspotObject, TypeImpalaObject, TypeJiraObject, TypeMagentoObject, TypeMariaDBTable, TypeMarketoObject, TypeMongoDbCollection, TypeMongoDbV2Collection, TypeNetezzaTable, TypeODataResource, TypeOffice365Table, TypeOracleServiceCloudObject, TypeOracleTable, TypePaypalObject, TypePhoenixObject, TypePrestoObject, TypeQuickBooksObject, TypeRelationalTable, TypeResponsysObject, TypeRestResource, TypeSalesforceMarketingCloudObject, TypeSalesforceObject, TypeSapCloudForCustomerResource, TypeSapEccResource, TypeSapOpenHubTable, TypeServiceNowObject, TypeShopifyObject, TypeSparkObject, TypeSQLServerTable, TypeSquareObject, TypeVerticaTable, TypeWebTable, TypeXeroObject, TypeZohoObject} } // TypeBasicDatasetCompression enumerates the values for type basic dataset compression. @@ -1980,6 +1982,19 @@ func PossibleWebActivityMethodValues() []WebActivityMethod { return []WebActivityMethod{WebActivityMethodDELETE, WebActivityMethodGET, WebActivityMethodPOST, WebActivityMethodPUT} } +// WebHookActivityMethod enumerates the values for web hook activity method. +type WebHookActivityMethod string + +const ( + // WebHookActivityMethodPOST ... + WebHookActivityMethodPOST WebHookActivityMethod = "POST" +) + +// PossibleWebHookActivityMethodValues returns an array of possible values for the WebHookActivityMethod const type. +func PossibleWebHookActivityMethodValues() []WebHookActivityMethod { + return []WebHookActivityMethod{WebHookActivityMethodPOST} +} + // AccessPolicyResponse get Data Plane read only token response definition. type AccessPolicyResponse struct { autorest.Response `json:"-"` @@ -2015,9 +2030,11 @@ type BasicActivity interface { AsCopyActivity() (*CopyActivity, bool) AsExecutionActivity() (*ExecutionActivity, bool) AsBasicExecutionActivity() (BasicExecutionActivity, bool) + AsWebHookActivity() (*WebHookActivity, bool) AsAppendVariableActivity() (*AppendVariableActivity, bool) AsSetVariableActivity() (*SetVariableActivity, bool) AsFilterActivity() (*FilterActivity, bool) + AsValidationActivity() (*ValidationActivity, bool) AsUntilActivity() (*UntilActivity, bool) AsWaitActivity() (*WaitActivity, bool) AsForEachActivity() (*ForEachActivity, bool) @@ -2040,7 +2057,7 @@ type Activity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -2136,6 +2153,10 @@ func unmarshalBasicActivity(body []byte) (BasicActivity, error) { var ea ExecutionActivity err := json.Unmarshal(body, &ea) return ea, err + case string(TypeWebHook): + var wha WebHookActivity + err := json.Unmarshal(body, &wha) + return wha, err case string(TypeAppendVariable): var ava AppendVariableActivity err := json.Unmarshal(body, &ava) @@ -2148,6 +2169,10 @@ func unmarshalBasicActivity(body []byte) (BasicActivity, error) { var fa FilterActivity err := json.Unmarshal(body, &fa) return fa, err + case string(TypeValidation): + var va ValidationActivity + err := json.Unmarshal(body, &va) + return va, err case string(TypeUntil): var ua UntilActivity err := json.Unmarshal(body, &ua) @@ -2332,6 +2357,11 @@ func (a Activity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { return nil, false } +// AsWebHookActivity is the BasicActivity implementation for Activity. +func (a Activity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for Activity. func (a Activity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -2347,6 +2377,11 @@ func (a Activity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for Activity. +func (a Activity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for Activity. func (a Activity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -2650,76 +2685,37 @@ func (ap *ActivityPolicy) UnmarshalJSON(body []byte) error { type ActivityRun struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // PipelineName - The name of the pipeline. + // PipelineName - READ-ONLY; The name of the pipeline. PipelineName *string `json:"pipelineName,omitempty"` - // PipelineRunID - The id of the pipeline run. + // PipelineRunID - READ-ONLY; The id of the pipeline run. PipelineRunID *string `json:"pipelineRunId,omitempty"` - // ActivityName - The name of the activity. + // ActivityName - READ-ONLY; The name of the activity. ActivityName *string `json:"activityName,omitempty"` - // ActivityType - The type of the activity. + // ActivityType - READ-ONLY; The type of the activity. ActivityType *string `json:"activityType,omitempty"` - // ActivityRunID - The id of the activity run. + // ActivityRunID - READ-ONLY; The id of the activity run. ActivityRunID *string `json:"activityRunId,omitempty"` - // LinkedServiceName - The name of the compute linked service. + // LinkedServiceName - READ-ONLY; The name of the compute linked service. LinkedServiceName *string `json:"linkedServiceName,omitempty"` - // Status - The status of the activity run. + // Status - READ-ONLY; The status of the activity run. Status *string `json:"status,omitempty"` - // ActivityRunStart - The start time of the activity run in 'ISO 8601' format. + // ActivityRunStart - READ-ONLY; The start time of the activity run in 'ISO 8601' format. ActivityRunStart *date.Time `json:"activityRunStart,omitempty"` - // ActivityRunEnd - The end time of the activity run in 'ISO 8601' format. + // ActivityRunEnd - READ-ONLY; The end time of the activity run in 'ISO 8601' format. ActivityRunEnd *date.Time `json:"activityRunEnd,omitempty"` - // DurationInMs - The duration of the activity run. + // DurationInMs - READ-ONLY; The duration of the activity run. DurationInMs *int32 `json:"durationInMs,omitempty"` - // Input - The input for the activity. + // Input - READ-ONLY; The input for the activity. Input interface{} `json:"input,omitempty"` - // Output - The output for the activity. + // Output - READ-ONLY; The output for the activity. Output interface{} `json:"output,omitempty"` - // Error - The error if any from the activity run. + // Error - READ-ONLY; The error if any from the activity run. Error interface{} `json:"error,omitempty"` } // MarshalJSON is the custom marshaler for ActivityRun. func (ar ActivityRun) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if ar.PipelineName != nil { - objectMap["pipelineName"] = ar.PipelineName - } - if ar.PipelineRunID != nil { - objectMap["pipelineRunId"] = ar.PipelineRunID - } - if ar.ActivityName != nil { - objectMap["activityName"] = ar.ActivityName - } - if ar.ActivityType != nil { - objectMap["activityType"] = ar.ActivityType - } - if ar.ActivityRunID != nil { - objectMap["activityRunId"] = ar.ActivityRunID - } - if ar.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ar.LinkedServiceName - } - if ar.Status != nil { - objectMap["status"] = ar.Status - } - if ar.ActivityRunStart != nil { - objectMap["activityRunStart"] = ar.ActivityRunStart - } - if ar.ActivityRunEnd != nil { - objectMap["activityRunEnd"] = ar.ActivityRunEnd - } - if ar.DurationInMs != nil { - objectMap["durationInMs"] = ar.DurationInMs - } - if ar.Input != nil { - objectMap["input"] = ar.Input - } - if ar.Output != nil { - objectMap["output"] = ar.Output - } - if ar.Error != nil { - objectMap["error"] = ar.Error - } for k, v := range ar.AdditionalProperties { objectMap[k] = v } @@ -2891,7 +2887,7 @@ type AmazonMWSLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -3578,7 +3574,7 @@ type AmazonMWSObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -3874,11 +3870,6 @@ func (amod AmazonMWSObjectDataset) AsFileShareDataset() (*FileShareDataset, bool return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for AmazonMWSObjectDataset. func (amod AmazonMWSObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -4492,7 +4483,7 @@ type AmazonRedshiftLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -5573,7 +5564,7 @@ type AmazonS3Dataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -5869,11 +5860,6 @@ func (asd AmazonS3Dataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for AmazonS3Dataset. func (asd AmazonS3Dataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -6169,7 +6155,7 @@ type AmazonS3LinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -6785,7 +6771,7 @@ type AppendVariableActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -6927,6 +6913,11 @@ func (ava AppendVariableActivity) AsBasicExecutionActivity() (BasicExecutionActi return nil, false } +// AsWebHookActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for AppendVariableActivity. func (ava AppendVariableActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return &ava, true @@ -6942,6 +6933,11 @@ func (ava AppendVariableActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for AppendVariableActivity. func (ava AppendVariableActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -7208,7 +7204,7 @@ type AzureBatchLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -7852,7 +7848,7 @@ type AzureBlobDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -8148,11 +8144,6 @@ func (abd AzureBlobDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for AzureBlobDataset. func (abd AzureBlobDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -8445,7 +8436,7 @@ type AzureBlobFSDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -8741,11 +8732,6 @@ func (abfd AzureBlobFSDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for AzureBlobFSDataset. func (abfd AzureBlobFSDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -8997,7 +8983,7 @@ type AzureBlobFSLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -10320,7 +10306,7 @@ type AzureBlobStorageLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -10989,7 +10975,7 @@ type AzureDatabricksLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -11751,7 +11737,7 @@ type AzureDataExplorerLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -13099,7 +13085,7 @@ type AzureDataExplorerTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -13395,11 +13381,6 @@ func (adetd AzureDataExplorerTableDataset) AsFileShareDataset() (*FileShareDatas return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for AzureDataExplorerTableDataset. func (adetd AzureDataExplorerTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -13590,7 +13571,7 @@ type AzureDataLakeAnalyticsLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -14236,516 +14217,6 @@ func (adlalstp *AzureDataLakeAnalyticsLinkedServiceTypeProperties) UnmarshalJSON return nil } -// AzureDataLakeStoreCosmosStructuredStreamDataset azure Data Lake Store Cosmos Structured Stream dataset. -type AzureDataLakeStoreCosmosStructuredStreamDataset struct { - // AzureDataLakeStoreCosmosStructuredStreamDatasetTypeProperties - Azure Data Lake Store Cosmos Structured Stream dataset properties. - *AzureDataLakeStoreCosmosStructuredStreamDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) MarshalJSON() ([]byte, error) { - adlscssd.Type = TypeAzureDataLakeStoreCosmosStructuredStreamFile - objectMap := make(map[string]interface{}) - if adlscssd.AzureDataLakeStoreCosmosStructuredStreamDatasetTypeProperties != nil { - objectMap["typeProperties"] = adlscssd.AzureDataLakeStoreCosmosStructuredStreamDatasetTypeProperties - } - if adlscssd.Description != nil { - objectMap["description"] = adlscssd.Description - } - if adlscssd.Structure != nil { - objectMap["structure"] = adlscssd.Structure - } - if adlscssd.Schema != nil { - objectMap["schema"] = adlscssd.Schema - } - if adlscssd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = adlscssd.LinkedServiceName - } - if adlscssd.Parameters != nil { - objectMap["parameters"] = adlscssd.Parameters - } - if adlscssd.Annotations != nil { - objectMap["annotations"] = adlscssd.Annotations - } - if adlscssd.Folder != nil { - objectMap["folder"] = adlscssd.Folder - } - if adlscssd.Type != "" { - objectMap["type"] = adlscssd.Type - } - for k, v := range adlscssd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return &adlscssd, true -} - -// AsOffice365Dataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AzureDataLakeStoreCosmosStructuredStreamDataset. -func (adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset) AsBasicDataset() (BasicDataset, bool) { - return &adlscssd, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreCosmosStructuredStreamDataset struct. -func (adlscssd *AzureDataLakeStoreCosmosStructuredStreamDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureDataLakeStoreCosmosStructuredStreamDatasetTypeProperties AzureDataLakeStoreCosmosStructuredStreamDatasetTypeProperties - err = json.Unmarshal(*v, &azureDataLakeStoreCosmosStructuredStreamDatasetTypeProperties) - if err != nil { - return err - } - adlscssd.AzureDataLakeStoreCosmosStructuredStreamDatasetTypeProperties = &azureDataLakeStoreCosmosStructuredStreamDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adlscssd.AdditionalProperties == nil { - adlscssd.AdditionalProperties = make(map[string]interface{}) - } - adlscssd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - adlscssd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - adlscssd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - adlscssd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - adlscssd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - adlscssd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - adlscssd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - adlscssd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adlscssd.Type = typeVar - } - } - } - - return nil -} - -// AzureDataLakeStoreCosmosStructuredStreamDatasetTypeProperties azure Data Lake Store Cosmos Structured -// Stream dataset properties. -type AzureDataLakeStoreCosmosStructuredStreamDatasetTypeProperties struct { - // FolderPath - Path to the folder in the Azure Data Lake Store. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - The name of the file in the Azure Data Lake Store. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // GeneratedFromActivity - Flag to indicate if this dataset is been generated from Compilation Activity. Type: boolean (or Expression with resultType boolean). - GeneratedFromActivity interface{} `json:"generatedFromActivity,omitempty"` -} - // AzureDataLakeStoreDataset azure Data Lake Store dataset. type AzureDataLakeStoreDataset struct { // AzureDataLakeStoreDatasetTypeProperties - Azure Data Lake Store dataset properties. @@ -14766,7 +14237,7 @@ type AzureDataLakeStoreDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -15062,11 +14533,6 @@ func (adlsd AzureDataLakeStoreDataset) AsFileShareDataset() (*FileShareDataset, return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for AzureDataLakeStoreDataset. func (adlsd AzureDataLakeStoreDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -15318,7 +14784,7 @@ type AzureDataLakeStoreLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -16641,7 +16107,7 @@ type AzureFunctionActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -16789,6 +16255,11 @@ func (afa AzureFunctionActivity) AsBasicExecutionActivity() (BasicExecutionActiv return &afa, true } +// AsWebHookActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for AzureFunctionActivity. func (afa AzureFunctionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -16804,6 +16275,11 @@ func (afa AzureFunctionActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for AzureFunctionActivity. func (afa AzureFunctionActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -16972,7 +16448,7 @@ type AzureFunctionLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -17575,7 +17051,7 @@ type AzureKeyVaultLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -18190,7 +17666,7 @@ type AzureMLBatchExecutionActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -18338,6 +17814,11 @@ func (ambea AzureMLBatchExecutionActivity) AsBasicExecutionActivity() (BasicExec return &ambea, true } +// AsWebHookActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. func (ambea AzureMLBatchExecutionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -18353,6 +17834,11 @@ func (ambea AzureMLBatchExecutionActivity) AsFilterActivity() (*FilterActivity, return nil, false } +// AsValidationActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. func (ambea AzureMLBatchExecutionActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -18534,7 +18020,7 @@ type AzureMLLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -19186,7 +18672,7 @@ type AzureMLUpdateResourceActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -19334,6 +18820,11 @@ func (amura AzureMLUpdateResourceActivity) AsBasicExecutionActivity() (BasicExec return &amura, true } +// AsWebHookActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. func (amura AzureMLUpdateResourceActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -19349,6 +18840,11 @@ func (amura AzureMLUpdateResourceActivity) AsFilterActivity() (*FilterActivity, return nil, false } +// AsValidationActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. func (amura AzureMLUpdateResourceActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -19523,7 +19019,7 @@ type AzureMySQLLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -20516,7 +20012,7 @@ type AzureMySQLTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -20812,11 +20308,6 @@ func (amstd AzureMySQLTableDataset) AsFileShareDataset() (*FileShareDataset, boo return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for AzureMySQLTableDataset. func (amstd AzureMySQLTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -21013,7 +20504,7 @@ type AzurePostgreSQLLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -22006,7 +21497,7 @@ type AzurePostgreSQLTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -22302,11 +21793,6 @@ func (apstd AzurePostgreSQLTableDataset) AsFileShareDataset() (*FileShareDataset return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. func (apstd AzurePostgreSQLTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -22727,7 +22213,7 @@ type AzureSearchIndexDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -23023,11 +22509,6 @@ func (asid AzureSearchIndexDataset) AsFileShareDataset() (*FileShareDataset, boo return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for AzureSearchIndexDataset. func (asid AzureSearchIndexDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -23460,7 +22941,7 @@ type AzureSearchLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -24063,7 +23544,7 @@ type AzureSQLDatabaseLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -24699,7 +24180,7 @@ type AzureSQLDWLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -25343,7 +24824,7 @@ type AzureSQLDWTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -25639,11 +25120,6 @@ func (asdtd AzureSQLDWTableDataset) AsFileShareDataset() (*FileShareDataset, boo return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for AzureSQLDWTableDataset. func (asdtd AzureSQLDWTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -25848,7 +25324,7 @@ type AzureSQLTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -26144,11 +25620,6 @@ func (astd AzureSQLTableDataset) AsFileShareDataset() (*FileShareDataset, bool) return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for AzureSQLTableDataset. func (astd AzureSQLTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -26345,7 +25816,7 @@ type AzureStorageLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -26919,7 +26390,7 @@ type AzureTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -27215,11 +26686,6 @@ func (atd AzureTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for AzureTableDataset. func (atd AzureTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -28131,7 +27597,7 @@ type AzureTableStorageLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -28681,8 +28147,10 @@ type BlobEventsTrigger struct { AdditionalProperties map[string]interface{} `json:""` // Description - Trigger description. Description *string `json:"description,omitempty"` - // RuntimeState - Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' + // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` + // Annotations - List of tags that can be used for describing the trigger. + Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeTrigger', 'TypeRerunTumblingWindowTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' Type TypeBasicTrigger `json:"type,omitempty"` } @@ -28700,8 +28168,8 @@ func (bet BlobEventsTrigger) MarshalJSON() ([]byte, error) { if bet.Description != nil { objectMap["description"] = bet.Description } - if bet.RuntimeState != "" { - objectMap["runtimeState"] = bet.RuntimeState + if bet.Annotations != nil { + objectMap["annotations"] = bet.Annotations } if bet.Type != "" { objectMap["type"] = bet.Type @@ -28814,6 +28282,15 @@ func (bet *BlobEventsTrigger) UnmarshalJSON(body []byte) error { } bet.RuntimeState = runtimeState } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + bet.Annotations = &annotations + } case "type": if v != nil { var typeVar TypeBasicTrigger @@ -29580,8 +29057,10 @@ type BlobTrigger struct { AdditionalProperties map[string]interface{} `json:""` // Description - Trigger description. Description *string `json:"description,omitempty"` - // RuntimeState - Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' + // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` + // Annotations - List of tags that can be used for describing the trigger. + Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeTrigger', 'TypeRerunTumblingWindowTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' Type TypeBasicTrigger `json:"type,omitempty"` } @@ -29599,8 +29078,8 @@ func (bt BlobTrigger) MarshalJSON() ([]byte, error) { if bt.Description != nil { objectMap["description"] = bt.Description } - if bt.RuntimeState != "" { - objectMap["runtimeState"] = bt.RuntimeState + if bt.Annotations != nil { + objectMap["annotations"] = bt.Annotations } if bt.Type != "" { objectMap["type"] = bt.Type @@ -29713,6 +29192,15 @@ func (bt *BlobTrigger) UnmarshalJSON(body []byte) error { } bt.RuntimeState = runtimeState } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + bt.Annotations = &annotations + } case "type": if v != nil { var typeVar TypeBasicTrigger @@ -29750,7 +29238,7 @@ type CassandraLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -30831,7 +30319,7 @@ type CassandraTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -31127,11 +30615,6 @@ func (ctd CassandraTableDataset) AsFileShareDataset() (*FileShareDataset, bool) return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for CassandraTableDataset. func (ctd CassandraTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -31381,7 +30864,7 @@ type ConcurLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -32036,7 +31519,7 @@ type ConcurObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -32332,11 +31815,6 @@ func (cod ConcurObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for ConcurObjectDataset. func (cod ConcurObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -32940,9 +32418,11 @@ func (cs *ConcurSource) UnmarshalJSON(body []byte) error { // BasicControlActivity base class for all control activities like IfCondition, ForEach , Until. type BasicControlActivity interface { + AsWebHookActivity() (*WebHookActivity, bool) AsAppendVariableActivity() (*AppendVariableActivity, bool) AsSetVariableActivity() (*SetVariableActivity, bool) AsFilterActivity() (*FilterActivity, bool) + AsValidationActivity() (*ValidationActivity, bool) AsUntilActivity() (*UntilActivity, bool) AsWaitActivity() (*WaitActivity, bool) AsForEachActivity() (*ForEachActivity, bool) @@ -32963,7 +32443,7 @@ type ControlActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -32975,6 +32455,10 @@ func unmarshalBasicControlActivity(body []byte) (BasicControlActivity, error) { } switch m["type"] { + case string(TypeWebHook): + var wha WebHookActivity + err := json.Unmarshal(body, &wha) + return wha, err case string(TypeAppendVariable): var ava AppendVariableActivity err := json.Unmarshal(body, &ava) @@ -32987,6 +32471,10 @@ func unmarshalBasicControlActivity(body []byte) (BasicControlActivity, error) { var fa FilterActivity err := json.Unmarshal(body, &fa) return fa, err + case string(TypeValidation): + var va ValidationActivity + err := json.Unmarshal(body, &va) + return va, err case string(TypeUntil): var ua UntilActivity err := json.Unmarshal(body, &ua) @@ -33167,6 +32655,11 @@ func (ca ControlActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bo return nil, false } +// AsWebHookActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for ControlActivity. func (ca ControlActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -33182,6 +32675,11 @@ func (ca ControlActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for ControlActivity. func (ca ControlActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -33321,7 +32819,7 @@ type CopyActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -33475,6 +32973,11 @@ func (ca CopyActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) return &ca, true } +// AsWebHookActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for CopyActivity. func (ca CopyActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -33490,6 +32993,11 @@ func (ca CopyActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for CopyActivity. func (ca CopyActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -34997,7 +34505,7 @@ type CosmosDbLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -35567,7 +35075,7 @@ type CosmosDbMongoDbAPICollectionDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -35863,11 +35371,6 @@ func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsFileShareDataset() (*FileSh return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -36064,7 +35567,7 @@ type CosmosDbMongoDbAPILinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -37311,7 +36814,7 @@ type CouchbaseLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -38304,7 +37807,7 @@ type CouchbaseTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -38600,11 +38103,6 @@ func (ctd CouchbaseTableDataset) AsFileShareDataset() (*FileShareDataset, bool) return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for CouchbaseTableDataset. func (ctd CouchbaseTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -38820,7 +38318,7 @@ type CustomActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -38968,6 +38466,11 @@ func (ca CustomActivity) AsBasicExecutionActivity() (BasicExecutionActivity, boo return &ca, true } +// AsWebHookActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for CustomActivity. func (ca CustomActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -38983,6 +38486,11 @@ func (ca CustomActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for CustomActivity. func (ca CustomActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -39195,7 +38703,7 @@ type CustomDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -39491,11 +38999,6 @@ func (cd CustomDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for CustomDataset. func (cd CustomDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -39686,7 +39189,7 @@ type CustomDataSourceLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -40244,7 +39747,7 @@ type DatabricksNotebookActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -40392,6 +39895,11 @@ func (dna DatabricksNotebookActivity) AsBasicExecutionActivity() (BasicExecution return &dna, true } +// AsWebHookActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for DatabricksNotebookActivity. func (dna DatabricksNotebookActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -40407,6 +39915,11 @@ func (dna DatabricksNotebookActivity) AsFilterActivity() (*FilterActivity, bool) return nil, false } +// AsValidationActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for DatabricksNotebookActivity. func (dna DatabricksNotebookActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -40594,7 +40107,7 @@ type DatabricksSparkJarActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -40742,6 +40255,11 @@ func (dsja DatabricksSparkJarActivity) AsBasicExecutionActivity() (BasicExecutio return &dsja, true } +// AsWebHookActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for DatabricksSparkJarActivity. func (dsja DatabricksSparkJarActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -40757,6 +40275,11 @@ func (dsja DatabricksSparkJarActivity) AsFilterActivity() (*FilterActivity, bool return nil, false } +// AsValidationActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for DatabricksSparkJarActivity. func (dsja DatabricksSparkJarActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -40929,7 +40452,7 @@ type DatabricksSparkPythonActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -41077,6 +40600,11 @@ func (dspa DatabricksSparkPythonActivity) AsBasicExecutionActivity() (BasicExecu return &dspa, true } +// AsWebHookActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. func (dspa DatabricksSparkPythonActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -41092,6 +40620,11 @@ func (dspa DatabricksSparkPythonActivity) AsFilterActivity() (*FilterActivity, b return nil, false } +// AsValidationActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. func (dspa DatabricksSparkPythonActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -41264,7 +40797,7 @@ type DataLakeAnalyticsUSQLActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -41412,6 +40945,11 @@ func (dlaua DataLakeAnalyticsUSQLActivity) AsBasicExecutionActivity() (BasicExec return &dlaua, true } +// AsWebHookActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. func (dlaua DataLakeAnalyticsUSQLActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -41427,6 +40965,11 @@ func (dlaua DataLakeAnalyticsUSQLActivity) AsFilterActivity() (*FilterActivity, return nil, false } +// AsValidationActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. func (dlaua DataLakeAnalyticsUSQLActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -41670,7 +41213,6 @@ type BasicDataset interface { AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) AsFileShareDataset() (*FileShareDataset, bool) - AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) AsOffice365Dataset() (*Office365Dataset, bool) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) @@ -41705,7 +41247,7 @@ type Dataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -41921,10 +41463,6 @@ func unmarshalBasicDataset(body []byte) (BasicDataset, error) { var fsd FileShareDataset err := json.Unmarshal(body, &fsd) return fsd, err - case string(TypeAzureDataLakeStoreCosmosStructuredStreamFile): - var adlscssd AzureDataLakeStoreCosmosStructuredStreamDataset - err := json.Unmarshal(body, &adlscssd) - return adlscssd, err case string(TypeOffice365Table): var o3d Office365Dataset err := json.Unmarshal(body, &o3d) @@ -42287,11 +41825,6 @@ func (d Dataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for Dataset. func (d Dataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -43078,13 +42611,13 @@ type DatasetResource struct { autorest.Response `json:"-"` // Properties - Dataset properties. Properties BasicDataset `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` - // Etag - Etag identifies change in the resource. + // Etag - READ-ONLY; Etag identifies change in the resource. Etag *string `json:"etag,omitempty"` } @@ -43443,7 +42976,7 @@ type Db2LinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -44085,7 +43618,7 @@ type DeleteActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -44233,6 +43766,11 @@ func (da DeleteActivity) AsBasicExecutionActivity() (BasicExecutionActivity, boo return &da, true } +// AsWebHookActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for DeleteActivity. func (da DeleteActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -44248,6 +43786,11 @@ func (da DeleteActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for DeleteActivity. func (da DeleteActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -44536,7 +44079,7 @@ type DocumentDbCollectionDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -44832,11 +44375,6 @@ func (ddcd DocumentDbCollectionDataset) AsFileShareDataset() (*FileShareDataset, return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for DocumentDbCollectionDataset. func (ddcd DocumentDbCollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -45706,7 +45244,7 @@ type DrillLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -46699,7 +46237,7 @@ type DrillTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -46995,11 +46533,6 @@ func (dtd DrillTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for DrillTableDataset. func (dtd DrillTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -47190,7 +46723,7 @@ type DynamicsAXLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -47834,7 +47367,7 @@ type DynamicsAXResourceDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -48130,11 +47663,6 @@ func (dard DynamicsAXResourceDataset) AsFileShareDataset() (*FileShareDataset, b return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for DynamicsAXResourceDataset. func (dard DynamicsAXResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -48762,7 +48290,7 @@ type DynamicsEntityDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -49058,11 +48586,6 @@ func (ded DynamicsEntityDataset) AsFileShareDataset() (*FileShareDataset, bool) return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for DynamicsEntityDataset. func (ded DynamicsEntityDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -49259,7 +48782,7 @@ type DynamicsLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -50601,7 +50124,7 @@ type EloquaLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -51256,7 +50779,7 @@ type EloquaObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -51552,11 +51075,6 @@ func (eod EloquaObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for EloquaObjectDataset. func (eod EloquaObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -52172,7 +51690,7 @@ type ExecutePipelineActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -52314,6 +51832,11 @@ func (epa ExecutePipelineActivity) AsBasicExecutionActivity() (BasicExecutionAct return nil, false } +// AsWebHookActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for ExecutePipelineActivity. func (epa ExecutePipelineActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -52329,6 +51852,11 @@ func (epa ExecutePipelineActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for ExecutePipelineActivity. func (epa ExecutePipelineActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -52498,7 +52026,7 @@ type ExecuteSSISPackageActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -52646,6 +52174,11 @@ func (espa ExecuteSSISPackageActivity) AsBasicExecutionActivity() (BasicExecutio return &espa, true } +// AsWebHookActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. func (espa ExecuteSSISPackageActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -52661,6 +52194,11 @@ func (espa ExecuteSSISPackageActivity) AsFilterActivity() (*FilterActivity, bool return nil, false } +// AsValidationActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. func (espa ExecuteSSISPackageActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -52911,7 +52449,7 @@ type ExecutionActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -53169,6 +52707,11 @@ func (ea ExecutionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, return &ea, true } +// AsWebHookActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for ExecutionActivity. func (ea ExecutionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -53184,6 +52727,11 @@ func (ea ExecutionActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for ExecutionActivity. func (ea ExecutionActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -53330,9 +52878,9 @@ type ExposureControlRequest struct { // ExposureControlResponse the exposure control response. type ExposureControlResponse struct { autorest.Response `json:"-"` - // FeatureName - The feature name. + // FeatureName - READ-ONLY; The feature name. FeatureName *string `json:"featureName,omitempty"` - // Value - The feature value. + // Value - READ-ONLY; The feature value. Value *string `json:"value,omitempty"` } @@ -53353,17 +52901,17 @@ type Factory struct { Identity *FactoryIdentity `json:"identity,omitempty"` // FactoryProperties - Properties of the factory. *FactoryProperties `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` // Tags - The resource tags. Tags map[string]*string `json:"tags"` - // ETag - Etag identifies change in the resource. + // ETag - READ-ONLY; Etag identifies change in the resource. ETag *string `json:"eTag,omitempty"` } @@ -53376,24 +52924,12 @@ func (f Factory) MarshalJSON() ([]byte, error) { if f.FactoryProperties != nil { objectMap["properties"] = f.FactoryProperties } - if f.ID != nil { - objectMap["id"] = f.ID - } - if f.Name != nil { - objectMap["name"] = f.Name - } - if f.Type != nil { - objectMap["type"] = f.Type - } if f.Location != nil { objectMap["location"] = f.Location } if f.Tags != nil { objectMap["tags"] = f.Tags } - if f.ETag != nil { - objectMap["eTag"] = f.ETag - } for k, v := range f.AdditionalProperties { objectMap[k] = v } @@ -53569,9 +53105,9 @@ func (fghc FactoryGitHubConfiguration) AsBasicFactoryRepoConfiguration() (BasicF type FactoryIdentity struct { // Type - The identity type. Currently the only supported type is 'SystemAssigned'. Type *string `json:"type,omitempty"` - // PrincipalID - The principal id of the identity. + // PrincipalID - READ-ONLY; The principal id of the identity. PrincipalID *uuid.UUID `json:"principalId,omitempty"` - // TenantID - The client tenant id of the identity. + // TenantID - READ-ONLY; The client tenant id of the identity. TenantID *uuid.UUID `json:"tenantId,omitempty"` } @@ -53723,11 +53259,11 @@ func NewFactoryListResponsePage(getNextPage func(context.Context, FactoryListRes // FactoryProperties factory resource properties. type FactoryProperties struct { - // ProvisioningState - Factory provisioning state, example Succeeded. + // ProvisioningState - READ-ONLY; Factory provisioning state, example Succeeded. ProvisioningState *string `json:"provisioningState,omitempty"` - // CreateTime - Time the factory was created in ISO8601 format. + // CreateTime - READ-ONLY; Time the factory was created in ISO8601 format. CreateTime *date.Time `json:"createTime,omitempty"` - // Version - Version of the factory. + // Version - READ-ONLY; Version of the factory. Version *string `json:"version,omitempty"` // RepoConfiguration - Git repo information of the factory. RepoConfiguration BasicFactoryRepoConfiguration `json:"repoConfiguration,omitempty"` @@ -54035,7 +53571,7 @@ type FileServerLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -54657,7 +54193,7 @@ type FileShareDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -54953,11 +54489,6 @@ func (fsd FileShareDataset) AsFileShareDataset() (*FileShareDataset, bool) { return &fsd, true } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for FileShareDataset. func (fsd FileShareDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -55903,7 +55434,7 @@ type FilterActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -56045,6 +55576,11 @@ func (fa FilterActivity) AsBasicExecutionActivity() (BasicExecutionActivity, boo return nil, false } +// AsWebHookActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for FilterActivity. func (fa FilterActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -56060,6 +55596,11 @@ func (fa FilterActivity) AsFilterActivity() (*FilterActivity, bool) { return &fa, true } +// AsValidationActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for FilterActivity. func (fa FilterActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -56208,7 +55749,7 @@ type ForEachActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -56350,6 +55891,11 @@ func (fea ForEachActivity) AsBasicExecutionActivity() (BasicExecutionActivity, b return nil, false } +// AsWebHookActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for ForEachActivity. func (fea ForEachActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -56365,6 +55911,11 @@ func (fea ForEachActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for ForEachActivity. func (fea ForEachActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -56565,7 +56116,7 @@ type FtpServerLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -57235,7 +56786,7 @@ type GetMetadataActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -57383,6 +56934,11 @@ func (gma GetMetadataActivity) AsBasicExecutionActivity() (BasicExecutionActivit return &gma, true } +// AsWebHookActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for GetMetadataActivity. func (gma GetMetadataActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -57398,6 +56954,11 @@ func (gma GetMetadataActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for GetMetadataActivity. func (gma GetMetadataActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -57585,7 +57146,7 @@ type GoogleAdWordsLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -58281,7 +57842,7 @@ type GoogleAdWordsObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -58577,11 +58138,6 @@ func (gawod GoogleAdWordsObjectDataset) AsFileShareDataset() (*FileShareDataset, return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. func (gawod GoogleAdWordsObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -59195,7 +58751,7 @@ type GoogleBigQueryLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -59903,7 +59459,7 @@ type GoogleBigQueryObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -60199,11 +59755,6 @@ func (gbqod GoogleBigQueryObjectDataset) AsFileShareDataset() (*FileShareDataset return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. func (gbqod GoogleBigQueryObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -60817,7 +60368,7 @@ type GreenplumLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -61810,7 +61361,7 @@ type GreenplumTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -62106,11 +61657,6 @@ func (gtd GreenplumTableDataset) AsFileShareDataset() (*FileShareDataset, bool) return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for GreenplumTableDataset. func (gtd GreenplumTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -62301,7 +61847,7 @@ type HBaseLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -63000,7 +62546,7 @@ type HBaseObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -63296,11 +62842,6 @@ func (hbod HBaseObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for HBaseObjectDataset. func (hbod HBaseObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -63914,7 +63455,7 @@ type HdfsLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -64982,7 +64523,7 @@ type HDInsightHiveActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -65130,6 +64671,11 @@ func (hiha HDInsightHiveActivity) AsBasicExecutionActivity() (BasicExecutionActi return &hiha, true } +// AsWebHookActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for HDInsightHiveActivity. func (hiha HDInsightHiveActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -65145,6 +64691,11 @@ func (hiha HDInsightHiveActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for HDInsightHiveActivity. func (hiha HDInsightHiveActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -65351,7 +64902,7 @@ type HDInsightLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -66004,7 +65555,7 @@ type HDInsightMapReduceActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -66152,6 +65703,11 @@ func (himra HDInsightMapReduceActivity) AsBasicExecutionActivity() (BasicExecuti return &himra, true } +// AsWebHookActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for HDInsightMapReduceActivity. func (himra HDInsightMapReduceActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -66167,6 +65723,11 @@ func (himra HDInsightMapReduceActivity) AsFilterActivity() (*FilterActivity, boo return nil, false } +// AsValidationActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for HDInsightMapReduceActivity. func (himra HDInsightMapReduceActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -66373,7 +65934,7 @@ type HDInsightOnDemandLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -67288,7 +66849,7 @@ type HDInsightPigActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -67436,6 +66997,11 @@ func (hipa HDInsightPigActivity) AsBasicExecutionActivity() (BasicExecutionActiv return &hipa, true } +// AsWebHookActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for HDInsightPigActivity. func (hipa HDInsightPigActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -67451,6 +67017,11 @@ func (hipa HDInsightPigActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for HDInsightPigActivity. func (hipa HDInsightPigActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -67653,7 +67224,7 @@ type HDInsightSparkActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -67801,6 +67372,11 @@ func (hisa HDInsightSparkActivity) AsBasicExecutionActivity() (BasicExecutionAct return &hisa, true } +// AsWebHookActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for HDInsightSparkActivity. func (hisa HDInsightSparkActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -67816,6 +67392,11 @@ func (hisa HDInsightSparkActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for HDInsightSparkActivity. func (hisa HDInsightSparkActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -68028,7 +67609,7 @@ type HDInsightStreamingActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -68176,6 +67757,11 @@ func (hisa HDInsightStreamingActivity) AsBasicExecutionActivity() (BasicExecutio return &hisa, true } +// AsWebHookActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for HDInsightStreamingActivity. func (hisa HDInsightStreamingActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -68191,6 +67777,11 @@ func (hisa HDInsightStreamingActivity) AsFilterActivity() (*FilterActivity, bool return nil, false } +// AsValidationActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for HDInsightStreamingActivity. func (hisa HDInsightStreamingActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -68417,7 +68008,7 @@ type HiveLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -69182,7 +68773,7 @@ type HiveObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -69478,11 +69069,6 @@ func (hod HiveObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for HiveObjectDataset. func (hod HiveObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -70104,7 +69690,7 @@ type HTTPDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -70400,11 +69986,6 @@ func (hd HTTPDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for HTTPDataset. func (hd HTTPDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -70680,7 +70261,7 @@ type HTTPLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -71761,7 +71342,7 @@ type HubspotLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -72425,7 +72006,7 @@ type HubspotObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -72721,11 +72302,6 @@ func (hod HubspotObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for HubspotObjectDataset. func (hod HubspotObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -73343,7 +72919,7 @@ type IfConditionActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -73485,6 +73061,11 @@ func (ica IfConditionActivity) AsBasicExecutionActivity() (BasicExecutionActivit return nil, false } +// AsWebHookActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for IfConditionActivity. func (ica IfConditionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -73500,6 +73081,11 @@ func (ica IfConditionActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for IfConditionActivity. func (ica IfConditionActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -73688,7 +73274,7 @@ type ImpalaLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -74387,7 +73973,7 @@ type ImpalaObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -74683,11 +74269,6 @@ func (iod ImpalaObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for ImpalaObjectDataset. func (iod ImpalaObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -75555,41 +75136,23 @@ type IntegrationRuntimeConnectionInfo struct { autorest.Response `json:"-"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ServiceToken - The token generated in service. Callers use this token to authenticate to integration runtime. + // ServiceToken - READ-ONLY; The token generated in service. Callers use this token to authenticate to integration runtime. ServiceToken *string `json:"serviceToken,omitempty"` - // IdentityCertThumbprint - The integration runtime SSL certificate thumbprint. Click-Once application uses it to do server validation. + // IdentityCertThumbprint - READ-ONLY; The integration runtime SSL certificate thumbprint. Click-Once application uses it to do server validation. IdentityCertThumbprint *string `json:"identityCertThumbprint,omitempty"` - // HostServiceURI - The on-premises integration runtime host URL. + // HostServiceURI - READ-ONLY; The on-premises integration runtime host URL. HostServiceURI *string `json:"hostServiceUri,omitempty"` - // Version - The integration runtime version. + // Version - READ-ONLY; The integration runtime version. Version *string `json:"version,omitempty"` - // PublicKey - The public key for encrypting a credential when transferring the credential to the integration runtime. + // PublicKey - READ-ONLY; The public key for encrypting a credential when transferring the credential to the integration runtime. PublicKey *string `json:"publicKey,omitempty"` - // IsIdentityCertExprired - Whether the identity certificate is expired. + // IsIdentityCertExprired - READ-ONLY; Whether the identity certificate is expired. IsIdentityCertExprired *bool `json:"isIdentityCertExprired,omitempty"` } // MarshalJSON is the custom marshaler for IntegrationRuntimeConnectionInfo. func (irci IntegrationRuntimeConnectionInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if irci.ServiceToken != nil { - objectMap["serviceToken"] = irci.ServiceToken - } - if irci.IdentityCertThumbprint != nil { - objectMap["identityCertThumbprint"] = irci.IdentityCertThumbprint - } - if irci.HostServiceURI != nil { - objectMap["hostServiceUri"] = irci.HostServiceURI - } - if irci.Version != nil { - objectMap["version"] = irci.Version - } - if irci.PublicKey != nil { - objectMap["publicKey"] = irci.PublicKey - } - if irci.IsIdentityCertExprired != nil { - objectMap["isIdentityCertExprired"] = irci.IsIdentityCertExprired - } for k, v := range irci.AdditionalProperties { objectMap[k] = v } @@ -75845,7 +75408,7 @@ type IntegrationRuntimeMonitoringData struct { // IntegrationRuntimeNodeIPAddress the IP address of self-hosted integration runtime node. type IntegrationRuntimeNodeIPAddress struct { autorest.Response `json:"-"` - // IPAddress - The IP address of self-hosted integration runtime node. + // IPAddress - READ-ONLY; The IP address of self-hosted integration runtime node. IPAddress *string `json:"ipAddress,omitempty"` } @@ -75853,51 +75416,27 @@ type IntegrationRuntimeNodeIPAddress struct { type IntegrationRuntimeNodeMonitoringData struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // NodeName - Name of the integration runtime node. + // NodeName - READ-ONLY; Name of the integration runtime node. NodeName *string `json:"nodeName,omitempty"` - // AvailableMemoryInMB - Available memory (MB) on the integration runtime node. + // AvailableMemoryInMB - READ-ONLY; Available memory (MB) on the integration runtime node. AvailableMemoryInMB *int32 `json:"availableMemoryInMB,omitempty"` - // CPUUtilization - CPU percentage on the integration runtime node. + // CPUUtilization - READ-ONLY; CPU percentage on the integration runtime node. CPUUtilization *int32 `json:"cpuUtilization,omitempty"` - // ConcurrentJobsLimit - Maximum concurrent jobs on the integration runtime node. + // ConcurrentJobsLimit - READ-ONLY; Maximum concurrent jobs on the integration runtime node. ConcurrentJobsLimit *int32 `json:"concurrentJobsLimit,omitempty"` - // ConcurrentJobsRunning - The number of jobs currently running on the integration runtime node. + // ConcurrentJobsRunning - READ-ONLY; The number of jobs currently running on the integration runtime node. ConcurrentJobsRunning *int32 `json:"concurrentJobsRunning,omitempty"` - // MaxConcurrentJobs - The maximum concurrent jobs in this integration runtime. + // MaxConcurrentJobs - READ-ONLY; The maximum concurrent jobs in this integration runtime. MaxConcurrentJobs *int32 `json:"maxConcurrentJobs,omitempty"` - // SentBytes - Sent bytes on the integration runtime node. + // SentBytes - READ-ONLY; Sent bytes on the integration runtime node. SentBytes *float64 `json:"sentBytes,omitempty"` - // ReceivedBytes - Received bytes on the integration runtime node. + // ReceivedBytes - READ-ONLY; Received bytes on the integration runtime node. ReceivedBytes *float64 `json:"receivedBytes,omitempty"` } // MarshalJSON is the custom marshaler for IntegrationRuntimeNodeMonitoringData. func (irnmd IntegrationRuntimeNodeMonitoringData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if irnmd.NodeName != nil { - objectMap["nodeName"] = irnmd.NodeName - } - if irnmd.AvailableMemoryInMB != nil { - objectMap["availableMemoryInMB"] = irnmd.AvailableMemoryInMB - } - if irnmd.CPUUtilization != nil { - objectMap["cpuUtilization"] = irnmd.CPUUtilization - } - if irnmd.ConcurrentJobsLimit != nil { - objectMap["concurrentJobsLimit"] = irnmd.ConcurrentJobsLimit - } - if irnmd.ConcurrentJobsRunning != nil { - objectMap["concurrentJobsRunning"] = irnmd.ConcurrentJobsRunning - } - if irnmd.MaxConcurrentJobs != nil { - objectMap["maxConcurrentJobs"] = irnmd.MaxConcurrentJobs - } - if irnmd.SentBytes != nil { - objectMap["sentBytes"] = irnmd.SentBytes - } - if irnmd.ReceivedBytes != nil { - objectMap["receivedBytes"] = irnmd.ReceivedBytes - } for k, v := range irnmd.AdditionalProperties { objectMap[k] = v } @@ -76013,7 +75552,7 @@ type IntegrationRuntimeObjectMetadataRefreshFuture struct { // If the operation has not completed it will return an error. func (future *IntegrationRuntimeObjectMetadataRefreshFuture) Result(client IntegrationRuntimeObjectMetadataClient) (somsr SsisObjectMetadataStatusResponse, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeObjectMetadataRefreshFuture", "Result", future.Response(), "Polling failure") return @@ -76068,13 +75607,13 @@ type IntegrationRuntimeResource struct { autorest.Response `json:"-"` // Properties - Integration runtime properties. Properties BasicIntegrationRuntime `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` - // Etag - Etag identifies change in the resource. + // Etag - READ-ONLY; Etag identifies change in the resource. Etag *string `json:"etag,omitempty"` } @@ -76343,7 +75882,7 @@ type IntegrationRuntimesStartFuture struct { // If the operation has not completed it will return an error. func (future *IntegrationRuntimesStartFuture) Result(client IntegrationRuntimesClient) (irsr IntegrationRuntimeStatusResponse, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStartFuture", "Result", future.Response(), "Polling failure") return @@ -76372,7 +75911,7 @@ type IntegrationRuntimesStopFuture struct { // If the operation has not completed it will return an error. func (future *IntegrationRuntimesStopFuture) Result(client IntegrationRuntimesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStopFuture", "Result", future.Response(), "Polling failure") return @@ -76396,9 +75935,9 @@ type BasicIntegrationRuntimeStatus interface { type IntegrationRuntimeStatus struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // DataFactoryName - The data factory name which the integration runtime belong to. + // DataFactoryName - READ-ONLY; The data factory name which the integration runtime belong to. DataFactoryName *string `json:"dataFactoryName,omitempty"` - // State - The state of integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied' + // State - READ-ONLY; The state of integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied' State IntegrationRuntimeState `json:"state,omitempty"` // Type - Possible values include: 'TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus', 'TypeBasicIntegrationRuntimeStatusTypeSelfHosted', 'TypeBasicIntegrationRuntimeStatusTypeManaged' Type TypeBasicIntegrationRuntimeStatus `json:"type,omitempty"` @@ -76449,12 +75988,6 @@ func unmarshalBasicIntegrationRuntimeStatusArray(body []byte) ([]BasicIntegratio func (irs IntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { irs.Type = TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus objectMap := make(map[string]interface{}) - if irs.DataFactoryName != nil { - objectMap["dataFactoryName"] = irs.DataFactoryName - } - if irs.State != "" { - objectMap["state"] = irs.State - } if irs.Type != "" { objectMap["type"] = irs.Type } @@ -76549,7 +76082,7 @@ type IntegrationRuntimeStatusListResponse struct { // IntegrationRuntimeStatusResponse integration runtime status response. type IntegrationRuntimeStatusResponse struct { autorest.Response `json:"-"` - // Name - The integration runtime name. + // Name - READ-ONLY; The integration runtime name. Name *string `json:"name,omitempty"` // Properties - Integration runtime properties. Properties BasicIntegrationRuntimeStatus `json:"properties,omitempty"` @@ -76669,7 +76202,7 @@ type JiraLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -77335,7 +76868,7 @@ type JiraObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -77631,11 +77164,6 @@ func (jod JiraObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for JiraObjectDataset. func (jod JiraObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -78429,15 +77957,15 @@ func (jf *JSONFormat) UnmarshalJSON(body []byte) error { // LinkedIntegrationRuntime the linked integration runtime information. type LinkedIntegrationRuntime struct { - // Name - The name of the linked integration runtime. + // Name - READ-ONLY; The name of the linked integration runtime. Name *string `json:"name,omitempty"` - // SubscriptionID - The subscription ID for which the linked integration runtime belong to. + // SubscriptionID - READ-ONLY; The subscription ID for which the linked integration runtime belong to. SubscriptionID *string `json:"subscriptionId,omitempty"` - // DataFactoryName - The name of the data factory for which the linked integration runtime belong to. + // DataFactoryName - READ-ONLY; The name of the data factory for which the linked integration runtime belong to. DataFactoryName *string `json:"dataFactoryName,omitempty"` - // DataFactoryLocation - The location of the data factory for which the linked integration runtime belong to. + // DataFactoryLocation - READ-ONLY; The location of the data factory for which the linked integration runtime belong to. DataFactoryLocation *string `json:"dataFactoryLocation,omitempty"` - // CreateTime - The creating time of the linked integration runtime. + // CreateTime - READ-ONLY; The creating time of the linked integration runtime. CreateTime *date.Time `json:"createTime,omitempty"` } @@ -78714,7 +78242,7 @@ type LinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -79783,13 +79311,13 @@ type LinkedServiceResource struct { autorest.Response `json:"-"` // Properties - Properties of linked service. Properties BasicLinkedService `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` - // Etag - Etag identifies change in the resource. + // Etag - READ-ONLY; Etag identifies change in the resource. Etag *string `json:"etag,omitempty"` } @@ -79940,7 +79468,7 @@ type LookupActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -80088,6 +79616,11 @@ func (la LookupActivity) AsBasicExecutionActivity() (BasicExecutionActivity, boo return &la, true } +// AsWebHookActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for LookupActivity. func (la LookupActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -80103,6 +79636,11 @@ func (la LookupActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for LookupActivity. func (la LookupActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -80310,7 +79848,7 @@ type MagentoLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -80954,7 +80492,7 @@ type MagentoObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -81250,11 +80788,6 @@ func (mod MagentoObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for MagentoObjectDataset. func (mod MagentoObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -81859,7 +81392,7 @@ func (ms *MagentoSource) UnmarshalJSON(body []byte) error { // ManagedIntegrationRuntime managed integration runtime, including managed elastic and managed dedicated // integration runtimes. type ManagedIntegrationRuntime struct { - // State - Integration runtime state, only valid for managed dedicated integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied' + // State - READ-ONLY; Integration runtime state, only valid for managed dedicated integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied' State IntegrationRuntimeState `json:"state,omitempty"` // ManagedIntegrationRuntimeTypeProperties - Managed integration runtime properties. *ManagedIntegrationRuntimeTypeProperties `json:"typeProperties,omitempty"` @@ -81875,9 +81408,6 @@ type ManagedIntegrationRuntime struct { func (mir ManagedIntegrationRuntime) MarshalJSON() ([]byte, error) { mir.Type = TypeManaged objectMap := make(map[string]interface{}) - if mir.State != "" { - objectMap["state"] = mir.State - } if mir.ManagedIntegrationRuntimeTypeProperties != nil { objectMap["typeProperties"] = mir.ManagedIntegrationRuntimeTypeProperties } @@ -81978,21 +81508,21 @@ func (mir *ManagedIntegrationRuntime) UnmarshalJSON(body []byte) error { // ManagedIntegrationRuntimeError error definition for managed integration runtime. type ManagedIntegrationRuntimeError struct { - // Time - The time when the error occurred. + // Time - READ-ONLY; The time when the error occurred. Time *date.Time `json:"time,omitempty"` - // Code - Error code. + // Code - READ-ONLY; Error code. Code *string `json:"code,omitempty"` - // Parameters - Managed integration runtime error parameters. + // Parameters - READ-ONLY; Managed integration runtime error parameters. Parameters *[]string `json:"parameters,omitempty"` - // Message - Error message. + // Message - READ-ONLY; Error message. Message *string `json:"message,omitempty"` } // ManagedIntegrationRuntimeNode properties of integration runtime node. type ManagedIntegrationRuntimeNode struct { - // NodeID - The managed integration runtime node id. + // NodeID - READ-ONLY; The managed integration runtime node id. NodeID *string `json:"nodeId,omitempty"` - // Status - The managed integration runtime node status. Possible values include: 'ManagedIntegrationRuntimeNodeStatusStarting', 'ManagedIntegrationRuntimeNodeStatusAvailable', 'ManagedIntegrationRuntimeNodeStatusRecycling', 'ManagedIntegrationRuntimeNodeStatusUnavailable' + // Status - READ-ONLY; The managed integration runtime node status. Possible values include: 'ManagedIntegrationRuntimeNodeStatusStarting', 'ManagedIntegrationRuntimeNodeStatusAvailable', 'ManagedIntegrationRuntimeNodeStatusRecycling', 'ManagedIntegrationRuntimeNodeStatusUnavailable' Status ManagedIntegrationRuntimeNodeStatus `json:"status,omitempty"` // Errors - The errors that occurred on this integration runtime node. Errors *[]ManagedIntegrationRuntimeError `json:"errors,omitempty"` @@ -82000,17 +81530,17 @@ type ManagedIntegrationRuntimeNode struct { // ManagedIntegrationRuntimeOperationResult properties of managed integration runtime operation result. type ManagedIntegrationRuntimeOperationResult struct { - // Type - The operation type. Could be start or stop. + // Type - READ-ONLY; The operation type. Could be start or stop. Type *string `json:"type,omitempty"` - // StartTime - The start time of the operation. + // StartTime - READ-ONLY; The start time of the operation. StartTime *date.Time `json:"startTime,omitempty"` - // Result - The operation result. + // Result - READ-ONLY; The operation result. Result *string `json:"result,omitempty"` - // ErrorCode - The error code. + // ErrorCode - READ-ONLY; The error code. ErrorCode *string `json:"errorCode,omitempty"` - // Parameters - Managed integration runtime error parameters. + // Parameters - READ-ONLY; Managed integration runtime error parameters. Parameters *[]string `json:"parameters,omitempty"` - // ActivityID - The activity id for the operation request. + // ActivityID - READ-ONLY; The activity id for the operation request. ActivityID *string `json:"activityId,omitempty"` } @@ -82020,9 +81550,9 @@ type ManagedIntegrationRuntimeStatus struct { *ManagedIntegrationRuntimeStatusTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // DataFactoryName - The data factory name which the integration runtime belong to. + // DataFactoryName - READ-ONLY; The data factory name which the integration runtime belong to. DataFactoryName *string `json:"dataFactoryName,omitempty"` - // State - The state of integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied' + // State - READ-ONLY; The state of integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied' State IntegrationRuntimeState `json:"state,omitempty"` // Type - Possible values include: 'TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus', 'TypeBasicIntegrationRuntimeStatusTypeSelfHosted', 'TypeBasicIntegrationRuntimeStatusTypeManaged' Type TypeBasicIntegrationRuntimeStatus `json:"type,omitempty"` @@ -82035,12 +81565,6 @@ func (mirs ManagedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { if mirs.ManagedIntegrationRuntimeStatusTypeProperties != nil { objectMap["typeProperties"] = mirs.ManagedIntegrationRuntimeStatusTypeProperties } - if mirs.DataFactoryName != nil { - objectMap["dataFactoryName"] = mirs.DataFactoryName - } - if mirs.State != "" { - objectMap["state"] = mirs.State - } if mirs.Type != "" { objectMap["type"] = mirs.Type } @@ -82135,13 +81659,13 @@ func (mirs *ManagedIntegrationRuntimeStatus) UnmarshalJSON(body []byte) error { // ManagedIntegrationRuntimeStatusTypeProperties managed integration runtime status type properties. type ManagedIntegrationRuntimeStatusTypeProperties struct { - // CreateTime - The time at which the integration runtime was created, in ISO8601 format. + // CreateTime - READ-ONLY; The time at which the integration runtime was created, in ISO8601 format. CreateTime *date.Time `json:"createTime,omitempty"` - // Nodes - The list of nodes for managed integration runtime. + // Nodes - READ-ONLY; The list of nodes for managed integration runtime. Nodes *[]ManagedIntegrationRuntimeNode `json:"nodes,omitempty"` - // OtherErrors - The errors that occurred on this integration runtime. + // OtherErrors - READ-ONLY; The errors that occurred on this integration runtime. OtherErrors *[]ManagedIntegrationRuntimeError `json:"otherErrors,omitempty"` - // LastOperation - The last operation result that occurred on this integration runtime. + // LastOperation - READ-ONLY; The last operation result that occurred on this integration runtime. LastOperation *ManagedIntegrationRuntimeOperationResult `json:"lastOperation,omitempty"` } @@ -82165,7 +81689,7 @@ type MariaDBLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -83158,7 +82682,7 @@ type MariaDBTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -83454,11 +82978,6 @@ func (mdtd MariaDBTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for MariaDBTableDataset. func (mdtd MariaDBTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -83649,7 +83168,7 @@ type MarketoLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -84304,7 +83823,7 @@ type MarketoObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -84600,11 +84119,6 @@ func (mod MarketoObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for MarketoObjectDataset. func (mod MarketoObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -85226,7 +84740,7 @@ type MongoDbCollectionDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -85522,11 +85036,6 @@ func (mdcd MongoDbCollectionDataset) AsFileShareDataset() (*FileShareDataset, bo return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for MongoDbCollectionDataset. func (mdcd MongoDbCollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -85821,7 +85330,7 @@ type MongoDbLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -86932,7 +86441,7 @@ type MongoDbV2CollectionDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -87228,11 +86737,6 @@ func (mdvcd MongoDbV2CollectionDataset) AsFileShareDataset() (*FileShareDataset, return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for MongoDbV2CollectionDataset. func (mdvcd MongoDbV2CollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -87429,7 +86933,7 @@ type MongoDbV2LinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -88444,8 +87948,10 @@ type MultiplePipelineTrigger struct { AdditionalProperties map[string]interface{} `json:""` // Description - Trigger description. Description *string `json:"description,omitempty"` - // RuntimeState - Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' + // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` + // Annotations - List of tags that can be used for describing the trigger. + Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeTrigger', 'TypeRerunTumblingWindowTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' Type TypeBasicTrigger `json:"type,omitempty"` } @@ -88505,8 +88011,8 @@ func (mpt MultiplePipelineTrigger) MarshalJSON() ([]byte, error) { if mpt.Description != nil { objectMap["description"] = mpt.Description } - if mpt.RuntimeState != "" { - objectMap["runtimeState"] = mpt.RuntimeState + if mpt.Annotations != nil { + objectMap["annotations"] = mpt.Annotations } if mpt.Type != "" { objectMap["type"] = mpt.Type @@ -88610,6 +88116,15 @@ func (mpt *MultiplePipelineTrigger) UnmarshalJSON(body []byte) error { } mpt.RuntimeState = runtimeState } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mpt.Annotations = &annotations + } case "type": if v != nil { var typeVar TypeBasicTrigger @@ -88637,7 +88152,7 @@ type MySQLLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -89240,7 +88755,7 @@ type NetezzaLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -90233,7 +89748,7 @@ type NetezzaTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -90529,11 +90044,6 @@ func (ntd NetezzaTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for NetezzaTableDataset. func (ntd NetezzaTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -90724,7 +90234,7 @@ type ODataLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -91431,7 +90941,7 @@ type ODataResourceDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -91727,11 +91237,6 @@ func (odrd ODataResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for ODataResourceDataset. func (odrd ODataResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -91928,7 +91433,7 @@ type OdbcLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -92807,7 +92312,7 @@ type Office365Dataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -93103,11 +92608,6 @@ func (o3d Office365Dataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for Office365Dataset. func (o3d Office365Dataset) AsOffice365Dataset() (*Office365Dataset, bool) { return &o3d, true @@ -93306,7 +92806,7 @@ type Office365LinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -94645,7 +94145,7 @@ type OracleLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -95207,7 +94707,7 @@ type OracleServiceCloudLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -95862,7 +95362,7 @@ type OracleServiceCloudObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -96158,11 +95658,6 @@ func (oscod OracleServiceCloudObjectDataset) AsFileShareDataset() (*FileShareDat return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. func (oscod OracleServiceCloudObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -97457,7 +96952,7 @@ type OracleTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -97753,11 +97248,6 @@ func (otd OracleTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for OracleTableDataset. func (otd OracleTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -98202,7 +97692,7 @@ type PaypalLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -98857,7 +98347,7 @@ type PaypalObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -99153,11 +98643,6 @@ func (pod PaypalObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for PaypalObjectDataset. func (pod PaypalObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -99771,7 +99256,7 @@ type PhoenixLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -100481,7 +99966,7 @@ type PhoenixObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -100777,11 +100262,6 @@ func (pod PhoenixObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for PhoenixObjectDataset. func (pod PhoenixObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -101675,13 +101155,13 @@ type PipelineResource struct { AdditionalProperties map[string]interface{} `json:""` // Pipeline - Properties of the pipeline. *Pipeline `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` - // Etag - Etag identifies change in the resource. + // Etag - READ-ONLY; Etag identifies change in the resource. Etag *string `json:"etag,omitempty"` } @@ -101691,18 +101171,6 @@ func (pr PipelineResource) MarshalJSON() ([]byte, error) { if pr.Pipeline != nil { objectMap["properties"] = pr.Pipeline } - if pr.ID != nil { - objectMap["id"] = pr.ID - } - if pr.Name != nil { - objectMap["name"] = pr.Name - } - if pr.Type != nil { - objectMap["type"] = pr.Type - } - if pr.Etag != nil { - objectMap["etag"] = pr.Etag - } for k, v := range pr.AdditionalProperties { objectMap[k] = v } @@ -101786,71 +101254,35 @@ type PipelineRun struct { autorest.Response `json:"-"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // RunID - Identifier of a run. + // RunID - READ-ONLY; Identifier of a run. RunID *string `json:"runId,omitempty"` - // RunGroupID - Identifier that correlates all the recovery runs of a pipeline run. + // RunGroupID - READ-ONLY; Identifier that correlates all the recovery runs of a pipeline run. RunGroupID *string `json:"runGroupId,omitempty"` - // IsLatest - Indicates if the recovered pipeline run is the latest in its group. + // IsLatest - READ-ONLY; Indicates if the recovered pipeline run is the latest in its group. IsLatest *bool `json:"isLatest,omitempty"` - // PipelineName - The pipeline name. + // PipelineName - READ-ONLY; The pipeline name. PipelineName *string `json:"pipelineName,omitempty"` - // Parameters - The full or partial list of parameter name, value pair used in the pipeline run. + // Parameters - READ-ONLY; The full or partial list of parameter name, value pair used in the pipeline run. Parameters map[string]*string `json:"parameters"` - // InvokedBy - Entity that started the pipeline run. + // InvokedBy - READ-ONLY; Entity that started the pipeline run. InvokedBy *PipelineRunInvokedBy `json:"invokedBy,omitempty"` - // LastUpdated - The last updated timestamp for the pipeline run event in ISO8601 format. + // LastUpdated - READ-ONLY; The last updated timestamp for the pipeline run event in ISO8601 format. LastUpdated *date.Time `json:"lastUpdated,omitempty"` - // RunStart - The start time of a pipeline run in ISO8601 format. + // RunStart - READ-ONLY; The start time of a pipeline run in ISO8601 format. RunStart *date.Time `json:"runStart,omitempty"` - // RunEnd - The end time of a pipeline run in ISO8601 format. + // RunEnd - READ-ONLY; The end time of a pipeline run in ISO8601 format. RunEnd *date.Time `json:"runEnd,omitempty"` - // DurationInMs - The duration of a pipeline run. + // DurationInMs - READ-ONLY; The duration of a pipeline run. DurationInMs *int32 `json:"durationInMs,omitempty"` - // Status - The status of a pipeline run. + // Status - READ-ONLY; The status of a pipeline run. Status *string `json:"status,omitempty"` - // Message - The message from a pipeline run. + // Message - READ-ONLY; The message from a pipeline run. Message *string `json:"message,omitempty"` } // MarshalJSON is the custom marshaler for PipelineRun. func (pr PipelineRun) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if pr.RunID != nil { - objectMap["runId"] = pr.RunID - } - if pr.RunGroupID != nil { - objectMap["runGroupId"] = pr.RunGroupID - } - if pr.IsLatest != nil { - objectMap["isLatest"] = pr.IsLatest - } - if pr.PipelineName != nil { - objectMap["pipelineName"] = pr.PipelineName - } - if pr.Parameters != nil { - objectMap["parameters"] = pr.Parameters - } - if pr.InvokedBy != nil { - objectMap["invokedBy"] = pr.InvokedBy - } - if pr.LastUpdated != nil { - objectMap["lastUpdated"] = pr.LastUpdated - } - if pr.RunStart != nil { - objectMap["runStart"] = pr.RunStart - } - if pr.RunEnd != nil { - objectMap["runEnd"] = pr.RunEnd - } - if pr.DurationInMs != nil { - objectMap["durationInMs"] = pr.DurationInMs - } - if pr.Status != nil { - objectMap["status"] = pr.Status - } - if pr.Message != nil { - objectMap["message"] = pr.Message - } for k, v := range pr.AdditionalProperties { objectMap[k] = v } @@ -101994,11 +101426,11 @@ func (pr *PipelineRun) UnmarshalJSON(body []byte) error { // PipelineRunInvokedBy provides entity name and id that started the pipeline run. type PipelineRunInvokedBy struct { - // Name - Name of the entity that started the pipeline run. + // Name - READ-ONLY; Name of the entity that started the pipeline run. Name *string `json:"name,omitempty"` - // ID - The ID of the entity that started the run. + // ID - READ-ONLY; The ID of the entity that started the run. ID *string `json:"id,omitempty"` - // InvokedByType - The type of the entity that started the run. + // InvokedByType - READ-ONLY; The type of the entity that started the run. InvokedByType *string `json:"invokedByType,omitempty"` } @@ -102121,7 +101553,7 @@ type PostgreSQLLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -102724,7 +102156,7 @@ type PrestoLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -103456,7 +102888,7 @@ type PrestoObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -103752,11 +103184,6 @@ func (pod PrestoObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for PrestoObjectDataset. func (pod PrestoObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -104370,7 +103797,7 @@ type QuickBooksLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -105034,7 +104461,7 @@ type QuickBooksObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -105330,11 +104757,6 @@ func (qbod QuickBooksObjectDataset) AsFileShareDataset() (*FileShareDataset, boo return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for QuickBooksObjectDataset. func (qbod QuickBooksObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -106641,7 +106063,7 @@ type RelationalTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -106937,11 +106359,6 @@ func (rtd RelationalTableDataset) AsFileShareDataset() (*FileShareDataset, bool) return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for RelationalTableDataset. func (rtd RelationalTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -107131,7 +106548,7 @@ type RerunTriggerListResponse struct { autorest.Response `json:"-"` // Value - List of rerun triggers. Value *[]RerunTriggerResource `json:"value,omitempty"` - // NextLink - The continuation token for getting the next page of results, if any remaining results exist, null otherwise. + // NextLink - READ-ONLY; The continuation token for getting the next page of results, if any remaining results exist, null otherwise. NextLink *string `json:"nextLink,omitempty"` } @@ -107276,13 +106693,13 @@ func NewRerunTriggerListResponsePage(getNextPage func(context.Context, RerunTrig type RerunTriggerResource struct { // Properties - Properties of the rerun trigger. Properties *RerunTumblingWindowTrigger `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` - // Etag - Etag identifies change in the resource. + // Etag - READ-ONLY; Etag identifies change in the resource. Etag *string `json:"etag,omitempty"` } @@ -107296,7 +106713,7 @@ type RerunTriggersCancelFuture struct { // If the operation has not completed it will return an error. func (future *RerunTriggersCancelFuture) Result(client RerunTriggersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.RerunTriggersCancelFuture", "Result", future.Response(), "Polling failure") return @@ -107319,7 +106736,7 @@ type RerunTriggersStartFuture struct { // If the operation has not completed it will return an error. func (future *RerunTriggersStartFuture) Result(client RerunTriggersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.RerunTriggersStartFuture", "Result", future.Response(), "Polling failure") return @@ -107342,7 +106759,7 @@ type RerunTriggersStopFuture struct { // If the operation has not completed it will return an error. func (future *RerunTriggersStopFuture) Result(client RerunTriggersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.RerunTriggersStopFuture", "Result", future.Response(), "Polling failure") return @@ -107364,8 +106781,10 @@ type RerunTumblingWindowTrigger struct { AdditionalProperties map[string]interface{} `json:""` // Description - Trigger description. Description *string `json:"description,omitempty"` - // RuntimeState - Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' + // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` + // Annotations - List of tags that can be used for describing the trigger. + Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeTrigger', 'TypeRerunTumblingWindowTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' Type TypeBasicTrigger `json:"type,omitempty"` } @@ -107380,8 +106799,8 @@ func (rtwt RerunTumblingWindowTrigger) MarshalJSON() ([]byte, error) { if rtwt.Description != nil { objectMap["description"] = rtwt.Description } - if rtwt.RuntimeState != "" { - objectMap["runtimeState"] = rtwt.RuntimeState + if rtwt.Annotations != nil { + objectMap["annotations"] = rtwt.Annotations } if rtwt.Type != "" { objectMap["type"] = rtwt.Type @@ -107485,6 +106904,15 @@ func (rtwt *RerunTumblingWindowTrigger) UnmarshalJSON(body []byte) error { } rtwt.RuntimeState = runtimeState } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + rtwt.Annotations = &annotations + } case "type": if v != nil { var typeVar TypeBasicTrigger @@ -107524,41 +106952,29 @@ type RerunTumblingWindowTriggerTypeProperties struct { // Resource azure Data Factory top-level resource. type Resource struct { - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` // Tags - The resource tags. Tags map[string]*string `json:"tags"` - // ETag - Etag identifies change in the resource. + // ETag - READ-ONLY; Etag identifies change in the resource. ETag *string `json:"eTag,omitempty"` } // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } if r.Tags != nil { objectMap["tags"] = r.Tags } - if r.ETag != nil { - objectMap["eTag"] = r.ETag - } return json.Marshal(objectMap) } @@ -107574,7 +106990,7 @@ type ResponsysLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -108229,7 +107645,7 @@ type ResponsysObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -108525,11 +107941,6 @@ func (rod ResponsysObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for ResponsysObjectDataset. func (rod ResponsysObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -109151,7 +108562,7 @@ type RestResourceDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -109447,11 +108858,6 @@ func (rrd RestResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for RestResourceDataset. func (rrd RestResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -109656,7 +109062,7 @@ type RestServiceLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -110812,7 +110218,7 @@ type SalesforceLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -111436,7 +110842,7 @@ type SalesforceMarketingCloudLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -112081,7 +111487,7 @@ type SalesforceMarketingCloudObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -112377,11 +111783,6 @@ func (smcod SalesforceMarketingCloudObjectDataset) AsFileShareDataset() (*FileSh return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. func (smcod SalesforceMarketingCloudObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -113003,7 +112404,7 @@ type SalesforceObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -113299,11 +112700,6 @@ func (sod SalesforceObjectDataset) AsFileShareDataset() (*FileShareDataset, bool return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for SalesforceObjectDataset. func (sod SalesforceObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -114201,7 +113597,7 @@ type SapBWLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -114837,7 +114233,7 @@ type SapCloudForCustomerLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -115459,7 +114855,7 @@ type SapCloudForCustomerResourceDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -115755,11 +115151,6 @@ func (scfcrd SapCloudForCustomerResourceDataset) AsFileShareDataset() (*FileShar return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. func (scfcrd SapCloudForCustomerResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -116616,7 +116007,7 @@ type SapEccLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -117238,7 +116629,7 @@ type SapEccResourceDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -117534,11 +116925,6 @@ func (serd SapEccResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for SapEccResourceDataset. func (serd SapEccResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -118158,7 +117544,7 @@ type SapHanaLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -118783,7 +118169,7 @@ type SapOpenHubLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -119848,7 +119234,7 @@ type SapOpenHubTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -120144,11 +119530,6 @@ func (sohtd SapOpenHubTableDataset) AsFileShareDataset() (*FileShareDataset, boo return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for SapOpenHubTableDataset. func (sohtd SapOpenHubTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -120347,8 +119728,10 @@ type ScheduleTrigger struct { AdditionalProperties map[string]interface{} `json:""` // Description - Trigger description. Description *string `json:"description,omitempty"` - // RuntimeState - Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' + // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` + // Annotations - List of tags that can be used for describing the trigger. + Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeTrigger', 'TypeRerunTumblingWindowTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' Type TypeBasicTrigger `json:"type,omitempty"` } @@ -120366,8 +119749,8 @@ func (st ScheduleTrigger) MarshalJSON() ([]byte, error) { if st.Description != nil { objectMap["description"] = st.Description } - if st.RuntimeState != "" { - objectMap["runtimeState"] = st.RuntimeState + if st.Annotations != nil { + objectMap["annotations"] = st.Annotations } if st.Type != "" { objectMap["type"] = st.Type @@ -120480,6 +119863,15 @@ func (st *ScheduleTrigger) UnmarshalJSON(body []byte) error { } st.RuntimeState = runtimeState } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + st.Annotations = &annotations + } case "type": if v != nil { var typeVar TypeBasicTrigger @@ -120929,101 +120321,47 @@ func (shir *SelfHostedIntegrationRuntime) UnmarshalJSON(body []byte) error { // SelfHostedIntegrationRuntimeNode properties of Self-hosted integration runtime node. type SelfHostedIntegrationRuntimeNode struct { autorest.Response `json:"-"` - // NodeName - Name of the integration runtime node. + // NodeName - READ-ONLY; Name of the integration runtime node. NodeName *string `json:"nodeName,omitempty"` - // MachineName - Machine name of the integration runtime node. + // MachineName - READ-ONLY; Machine name of the integration runtime node. MachineName *string `json:"machineName,omitempty"` - // HostServiceURI - URI for the host machine of the integration runtime. + // HostServiceURI - READ-ONLY; URI for the host machine of the integration runtime. HostServiceURI *string `json:"hostServiceUri,omitempty"` - // Status - Status of the integration runtime node. Possible values include: 'SelfHostedIntegrationRuntimeNodeStatusNeedRegistration', 'SelfHostedIntegrationRuntimeNodeStatusOnline', 'SelfHostedIntegrationRuntimeNodeStatusLimited', 'SelfHostedIntegrationRuntimeNodeStatusOffline', 'SelfHostedIntegrationRuntimeNodeStatusUpgrading', 'SelfHostedIntegrationRuntimeNodeStatusInitializing', 'SelfHostedIntegrationRuntimeNodeStatusInitializeFailed' + // Status - READ-ONLY; Status of the integration runtime node. Possible values include: 'SelfHostedIntegrationRuntimeNodeStatusNeedRegistration', 'SelfHostedIntegrationRuntimeNodeStatusOnline', 'SelfHostedIntegrationRuntimeNodeStatusLimited', 'SelfHostedIntegrationRuntimeNodeStatusOffline', 'SelfHostedIntegrationRuntimeNodeStatusUpgrading', 'SelfHostedIntegrationRuntimeNodeStatusInitializing', 'SelfHostedIntegrationRuntimeNodeStatusInitializeFailed' Status SelfHostedIntegrationRuntimeNodeStatus `json:"status,omitempty"` - // Capabilities - The integration runtime capabilities dictionary + // Capabilities - READ-ONLY; The integration runtime capabilities dictionary Capabilities map[string]*string `json:"capabilities"` - // VersionStatus - Status of the integration runtime node version. + // VersionStatus - READ-ONLY; Status of the integration runtime node version. VersionStatus *string `json:"versionStatus,omitempty"` - // Version - Version of the integration runtime node. + // Version - READ-ONLY; Version of the integration runtime node. Version *string `json:"version,omitempty"` - // RegisterTime - The time at which the integration runtime node was registered in ISO8601 format. + // RegisterTime - READ-ONLY; The time at which the integration runtime node was registered in ISO8601 format. RegisterTime *date.Time `json:"registerTime,omitempty"` - // LastConnectTime - The most recent time at which the integration runtime was connected in ISO8601 format. + // LastConnectTime - READ-ONLY; The most recent time at which the integration runtime was connected in ISO8601 format. LastConnectTime *date.Time `json:"lastConnectTime,omitempty"` - // ExpiryTime - The time at which the integration runtime will expire in ISO8601 format. + // ExpiryTime - READ-ONLY; The time at which the integration runtime will expire in ISO8601 format. ExpiryTime *date.Time `json:"expiryTime,omitempty"` - // LastStartTime - The time the node last started up. + // LastStartTime - READ-ONLY; The time the node last started up. LastStartTime *date.Time `json:"lastStartTime,omitempty"` - // LastStopTime - The integration runtime node last stop time. + // LastStopTime - READ-ONLY; The integration runtime node last stop time. LastStopTime *date.Time `json:"lastStopTime,omitempty"` - // LastUpdateResult - The result of the last integration runtime node update. Possible values include: 'IntegrationRuntimeUpdateResultNone', 'IntegrationRuntimeUpdateResultSucceed', 'IntegrationRuntimeUpdateResultFail' + // LastUpdateResult - READ-ONLY; The result of the last integration runtime node update. Possible values include: 'IntegrationRuntimeUpdateResultNone', 'IntegrationRuntimeUpdateResultSucceed', 'IntegrationRuntimeUpdateResultFail' LastUpdateResult IntegrationRuntimeUpdateResult `json:"lastUpdateResult,omitempty"` - // LastStartUpdateTime - The last time for the integration runtime node update start. + // LastStartUpdateTime - READ-ONLY; The last time for the integration runtime node update start. LastStartUpdateTime *date.Time `json:"lastStartUpdateTime,omitempty"` - // LastEndUpdateTime - The last time for the integration runtime node update end. + // LastEndUpdateTime - READ-ONLY; The last time for the integration runtime node update end. LastEndUpdateTime *date.Time `json:"lastEndUpdateTime,omitempty"` - // IsActiveDispatcher - Indicates whether this node is the active dispatcher for integration runtime requests. + // IsActiveDispatcher - READ-ONLY; Indicates whether this node is the active dispatcher for integration runtime requests. IsActiveDispatcher *bool `json:"isActiveDispatcher,omitempty"` - // ConcurrentJobsLimit - Maximum concurrent jobs on the integration runtime node. + // ConcurrentJobsLimit - READ-ONLY; Maximum concurrent jobs on the integration runtime node. ConcurrentJobsLimit *int32 `json:"concurrentJobsLimit,omitempty"` - // MaxConcurrentJobs - The maximum concurrent jobs in this integration runtime. + // MaxConcurrentJobs - READ-ONLY; The maximum concurrent jobs in this integration runtime. MaxConcurrentJobs *int32 `json:"maxConcurrentJobs,omitempty"` } // MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntimeNode. func (shirn SelfHostedIntegrationRuntimeNode) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if shirn.NodeName != nil { - objectMap["nodeName"] = shirn.NodeName - } - if shirn.MachineName != nil { - objectMap["machineName"] = shirn.MachineName - } - if shirn.HostServiceURI != nil { - objectMap["hostServiceUri"] = shirn.HostServiceURI - } - if shirn.Status != "" { - objectMap["status"] = shirn.Status - } - if shirn.Capabilities != nil { - objectMap["capabilities"] = shirn.Capabilities - } - if shirn.VersionStatus != nil { - objectMap["versionStatus"] = shirn.VersionStatus - } - if shirn.Version != nil { - objectMap["version"] = shirn.Version - } - if shirn.RegisterTime != nil { - objectMap["registerTime"] = shirn.RegisterTime - } - if shirn.LastConnectTime != nil { - objectMap["lastConnectTime"] = shirn.LastConnectTime - } - if shirn.ExpiryTime != nil { - objectMap["expiryTime"] = shirn.ExpiryTime - } - if shirn.LastStartTime != nil { - objectMap["lastStartTime"] = shirn.LastStartTime - } - if shirn.LastStopTime != nil { - objectMap["lastStopTime"] = shirn.LastStopTime - } - if shirn.LastUpdateResult != "" { - objectMap["lastUpdateResult"] = shirn.LastUpdateResult - } - if shirn.LastStartUpdateTime != nil { - objectMap["lastStartUpdateTime"] = shirn.LastStartUpdateTime - } - if shirn.LastEndUpdateTime != nil { - objectMap["lastEndUpdateTime"] = shirn.LastEndUpdateTime - } - if shirn.IsActiveDispatcher != nil { - objectMap["isActiveDispatcher"] = shirn.IsActiveDispatcher - } - if shirn.ConcurrentJobsLimit != nil { - objectMap["concurrentJobsLimit"] = shirn.ConcurrentJobsLimit - } - if shirn.MaxConcurrentJobs != nil { - objectMap["maxConcurrentJobs"] = shirn.MaxConcurrentJobs - } return json.Marshal(objectMap) } @@ -121033,9 +120371,9 @@ type SelfHostedIntegrationRuntimeStatus struct { *SelfHostedIntegrationRuntimeStatusTypeProperties `json:"typeProperties,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // DataFactoryName - The data factory name which the integration runtime belong to. + // DataFactoryName - READ-ONLY; The data factory name which the integration runtime belong to. DataFactoryName *string `json:"dataFactoryName,omitempty"` - // State - The state of integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied' + // State - READ-ONLY; The state of integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied' State IntegrationRuntimeState `json:"state,omitempty"` // Type - Possible values include: 'TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus', 'TypeBasicIntegrationRuntimeStatusTypeSelfHosted', 'TypeBasicIntegrationRuntimeStatusTypeManaged' Type TypeBasicIntegrationRuntimeStatus `json:"type,omitempty"` @@ -121048,12 +120386,6 @@ func (shirs SelfHostedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { if shirs.SelfHostedIntegrationRuntimeStatusTypeProperties != nil { objectMap["typeProperties"] = shirs.SelfHostedIntegrationRuntimeStatusTypeProperties } - if shirs.DataFactoryName != nil { - objectMap["dataFactoryName"] = shirs.DataFactoryName - } - if shirs.State != "" { - objectMap["state"] = shirs.State - } if shirs.Type != "" { objectMap["type"] = shirs.Type } @@ -121148,91 +120480,49 @@ func (shirs *SelfHostedIntegrationRuntimeStatus) UnmarshalJSON(body []byte) erro // SelfHostedIntegrationRuntimeStatusTypeProperties self-hosted integration runtime status type properties. type SelfHostedIntegrationRuntimeStatusTypeProperties struct { - // CreateTime - The time at which the integration runtime was created, in ISO8601 format. + // CreateTime - READ-ONLY; The time at which the integration runtime was created, in ISO8601 format. CreateTime *date.Time `json:"createTime,omitempty"` - // TaskQueueID - The task queue id of the integration runtime. + // TaskQueueID - READ-ONLY; The task queue id of the integration runtime. TaskQueueID *string `json:"taskQueueId,omitempty"` - // InternalChannelEncryption - It is used to set the encryption mode for node-node communication channel (when more than 2 self-hosted integration runtime nodes exist). Possible values include: 'NotSet', 'SslEncrypted', 'NotEncrypted' + // InternalChannelEncryption - READ-ONLY; It is used to set the encryption mode for node-node communication channel (when more than 2 self-hosted integration runtime nodes exist). Possible values include: 'NotSet', 'SslEncrypted', 'NotEncrypted' InternalChannelEncryption IntegrationRuntimeInternalChannelEncryptionMode `json:"internalChannelEncryption,omitempty"` - // Version - Version of the integration runtime. + // Version - READ-ONLY; Version of the integration runtime. Version *string `json:"version,omitempty"` // Nodes - The list of nodes for this integration runtime. Nodes *[]SelfHostedIntegrationRuntimeNode `json:"nodes,omitempty"` - // ScheduledUpdateDate - The date at which the integration runtime will be scheduled to update, in ISO8601 format. + // ScheduledUpdateDate - READ-ONLY; The date at which the integration runtime will be scheduled to update, in ISO8601 format. ScheduledUpdateDate *date.Time `json:"scheduledUpdateDate,omitempty"` - // UpdateDelayOffset - The time in the date scheduled by service to update the integration runtime, e.g., PT03H is 3 hours + // UpdateDelayOffset - READ-ONLY; The time in the date scheduled by service to update the integration runtime, e.g., PT03H is 3 hours UpdateDelayOffset *string `json:"updateDelayOffset,omitempty"` - // LocalTimeZoneOffset - The local time zone offset in hours. + // LocalTimeZoneOffset - READ-ONLY; The local time zone offset in hours. LocalTimeZoneOffset *string `json:"localTimeZoneOffset,omitempty"` - // Capabilities - Object with additional information about integration runtime capabilities. + // Capabilities - READ-ONLY; Object with additional information about integration runtime capabilities. Capabilities map[string]*string `json:"capabilities"` - // ServiceUrls - The URLs for the services used in integration runtime backend service. + // ServiceUrls - READ-ONLY; The URLs for the services used in integration runtime backend service. ServiceUrls *[]string `json:"serviceUrls,omitempty"` - // AutoUpdate - Whether Self-hosted integration runtime auto update has been turned on. Possible values include: 'On', 'Off' + // AutoUpdate - READ-ONLY; Whether Self-hosted integration runtime auto update has been turned on. Possible values include: 'On', 'Off' AutoUpdate IntegrationRuntimeAutoUpdate `json:"autoUpdate,omitempty"` - // VersionStatus - Status of the integration runtime version. + // VersionStatus - READ-ONLY; Status of the integration runtime version. VersionStatus *string `json:"versionStatus,omitempty"` // Links - The list of linked integration runtimes that are created to share with this integration runtime. Links *[]LinkedIntegrationRuntime `json:"links,omitempty"` - // PushedVersion - The version that the integration runtime is going to update to. + // PushedVersion - READ-ONLY; The version that the integration runtime is going to update to. PushedVersion *string `json:"pushedVersion,omitempty"` - // LatestVersion - The latest version on download center. + // LatestVersion - READ-ONLY; The latest version on download center. LatestVersion *string `json:"latestVersion,omitempty"` - // AutoUpdateETA - The estimated time when the self-hosted integration runtime will be updated. + // AutoUpdateETA - READ-ONLY; The estimated time when the self-hosted integration runtime will be updated. AutoUpdateETA *date.Time `json:"autoUpdateETA,omitempty"` } // MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntimeStatusTypeProperties. func (shirstp SelfHostedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if shirstp.CreateTime != nil { - objectMap["createTime"] = shirstp.CreateTime - } - if shirstp.TaskQueueID != nil { - objectMap["taskQueueId"] = shirstp.TaskQueueID - } - if shirstp.InternalChannelEncryption != "" { - objectMap["internalChannelEncryption"] = shirstp.InternalChannelEncryption - } - if shirstp.Version != nil { - objectMap["version"] = shirstp.Version - } if shirstp.Nodes != nil { objectMap["nodes"] = shirstp.Nodes } - if shirstp.ScheduledUpdateDate != nil { - objectMap["scheduledUpdateDate"] = shirstp.ScheduledUpdateDate - } - if shirstp.UpdateDelayOffset != nil { - objectMap["updateDelayOffset"] = shirstp.UpdateDelayOffset - } - if shirstp.LocalTimeZoneOffset != nil { - objectMap["localTimeZoneOffset"] = shirstp.LocalTimeZoneOffset - } - if shirstp.Capabilities != nil { - objectMap["capabilities"] = shirstp.Capabilities - } - if shirstp.ServiceUrls != nil { - objectMap["serviceUrls"] = shirstp.ServiceUrls - } - if shirstp.AutoUpdate != "" { - objectMap["autoUpdate"] = shirstp.AutoUpdate - } - if shirstp.VersionStatus != nil { - objectMap["versionStatus"] = shirstp.VersionStatus - } if shirstp.Links != nil { objectMap["links"] = shirstp.Links } - if shirstp.PushedVersion != nil { - objectMap["pushedVersion"] = shirstp.PushedVersion - } - if shirstp.LatestVersion != nil { - objectMap["latestVersion"] = shirstp.LatestVersion - } - if shirstp.AutoUpdateETA != nil { - objectMap["autoUpdateETA"] = shirstp.AutoUpdateETA - } return json.Marshal(objectMap) } @@ -121276,7 +120566,7 @@ type ServiceNowLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -121963,7 +121253,7 @@ type ServiceNowObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -122259,11 +121549,6 @@ func (snod ServiceNowObjectDataset) AsFileShareDataset() (*FileShareDataset, boo return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for ServiceNowObjectDataset. func (snod ServiceNowObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -122879,7 +122164,7 @@ type SetVariableActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -123021,6 +122306,11 @@ func (sva SetVariableActivity) AsBasicExecutionActivity() (BasicExecutionActivit return nil, false } +// AsWebHookActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for SetVariableActivity. func (sva SetVariableActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -123036,6 +122326,11 @@ func (sva SetVariableActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for SetVariableActivity. func (sva SetVariableActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -123182,7 +122477,7 @@ type SftpServerLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -123871,7 +123166,7 @@ type ShopifyLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -124515,7 +123810,7 @@ type ShopifyObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -124811,11 +124106,6 @@ func (sod ShopifyObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for ShopifyObjectDataset. func (sod ShopifyObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -125429,7 +124719,7 @@ type SparkLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -126161,7 +125451,7 @@ type SparkObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -126457,11 +125747,6 @@ func (sod SparkObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for SparkObjectDataset. func (sod SparkObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -127790,7 +127075,7 @@ type SQLServerLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -128410,7 +127695,7 @@ type SQLServerStoredProcedureActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -128558,6 +127843,11 @@ func (ssspa SQLServerStoredProcedureActivity) AsBasicExecutionActivity() (BasicE return &ssspa, true } +// AsWebHookActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. func (ssspa SQLServerStoredProcedureActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -128573,6 +127863,11 @@ func (ssspa SQLServerStoredProcedureActivity) AsFilterActivity() (*FilterActivit return nil, false } +// AsValidationActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. func (ssspa SQLServerStoredProcedureActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -128757,7 +128052,7 @@ type SQLServerTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -129053,11 +128348,6 @@ func (sstd SQLServerTableDataset) AsFileShareDataset() (*FileShareDataset, bool) return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for SQLServerTableDataset. func (sstd SQLServerTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -129983,7 +129273,7 @@ type SquareLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -130649,7 +129939,7 @@ type SquareObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -130945,11 +130235,6 @@ func (sod SquareObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for SquareObjectDataset. func (sod SquareObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -131808,13 +131093,13 @@ type StoredProcedureParameter struct { // SubResource azure Data Factory nested resource, which belongs to a factory. type SubResource struct { - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` - // Etag - Etag identifies change in the resource. + // Etag - READ-ONLY; Etag identifies change in the resource. Etag *string `json:"etag,omitempty"` } @@ -131830,7 +131115,7 @@ type SybaseLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -132591,7 +131876,7 @@ type TeradataLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -133468,8 +132753,10 @@ type Trigger struct { AdditionalProperties map[string]interface{} `json:""` // Description - Trigger description. Description *string `json:"description,omitempty"` - // RuntimeState - Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' + // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` + // Annotations - List of tags that can be used for describing the trigger. + Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeTrigger', 'TypeRerunTumblingWindowTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' Type TypeBasicTrigger `json:"type,omitempty"` } @@ -133538,8 +132825,8 @@ func (t Trigger) MarshalJSON() ([]byte, error) { if t.Description != nil { objectMap["description"] = t.Description } - if t.RuntimeState != "" { - objectMap["runtimeState"] = t.RuntimeState + if t.Annotations != nil { + objectMap["annotations"] = t.Annotations } if t.Type != "" { objectMap["type"] = t.Type @@ -133634,6 +132921,15 @@ func (t *Trigger) UnmarshalJSON(body []byte) error { } t.RuntimeState = runtimeState } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + t.Annotations = &annotations + } case "type": if v != nil { var typeVar TypeBasicTrigger @@ -133922,13 +133218,13 @@ type TriggerResource struct { autorest.Response `json:"-"` // Properties - Properties of the trigger. Properties BasicTrigger `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` - // Etag - Etag identifies change in the resource. + // Etag - READ-ONLY; Etag identifies change in the resource. Etag *string `json:"etag,omitempty"` } @@ -133995,51 +133291,27 @@ func (tr *TriggerResource) UnmarshalJSON(body []byte) error { type TriggerRun struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // TriggerRunID - Trigger run id. + // TriggerRunID - READ-ONLY; Trigger run id. TriggerRunID *string `json:"triggerRunId,omitempty"` - // TriggerName - Trigger name. + // TriggerName - READ-ONLY; Trigger name. TriggerName *string `json:"triggerName,omitempty"` - // TriggerType - Trigger type. + // TriggerType - READ-ONLY; Trigger type. TriggerType *string `json:"triggerType,omitempty"` - // TriggerRunTimestamp - Trigger run start time. + // TriggerRunTimestamp - READ-ONLY; Trigger run start time. TriggerRunTimestamp *date.Time `json:"triggerRunTimestamp,omitempty"` - // Status - Trigger run status. Possible values include: 'TriggerRunStatusSucceeded', 'TriggerRunStatusFailed', 'TriggerRunStatusInprogress' + // Status - READ-ONLY; Trigger run status. Possible values include: 'TriggerRunStatusSucceeded', 'TriggerRunStatusFailed', 'TriggerRunStatusInprogress' Status TriggerRunStatus `json:"status,omitempty"` - // Message - Trigger error message. + // Message - READ-ONLY; Trigger error message. Message *string `json:"message,omitempty"` - // Properties - List of property name and value related to trigger run. Name, value pair depends on type of trigger. + // Properties - READ-ONLY; List of property name and value related to trigger run. Name, value pair depends on type of trigger. Properties map[string]*string `json:"properties"` - // TriggeredPipelines - List of pipeline name and run Id triggered by the trigger run. + // TriggeredPipelines - READ-ONLY; List of pipeline name and run Id triggered by the trigger run. TriggeredPipelines map[string]*string `json:"triggeredPipelines"` } // MarshalJSON is the custom marshaler for TriggerRun. func (tr TriggerRun) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if tr.TriggerRunID != nil { - objectMap["triggerRunId"] = tr.TriggerRunID - } - if tr.TriggerName != nil { - objectMap["triggerName"] = tr.TriggerName - } - if tr.TriggerType != nil { - objectMap["triggerType"] = tr.TriggerType - } - if tr.TriggerRunTimestamp != nil { - objectMap["triggerRunTimestamp"] = tr.TriggerRunTimestamp - } - if tr.Status != "" { - objectMap["status"] = tr.Status - } - if tr.Message != nil { - objectMap["message"] = tr.Message - } - if tr.Properties != nil { - objectMap["properties"] = tr.Properties - } - if tr.TriggeredPipelines != nil { - objectMap["triggeredPipelines"] = tr.TriggeredPipelines - } for k, v := range tr.AdditionalProperties { objectMap[k] = v } @@ -134164,7 +133436,7 @@ type TriggersStartFuture struct { // If the operation has not completed it will return an error. func (future *TriggersStartFuture) Result(client TriggersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggersStartFuture", "Result", future.Response(), "Polling failure") return @@ -134186,7 +133458,7 @@ type TriggersStopFuture struct { // If the operation has not completed it will return an error. func (future *TriggersStopFuture) Result(client TriggersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "datafactory.TriggersStopFuture", "Result", future.Response(), "Polling failure") return @@ -134210,8 +133482,10 @@ type TumblingWindowTrigger struct { AdditionalProperties map[string]interface{} `json:""` // Description - Trigger description. Description *string `json:"description,omitempty"` - // RuntimeState - Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' + // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` + // Annotations - List of tags that can be used for describing the trigger. + Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeTrigger', 'TypeRerunTumblingWindowTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobEventsTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' Type TypeBasicTrigger `json:"type,omitempty"` } @@ -134229,8 +133503,8 @@ func (twt TumblingWindowTrigger) MarshalJSON() ([]byte, error) { if twt.Description != nil { objectMap["description"] = twt.Description } - if twt.RuntimeState != "" { - objectMap["runtimeState"] = twt.RuntimeState + if twt.Annotations != nil { + objectMap["annotations"] = twt.Annotations } if twt.Type != "" { objectMap["type"] = twt.Type @@ -134343,6 +133617,15 @@ func (twt *TumblingWindowTrigger) UnmarshalJSON(body []byte) error { } twt.RuntimeState = runtimeState } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + twt.Annotations = &annotations + } case "type": if v != nil { var typeVar TypeBasicTrigger @@ -134540,7 +133823,7 @@ type UntilActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -134682,6 +133965,11 @@ func (ua UntilActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool return nil, false } +// AsWebHookActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for UntilActivity. func (ua UntilActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -134697,6 +133985,11 @@ func (ua UntilActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for UntilActivity. func (ua UntilActivity) AsUntilActivity() (*UntilActivity, bool) { return &ua, true @@ -134910,6 +134203,327 @@ type UserProperty struct { Value interface{} `json:"value,omitempty"` } +// ValidationActivity this activity verifies that an external resource exists. +type ValidationActivity struct { + // ValidationActivityTypeProperties - Validation activity properties. + *ValidationActivityTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ValidationActivity. +func (va ValidationActivity) MarshalJSON() ([]byte, error) { + va.Type = TypeValidation + objectMap := make(map[string]interface{}) + if va.ValidationActivityTypeProperties != nil { + objectMap["typeProperties"] = va.ValidationActivityTypeProperties + } + if va.Name != nil { + objectMap["name"] = va.Name + } + if va.Description != nil { + objectMap["description"] = va.Description + } + if va.DependsOn != nil { + objectMap["dependsOn"] = va.DependsOn + } + if va.UserProperties != nil { + objectMap["userProperties"] = va.UserProperties + } + if va.Type != "" { + objectMap["type"] = va.Type + } + for k, v := range va.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsAzureFunctionActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false +} + +// AsWebHookActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsValidationActivity() (*ValidationActivity, bool) { + return &va, true +} + +// AsUntilActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &va, true +} + +// AsActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsBasicActivity() (BasicActivity, bool) { + return &va, true +} + +// UnmarshalJSON is the custom unmarshaler for ValidationActivity struct. +func (va *ValidationActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var validationActivityTypeProperties ValidationActivityTypeProperties + err = json.Unmarshal(*v, &validationActivityTypeProperties) + if err != nil { + return err + } + va.ValidationActivityTypeProperties = &validationActivityTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if va.AdditionalProperties == nil { + va.AdditionalProperties = make(map[string]interface{}) + } + va.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + va.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + va.Description = &description + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + va.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + va.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + va.Type = typeVar + } + } + } + + return nil +} + +// ValidationActivityTypeProperties validation activity properties. +type ValidationActivityTypeProperties struct { + // Timeout - Specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + Timeout interface{} `json:"timeout,omitempty"` + // Sleep - A delay in seconds between validation attempts. If no value is specified, 10 seconds will be used as the default. Type: integer (or Expression with resultType integer). + Sleep interface{} `json:"sleep,omitempty"` + // MinimumSize - Can be used if dataset points to a file. The file must be greater than or equal in size to the value specified. Type: integer (or Expression with resultType integer). + MinimumSize interface{} `json:"minimumSize,omitempty"` + // ChildItems - Can be used if dataset points to a folder. If set to true, the folder must have at least one file. If set to false, the folder must be empty. Type: boolean (or Expression with resultType boolean). + ChildItems interface{} `json:"childItems,omitempty"` + // Dataset - Validation activity dataset reference. + Dataset *DatasetReference `json:"dataset,omitempty"` +} + // VariableSpecification definition of a single variable for a Pipeline. type VariableSpecification struct { // Type - Variable type. Possible values include: 'VariableTypeString', 'VariableTypeBool', 'VariableTypeArray' @@ -134930,7 +134544,7 @@ type VerticaLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -135923,7 +135537,7 @@ type VerticaTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -136219,11 +135833,6 @@ func (vtd VerticaTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for VerticaTableDataset. func (vtd VerticaTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -136416,7 +136025,7 @@ type WaitActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -136558,6 +136167,11 @@ func (wa WaitActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) return nil, false } +// AsWebHookActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for WaitActivity. func (wa WaitActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -136573,6 +136187,11 @@ func (wa WaitActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for WaitActivity. func (wa WaitActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -136723,7 +136342,7 @@ type WebActivity struct { DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` // UserProperties - Activity user properties. UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' Type TypeBasicActivity `json:"type,omitempty"` } @@ -136871,6 +136490,11 @@ func (wa WebActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) return &wa, true } +// AsWebHookActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + // AsAppendVariableActivity is the BasicActivity implementation for WebActivity. func (wa WebActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { return nil, false @@ -136886,6 +136510,11 @@ func (wa WebActivity) AsFilterActivity() (*FilterActivity, bool) { return nil, false } +// AsValidationActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + // AsUntilActivity is the BasicActivity implementation for WebActivity. func (wa WebActivity) AsUntilActivity() (*UntilActivity, bool) { return nil, false @@ -137317,6 +136946,329 @@ func (wcca *WebClientCertificateAuthentication) UnmarshalJSON(body []byte) error return nil } +// WebHookActivity webHook activity. +type WebHookActivity struct { + // WebHookActivityTypeProperties - WebHook activity properties. + *WebHookActivityTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeActivity', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for WebHookActivity. +func (wha WebHookActivity) MarshalJSON() ([]byte, error) { + wha.Type = TypeWebHook + objectMap := make(map[string]interface{}) + if wha.WebHookActivityTypeProperties != nil { + objectMap["typeProperties"] = wha.WebHookActivityTypeProperties + } + if wha.Name != nil { + objectMap["name"] = wha.Name + } + if wha.Description != nil { + objectMap["description"] = wha.Description + } + if wha.DependsOn != nil { + objectMap["dependsOn"] = wha.DependsOn + } + if wha.UserProperties != nil { + objectMap["userProperties"] = wha.UserProperties + } + if wha.Type != "" { + objectMap["type"] = wha.Type + } + for k, v := range wha.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsAzureFunctionActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false +} + +// AsWebHookActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return &wha, true +} + +// AsAppendVariableActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &wha, true +} + +// AsActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsBasicActivity() (BasicActivity, bool) { + return &wha, true +} + +// UnmarshalJSON is the custom unmarshaler for WebHookActivity struct. +func (wha *WebHookActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var webHookActivityTypeProperties WebHookActivityTypeProperties + err = json.Unmarshal(*v, &webHookActivityTypeProperties) + if err != nil { + return err + } + wha.WebHookActivityTypeProperties = &webHookActivityTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if wha.AdditionalProperties == nil { + wha.AdditionalProperties = make(map[string]interface{}) + } + wha.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + wha.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + wha.Description = &description + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + wha.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + wha.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + wha.Type = typeVar + } + } + } + + return nil +} + +// WebHookActivityTypeProperties webHook activity type properties. +type WebHookActivityTypeProperties struct { + // Method - Rest API method for target endpoint. + Method *string `json:"method,omitempty"` + // URL - WebHook activity target endpoint and path. Type: string (or Expression with resultType string). + URL interface{} `json:"url,omitempty"` + // Timeout - The timeout within which the webhook should be called back. If there is no value specified, it defaults to 10 minutes. Type: string. Pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + Timeout *string `json:"timeout,omitempty"` + // Headers - Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). + Headers interface{} `json:"headers,omitempty"` + // Body - Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). + Body interface{} `json:"body,omitempty"` + // Authentication - Authentication method used for calling the endpoint. + Authentication *WebActivityAuthentication `json:"authentication,omitempty"` +} + // WebLinkedService web linked service. type WebLinkedService struct { // TypeProperties - Web linked service properties. @@ -137329,7 +137281,7 @@ type WebLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -138396,7 +138348,7 @@ type WebTableDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -138692,11 +138644,6 @@ func (wtd WebTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for WebTableDataset. func (wtd WebTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -138895,7 +138842,7 @@ type XeroLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -139550,7 +139497,7 @@ type XeroObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -139846,11 +139793,6 @@ func (xod XeroObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for XeroObjectDataset. func (xod XeroObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false @@ -140464,7 +140406,7 @@ type ZohoLinkedService struct { Description *string `json:"description,omitempty"` // Parameters - Parameters for linked service. Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. + // Annotations - List of tags that can be used for describing the linked service. Annotations *[]interface{} `json:"annotations,omitempty"` // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage' Type TypeBasicLinkedService `json:"type,omitempty"` @@ -141108,7 +141050,7 @@ type ZohoObjectDataset struct { Annotations *[]interface{} `json:"annotations,omitempty"` // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreCosmosStructuredStreamFile', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' + // Type - Possible values include: 'TypeDataset', 'TypeGoogleAdWordsObject', 'TypeAzureDataExplorerTable', 'TypeOracleServiceCloudObject', 'TypeDynamicsAXResource', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeRestResource', 'TypeSQLServerTable', 'TypeSapOpenHubTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeCosmosDbMongoDbAPICollection', 'TypeMongoDbV2Collection', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeOffice365Table', 'TypeAzureBlobFSFile', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' Type TypeBasicDataset `json:"type,omitempty"` } @@ -141404,11 +141346,6 @@ func (zod ZohoObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { return nil, false } -// AsAzureDataLakeStoreCosmosStructuredStreamDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureDataLakeStoreCosmosStructuredStreamDataset() (*AzureDataLakeStoreCosmosStructuredStreamDataset, bool) { - return nil, false -} - // AsOffice365Dataset is the BasicDataset implementation for ZohoObjectDataset. func (zod ZohoObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { return nil, false diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/datalake/analytics/mgmt/2016-11-01/account/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/datalake/analytics/mgmt/2016-11-01/account/models.go index e3af1d957216..5307f51d4549 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/datalake/analytics/mgmt/2016-11-01/account/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/datalake/analytics/mgmt/2016-11-01/account/models.go @@ -204,7 +204,7 @@ type AccountsCreateFutureType struct { // If the operation has not completed it will return an error. func (future *AccountsCreateFutureType) Result(client AccountsClient) (dlaa DataLakeAnalyticsAccount, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsCreateFutureType", "Result", future.Response(), "Polling failure") return @@ -233,7 +233,7 @@ type AccountsDeleteFutureType struct { // If the operation has not completed it will return an error. func (future *AccountsDeleteFutureType) Result(client AccountsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsDeleteFutureType", "Result", future.Response(), "Polling failure") return @@ -256,7 +256,7 @@ type AccountsUpdateFutureType struct { // If the operation has not completed it will return an error. func (future *AccountsUpdateFutureType) Result(client AccountsClient) (dlaa DataLakeAnalyticsAccount, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsUpdateFutureType", "Result", future.Response(), "Polling failure") return @@ -480,15 +480,15 @@ func (asawap *AddStorageAccountWithAccountParameters) UnmarshalJSON(body []byte) // CapabilityInformation subscription-level properties and limits for Data Lake Analytics. type CapabilityInformation struct { autorest.Response `json:"-"` - // SubscriptionID - The subscription credentials that uniquely identifies the subscription. + // SubscriptionID - READ-ONLY; The subscription credentials that uniquely identifies the subscription. SubscriptionID *uuid.UUID `json:"subscriptionId,omitempty"` - // State - The subscription state. Possible values include: 'SubscriptionStateRegistered', 'SubscriptionStateSuspended', 'SubscriptionStateDeleted', 'SubscriptionStateUnregistered', 'SubscriptionStateWarned' + // State - READ-ONLY; The subscription state. Possible values include: 'SubscriptionStateRegistered', 'SubscriptionStateSuspended', 'SubscriptionStateDeleted', 'SubscriptionStateUnregistered', 'SubscriptionStateWarned' State SubscriptionState `json:"state,omitempty"` - // MaxAccountCount - The maximum supported number of accounts under this subscription. + // MaxAccountCount - READ-ONLY; The maximum supported number of accounts under this subscription. MaxAccountCount *int32 `json:"maxAccountCount,omitempty"` - // AccountCount - The current number of accounts under this subscription. + // AccountCount - READ-ONLY; The current number of accounts under this subscription. AccountCount *int32 `json:"accountCount,omitempty"` - // MigrationState - The Boolean value of true or false to indicate the maintenance state. + // MigrationState - READ-ONLY; The Boolean value of true or false to indicate the maintenance state. MigrationState *bool `json:"migrationState,omitempty"` } @@ -503,31 +503,19 @@ type CheckNameAvailabilityParameters struct { // ComputePolicy data Lake Analytics compute policy information. type ComputePolicy struct { autorest.Response `json:"-"` - // ComputePolicyProperties - The compute policy properties. + // ComputePolicyProperties - READ-ONLY; The compute policy properties. *ComputePolicyProperties `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for ComputePolicy. func (cp ComputePolicy) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if cp.ComputePolicyProperties != nil { - objectMap["properties"] = cp.ComputePolicyProperties - } - if cp.ID != nil { - objectMap["id"] = cp.ID - } - if cp.Name != nil { - objectMap["name"] = cp.Name - } - if cp.Type != nil { - objectMap["type"] = cp.Type - } return json.Marshal(objectMap) } @@ -585,9 +573,9 @@ func (cp *ComputePolicy) UnmarshalJSON(body []byte) error { // ComputePolicyListResult the list of compute policies in the account. type ComputePolicyListResult struct { autorest.Response `json:"-"` - // Value - The results of the list operation. + // Value - READ-ONLY; The results of the list operation. Value *[]ComputePolicy `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -730,13 +718,13 @@ func NewComputePolicyListResultPage(getNextPage func(context.Context, ComputePol // ComputePolicyProperties the compute policy properties. type ComputePolicyProperties struct { - // ObjectID - The AAD object identifier for the entity to create a policy for. + // ObjectID - READ-ONLY; The AAD object identifier for the entity to create a policy for. ObjectID *uuid.UUID `json:"objectId,omitempty"` - // ObjectType - The type of AAD object the object identifier refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' + // ObjectType - READ-ONLY; The type of AAD object the object identifier refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' ObjectType AADObjectType `json:"objectType,omitempty"` - // MaxDegreeOfParallelismPerJob - The maximum degree of parallelism per job this user can use to submit jobs. + // MaxDegreeOfParallelismPerJob - READ-ONLY; The maximum degree of parallelism per job this user can use to submit jobs. MaxDegreeOfParallelismPerJob *int32 `json:"maxDegreeOfParallelismPerJob,omitempty"` - // MinPriorityPerJob - The minimum priority per job this user can use to submit jobs. + // MinPriorityPerJob - READ-ONLY; The minimum priority per job this user can use to submit jobs. MinPriorityPerJob *int32 `json:"minPriorityPerJob,omitempty"` } @@ -1050,41 +1038,23 @@ type CreateOrUpdateFirewallRuleProperties struct { // with the named Data Lake Analytics account. type DataLakeAnalyticsAccount struct { autorest.Response `json:"-"` - // DataLakeAnalyticsAccountProperties - The properties defined by Data Lake Analytics all properties are specific to each resource provider. + // DataLakeAnalyticsAccountProperties - READ-ONLY; The properties defined by Data Lake Analytics all properties are specific to each resource provider. *DataLakeAnalyticsAccountProperties `json:"properties,omitempty"` - // ID - The resource identifer. + // ID - READ-ONLY; The resource identifer. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` - // Location - The resource location. + // Location - READ-ONLY; The resource location. Location *string `json:"location,omitempty"` - // Tags - The resource tags. + // Tags - READ-ONLY; The resource tags. Tags map[string]*string `json:"tags"` } // MarshalJSON is the custom marshaler for DataLakeAnalyticsAccount. func (dlaa DataLakeAnalyticsAccount) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if dlaa.DataLakeAnalyticsAccountProperties != nil { - objectMap["properties"] = dlaa.DataLakeAnalyticsAccountProperties - } - if dlaa.ID != nil { - objectMap["id"] = dlaa.ID - } - if dlaa.Name != nil { - objectMap["name"] = dlaa.Name - } - if dlaa.Type != nil { - objectMap["type"] = dlaa.Type - } - if dlaa.Location != nil { - objectMap["location"] = dlaa.Location - } - if dlaa.Tags != nil { - objectMap["tags"] = dlaa.Tags - } return json.Marshal(objectMap) } @@ -1160,41 +1130,23 @@ func (dlaa *DataLakeAnalyticsAccount) UnmarshalJSON(body []byte) error { // DataLakeAnalyticsAccountBasic a Data Lake Analytics account object, containing all information // associated with the named Data Lake Analytics account. type DataLakeAnalyticsAccountBasic struct { - // DataLakeAnalyticsAccountPropertiesBasic - The properties defined by Data Lake Analytics all properties are specific to each resource provider. + // DataLakeAnalyticsAccountPropertiesBasic - READ-ONLY; The properties defined by Data Lake Analytics all properties are specific to each resource provider. *DataLakeAnalyticsAccountPropertiesBasic `json:"properties,omitempty"` - // ID - The resource identifer. + // ID - READ-ONLY; The resource identifer. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` - // Location - The resource location. + // Location - READ-ONLY; The resource location. Location *string `json:"location,omitempty"` - // Tags - The resource tags. + // Tags - READ-ONLY; The resource tags. Tags map[string]*string `json:"tags"` } // MarshalJSON is the custom marshaler for DataLakeAnalyticsAccountBasic. func (dlaab DataLakeAnalyticsAccountBasic) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if dlaab.DataLakeAnalyticsAccountPropertiesBasic != nil { - objectMap["properties"] = dlaab.DataLakeAnalyticsAccountPropertiesBasic - } - if dlaab.ID != nil { - objectMap["id"] = dlaab.ID - } - if dlaab.Name != nil { - objectMap["name"] = dlaab.Name - } - if dlaab.Type != nil { - objectMap["type"] = dlaab.Type - } - if dlaab.Location != nil { - objectMap["location"] = dlaab.Location - } - if dlaab.Tags != nil { - objectMap["tags"] = dlaab.Tags - } return json.Marshal(objectMap) } @@ -1270,9 +1222,9 @@ func (dlaab *DataLakeAnalyticsAccountBasic) UnmarshalJSON(body []byte) error { // DataLakeAnalyticsAccountListResult data Lake Analytics account list information. type DataLakeAnalyticsAccountListResult struct { autorest.Response `json:"-"` - // Value - The results of the list operation. + // Value - READ-ONLY; The results of the list operation. Value *[]DataLakeAnalyticsAccountBasic `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1417,97 +1369,85 @@ func NewDataLakeAnalyticsAccountListResultPage(getNextPage func(context.Context, // DataLakeAnalyticsAccountProperties the account specific properties that are associated with an // underlying Data Lake Analytics account. Returned only when retrieving a specific account. type DataLakeAnalyticsAccountProperties struct { - // DefaultDataLakeStoreAccount - The default Data Lake Store account associated with this account. + // DefaultDataLakeStoreAccount - READ-ONLY; The default Data Lake Store account associated with this account. DefaultDataLakeStoreAccount *string `json:"defaultDataLakeStoreAccount,omitempty"` - // DataLakeStoreAccounts - The list of Data Lake Store accounts associated with this account. + // DataLakeStoreAccounts - READ-ONLY; The list of Data Lake Store accounts associated with this account. DataLakeStoreAccounts *[]DataLakeStoreAccountInformation `json:"dataLakeStoreAccounts,omitempty"` - // StorageAccounts - The list of Azure Blob Storage accounts associated with this account. + // StorageAccounts - READ-ONLY; The list of Azure Blob Storage accounts associated with this account. StorageAccounts *[]StorageAccountInformation `json:"storageAccounts,omitempty"` - // ComputePolicies - The list of compute policies associated with this account. + // ComputePolicies - READ-ONLY; The list of compute policies associated with this account. ComputePolicies *[]ComputePolicy `json:"computePolicies,omitempty"` - // FirewallRules - The list of firewall rules associated with this account. + // FirewallRules - READ-ONLY; The list of firewall rules associated with this account. FirewallRules *[]FirewallRule `json:"firewallRules,omitempty"` - // FirewallState - The current state of the IP address firewall for this account. Possible values include: 'FirewallStateEnabled', 'FirewallStateDisabled' + // FirewallState - READ-ONLY; The current state of the IP address firewall for this account. Possible values include: 'FirewallStateEnabled', 'FirewallStateDisabled' FirewallState FirewallState `json:"firewallState,omitempty"` - // FirewallAllowAzureIps - The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced. Possible values include: 'Enabled', 'Disabled' + // FirewallAllowAzureIps - READ-ONLY; The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced. Possible values include: 'Enabled', 'Disabled' FirewallAllowAzureIps FirewallAllowAzureIpsState `json:"firewallAllowAzureIps,omitempty"` - // NewTier - The commitment tier for the next month. Possible values include: 'Consumption', 'Commitment100AUHours', 'Commitment500AUHours', 'Commitment1000AUHours', 'Commitment5000AUHours', 'Commitment10000AUHours', 'Commitment50000AUHours', 'Commitment100000AUHours', 'Commitment500000AUHours' + // NewTier - READ-ONLY; The commitment tier for the next month. Possible values include: 'Consumption', 'Commitment100AUHours', 'Commitment500AUHours', 'Commitment1000AUHours', 'Commitment5000AUHours', 'Commitment10000AUHours', 'Commitment50000AUHours', 'Commitment100000AUHours', 'Commitment500000AUHours' NewTier TierType `json:"newTier,omitempty"` - // CurrentTier - The commitment tier in use for the current month. Possible values include: 'Consumption', 'Commitment100AUHours', 'Commitment500AUHours', 'Commitment1000AUHours', 'Commitment5000AUHours', 'Commitment10000AUHours', 'Commitment50000AUHours', 'Commitment100000AUHours', 'Commitment500000AUHours' + // CurrentTier - READ-ONLY; The commitment tier in use for the current month. Possible values include: 'Consumption', 'Commitment100AUHours', 'Commitment500AUHours', 'Commitment1000AUHours', 'Commitment5000AUHours', 'Commitment10000AUHours', 'Commitment50000AUHours', 'Commitment100000AUHours', 'Commitment500000AUHours' CurrentTier TierType `json:"currentTier,omitempty"` - // MaxJobCount - The maximum supported jobs running under the account at the same time. + // MaxJobCount - READ-ONLY; The maximum supported jobs running under the account at the same time. MaxJobCount *int32 `json:"maxJobCount,omitempty"` - // SystemMaxJobCount - The system defined maximum supported jobs running under the account at the same time, which restricts the maximum number of running jobs the user can set for the account. + // SystemMaxJobCount - READ-ONLY; The system defined maximum supported jobs running under the account at the same time, which restricts the maximum number of running jobs the user can set for the account. SystemMaxJobCount *int32 `json:"systemMaxJobCount,omitempty"` - // MaxDegreeOfParallelism - The maximum supported degree of parallelism for this account. + // MaxDegreeOfParallelism - READ-ONLY; The maximum supported degree of parallelism for this account. MaxDegreeOfParallelism *int32 `json:"maxDegreeOfParallelism,omitempty"` - // SystemMaxDegreeOfParallelism - The system defined maximum supported degree of parallelism for this account, which restricts the maximum value of parallelism the user can set for the account. + // SystemMaxDegreeOfParallelism - READ-ONLY; The system defined maximum supported degree of parallelism for this account, which restricts the maximum value of parallelism the user can set for the account. SystemMaxDegreeOfParallelism *int32 `json:"systemMaxDegreeOfParallelism,omitempty"` - // MaxDegreeOfParallelismPerJob - The maximum supported degree of parallelism per job for this account. + // MaxDegreeOfParallelismPerJob - READ-ONLY; The maximum supported degree of parallelism per job for this account. MaxDegreeOfParallelismPerJob *int32 `json:"maxDegreeOfParallelismPerJob,omitempty"` - // MinPriorityPerJob - The minimum supported priority per job for this account. + // MinPriorityPerJob - READ-ONLY; The minimum supported priority per job for this account. MinPriorityPerJob *int32 `json:"minPriorityPerJob,omitempty"` - // QueryStoreRetention - The number of days that job metadata is retained. + // QueryStoreRetention - READ-ONLY; The number of days that job metadata is retained. QueryStoreRetention *int32 `json:"queryStoreRetention,omitempty"` - // AccountID - The unique identifier associated with this Data Lake Analytics account. + // AccountID - READ-ONLY; The unique identifier associated with this Data Lake Analytics account. AccountID *uuid.UUID `json:"accountId,omitempty"` - // ProvisioningState - The provisioning status of the Data Lake Analytics account. Possible values include: 'Failed', 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted', 'Undeleting', 'Canceled' + // ProvisioningState - READ-ONLY; The provisioning status of the Data Lake Analytics account. Possible values include: 'Failed', 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted', 'Undeleting', 'Canceled' ProvisioningState DataLakeAnalyticsAccountStatus `json:"provisioningState,omitempty"` - // State - The state of the Data Lake Analytics account. Possible values include: 'Active', 'Suspended' + // State - READ-ONLY; The state of the Data Lake Analytics account. Possible values include: 'Active', 'Suspended' State DataLakeAnalyticsAccountState `json:"state,omitempty"` - // CreationTime - The account creation time. + // CreationTime - READ-ONLY; The account creation time. CreationTime *date.Time `json:"creationTime,omitempty"` - // LastModifiedTime - The account last modified time. + // LastModifiedTime - READ-ONLY; The account last modified time. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` - // Endpoint - The full CName endpoint for this account. + // Endpoint - READ-ONLY; The full CName endpoint for this account. Endpoint *string `json:"endpoint,omitempty"` } // DataLakeAnalyticsAccountPropertiesBasic the basic account specific properties that are associated with // an underlying Data Lake Analytics account. type DataLakeAnalyticsAccountPropertiesBasic struct { - // AccountID - The unique identifier associated with this Data Lake Analytics account. + // AccountID - READ-ONLY; The unique identifier associated with this Data Lake Analytics account. AccountID *uuid.UUID `json:"accountId,omitempty"` - // ProvisioningState - The provisioning status of the Data Lake Analytics account. Possible values include: 'Failed', 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted', 'Undeleting', 'Canceled' + // ProvisioningState - READ-ONLY; The provisioning status of the Data Lake Analytics account. Possible values include: 'Failed', 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted', 'Undeleting', 'Canceled' ProvisioningState DataLakeAnalyticsAccountStatus `json:"provisioningState,omitempty"` - // State - The state of the Data Lake Analytics account. Possible values include: 'Active', 'Suspended' + // State - READ-ONLY; The state of the Data Lake Analytics account. Possible values include: 'Active', 'Suspended' State DataLakeAnalyticsAccountState `json:"state,omitempty"` - // CreationTime - The account creation time. + // CreationTime - READ-ONLY; The account creation time. CreationTime *date.Time `json:"creationTime,omitempty"` - // LastModifiedTime - The account last modified time. + // LastModifiedTime - READ-ONLY; The account last modified time. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` - // Endpoint - The full CName endpoint for this account. + // Endpoint - READ-ONLY; The full CName endpoint for this account. Endpoint *string `json:"endpoint,omitempty"` } // DataLakeStoreAccountInformation data Lake Store account information. type DataLakeStoreAccountInformation struct { autorest.Response `json:"-"` - // DataLakeStoreAccountInformationProperties - The Data Lake Store account properties. + // DataLakeStoreAccountInformationProperties - READ-ONLY; The Data Lake Store account properties. *DataLakeStoreAccountInformationProperties `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for DataLakeStoreAccountInformation. func (dlsai DataLakeStoreAccountInformation) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if dlsai.DataLakeStoreAccountInformationProperties != nil { - objectMap["properties"] = dlsai.DataLakeStoreAccountInformationProperties - } - if dlsai.ID != nil { - objectMap["id"] = dlsai.ID - } - if dlsai.Name != nil { - objectMap["name"] = dlsai.Name - } - if dlsai.Type != nil { - objectMap["type"] = dlsai.Type - } return json.Marshal(objectMap) } @@ -1565,9 +1505,9 @@ func (dlsai *DataLakeStoreAccountInformation) UnmarshalJSON(body []byte) error { // DataLakeStoreAccountInformationListResult data Lake Store account list information. type DataLakeStoreAccountInformationListResult struct { autorest.Response `json:"-"` - // Value - The results of the list operation. + // Value - READ-ONLY; The results of the list operation. Value *[]DataLakeStoreAccountInformation `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1711,38 +1651,26 @@ func NewDataLakeStoreAccountInformationListResultPage(getNextPage func(context.C // DataLakeStoreAccountInformationProperties the Data Lake Store account properties. type DataLakeStoreAccountInformationProperties struct { - // Suffix - The optional suffix for the Data Lake Store account. + // Suffix - READ-ONLY; The optional suffix for the Data Lake Store account. Suffix *string `json:"suffix,omitempty"` } // FirewallRule data Lake Analytics firewall rule information. type FirewallRule struct { autorest.Response `json:"-"` - // FirewallRuleProperties - The firewall rule properties. + // FirewallRuleProperties - READ-ONLY; The firewall rule properties. *FirewallRuleProperties `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for FirewallRule. func (fr FirewallRule) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if fr.FirewallRuleProperties != nil { - objectMap["properties"] = fr.FirewallRuleProperties - } - if fr.ID != nil { - objectMap["id"] = fr.ID - } - if fr.Name != nil { - objectMap["name"] = fr.Name - } - if fr.Type != nil { - objectMap["type"] = fr.Type - } return json.Marshal(objectMap) } @@ -1800,9 +1728,9 @@ func (fr *FirewallRule) UnmarshalJSON(body []byte) error { // FirewallRuleListResult data Lake Analytics firewall rule list information. type FirewallRuleListResult struct { autorest.Response `json:"-"` - // Value - The results of the list operation. + // Value - READ-ONLY; The results of the list operation. Value *[]FirewallRule `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1945,92 +1873,77 @@ func NewFirewallRuleListResultPage(getNextPage func(context.Context, FirewallRul // FirewallRuleProperties the firewall rule properties. type FirewallRuleProperties struct { - // StartIPAddress - The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol. + // StartIPAddress - READ-ONLY; The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol. StartIPAddress *string `json:"startIpAddress,omitempty"` - // EndIPAddress - The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol. + // EndIPAddress - READ-ONLY; The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol. EndIPAddress *string `json:"endIpAddress,omitempty"` } // NameAvailabilityInformation data Lake Analytics account name availability result information. type NameAvailabilityInformation struct { autorest.Response `json:"-"` - // NameAvailable - The Boolean value of true or false to indicate whether the Data Lake Analytics account name is available or not. + // NameAvailable - READ-ONLY; The Boolean value of true or false to indicate whether the Data Lake Analytics account name is available or not. NameAvailable *bool `json:"nameAvailable,omitempty"` - // Reason - The reason why the Data Lake Analytics account name is not available, if nameAvailable is false. + // Reason - READ-ONLY; The reason why the Data Lake Analytics account name is not available, if nameAvailable is false. Reason *string `json:"reason,omitempty"` - // Message - The message describing why the Data Lake Analytics account name is not available, if nameAvailable is false. + // Message - READ-ONLY; The message describing why the Data Lake Analytics account name is not available, if nameAvailable is false. Message *string `json:"message,omitempty"` } // Operation an available operation for Data Lake Analytics. type Operation struct { - // Name - The name of the operation. + // Name - READ-ONLY; The name of the operation. Name *string `json:"name,omitempty"` - // Display - The display information for the operation. + // Display - READ-ONLY; The display information for the operation. Display *OperationDisplay `json:"display,omitempty"` - // Origin - The intended executor of the operation. Possible values include: 'OperationOriginUser', 'OperationOriginSystem', 'OperationOriginUsersystem' + // Origin - READ-ONLY; The intended executor of the operation. Possible values include: 'OperationOriginUser', 'OperationOriginSystem', 'OperationOriginUsersystem' Origin OperationOrigin `json:"origin,omitempty"` } // OperationDisplay the display information for a particular operation. type OperationDisplay struct { - // Provider - The resource provider of the operation. + // Provider - READ-ONLY; The resource provider of the operation. Provider *string `json:"provider,omitempty"` - // Resource - The resource type of the operation. + // Resource - READ-ONLY; The resource type of the operation. Resource *string `json:"resource,omitempty"` - // Operation - A friendly name of the operation. + // Operation - READ-ONLY; A friendly name of the operation. Operation *string `json:"operation,omitempty"` - // Description - A friendly description of the operation. + // Description - READ-ONLY; A friendly description of the operation. Description *string `json:"description,omitempty"` } // OperationListResult the list of available operations for Data Lake Analytics. type OperationListResult struct { autorest.Response `json:"-"` - // Value - The results of the list operation. + // Value - READ-ONLY; The results of the list operation. Value *[]Operation `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } // Resource the resource model definition. type Resource struct { - // ID - The resource identifer. + // ID - READ-ONLY; The resource identifer. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` - // Location - The resource location. + // Location - READ-ONLY; The resource location. Location *string `json:"location,omitempty"` - // Tags - The resource tags. + // Tags - READ-ONLY; The resource tags. Tags map[string]*string `json:"tags"` } // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } - if r.Location != nil { - objectMap["location"] = r.Location - } - if r.Tags != nil { - objectMap["tags"] = r.Tags - } return json.Marshal(objectMap) } // SasTokenInformation SAS token information. type SasTokenInformation struct { - // AccessToken - The access token for the associated Azure Storage Container. + // AccessToken - READ-ONLY; The access token for the associated Azure Storage Container. AccessToken *string `json:"accessToken,omitempty"` } @@ -2038,9 +1951,9 @@ type SasTokenInformation struct { // associated SAS token for connection use. type SasTokenInformationListResult struct { autorest.Response `json:"-"` - // Value - The results of the list operation. + // Value - READ-ONLY; The results of the list operation. Value *[]SasTokenInformation `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -2185,31 +2098,19 @@ func NewSasTokenInformationListResultPage(getNextPage func(context.Context, SasT // StorageAccountInformation azure Storage account information. type StorageAccountInformation struct { autorest.Response `json:"-"` - // StorageAccountInformationProperties - The Azure Storage account properties. + // StorageAccountInformationProperties - READ-ONLY; The Azure Storage account properties. *StorageAccountInformationProperties `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for StorageAccountInformation. func (sai StorageAccountInformation) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if sai.StorageAccountInformationProperties != nil { - objectMap["properties"] = sai.StorageAccountInformationProperties - } - if sai.ID != nil { - objectMap["id"] = sai.ID - } - if sai.Name != nil { - objectMap["name"] = sai.Name - } - if sai.Type != nil { - objectMap["type"] = sai.Type - } return json.Marshal(objectMap) } @@ -2267,9 +2168,9 @@ func (sai *StorageAccountInformation) UnmarshalJSON(body []byte) error { // StorageAccountInformationListResult azure Storage account list information. type StorageAccountInformationListResult struct { autorest.Response `json:"-"` - // Value - The results of the list operation. + // Value - READ-ONLY; The results of the list operation. Value *[]StorageAccountInformation `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -2413,38 +2314,26 @@ func NewStorageAccountInformationListResultPage(getNextPage func(context.Context // StorageAccountInformationProperties the Azure Storage account properties. type StorageAccountInformationProperties struct { - // Suffix - The optional suffix for the storage account. + // Suffix - READ-ONLY; The optional suffix for the storage account. Suffix *string `json:"suffix,omitempty"` } // StorageContainer azure Storage blob container information. type StorageContainer struct { autorest.Response `json:"-"` - // StorageContainerProperties - The properties of the blob container. + // StorageContainerProperties - READ-ONLY; The properties of the blob container. *StorageContainerProperties `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for StorageContainer. func (sc StorageContainer) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if sc.StorageContainerProperties != nil { - objectMap["properties"] = sc.StorageContainerProperties - } - if sc.ID != nil { - objectMap["id"] = sc.ID - } - if sc.Name != nil { - objectMap["name"] = sc.Name - } - if sc.Type != nil { - objectMap["type"] = sc.Type - } return json.Marshal(objectMap) } @@ -2503,9 +2392,9 @@ func (sc *StorageContainer) UnmarshalJSON(body []byte) error { // the Data Lake Analytics account. type StorageContainerListResult struct { autorest.Response `json:"-"` - // Value - The results of the list operation. + // Value - READ-ONLY; The results of the list operation. Value *[]StorageContainer `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -2648,17 +2537,17 @@ func NewStorageContainerListResultPage(getNextPage func(context.Context, Storage // StorageContainerProperties azure Storage blob container properties information. type StorageContainerProperties struct { - // LastModifiedTime - The last modified time of the blob container. + // LastModifiedTime - READ-ONLY; The last modified time of the blob container. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` } // SubResource the resource model definition for a nested resource. type SubResource struct { - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/datalake/store/2016-11-01/filesystem/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/datalake/store/2016-11-01/filesystem/models.go index 55d74882b1f7..5db20eb300c9 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/datalake/store/2016-11-01/filesystem/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/datalake/store/2016-11-01/filesystem/models.go @@ -133,7 +133,7 @@ type ACLStatus struct { Owner *string `json:"owner,omitempty"` // Permission - The octal representation of the unnamed user, mask and other permissions. Permission *string `json:"permission,omitempty"` - // StickyBit - the indicator of whether the sticky bit is on or off. + // StickyBit - READ-ONLY; the indicator of whether the sticky bit is on or off. StickyBit *bool `json:"stickyBit,omitempty"` } @@ -147,9 +147,9 @@ type ACLStatusResult struct { // AdlsAccessControlException a WebHDFS exception thrown indicating that access is denied due to // insufficient permissions. Thrown when a 403 error response code is returned (forbidden). type AdlsAccessControlException struct { - // JavaClassName - the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. + // JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. JavaClassName *string `json:"javaClassName,omitempty"` - // Message - the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. + // Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. Message *string `json:"message,omitempty"` // Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException' Exception Exception `json:"exception,omitempty"` @@ -159,12 +159,6 @@ type AdlsAccessControlException struct { func (aace AdlsAccessControlException) MarshalJSON() ([]byte, error) { aace.Exception = ExceptionAccessControlException objectMap := make(map[string]interface{}) - if aace.JavaClassName != nil { - objectMap["javaClassName"] = aace.JavaClassName - } - if aace.Message != nil { - objectMap["message"] = aace.Message - } if aace.Exception != "" { objectMap["exception"] = aace.Exception } @@ -234,9 +228,9 @@ func (aace AdlsAccessControlException) AsBasicAdlsRemoteException() (BasicAdlsRe // AdlsBadOffsetException a WebHDFS exception thrown indicating the append or read is from a bad offset. // Thrown when a 400 error response code is returned for append and open operations (Bad request). type AdlsBadOffsetException struct { - // JavaClassName - the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. + // JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. JavaClassName *string `json:"javaClassName,omitempty"` - // Message - the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. + // Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. Message *string `json:"message,omitempty"` // Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException' Exception Exception `json:"exception,omitempty"` @@ -246,12 +240,6 @@ type AdlsBadOffsetException struct { func (aboe AdlsBadOffsetException) MarshalJSON() ([]byte, error) { aboe.Exception = ExceptionBadOffsetException objectMap := make(map[string]interface{}) - if aboe.JavaClassName != nil { - objectMap["javaClassName"] = aboe.JavaClassName - } - if aboe.Message != nil { - objectMap["message"] = aboe.Message - } if aboe.Exception != "" { objectMap["exception"] = aboe.Exception } @@ -320,7 +308,7 @@ func (aboe AdlsBadOffsetException) AsBasicAdlsRemoteException() (BasicAdlsRemote // AdlsError data Lake Store filesystem error containing a specific WebHDFS exception. type AdlsError struct { - // RemoteException - the object representing the actual WebHDFS exception being returned. + // RemoteException - READ-ONLY; the object representing the actual WebHDFS exception being returned. RemoteException BasicAdlsRemoteException `json:"remoteException,omitempty"` } @@ -350,9 +338,9 @@ func (ae *AdlsError) UnmarshalJSON(body []byte) error { // AdlsFileAlreadyExistsException a WebHDFS exception thrown indicating the file or folder already exists. // Thrown when a 403 error response code is returned (forbidden). type AdlsFileAlreadyExistsException struct { - // JavaClassName - the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. + // JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. JavaClassName *string `json:"javaClassName,omitempty"` - // Message - the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. + // Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. Message *string `json:"message,omitempty"` // Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException' Exception Exception `json:"exception,omitempty"` @@ -362,12 +350,6 @@ type AdlsFileAlreadyExistsException struct { func (afaee AdlsFileAlreadyExistsException) MarshalJSON() ([]byte, error) { afaee.Exception = ExceptionFileAlreadyExistsException objectMap := make(map[string]interface{}) - if afaee.JavaClassName != nil { - objectMap["javaClassName"] = afaee.JavaClassName - } - if afaee.Message != nil { - objectMap["message"] = afaee.Message - } if afaee.Exception != "" { objectMap["exception"] = afaee.Exception } @@ -437,9 +419,9 @@ func (afaee AdlsFileAlreadyExistsException) AsBasicAdlsRemoteException() (BasicA // AdlsFileNotFoundException a WebHDFS exception thrown indicating the file or folder could not be found. // Thrown when a 404 error response code is returned (not found). type AdlsFileNotFoundException struct { - // JavaClassName - the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. + // JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. JavaClassName *string `json:"javaClassName,omitempty"` - // Message - the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. + // Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. Message *string `json:"message,omitempty"` // Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException' Exception Exception `json:"exception,omitempty"` @@ -449,12 +431,6 @@ type AdlsFileNotFoundException struct { func (afnfe AdlsFileNotFoundException) MarshalJSON() ([]byte, error) { afnfe.Exception = ExceptionFileNotFoundException objectMap := make(map[string]interface{}) - if afnfe.JavaClassName != nil { - objectMap["javaClassName"] = afnfe.JavaClassName - } - if afnfe.Message != nil { - objectMap["message"] = afnfe.Message - } if afnfe.Exception != "" { objectMap["exception"] = afnfe.Exception } @@ -524,9 +500,9 @@ func (afnfe AdlsFileNotFoundException) AsBasicAdlsRemoteException() (BasicAdlsRe // AdlsIllegalArgumentException a WebHDFS exception thrown indicating that one more arguments is incorrect. // Thrown when a 400 error response code is returned (bad request). type AdlsIllegalArgumentException struct { - // JavaClassName - the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. + // JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. JavaClassName *string `json:"javaClassName,omitempty"` - // Message - the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. + // Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. Message *string `json:"message,omitempty"` // Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException' Exception Exception `json:"exception,omitempty"` @@ -536,12 +512,6 @@ type AdlsIllegalArgumentException struct { func (aiae AdlsIllegalArgumentException) MarshalJSON() ([]byte, error) { aiae.Exception = ExceptionIllegalArgumentException objectMap := make(map[string]interface{}) - if aiae.JavaClassName != nil { - objectMap["javaClassName"] = aiae.JavaClassName - } - if aiae.Message != nil { - objectMap["message"] = aiae.Message - } if aiae.Exception != "" { objectMap["exception"] = aiae.Exception } @@ -611,9 +581,9 @@ func (aiae AdlsIllegalArgumentException) AsBasicAdlsRemoteException() (BasicAdls // AdlsIOException a WebHDFS exception thrown indicating there was an IO (read or write) error. Thrown when // a 403 error response code is returned (forbidden). type AdlsIOException struct { - // JavaClassName - the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. + // JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. JavaClassName *string `json:"javaClassName,omitempty"` - // Message - the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. + // Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. Message *string `json:"message,omitempty"` // Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException' Exception Exception `json:"exception,omitempty"` @@ -623,12 +593,6 @@ type AdlsIOException struct { func (aie AdlsIOException) MarshalJSON() ([]byte, error) { aie.Exception = ExceptionIOException objectMap := make(map[string]interface{}) - if aie.JavaClassName != nil { - objectMap["javaClassName"] = aie.JavaClassName - } - if aie.Message != nil { - objectMap["message"] = aie.Message - } if aie.Exception != "" { objectMap["exception"] = aie.Exception } @@ -714,9 +678,9 @@ type BasicAdlsRemoteException interface { // AdlsRemoteException data Lake Store filesystem exception based on the WebHDFS definition for // RemoteExceptions. This is a WebHDFS 'catch all' exception type AdlsRemoteException struct { - // JavaClassName - the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. + // JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. JavaClassName *string `json:"javaClassName,omitempty"` - // Message - the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. + // Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. Message *string `json:"message,omitempty"` // Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException' Exception Exception `json:"exception,omitempty"` @@ -799,12 +763,6 @@ func unmarshalBasicAdlsRemoteExceptionArray(body []byte) ([]BasicAdlsRemoteExcep func (are AdlsRemoteException) MarshalJSON() ([]byte, error) { are.Exception = ExceptionAdlsRemoteException objectMap := make(map[string]interface{}) - if are.JavaClassName != nil { - objectMap["javaClassName"] = are.JavaClassName - } - if are.Message != nil { - objectMap["message"] = are.Message - } if are.Exception != "" { objectMap["exception"] = are.Exception } @@ -874,9 +832,9 @@ func (are AdlsRemoteException) AsBasicAdlsRemoteException() (BasicAdlsRemoteExce // AdlsRuntimeException a WebHDFS exception thrown when an unexpected error occurs during an operation. // Thrown when a 500 error response code is returned (Internal server error). type AdlsRuntimeException struct { - // JavaClassName - the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. + // JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. JavaClassName *string `json:"javaClassName,omitempty"` - // Message - the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. + // Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. Message *string `json:"message,omitempty"` // Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException' Exception Exception `json:"exception,omitempty"` @@ -886,12 +844,6 @@ type AdlsRuntimeException struct { func (are AdlsRuntimeException) MarshalJSON() ([]byte, error) { are.Exception = ExceptionRuntimeException objectMap := make(map[string]interface{}) - if are.JavaClassName != nil { - objectMap["javaClassName"] = are.JavaClassName - } - if are.Message != nil { - objectMap["message"] = are.Message - } if are.Exception != "" { objectMap["exception"] = are.Exception } @@ -961,9 +913,9 @@ func (are AdlsRuntimeException) AsBasicAdlsRemoteException() (BasicAdlsRemoteExc // AdlsSecurityException a WebHDFS exception thrown indicating that access is denied. Thrown when a 401 // error response code is returned (Unauthorized). type AdlsSecurityException struct { - // JavaClassName - the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. + // JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. JavaClassName *string `json:"javaClassName,omitempty"` - // Message - the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. + // Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. Message *string `json:"message,omitempty"` // Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException' Exception Exception `json:"exception,omitempty"` @@ -973,12 +925,6 @@ type AdlsSecurityException struct { func (ase AdlsSecurityException) MarshalJSON() ([]byte, error) { ase.Exception = ExceptionSecurityException objectMap := make(map[string]interface{}) - if ase.JavaClassName != nil { - objectMap["javaClassName"] = ase.JavaClassName - } - if ase.Message != nil { - objectMap["message"] = ase.Message - } if ase.Exception != "" { objectMap["exception"] = ase.Exception } @@ -1048,9 +994,9 @@ func (ase AdlsSecurityException) AsBasicAdlsRemoteException() (BasicAdlsRemoteEx // AdlsThrottledException a WebHDFS exception thrown indicating that the request is being throttled. // Reducing the number of requests or request size helps to mitigate this error. type AdlsThrottledException struct { - // JavaClassName - the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. + // JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. JavaClassName *string `json:"javaClassName,omitempty"` - // Message - the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. + // Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. Message *string `json:"message,omitempty"` // Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException' Exception Exception `json:"exception,omitempty"` @@ -1060,12 +1006,6 @@ type AdlsThrottledException struct { func (ate AdlsThrottledException) MarshalJSON() ([]byte, error) { ate.Exception = ExceptionThrottledException objectMap := make(map[string]interface{}) - if ate.JavaClassName != nil { - objectMap["javaClassName"] = ate.JavaClassName - } - if ate.Message != nil { - objectMap["message"] = ate.Message - } if ate.Exception != "" { objectMap["exception"] = ate.Exception } @@ -1135,9 +1075,9 @@ func (ate AdlsThrottledException) AsBasicAdlsRemoteException() (BasicAdlsRemoteE // AdlsUnsupportedOperationException a WebHDFS exception thrown indicating that the requested operation is // not supported. Thrown when a 400 error response code is returned (bad request). type AdlsUnsupportedOperationException struct { - // JavaClassName - the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. + // JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'. JavaClassName *string `json:"javaClassName,omitempty"` - // Message - the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. + // Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. Message *string `json:"message,omitempty"` // Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException' Exception Exception `json:"exception,omitempty"` @@ -1147,12 +1087,6 @@ type AdlsUnsupportedOperationException struct { func (auoe AdlsUnsupportedOperationException) MarshalJSON() ([]byte, error) { auoe.Exception = ExceptionUnsupportedOperationException objectMap := make(map[string]interface{}) - if auoe.JavaClassName != nil { - objectMap["javaClassName"] = auoe.JavaClassName - } - if auoe.Message != nil { - objectMap["message"] = auoe.Message - } if auoe.Exception != "" { objectMap["exception"] = auoe.Exception } @@ -1221,73 +1155,73 @@ func (auoe AdlsUnsupportedOperationException) AsBasicAdlsRemoteException() (Basi // ContentSummary data Lake Store content summary information type ContentSummary struct { - // DirectoryCount - the number of directories. + // DirectoryCount - READ-ONLY; the number of directories. DirectoryCount *int64 `json:"directoryCount,omitempty"` - // FileCount - the number of files. + // FileCount - READ-ONLY; the number of files. FileCount *int64 `json:"fileCount,omitempty"` - // Length - the number of bytes used by the content. + // Length - READ-ONLY; the number of bytes used by the content. Length *int64 `json:"length,omitempty"` - // SpaceConsumed - the disk space consumed by the content. + // SpaceConsumed - READ-ONLY; the disk space consumed by the content. SpaceConsumed *int64 `json:"spaceConsumed,omitempty"` } // ContentSummaryResult data Lake Store filesystem content summary information response. type ContentSummaryResult struct { autorest.Response `json:"-"` - // ContentSummary - the content summary for the specified path + // ContentSummary - READ-ONLY; the content summary for the specified path ContentSummary *ContentSummary `json:"contentSummary,omitempty"` } // FileOperationResult the result of the request or operation. type FileOperationResult struct { autorest.Response `json:"-"` - // OperationResult - the result of the operation or request. + // OperationResult - READ-ONLY; the result of the operation or request. OperationResult *bool `json:"boolean,omitempty"` } // FileStatuses data Lake Store file status list information. type FileStatuses struct { - // FileStatus - the object containing the list of properties of the files. + // FileStatus - READ-ONLY; the object containing the list of properties of the files. FileStatus *[]FileStatusProperties `json:"fileStatus,omitempty"` } // FileStatusesResult data Lake Store filesystem file status list information response. type FileStatusesResult struct { autorest.Response `json:"-"` - // FileStatuses - the object representing the list of file statuses. + // FileStatuses - READ-ONLY; the object representing the list of file statuses. FileStatuses *FileStatuses `json:"fileStatuses,omitempty"` } // FileStatusProperties data Lake Store file or directory information. type FileStatusProperties struct { - // AccessTime - the last access time as ticks since the epoch. + // AccessTime - READ-ONLY; the last access time as ticks since the epoch. AccessTime *int64 `json:"accessTime,omitempty"` - // BlockSize - the block size for the file. + // BlockSize - READ-ONLY; the block size for the file. BlockSize *int64 `json:"blockSize,omitempty"` - // ExpirationTime - Gets the expiration time, if any, as ticks since the epoch. If the value is 0 or DateTime.MaxValue there is no expiration. + // ExpirationTime - READ-ONLY; Gets the expiration time, if any, as ticks since the epoch. If the value is 0 or DateTime.MaxValue there is no expiration. ExpirationTime *int64 `json:"msExpirationTime,omitempty"` - // Group - the group owner. + // Group - READ-ONLY; the group owner. Group *string `json:"group,omitempty"` - // Length - the number of bytes in a file. + // Length - READ-ONLY; the number of bytes in a file. Length *int64 `json:"length,omitempty"` - // ModificationTime - the modification time as ticks since the epoch. + // ModificationTime - READ-ONLY; the modification time as ticks since the epoch. ModificationTime *int64 `json:"modificationTime,omitempty"` - // Owner - the user who is the owner. + // Owner - READ-ONLY; the user who is the owner. Owner *string `json:"owner,omitempty"` - // PathSuffix - the path suffix. + // PathSuffix - READ-ONLY; the path suffix. PathSuffix *string `json:"pathSuffix,omitempty"` - // Permission - the permission represented as an string. + // Permission - READ-ONLY; the permission represented as an string. Permission *string `json:"permission,omitempty"` - // Type - the type of the path object. Possible values include: 'FILE', 'DIRECTORY' + // Type - READ-ONLY; the type of the path object. Possible values include: 'FILE', 'DIRECTORY' Type FileType `json:"type,omitempty"` - // ACLBit - flag to indicate if extended acls are enabled + // ACLBit - READ-ONLY; flag to indicate if extended acls are enabled ACLBit *bool `json:"aclBit,omitempty"` } // FileStatusResult data Lake Store filesystem file status information response. type FileStatusResult struct { autorest.Response `json:"-"` - // FileStatus - the file status object associated with the specified path. + // FileStatus - READ-ONLY; the file status object associated with the specified path. FileStatus *FileStatusProperties `json:"fileStatus,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/datalake/store/mgmt/2016-11-01/account/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/datalake/store/mgmt/2016-11-01/account/models.go index 36f61affa143..f916785776af 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/datalake/store/mgmt/2016-11-01/account/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/datalake/store/mgmt/2016-11-01/account/models.go @@ -243,7 +243,7 @@ type AccountsCreateFutureType struct { // If the operation has not completed it will return an error. func (future *AccountsCreateFutureType) Result(client AccountsClient) (dlsa DataLakeStoreAccount, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsCreateFutureType", "Result", future.Response(), "Polling failure") return @@ -272,7 +272,7 @@ type AccountsDeleteFutureType struct { // If the operation has not completed it will return an error. func (future *AccountsDeleteFutureType) Result(client AccountsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsDeleteFutureType", "Result", future.Response(), "Polling failure") return @@ -295,7 +295,7 @@ type AccountsUpdateFutureType struct { // If the operation has not completed it will return an error. func (future *AccountsUpdateFutureType) Result(client AccountsClient) (dlsa DataLakeStoreAccount, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "account.AccountsUpdateFutureType", "Result", future.Response(), "Polling failure") return @@ -317,15 +317,15 @@ func (future *AccountsUpdateFutureType) Result(client AccountsClient) (dlsa Data // CapabilityInformation subscription-level properties and limits for Data Lake Store. type CapabilityInformation struct { autorest.Response `json:"-"` - // SubscriptionID - The subscription credentials that uniquely identifies the subscription. + // SubscriptionID - READ-ONLY; The subscription credentials that uniquely identifies the subscription. SubscriptionID *uuid.UUID `json:"subscriptionId,omitempty"` - // State - The subscription state. Possible values include: 'SubscriptionStateRegistered', 'SubscriptionStateSuspended', 'SubscriptionStateDeleted', 'SubscriptionStateUnregistered', 'SubscriptionStateWarned' + // State - READ-ONLY; The subscription state. Possible values include: 'SubscriptionStateRegistered', 'SubscriptionStateSuspended', 'SubscriptionStateDeleted', 'SubscriptionStateUnregistered', 'SubscriptionStateWarned' State SubscriptionState `json:"state,omitempty"` - // MaxAccountCount - The maximum supported number of accounts under this subscription. + // MaxAccountCount - READ-ONLY; The maximum supported number of accounts under this subscription. MaxAccountCount *int32 `json:"maxAccountCount,omitempty"` - // AccountCount - The current number of accounts under this subscription. + // AccountCount - READ-ONLY; The current number of accounts under this subscription. AccountCount *int32 `json:"accountCount,omitempty"` - // MigrationState - The Boolean value of true or false to indicate the maintenance state. + // MigrationState - READ-ONLY; The Boolean value of true or false to indicate the maintenance state. MigrationState *bool `json:"migrationState,omitempty"` } @@ -747,46 +747,25 @@ func (cvnrwap *CreateVirtualNetworkRuleWithAccountParameters) UnmarshalJSON(body // DataLakeStoreAccount data Lake Store account information. type DataLakeStoreAccount struct { autorest.Response `json:"-"` - // Identity - The Key Vault encryption identity, if any. + // Identity - READ-ONLY; The Key Vault encryption identity, if any. Identity *EncryptionIdentity `json:"identity,omitempty"` - // DataLakeStoreAccountProperties - The Data Lake Store account properties. + // DataLakeStoreAccountProperties - READ-ONLY; The Data Lake Store account properties. *DataLakeStoreAccountProperties `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` - // Location - The resource location. + // Location - READ-ONLY; The resource location. Location *string `json:"location,omitempty"` - // Tags - The resource tags. + // Tags - READ-ONLY; The resource tags. Tags map[string]*string `json:"tags"` } // MarshalJSON is the custom marshaler for DataLakeStoreAccount. func (dlsa DataLakeStoreAccount) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if dlsa.Identity != nil { - objectMap["identity"] = dlsa.Identity - } - if dlsa.DataLakeStoreAccountProperties != nil { - objectMap["properties"] = dlsa.DataLakeStoreAccountProperties - } - if dlsa.ID != nil { - objectMap["id"] = dlsa.ID - } - if dlsa.Name != nil { - objectMap["name"] = dlsa.Name - } - if dlsa.Type != nil { - objectMap["type"] = dlsa.Type - } - if dlsa.Location != nil { - objectMap["location"] = dlsa.Location - } - if dlsa.Tags != nil { - objectMap["tags"] = dlsa.Tags - } return json.Marshal(objectMap) } @@ -870,41 +849,23 @@ func (dlsa *DataLakeStoreAccount) UnmarshalJSON(body []byte) error { // DataLakeStoreAccountBasic basic Data Lake Store account information, returned on list calls. type DataLakeStoreAccountBasic struct { - // DataLakeStoreAccountPropertiesBasic - The basic Data Lake Store account properties. + // DataLakeStoreAccountPropertiesBasic - READ-ONLY; The basic Data Lake Store account properties. *DataLakeStoreAccountPropertiesBasic `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` - // Location - The resource location. + // Location - READ-ONLY; The resource location. Location *string `json:"location,omitempty"` - // Tags - The resource tags. + // Tags - READ-ONLY; The resource tags. Tags map[string]*string `json:"tags"` } // MarshalJSON is the custom marshaler for DataLakeStoreAccountBasic. func (dlsab DataLakeStoreAccountBasic) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if dlsab.DataLakeStoreAccountPropertiesBasic != nil { - objectMap["properties"] = dlsab.DataLakeStoreAccountPropertiesBasic - } - if dlsab.ID != nil { - objectMap["id"] = dlsab.ID - } - if dlsab.Name != nil { - objectMap["name"] = dlsab.Name - } - if dlsab.Type != nil { - objectMap["type"] = dlsab.Type - } - if dlsab.Location != nil { - objectMap["location"] = dlsab.Location - } - if dlsab.Tags != nil { - objectMap["tags"] = dlsab.Tags - } return json.Marshal(objectMap) } @@ -980,9 +941,9 @@ func (dlsab *DataLakeStoreAccountBasic) UnmarshalJSON(body []byte) error { // DataLakeStoreAccountListResult data Lake Store account list information response. type DataLakeStoreAccountListResult struct { autorest.Response `json:"-"` - // Value - The results of the list operation. + // Value - READ-ONLY; The results of the list operation. Value *[]DataLakeStoreAccountBasic `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1126,58 +1087,58 @@ func NewDataLakeStoreAccountListResultPage(getNextPage func(context.Context, Dat // DataLakeStoreAccountProperties data Lake Store account properties information. type DataLakeStoreAccountProperties struct { - // DefaultGroup - The default owner group for all new folders and files created in the Data Lake Store account. + // DefaultGroup - READ-ONLY; The default owner group for all new folders and files created in the Data Lake Store account. DefaultGroup *string `json:"defaultGroup,omitempty"` - // EncryptionConfig - The Key Vault encryption configuration. + // EncryptionConfig - READ-ONLY; The Key Vault encryption configuration. EncryptionConfig *EncryptionConfig `json:"encryptionConfig,omitempty"` - // EncryptionState - The current state of encryption for this Data Lake Store account. Possible values include: 'Enabled', 'Disabled' + // EncryptionState - READ-ONLY; The current state of encryption for this Data Lake Store account. Possible values include: 'Enabled', 'Disabled' EncryptionState EncryptionState `json:"encryptionState,omitempty"` - // EncryptionProvisioningState - The current state of encryption provisioning for this Data Lake Store account. Possible values include: 'EncryptionProvisioningStateCreating', 'EncryptionProvisioningStateSucceeded' + // EncryptionProvisioningState - READ-ONLY; The current state of encryption provisioning for this Data Lake Store account. Possible values include: 'EncryptionProvisioningStateCreating', 'EncryptionProvisioningStateSucceeded' EncryptionProvisioningState EncryptionProvisioningState `json:"encryptionProvisioningState,omitempty"` - // FirewallRules - The list of firewall rules associated with this Data Lake Store account. + // FirewallRules - READ-ONLY; The list of firewall rules associated with this Data Lake Store account. FirewallRules *[]FirewallRule `json:"firewallRules,omitempty"` - // VirtualNetworkRules - The list of virtual network rules associated with this Data Lake Store account. + // VirtualNetworkRules - READ-ONLY; The list of virtual network rules associated with this Data Lake Store account. VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` - // FirewallState - The current state of the IP address firewall for this Data Lake Store account. Possible values include: 'FirewallStateEnabled', 'FirewallStateDisabled' + // FirewallState - READ-ONLY; The current state of the IP address firewall for this Data Lake Store account. Possible values include: 'FirewallStateEnabled', 'FirewallStateDisabled' FirewallState FirewallState `json:"firewallState,omitempty"` - // FirewallAllowAzureIps - The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced. Possible values include: 'FirewallAllowAzureIpsStateEnabled', 'FirewallAllowAzureIpsStateDisabled' + // FirewallAllowAzureIps - READ-ONLY; The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced. Possible values include: 'FirewallAllowAzureIpsStateEnabled', 'FirewallAllowAzureIpsStateDisabled' FirewallAllowAzureIps FirewallAllowAzureIpsState `json:"firewallAllowAzureIps,omitempty"` - // TrustedIDProviders - The list of trusted identity providers associated with this Data Lake Store account. + // TrustedIDProviders - READ-ONLY; The list of trusted identity providers associated with this Data Lake Store account. TrustedIDProviders *[]TrustedIDProvider `json:"trustedIdProviders,omitempty"` - // TrustedIDProviderState - The current state of the trusted identity provider feature for this Data Lake Store account. Possible values include: 'TrustedIDProviderStateEnabled', 'TrustedIDProviderStateDisabled' + // TrustedIDProviderState - READ-ONLY; The current state of the trusted identity provider feature for this Data Lake Store account. Possible values include: 'TrustedIDProviderStateEnabled', 'TrustedIDProviderStateDisabled' TrustedIDProviderState TrustedIDProviderState `json:"trustedIdProviderState,omitempty"` - // NewTier - The commitment tier to use for next month. Possible values include: 'Consumption', 'Commitment1TB', 'Commitment10TB', 'Commitment100TB', 'Commitment500TB', 'Commitment1PB', 'Commitment5PB' + // NewTier - READ-ONLY; The commitment tier to use for next month. Possible values include: 'Consumption', 'Commitment1TB', 'Commitment10TB', 'Commitment100TB', 'Commitment500TB', 'Commitment1PB', 'Commitment5PB' NewTier TierType `json:"newTier,omitempty"` - // CurrentTier - The commitment tier in use for the current month. Possible values include: 'Consumption', 'Commitment1TB', 'Commitment10TB', 'Commitment100TB', 'Commitment500TB', 'Commitment1PB', 'Commitment5PB' + // CurrentTier - READ-ONLY; The commitment tier in use for the current month. Possible values include: 'Consumption', 'Commitment1TB', 'Commitment10TB', 'Commitment100TB', 'Commitment500TB', 'Commitment1PB', 'Commitment5PB' CurrentTier TierType `json:"currentTier,omitempty"` - // AccountID - The unique identifier associated with this Data Lake Store account. + // AccountID - READ-ONLY; The unique identifier associated with this Data Lake Store account. AccountID *uuid.UUID `json:"accountId,omitempty"` - // ProvisioningState - The provisioning status of the Data Lake Store account. Possible values include: 'Failed', 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted', 'Undeleting', 'Canceled' + // ProvisioningState - READ-ONLY; The provisioning status of the Data Lake Store account. Possible values include: 'Failed', 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted', 'Undeleting', 'Canceled' ProvisioningState DataLakeStoreAccountStatus `json:"provisioningState,omitempty"` - // State - The state of the Data Lake Store account. Possible values include: 'Active', 'Suspended' + // State - READ-ONLY; The state of the Data Lake Store account. Possible values include: 'Active', 'Suspended' State DataLakeStoreAccountState `json:"state,omitempty"` - // CreationTime - The account creation time. + // CreationTime - READ-ONLY; The account creation time. CreationTime *date.Time `json:"creationTime,omitempty"` - // LastModifiedTime - The account last modified time. + // LastModifiedTime - READ-ONLY; The account last modified time. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` - // Endpoint - The full CName endpoint for this account. + // Endpoint - READ-ONLY; The full CName endpoint for this account. Endpoint *string `json:"endpoint,omitempty"` } // DataLakeStoreAccountPropertiesBasic the basic account specific properties that are associated with an // underlying Data Lake Store account. type DataLakeStoreAccountPropertiesBasic struct { - // AccountID - The unique identifier associated with this Data Lake Store account. + // AccountID - READ-ONLY; The unique identifier associated with this Data Lake Store account. AccountID *uuid.UUID `json:"accountId,omitempty"` - // ProvisioningState - The provisioning status of the Data Lake Store account. Possible values include: 'Failed', 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted', 'Undeleting', 'Canceled' + // ProvisioningState - READ-ONLY; The provisioning status of the Data Lake Store account. Possible values include: 'Failed', 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted', 'Undeleting', 'Canceled' ProvisioningState DataLakeStoreAccountStatus `json:"provisioningState,omitempty"` - // State - The state of the Data Lake Store account. Possible values include: 'Active', 'Suspended' + // State - READ-ONLY; The state of the Data Lake Store account. Possible values include: 'Active', 'Suspended' State DataLakeStoreAccountState `json:"state,omitempty"` - // CreationTime - The account creation time. + // CreationTime - READ-ONLY; The account creation time. CreationTime *date.Time `json:"creationTime,omitempty"` - // LastModifiedTime - The account last modified time. + // LastModifiedTime - READ-ONLY; The account last modified time. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` - // Endpoint - The full CName endpoint for this account. + // Endpoint - READ-ONLY; The full CName endpoint for this account. Endpoint *string `json:"endpoint,omitempty"` } @@ -1193,40 +1154,28 @@ type EncryptionConfig struct { type EncryptionIdentity struct { // Type - The type of encryption being used. Currently the only supported type is 'SystemAssigned'. Type *string `json:"type,omitempty"` - // PrincipalID - The principal identifier associated with the encryption. + // PrincipalID - READ-ONLY; The principal identifier associated with the encryption. PrincipalID *uuid.UUID `json:"principalId,omitempty"` - // TenantID - The tenant identifier associated with the encryption. + // TenantID - READ-ONLY; The tenant identifier associated with the encryption. TenantID *uuid.UUID `json:"tenantId,omitempty"` } // FirewallRule data Lake Store firewall rule information. type FirewallRule struct { autorest.Response `json:"-"` - // FirewallRuleProperties - The firewall rule properties. + // FirewallRuleProperties - READ-ONLY; The firewall rule properties. *FirewallRuleProperties `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for FirewallRule. func (fr FirewallRule) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if fr.FirewallRuleProperties != nil { - objectMap["properties"] = fr.FirewallRuleProperties - } - if fr.ID != nil { - objectMap["id"] = fr.ID - } - if fr.Name != nil { - objectMap["name"] = fr.Name - } - if fr.Type != nil { - objectMap["type"] = fr.Type - } return json.Marshal(objectMap) } @@ -1284,9 +1233,9 @@ func (fr *FirewallRule) UnmarshalJSON(body []byte) error { // FirewallRuleListResult data Lake Store firewall rule list information. type FirewallRuleListResult struct { autorest.Response `json:"-"` - // Value - The results of the list operation. + // Value - READ-ONLY; The results of the list operation. Value *[]FirewallRule `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1429,9 +1378,9 @@ func NewFirewallRuleListResultPage(getNextPage func(context.Context, FirewallRul // FirewallRuleProperties the firewall rule properties. type FirewallRuleProperties struct { - // StartIPAddress - The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol. + // StartIPAddress - READ-ONLY; The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol. StartIPAddress *string `json:"startIpAddress,omitempty"` - // EndIPAddress - The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol. + // EndIPAddress - READ-ONLY; The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol. EndIPAddress *string `json:"endIpAddress,omitempty"` } @@ -1448,118 +1397,91 @@ type KeyVaultMetaInfo struct { // NameAvailabilityInformation data Lake Store account name availability result information. type NameAvailabilityInformation struct { autorest.Response `json:"-"` - // NameAvailable - The Boolean value of true or false to indicate whether the Data Lake Store account name is available or not. + // NameAvailable - READ-ONLY; The Boolean value of true or false to indicate whether the Data Lake Store account name is available or not. NameAvailable *bool `json:"nameAvailable,omitempty"` - // Reason - The reason why the Data Lake Store account name is not available, if nameAvailable is false. + // Reason - READ-ONLY; The reason why the Data Lake Store account name is not available, if nameAvailable is false. Reason *string `json:"reason,omitempty"` - // Message - The message describing why the Data Lake Store account name is not available, if nameAvailable is false. + // Message - READ-ONLY; The message describing why the Data Lake Store account name is not available, if nameAvailable is false. Message *string `json:"message,omitempty"` } // Operation an available operation for Data Lake Store. type Operation struct { - // Name - The name of the operation. + // Name - READ-ONLY; The name of the operation. Name *string `json:"name,omitempty"` // Display - The display information for the operation. Display *OperationDisplay `json:"display,omitempty"` - // Origin - The intended executor of the operation. Possible values include: 'User', 'System', 'Usersystem' + // Origin - READ-ONLY; The intended executor of the operation. Possible values include: 'User', 'System', 'Usersystem' Origin OperationOrigin `json:"origin,omitempty"` } // OperationDisplay the display information for a particular operation. type OperationDisplay struct { - // Provider - The resource provider of the operation. + // Provider - READ-ONLY; The resource provider of the operation. Provider *string `json:"provider,omitempty"` - // Resource - The resource type of the operation. + // Resource - READ-ONLY; The resource type of the operation. Resource *string `json:"resource,omitempty"` - // Operation - A friendly name of the operation. + // Operation - READ-ONLY; A friendly name of the operation. Operation *string `json:"operation,omitempty"` - // Description - A friendly description of the operation. + // Description - READ-ONLY; A friendly description of the operation. Description *string `json:"description,omitempty"` } // OperationListResult the list of available operations for Data Lake Store. type OperationListResult struct { autorest.Response `json:"-"` - // Value - The results of the list operation. + // Value - READ-ONLY; The results of the list operation. Value *[]Operation `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } // Resource the resource model definition. type Resource struct { - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` - // Location - The resource location. + // Location - READ-ONLY; The resource location. Location *string `json:"location,omitempty"` - // Tags - The resource tags. + // Tags - READ-ONLY; The resource tags. Tags map[string]*string `json:"tags"` } // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } - if r.Location != nil { - objectMap["location"] = r.Location - } - if r.Tags != nil { - objectMap["tags"] = r.Tags - } return json.Marshal(objectMap) } // SubResource the resource model definition for a nested resource. type SubResource struct { - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` } // TrustedIDProvider data Lake Store trusted identity provider information. type TrustedIDProvider struct { autorest.Response `json:"-"` - // TrustedIDProviderProperties - The trusted identity provider properties. + // TrustedIDProviderProperties - READ-ONLY; The trusted identity provider properties. *TrustedIDProviderProperties `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for TrustedIDProvider. func (tip TrustedIDProvider) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if tip.TrustedIDProviderProperties != nil { - objectMap["properties"] = tip.TrustedIDProviderProperties - } - if tip.ID != nil { - objectMap["id"] = tip.ID - } - if tip.Name != nil { - objectMap["name"] = tip.Name - } - if tip.Type != nil { - objectMap["type"] = tip.Type - } return json.Marshal(objectMap) } @@ -1617,9 +1539,9 @@ func (tip *TrustedIDProvider) UnmarshalJSON(body []byte) error { // TrustedIDProviderListResult data Lake Store trusted identity provider list information. type TrustedIDProviderListResult struct { autorest.Response `json:"-"` - // Value - The results of the list operation. + // Value - READ-ONLY; The results of the list operation. Value *[]TrustedIDProvider `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1762,7 +1684,7 @@ func NewTrustedIDProviderListResultPage(getNextPage func(context.Context, Truste // TrustedIDProviderProperties the trusted identity provider properties. type TrustedIDProviderProperties struct { - // IDProvider - The URL of this trusted identity provider. + // IDProvider - READ-ONLY; The URL of this trusted identity provider. IDProvider *string `json:"idProvider,omitempty"` } @@ -2157,31 +2079,19 @@ func (uvnrwap *UpdateVirtualNetworkRuleWithAccountParameters) UnmarshalJSON(body // VirtualNetworkRule data Lake Store virtual network rule information. type VirtualNetworkRule struct { autorest.Response `json:"-"` - // VirtualNetworkRuleProperties - The virtual network rule properties. + // VirtualNetworkRuleProperties - READ-ONLY; The virtual network rule properties. *VirtualNetworkRuleProperties `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for VirtualNetworkRule. func (vnr VirtualNetworkRule) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if vnr.VirtualNetworkRuleProperties != nil { - objectMap["properties"] = vnr.VirtualNetworkRuleProperties - } - if vnr.ID != nil { - objectMap["id"] = vnr.ID - } - if vnr.Name != nil { - objectMap["name"] = vnr.Name - } - if vnr.Type != nil { - objectMap["type"] = vnr.Type - } return json.Marshal(objectMap) } @@ -2239,9 +2149,9 @@ func (vnr *VirtualNetworkRule) UnmarshalJSON(body []byte) error { // VirtualNetworkRuleListResult data Lake Store virtual network rule list information. type VirtualNetworkRuleListResult struct { autorest.Response `json:"-"` - // Value - The results of the list operation. + // Value - READ-ONLY; The results of the list operation. Value *[]VirtualNetworkRule `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -2384,6 +2294,6 @@ func NewVirtualNetworkRuleListResultPage(getNextPage func(context.Context, Virtu // VirtualNetworkRuleProperties the virtual network rule properties. type VirtualNetworkRuleProperties struct { - // SubnetID - The resource identifier for the subnet. + // SubnetID - READ-ONLY; The resource identifier for the subnet. SubnetID *string `json:"subnetId,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/devtestlabs/mgmt/2016-05-15/dtl/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/devtestlabs/mgmt/2016-05-15/dtl/models.go index 36884030fea8..3bc3ee813c86 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/devtestlabs/mgmt/2016-05-15/dtl/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/devtestlabs/mgmt/2016-05-15/dtl/models.go @@ -471,11 +471,11 @@ type ApplicableSchedule struct { autorest.Response `json:"-"` // ApplicableScheduleProperties - The properties of the resource. *ApplicableScheduleProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -489,15 +489,6 @@ func (as ApplicableSchedule) MarshalJSON() ([]byte, error) { if as.ApplicableScheduleProperties != nil { objectMap["properties"] = as.ApplicableScheduleProperties } - if as.ID != nil { - objectMap["id"] = as.ID - } - if as.Name != nil { - objectMap["name"] = as.Name - } - if as.Type != nil { - objectMap["type"] = as.Type - } if as.Location != nil { objectMap["location"] = as.Location } @@ -581,11 +572,11 @@ func (as *ApplicableSchedule) UnmarshalJSON(body []byte) error { type ApplicableScheduleFragment struct { // ApplicableSchedulePropertiesFragment - The properties of the resource. *ApplicableSchedulePropertiesFragment `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -599,15 +590,6 @@ func (asf ApplicableScheduleFragment) MarshalJSON() ([]byte, error) { if asf.ApplicableSchedulePropertiesFragment != nil { objectMap["properties"] = asf.ApplicableSchedulePropertiesFragment } - if asf.ID != nil { - objectMap["id"] = asf.ID - } - if asf.Name != nil { - objectMap["name"] = asf.Name - } - if asf.Type != nil { - objectMap["type"] = asf.Type - } if asf.Location != nil { objectMap["location"] = asf.Location } @@ -713,11 +695,11 @@ type ArmTemplate struct { autorest.Response `json:"-"` // ArmTemplateProperties - The properties of the resource. *ArmTemplateProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -731,15 +713,6 @@ func (at ArmTemplate) MarshalJSON() ([]byte, error) { if at.ArmTemplateProperties != nil { objectMap["properties"] = at.ArmTemplateProperties } - if at.ID != nil { - objectMap["id"] = at.ID - } - if at.Name != nil { - objectMap["name"] = at.Name - } - if at.Type != nil { - objectMap["type"] = at.Type - } if at.Location != nil { objectMap["location"] = at.Location } @@ -837,19 +810,19 @@ type ArmTemplateParameterProperties struct { // ArmTemplateProperties properties of an Azure Resource Manager template. type ArmTemplateProperties struct { - // DisplayName - The display name of the ARM template. + // DisplayName - READ-ONLY; The display name of the ARM template. DisplayName *string `json:"displayName,omitempty"` - // Description - The description of the ARM template. + // Description - READ-ONLY; The description of the ARM template. Description *string `json:"description,omitempty"` - // Publisher - The publisher of the ARM template. + // Publisher - READ-ONLY; The publisher of the ARM template. Publisher *string `json:"publisher,omitempty"` - // Icon - The URI to the icon of the ARM template. + // Icon - READ-ONLY; The URI to the icon of the ARM template. Icon *string `json:"icon,omitempty"` - // Contents - The contents of the ARM template. + // Contents - READ-ONLY; The contents of the ARM template. Contents interface{} `json:"contents,omitempty"` - // CreatedDate - The creation date of the armTemplate. + // CreatedDate - READ-ONLY; The creation date of the armTemplate. CreatedDate *date.Time `json:"createdDate,omitempty"` - // ParametersValueFilesInfo - File name and parameter values information from all azuredeploy.*.parameters.json for the ARM template. + // ParametersValueFilesInfo - READ-ONLY; File name and parameter values information from all azuredeploy.*.parameters.json for the ARM template. ParametersValueFilesInfo *[]ParametersValueFileInfo `json:"parametersValueFilesInfo,omitempty"` } @@ -858,11 +831,11 @@ type Artifact struct { autorest.Response `json:"-"` // ArtifactProperties - The properties of the resource. *ArtifactProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -876,15 +849,6 @@ func (a Artifact) MarshalJSON() ([]byte, error) { if a.ArtifactProperties != nil { objectMap["properties"] = a.ArtifactProperties } - if a.ID != nil { - objectMap["id"] = a.ID - } - if a.Name != nil { - objectMap["name"] = a.Name - } - if a.Type != nil { - objectMap["type"] = a.Type - } if a.Location != nil { objectMap["location"] = a.Location } @@ -1033,21 +997,21 @@ type ArtifactParameterPropertiesFragment struct { // ArtifactProperties properties of an artifact. type ArtifactProperties struct { - // Title - The artifact's title. + // Title - READ-ONLY; The artifact's title. Title *string `json:"title,omitempty"` - // Description - The artifact's description. + // Description - READ-ONLY; The artifact's description. Description *string `json:"description,omitempty"` - // Publisher - The artifact's publisher. + // Publisher - READ-ONLY; The artifact's publisher. Publisher *string `json:"publisher,omitempty"` - // FilePath - The file path to the artifact. + // FilePath - READ-ONLY; The file path to the artifact. FilePath *string `json:"filePath,omitempty"` - // Icon - The URI to the artifact icon. + // Icon - READ-ONLY; The URI to the artifact icon. Icon *string `json:"icon,omitempty"` - // TargetOsType - The artifact's target OS. + // TargetOsType - READ-ONLY; The artifact's target OS. TargetOsType *string `json:"targetOsType,omitempty"` - // Parameters - The artifact's parameters. + // Parameters - READ-ONLY; The artifact's parameters. Parameters interface{} `json:"parameters,omitempty"` - // CreatedDate - The artifact's creation date. + // CreatedDate - READ-ONLY; The artifact's creation date. CreatedDate *date.Time `json:"createdDate,omitempty"` } @@ -1056,11 +1020,11 @@ type ArtifactSource struct { autorest.Response `json:"-"` // ArtifactSourceProperties - The properties of the resource. *ArtifactSourceProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -1074,15 +1038,6 @@ func (as ArtifactSource) MarshalJSON() ([]byte, error) { if as.ArtifactSourceProperties != nil { objectMap["properties"] = as.ArtifactSourceProperties } - if as.ID != nil { - objectMap["id"] = as.ID - } - if as.Name != nil { - objectMap["name"] = as.Name - } - if as.Type != nil { - objectMap["type"] = as.Type - } if as.Location != nil { objectMap["location"] = as.Location } @@ -1165,11 +1120,11 @@ func (as *ArtifactSource) UnmarshalJSON(body []byte) error { type ArtifactSourceFragment struct { // ArtifactSourcePropertiesFragment - The properties of the resource. *ArtifactSourcePropertiesFragment `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -1183,15 +1138,6 @@ func (asf ArtifactSourceFragment) MarshalJSON() ([]byte, error) { if asf.ArtifactSourcePropertiesFragment != nil { objectMap["properties"] = asf.ArtifactSourcePropertiesFragment } - if asf.ID != nil { - objectMap["id"] = asf.ID - } - if asf.Name != nil { - objectMap["name"] = asf.Name - } - if asf.Type != nil { - objectMap["type"] = asf.Type - } if asf.Location != nil { objectMap["location"] = asf.Location } @@ -1288,7 +1234,7 @@ type ArtifactSourceProperties struct { SecurityToken *string `json:"securityToken,omitempty"` // Status - Indicates if the artifact source is enabled (values: Enabled, Disabled). Possible values include: 'EnableStatusEnabled', 'EnableStatusDisabled' Status EnableStatus `json:"status,omitempty"` - // CreatedDate - The artifact source's creation date. + // CreatedDate - READ-ONLY; The artifact source's creation date. CreatedDate *date.Time `json:"createdDate,omitempty"` // ProvisioningState - The provisioning status of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` @@ -1455,11 +1401,11 @@ type CustomImage struct { autorest.Response `json:"-"` // CustomImageProperties - The properties of the resource. *CustomImageProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -1473,15 +1419,6 @@ func (ci CustomImage) MarshalJSON() ([]byte, error) { if ci.CustomImageProperties != nil { objectMap["properties"] = ci.CustomImageProperties } - if ci.ID != nil { - objectMap["id"] = ci.ID - } - if ci.Name != nil { - objectMap["name"] = ci.Name - } - if ci.Type != nil { - objectMap["type"] = ci.Type - } if ci.Location != nil { objectMap["location"] = ci.Location } @@ -1570,7 +1507,7 @@ type CustomImageProperties struct { Description *string `json:"description,omitempty"` // Author - The author of the custom image. Author *string `json:"author,omitempty"` - // CreationDate - The creation date of the custom image. + // CreationDate - READ-ONLY; The creation date of the custom image. CreationDate *date.Time `json:"creationDate,omitempty"` // ManagedImageID - The Managed Image Id backing the custom image. ManagedImageID *string `json:"managedImageId,omitempty"` @@ -1610,7 +1547,7 @@ type CustomImagesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *CustomImagesCreateOrUpdateFuture) Result(client CustomImagesClient) (ci CustomImage, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CustomImagesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1639,7 +1576,7 @@ type CustomImagesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *CustomImagesDeleteFuture) Result(client CustomImagesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.CustomImagesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1691,11 +1628,11 @@ type Disk struct { autorest.Response `json:"-"` // DiskProperties - The properties of the resource. *DiskProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -1709,15 +1646,6 @@ func (d Disk) MarshalJSON() ([]byte, error) { if d.DiskProperties != nil { objectMap["properties"] = d.DiskProperties } - if d.ID != nil { - objectMap["id"] = d.ID - } - if d.Name != nil { - objectMap["name"] = d.Name - } - if d.Type != nil { - objectMap["type"] = d.Type - } if d.Location != nil { objectMap["location"] = d.Location } @@ -1808,7 +1736,7 @@ type DiskProperties struct { DiskBlobName *string `json:"diskBlobName,omitempty"` // DiskURI - When backed by a blob, the URI of underlying blob. DiskURI *string `json:"diskUri,omitempty"` - // CreatedDate - The creation date of the disk. + // CreatedDate - READ-ONLY; The creation date of the disk. CreatedDate *date.Time `json:"createdDate,omitempty"` // HostCaching - The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite). HostCaching *string `json:"hostCaching,omitempty"` @@ -1829,7 +1757,7 @@ type DisksAttachFuture struct { // If the operation has not completed it will return an error. func (future *DisksAttachFuture) Result(client DisksClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.DisksAttachFuture", "Result", future.Response(), "Polling failure") return @@ -1852,7 +1780,7 @@ type DisksCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *DisksCreateOrUpdateFuture) Result(client DisksClient) (d Disk, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.DisksCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1880,7 +1808,7 @@ type DisksDeleteFuture struct { // If the operation has not completed it will return an error. func (future *DisksDeleteFuture) Result(client DisksClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.DisksDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1902,7 +1830,7 @@ type DisksDetachFuture struct { // If the operation has not completed it will return an error. func (future *DisksDetachFuture) Result(client DisksClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.DisksDetachFuture", "Result", future.Response(), "Polling failure") return @@ -1920,11 +1848,11 @@ type Environment struct { autorest.Response `json:"-"` // EnvironmentProperties - The properties of the resource. *EnvironmentProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -1938,15 +1866,6 @@ func (e Environment) MarshalJSON() ([]byte, error) { if e.EnvironmentProperties != nil { objectMap["properties"] = e.EnvironmentProperties } - if e.ID != nil { - objectMap["id"] = e.ID - } - if e.Name != nil { - objectMap["name"] = e.Name - } - if e.Type != nil { - objectMap["type"] = e.Type - } if e.Location != nil { objectMap["location"] = e.Location } @@ -2039,9 +1958,9 @@ type EnvironmentProperties struct { DeploymentProperties *EnvironmentDeploymentProperties `json:"deploymentProperties,omitempty"` // ArmTemplateDisplayName - The display name of the Azure Resource Manager template that produced the environment. ArmTemplateDisplayName *string `json:"armTemplateDisplayName,omitempty"` - // ResourceGroupID - The identifier of the resource group containing the environment's resources. + // ResourceGroupID - READ-ONLY; The identifier of the resource group containing the environment's resources. ResourceGroupID *string `json:"resourceGroupId,omitempty"` - // CreatedByUser - The creator of the environment. + // CreatedByUser - READ-ONLY; The creator of the environment. CreatedByUser *string `json:"createdByUser,omitempty"` // ProvisioningState - The provisioning status of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` @@ -2059,7 +1978,7 @@ type EnvironmentsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *EnvironmentsCreateOrUpdateFuture) Result(client EnvironmentsClient) (e Environment, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.EnvironmentsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -2088,7 +2007,7 @@ type EnvironmentsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *EnvironmentsDeleteFuture) Result(client EnvironmentsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.EnvironmentsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -2165,11 +2084,11 @@ type Formula struct { autorest.Response `json:"-"` // FormulaProperties - The properties of the resource. *FormulaProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -2183,15 +2102,6 @@ func (f Formula) MarshalJSON() ([]byte, error) { if f.FormulaProperties != nil { objectMap["properties"] = f.FormulaProperties } - if f.ID != nil { - objectMap["id"] = f.ID - } - if f.Name != nil { - objectMap["name"] = f.Name - } - if f.Type != nil { - objectMap["type"] = f.Type - } if f.Location != nil { objectMap["location"] = f.Location } @@ -2278,7 +2188,7 @@ type FormulaProperties struct { Author *string `json:"author,omitempty"` // OsType - The OS type of the formula. OsType *string `json:"osType,omitempty"` - // CreationDate - The creation date of the formula. + // CreationDate - READ-ONLY; The creation date of the formula. CreationDate *date.Time `json:"creationDate,omitempty"` // FormulaContent - The content of the formula. FormulaContent *LabVirtualMachineCreationParameter `json:"formulaContent,omitempty"` @@ -2306,7 +2216,7 @@ type FormulasCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *FormulasCreateOrUpdateFuture) Result(client FormulasClient) (f Formula, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.FormulasCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -2329,11 +2239,11 @@ func (future *FormulasCreateOrUpdateFuture) Result(client FormulasClient) (f For type GalleryImage struct { // GalleryImageProperties - The properties of the resource. *GalleryImageProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -2347,15 +2257,6 @@ func (gi GalleryImage) MarshalJSON() ([]byte, error) { if gi.GalleryImageProperties != nil { objectMap["properties"] = gi.GalleryImageProperties } - if gi.ID != nil { - objectMap["id"] = gi.ID - } - if gi.Name != nil { - objectMap["name"] = gi.Name - } - if gi.Type != nil { - objectMap["type"] = gi.Type - } if gi.Location != nil { objectMap["location"] = gi.Location } @@ -2438,7 +2339,7 @@ func (gi *GalleryImage) UnmarshalJSON(body []byte) error { type GalleryImageProperties struct { // Author - The author of the gallery image. Author *string `json:"author,omitempty"` - // CreatedDate - The creation date of the gallery image. + // CreatedDate - READ-ONLY; The creation date of the gallery image. CreatedDate *date.Time `json:"createdDate,omitempty"` // Description - The description of the gallery image. Description *string `json:"description,omitempty"` @@ -2513,7 +2414,7 @@ type GlobalSchedulesExecuteFuture struct { // If the operation has not completed it will return an error. func (future *GlobalSchedulesExecuteFuture) Result(client GlobalSchedulesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesExecuteFuture", "Result", future.Response(), "Polling failure") return @@ -2536,7 +2437,7 @@ type GlobalSchedulesRetargetFuture struct { // If the operation has not completed it will return an error. func (future *GlobalSchedulesRetargetFuture) Result(client GlobalSchedulesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.GlobalSchedulesRetargetFuture", "Result", future.Response(), "Polling failure") return @@ -2600,11 +2501,11 @@ type Lab struct { autorest.Response `json:"-"` // LabProperties - The properties of the resource. *LabProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -2618,15 +2519,6 @@ func (l Lab) MarshalJSON() ([]byte, error) { if l.LabProperties != nil { objectMap["properties"] = l.LabProperties } - if l.ID != nil { - objectMap["id"] = l.ID - } - if l.Name != nil { - objectMap["name"] = l.Name - } - if l.Type != nil { - objectMap["type"] = l.Type - } if l.Location != nil { objectMap["location"] = l.Location } @@ -2710,11 +2602,11 @@ type LabCost struct { autorest.Response `json:"-"` // LabCostProperties - The properties of the resource. *LabCostProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -2728,15 +2620,6 @@ func (lc LabCost) MarshalJSON() ([]byte, error) { if lc.LabCostProperties != nil { objectMap["properties"] = lc.LabCostProperties } - if lc.ID != nil { - objectMap["id"] = lc.ID - } - if lc.Name != nil { - objectMap["name"] = lc.Name - } - if lc.Type != nil { - objectMap["type"] = lc.Type - } if lc.Location != nil { objectMap["location"] = lc.Location } @@ -2829,11 +2712,11 @@ type LabCostDetailsProperties struct { type LabCostProperties struct { // TargetCost - The target cost properties TargetCost *TargetCostProperties `json:"targetCost,omitempty"` - // LabCostSummary - The lab cost summary component of the cost data. + // LabCostSummary - READ-ONLY; The lab cost summary component of the cost data. LabCostSummary *LabCostSummaryProperties `json:"labCostSummary,omitempty"` - // LabCostDetails - The lab cost details component of the cost data. + // LabCostDetails - READ-ONLY; The lab cost details component of the cost data. LabCostDetails *[]LabCostDetailsProperties `json:"labCostDetails,omitempty"` - // ResourceCosts - The resource cost component of the cost data. + // ResourceCosts - READ-ONLY; The resource cost component of the cost data. ResourceCosts *[]LabResourceCostProperties `json:"resourceCosts,omitempty"` // CurrencyCode - The currency code of the cost. CurrencyCode *string `json:"currencyCode,omitempty"` @@ -2859,11 +2742,11 @@ type LabCostSummaryProperties struct { type LabFragment struct { // LabPropertiesFragment - The properties of the resource. *LabPropertiesFragment `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -2877,15 +2760,6 @@ func (lf LabFragment) MarshalJSON() ([]byte, error) { if lf.LabPropertiesFragment != nil { objectMap["properties"] = lf.LabPropertiesFragment } - if lf.ID != nil { - objectMap["id"] = lf.ID - } - if lf.Name != nil { - objectMap["name"] = lf.Name - } - if lf.Type != nil { - objectMap["type"] = lf.Type - } if lf.Location != nil { objectMap["location"] = lf.Location } @@ -2966,19 +2840,19 @@ func (lf *LabFragment) UnmarshalJSON(body []byte) error { // LabProperties properties of a lab. type LabProperties struct { - // DefaultStorageAccount - The lab's default storage account. + // DefaultStorageAccount - READ-ONLY; The lab's default storage account. DefaultStorageAccount *string `json:"defaultStorageAccount,omitempty"` - // DefaultPremiumStorageAccount - The lab's default premium storage account. + // DefaultPremiumStorageAccount - READ-ONLY; The lab's default premium storage account. DefaultPremiumStorageAccount *string `json:"defaultPremiumStorageAccount,omitempty"` - // ArtifactsStorageAccount - The lab's artifact storage account. + // ArtifactsStorageAccount - READ-ONLY; The lab's artifact storage account. ArtifactsStorageAccount *string `json:"artifactsStorageAccount,omitempty"` - // PremiumDataDiskStorageAccount - The lab's premium data disk storage account. + // PremiumDataDiskStorageAccount - READ-ONLY; The lab's premium data disk storage account. PremiumDataDiskStorageAccount *string `json:"premiumDataDiskStorageAccount,omitempty"` - // VaultName - The lab's Key vault. + // VaultName - READ-ONLY; The lab's Key vault. VaultName *string `json:"vaultName,omitempty"` // LabStorageType - Type of storage used by the lab. It can be either Premium or Standard. Default is Premium. Possible values include: 'Standard', 'Premium' LabStorageType StorageType `json:"labStorageType,omitempty"` - // CreatedDate - The creation date of the lab. + // CreatedDate - READ-ONLY; The creation date of the lab. CreatedDate *date.Time `json:"createdDate,omitempty"` // PremiumDataDisks - The setting to enable usage of premium data disks. // When its value is 'Enabled', creation of standard or premium data disks is allowed. @@ -3036,7 +2910,7 @@ type LabsClaimAnyVMFuture struct { // If the operation has not completed it will return an error. func (future *LabsClaimAnyVMFuture) Result(client LabsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsClaimAnyVMFuture", "Result", future.Response(), "Polling failure") return @@ -3059,7 +2933,7 @@ type LabsCreateEnvironmentFuture struct { // If the operation has not completed it will return an error. func (future *LabsCreateEnvironmentFuture) Result(client LabsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsCreateEnvironmentFuture", "Result", future.Response(), "Polling failure") return @@ -3082,7 +2956,7 @@ type LabsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *LabsCreateOrUpdateFuture) Result(client LabsClient) (l Lab, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -3110,7 +2984,7 @@ type LabsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *LabsDeleteFuture) Result(client LabsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -3133,7 +3007,7 @@ type LabsExportResourceUsageFuture struct { // If the operation has not completed it will return an error. func (future *LabsExportResourceUsageFuture) Result(client LabsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.LabsExportResourceUsageFuture", "Result", future.Response(), "Polling failure") return @@ -3157,11 +3031,11 @@ type LabVirtualMachine struct { autorest.Response `json:"-"` // LabVirtualMachineProperties - The properties of the resource. *LabVirtualMachineProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -3175,15 +3049,6 @@ func (lvm LabVirtualMachine) MarshalJSON() ([]byte, error) { if lvm.LabVirtualMachineProperties != nil { objectMap["properties"] = lvm.LabVirtualMachineProperties } - if lvm.ID != nil { - objectMap["id"] = lvm.ID - } - if lvm.Name != nil { - objectMap["name"] = lvm.Name - } - if lvm.Type != nil { - objectMap["type"] = lvm.Type - } if lvm.Location != nil { objectMap["location"] = lvm.Location } @@ -3413,11 +3278,11 @@ type LabVirtualMachineCreationParameterProperties struct { type LabVirtualMachineFragment struct { // LabVirtualMachinePropertiesFragment - The properties of the resource. *LabVirtualMachinePropertiesFragment `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -3431,15 +3296,6 @@ func (lvmf LabVirtualMachineFragment) MarshalJSON() ([]byte, error) { if lvmf.LabVirtualMachinePropertiesFragment != nil { objectMap["properties"] = lvmf.LabVirtualMachinePropertiesFragment } - if lvmf.ID != nil { - objectMap["id"] = lvmf.ID - } - if lvmf.Name != nil { - objectMap["name"] = lvmf.Name - } - if lvmf.Type != nil { - objectMap["type"] = lvmf.Type - } if lvmf.Location != nil { objectMap["location"] = lvmf.Location } @@ -3532,7 +3388,7 @@ type LabVirtualMachineProperties struct { CreatedByUser *string `json:"createdByUser,omitempty"` // CreatedDate - The creation date of the virtual machine. CreatedDate *date.Time `json:"createdDate,omitempty"` - // ComputeID - The resource identifier (Microsoft.Compute) of the virtual machine. + // ComputeID - READ-ONLY; The resource identifier (Microsoft.Compute) of the virtual machine. ComputeID *string `json:"computeId,omitempty"` // CustomImageID - The custom image identifier of the virtual machine. CustomImageID *string `json:"customImageId,omitempty"` @@ -3703,11 +3559,11 @@ type NotificationChannel struct { autorest.Response `json:"-"` // NotificationChannelProperties - The properties of the resource. *NotificationChannelProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -3721,15 +3577,6 @@ func (nc NotificationChannel) MarshalJSON() ([]byte, error) { if nc.NotificationChannelProperties != nil { objectMap["properties"] = nc.NotificationChannelProperties } - if nc.ID != nil { - objectMap["id"] = nc.ID - } - if nc.Name != nil { - objectMap["name"] = nc.Name - } - if nc.Type != nil { - objectMap["type"] = nc.Type - } if nc.Location != nil { objectMap["location"] = nc.Location } @@ -3812,11 +3659,11 @@ func (nc *NotificationChannel) UnmarshalJSON(body []byte) error { type NotificationChannelFragment struct { // NotificationChannelPropertiesFragment - The properties of the resource. *NotificationChannelPropertiesFragment `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -3830,15 +3677,6 @@ func (ncf NotificationChannelFragment) MarshalJSON() ([]byte, error) { if ncf.NotificationChannelPropertiesFragment != nil { objectMap["properties"] = ncf.NotificationChannelPropertiesFragment } - if ncf.ID != nil { - objectMap["id"] = ncf.ID - } - if ncf.Name != nil { - objectMap["name"] = ncf.Name - } - if ncf.Type != nil { - objectMap["type"] = ncf.Type - } if ncf.Location != nil { objectMap["location"] = ncf.Location } @@ -3925,7 +3763,7 @@ type NotificationChannelProperties struct { Description *string `json:"description,omitempty"` // Events - The list of event for which this notification is enabled. Events *[]Event `json:"events,omitempty"` - // CreatedDate - The creation date of the notification channel. + // CreatedDate - READ-ONLY; The creation date of the notification channel. CreatedDate *date.Time `json:"createdDate,omitempty"` // ProvisioningState - The provisioning status of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` @@ -4041,11 +3879,11 @@ type Policy struct { autorest.Response `json:"-"` // PolicyProperties - The properties of the resource. *PolicyProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -4059,15 +3897,6 @@ func (p Policy) MarshalJSON() ([]byte, error) { if p.PolicyProperties != nil { objectMap["properties"] = p.PolicyProperties } - if p.ID != nil { - objectMap["id"] = p.ID - } - if p.Name != nil { - objectMap["name"] = p.Name - } - if p.Type != nil { - objectMap["type"] = p.Type - } if p.Location != nil { objectMap["location"] = p.Location } @@ -4150,11 +3979,11 @@ func (p *Policy) UnmarshalJSON(body []byte) error { type PolicyFragment struct { // PolicyPropertiesFragment - The properties of the resource. *PolicyPropertiesFragment `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -4168,15 +3997,6 @@ func (pf PolicyFragment) MarshalJSON() ([]byte, error) { if pf.PolicyPropertiesFragment != nil { objectMap["properties"] = pf.PolicyPropertiesFragment } - if pf.ID != nil { - objectMap["id"] = pf.ID - } - if pf.Name != nil { - objectMap["name"] = pf.Name - } - if pf.Type != nil { - objectMap["type"] = pf.Type - } if pf.Location != nil { objectMap["location"] = pf.Location } @@ -4269,7 +4089,7 @@ type PolicyProperties struct { Threshold *string `json:"threshold,omitempty"` // EvaluatorType - The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values include: 'AllowedValuesPolicy', 'MaxValuePolicy' EvaluatorType PolicyEvaluatorType `json:"evaluatorType,omitempty"` - // CreatedDate - The creation date of the policy. + // CreatedDate - READ-ONLY; The creation date of the policy. CreatedDate *date.Time `json:"createdDate,omitempty"` // ProvisioningState - The provisioning status of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` @@ -4334,7 +4154,7 @@ type ProviderOperationResult struct { autorest.Response `json:"-"` // Value - List of operations supported by the resource provider. Value *[]OperationMetadata `json:"value,omitempty"` - // NextLink - URL to get the next set of operation list results if there are any. + // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` } @@ -4477,11 +4297,11 @@ func NewProviderOperationResultPage(getNextPage func(context.Context, ProviderOp // Resource an Azure resource. type Resource struct { - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -4492,15 +4312,6 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -7158,11 +6969,11 @@ type Schedule struct { autorest.Response `json:"-"` // ScheduleProperties - The properties of the resource. *ScheduleProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -7176,15 +6987,6 @@ func (s Schedule) MarshalJSON() ([]byte, error) { if s.ScheduleProperties != nil { objectMap["properties"] = s.ScheduleProperties } - if s.ID != nil { - objectMap["id"] = s.ID - } - if s.Name != nil { - objectMap["name"] = s.Name - } - if s.Type != nil { - objectMap["type"] = s.Type - } if s.Location != nil { objectMap["location"] = s.Location } @@ -7267,11 +7069,11 @@ func (s *Schedule) UnmarshalJSON(body []byte) error { type ScheduleFragment struct { // SchedulePropertiesFragment - The properties of the resource. *SchedulePropertiesFragment `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -7285,15 +7087,6 @@ func (sf ScheduleFragment) MarshalJSON() ([]byte, error) { if sf.SchedulePropertiesFragment != nil { objectMap["properties"] = sf.SchedulePropertiesFragment } - if sf.ID != nil { - objectMap["id"] = sf.ID - } - if sf.Name != nil { - objectMap["name"] = sf.Name - } - if sf.Type != nil { - objectMap["type"] = sf.Type - } if sf.Location != nil { objectMap["location"] = sf.Location } @@ -7388,7 +7181,7 @@ type ScheduleProperties struct { TimeZoneID *string `json:"timeZoneId,omitempty"` // NotificationSettings - Notification settings. NotificationSettings *NotificationSettings `json:"notificationSettings,omitempty"` - // CreatedDate - The creation date of the schedule. + // CreatedDate - READ-ONLY; The creation date of the schedule. CreatedDate *date.Time `json:"createdDate,omitempty"` // TargetResourceID - The resource ID to which the schedule belongs TargetResourceID *string `json:"targetResourceId,omitempty"` @@ -7432,7 +7225,7 @@ type SchedulesExecuteFuture struct { // If the operation has not completed it will return an error. func (future *SchedulesExecuteFuture) Result(client SchedulesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.SchedulesExecuteFuture", "Result", future.Response(), "Polling failure") return @@ -7450,11 +7243,11 @@ type Secret struct { autorest.Response `json:"-"` // SecretProperties - The properties of the resource. *SecretProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -7468,15 +7261,6 @@ func (s Secret) MarshalJSON() ([]byte, error) { if s.SecretProperties != nil { objectMap["properties"] = s.SecretProperties } - if s.ID != nil { - objectMap["id"] = s.ID - } - if s.Name != nil { - objectMap["name"] = s.Name - } - if s.Type != nil { - objectMap["type"] = s.Type - } if s.Location != nil { objectMap["location"] = s.Location } @@ -7570,11 +7354,11 @@ type ServiceRunner struct { autorest.Response `json:"-"` // Identity - The identity of the resource. Identity *IdentityProperties `json:"identity,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -7588,15 +7372,6 @@ func (sr ServiceRunner) MarshalJSON() ([]byte, error) { if sr.Identity != nil { objectMap["identity"] = sr.Identity } - if sr.ID != nil { - objectMap["id"] = sr.ID - } - if sr.Name != nil { - objectMap["name"] = sr.Name - } - if sr.Type != nil { - objectMap["type"] = sr.Type - } if sr.Location != nil { objectMap["location"] = sr.Location } @@ -7732,11 +7507,11 @@ type User struct { autorest.Response `json:"-"` // UserProperties - The properties of the resource. *UserProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -7750,15 +7525,6 @@ func (u User) MarshalJSON() ([]byte, error) { if u.UserProperties != nil { objectMap["properties"] = u.UserProperties } - if u.ID != nil { - objectMap["id"] = u.ID - } - if u.Name != nil { - objectMap["name"] = u.Name - } - if u.Type != nil { - objectMap["type"] = u.Type - } if u.Location != nil { objectMap["location"] = u.Location } @@ -7841,11 +7607,11 @@ func (u *User) UnmarshalJSON(body []byte) error { type UserFragment struct { // UserPropertiesFragment - The properties of the resource. *UserPropertiesFragment `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -7859,15 +7625,6 @@ func (uf UserFragment) MarshalJSON() ([]byte, error) { if uf.UserPropertiesFragment != nil { objectMap["properties"] = uf.UserPropertiesFragment } - if uf.ID != nil { - objectMap["id"] = uf.ID - } - if uf.Name != nil { - objectMap["name"] = uf.Name - } - if uf.Type != nil { - objectMap["type"] = uf.Type - } if uf.Location != nil { objectMap["location"] = uf.Location } @@ -7980,7 +7737,7 @@ type UserProperties struct { Identity *UserIdentity `json:"identity,omitempty"` // SecretStore - The secret store of the user. SecretStore *UserSecretStore `json:"secretStore,omitempty"` - // CreatedDate - The creation date of the user profile. + // CreatedDate - READ-ONLY; The creation date of the user profile. CreatedDate *date.Time `json:"createdDate,omitempty"` // ProvisioningState - The provisioning status of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` @@ -8009,7 +7766,7 @@ type UsersDeleteFuture struct { // If the operation has not completed it will return an error. func (future *UsersDeleteFuture) Result(client UsersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.UsersDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -8048,7 +7805,7 @@ type VirtualMachinesAddDataDiskFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesAddDataDiskFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesAddDataDiskFuture", "Result", future.Response(), "Polling failure") return @@ -8071,7 +7828,7 @@ type VirtualMachinesApplyArtifactsFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesApplyArtifactsFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesApplyArtifactsFuture", "Result", future.Response(), "Polling failure") return @@ -8094,7 +7851,7 @@ type VirtualMachineSchedulesExecuteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachineSchedulesExecuteFuture) Result(client VirtualMachineSchedulesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachineSchedulesExecuteFuture", "Result", future.Response(), "Polling failure") return @@ -8117,7 +7874,7 @@ type VirtualMachinesClaimFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesClaimFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesClaimFuture", "Result", future.Response(), "Polling failure") return @@ -8140,7 +7897,7 @@ type VirtualMachinesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesCreateOrUpdateFuture) Result(client VirtualMachinesClient) (lvm LabVirtualMachine, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -8169,7 +7926,7 @@ type VirtualMachinesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesDeleteFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -8192,7 +7949,7 @@ type VirtualMachinesDetachDataDiskFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesDetachDataDiskFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesDetachDataDiskFuture", "Result", future.Response(), "Polling failure") return @@ -8215,7 +7972,7 @@ type VirtualMachinesStartFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesStartFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesStartFuture", "Result", future.Response(), "Polling failure") return @@ -8238,7 +7995,7 @@ type VirtualMachinesStopFuture struct { // If the operation has not completed it will return an error. func (future *VirtualMachinesStopFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualMachinesStopFuture", "Result", future.Response(), "Polling failure") return @@ -8256,11 +8013,11 @@ type VirtualNetwork struct { autorest.Response `json:"-"` // VirtualNetworkProperties - The properties of the resource. *VirtualNetworkProperties `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -8274,15 +8031,6 @@ func (vn VirtualNetwork) MarshalJSON() ([]byte, error) { if vn.VirtualNetworkProperties != nil { objectMap["properties"] = vn.VirtualNetworkProperties } - if vn.ID != nil { - objectMap["id"] = vn.ID - } - if vn.Name != nil { - objectMap["name"] = vn.Name - } - if vn.Type != nil { - objectMap["type"] = vn.Type - } if vn.Location != nil { objectMap["location"] = vn.Location } @@ -8365,11 +8113,11 @@ func (vn *VirtualNetwork) UnmarshalJSON(body []byte) error { type VirtualNetworkFragment struct { // VirtualNetworkPropertiesFragment - The properties of the resource. *VirtualNetworkPropertiesFragment `json:"properties,omitempty"` - // ID - The identifier of the resource. + // ID - READ-ONLY; The identifier of the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // Location - The location of the resource. Location *string `json:"location,omitempty"` @@ -8383,15 +8131,6 @@ func (vnf VirtualNetworkFragment) MarshalJSON() ([]byte, error) { if vnf.VirtualNetworkPropertiesFragment != nil { objectMap["properties"] = vnf.VirtualNetworkPropertiesFragment } - if vnf.ID != nil { - objectMap["id"] = vnf.ID - } - if vnf.Name != nil { - objectMap["name"] = vnf.Name - } - if vnf.Type != nil { - objectMap["type"] = vnf.Type - } if vnf.Location != nil { objectMap["location"] = vnf.Location } @@ -8482,7 +8221,7 @@ type VirtualNetworkProperties struct { ExternalSubnets *[]ExternalSubnet `json:"externalSubnets,omitempty"` // SubnetOverrides - The subnet overrides of the virtual network. SubnetOverrides *[]SubnetOverride `json:"subnetOverrides,omitempty"` - // CreatedDate - The creation date of the virtual network. + // CreatedDate - READ-ONLY; The creation date of the virtual network. CreatedDate *date.Time `json:"createdDate,omitempty"` // ProvisioningState - The provisioning status of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` @@ -8518,7 +8257,7 @@ type VirtualNetworksCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworksCreateOrUpdateFuture) Result(client VirtualNetworksClient) (vn VirtualNetwork, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualNetworksCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -8547,7 +8286,7 @@ type VirtualNetworksDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworksDeleteFuture) Result(client VirtualNetworksClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dtl.VirtualNetworksDeleteFuture", "Result", future.Response(), "Polling failure") return diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/eventhub/mgmt/2017-04-01/eventhub/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/eventhub/mgmt/2017-04-01/eventhub/models.go index 4cadd1c21c58..4cff4d2dc750 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/eventhub/mgmt/2017-04-01/eventhub/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/eventhub/mgmt/2017-04-01/eventhub/models.go @@ -48,6 +48,21 @@ func PossibleAccessRightsValues() []AccessRights { return []AccessRights{Listen, Manage, Send} } +// DefaultAction enumerates the values for default action. +type DefaultAction string + +const ( + // Allow ... + Allow DefaultAction = "Allow" + // Deny ... + Deny DefaultAction = "Deny" +) + +// PossibleDefaultActionValues returns an array of possible values for the DefaultAction const type. +func PossibleDefaultActionValues() []DefaultAction { + return []DefaultAction{Allow, Deny} +} + // EncodingCaptureDescription enumerates the values for encoding capture description. type EncodingCaptureDescription string @@ -107,6 +122,19 @@ func PossibleKeyTypeValues() []KeyType { return []KeyType{PrimaryKey, SecondaryKey} } +// NetworkRuleIPAction enumerates the values for network rule ip action. +type NetworkRuleIPAction string + +const ( + // NetworkRuleIPActionAllow ... + NetworkRuleIPActionAllow NetworkRuleIPAction = "Allow" +) + +// PossibleNetworkRuleIPActionValues returns an array of possible values for the NetworkRuleIPAction const type. +func PossibleNetworkRuleIPActionValues() []NetworkRuleIPAction { + return []NetworkRuleIPAction{NetworkRuleIPActionAllow} +} + // ProvisioningStateDR enumerates the values for provisioning state dr. type ProvisioningStateDR string @@ -197,19 +225,19 @@ func PossibleUnavailableReasonValues() []UnavailableReason { // AccessKeys namespace/EventHub Connection String type AccessKeys struct { autorest.Response `json:"-"` - // PrimaryConnectionString - Primary connection string of the created namespace AuthorizationRule. + // PrimaryConnectionString - READ-ONLY; Primary connection string of the created namespace AuthorizationRule. PrimaryConnectionString *string `json:"primaryConnectionString,omitempty"` - // SecondaryConnectionString - Secondary connection string of the created namespace AuthorizationRule. + // SecondaryConnectionString - READ-ONLY; Secondary connection string of the created namespace AuthorizationRule. SecondaryConnectionString *string `json:"secondaryConnectionString,omitempty"` - // AliasPrimaryConnectionString - Primary connection string of the alias if GEO DR is enabled + // AliasPrimaryConnectionString - READ-ONLY; Primary connection string of the alias if GEO DR is enabled AliasPrimaryConnectionString *string `json:"aliasPrimaryConnectionString,omitempty"` - // AliasSecondaryConnectionString - Secondary connection string of the alias if GEO DR is enabled + // AliasSecondaryConnectionString - READ-ONLY; Secondary connection string of the alias if GEO DR is enabled AliasSecondaryConnectionString *string `json:"aliasSecondaryConnectionString,omitempty"` - // PrimaryKey - A base64-encoded 256-bit primary key for signing and validating the SAS token. + // PrimaryKey - READ-ONLY; A base64-encoded 256-bit primary key for signing and validating the SAS token. PrimaryKey *string `json:"primaryKey,omitempty"` - // SecondaryKey - A base64-encoded 256-bit primary key for signing and validating the SAS token. + // SecondaryKey - READ-ONLY; A base64-encoded 256-bit primary key for signing and validating the SAS token. SecondaryKey *string `json:"secondaryKey,omitempty"` - // KeyName - A string that describes the AuthorizationRule. + // KeyName - READ-ONLY; A string that describes the AuthorizationRule. KeyName *string `json:"keyName,omitempty"` } @@ -218,11 +246,11 @@ type ArmDisasterRecovery struct { autorest.Response `json:"-"` // ArmDisasterRecoveryProperties - Properties required to the Create Or Update Alias(Disaster Recovery configurations) *ArmDisasterRecoveryProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -232,15 +260,6 @@ func (adr ArmDisasterRecovery) MarshalJSON() ([]byte, error) { if adr.ArmDisasterRecoveryProperties != nil { objectMap["properties"] = adr.ArmDisasterRecoveryProperties } - if adr.ID != nil { - objectMap["id"] = adr.ID - } - if adr.Name != nil { - objectMap["name"] = adr.Name - } - if adr.Type != nil { - objectMap["type"] = adr.Type - } return json.Marshal(objectMap) } @@ -300,7 +319,7 @@ type ArmDisasterRecoveryListResult struct { autorest.Response `json:"-"` // Value - List of Alias(Disaster Recovery configurations) Value *[]ArmDisasterRecovery `json:"value,omitempty"` - // NextLink - Link to the next set of results. Not empty if Value contains incomplete list of Alias(Disaster Recovery configuration) + // NextLink - READ-ONLY; Link to the next set of results. Not empty if Value contains incomplete list of Alias(Disaster Recovery configuration) NextLink *string `json:"nextLink,omitempty"` } @@ -445,15 +464,15 @@ func NewArmDisasterRecoveryListResultPage(getNextPage func(context.Context, ArmD // ArmDisasterRecoveryProperties properties required to the Create Or Update Alias(Disaster Recovery // configurations) type ArmDisasterRecoveryProperties struct { - // ProvisioningState - Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' or 'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed' + // ProvisioningState - READ-ONLY; Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' or 'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed' ProvisioningState ProvisioningStateDR `json:"provisioningState,omitempty"` // PartnerNamespace - ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing PartnerNamespace *string `json:"partnerNamespace,omitempty"` // AlternateName - Alternate name specified when alias and namespace names are same. AlternateName *string `json:"alternateName,omitempty"` - // Role - role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'. Possible values include: 'Primary', 'PrimaryNotReplicating', 'Secondary' + // Role - READ-ONLY; role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'. Possible values include: 'Primary', 'PrimaryNotReplicating', 'Secondary' Role RoleDisasterRecovery `json:"role,omitempty"` - // PendingReplicationOperationsCount - Number of entities pending to be replicated. + // PendingReplicationOperationsCount - READ-ONLY; Number of entities pending to be replicated. PendingReplicationOperationsCount *int64 `json:"pendingReplicationOperationsCount,omitempty"` } @@ -462,11 +481,11 @@ type AuthorizationRule struct { autorest.Response `json:"-"` // AuthorizationRuleProperties - Properties supplied to create or update AuthorizationRule *AuthorizationRuleProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -476,15 +495,6 @@ func (ar AuthorizationRule) MarshalJSON() ([]byte, error) { if ar.AuthorizationRuleProperties != nil { objectMap["properties"] = ar.AuthorizationRuleProperties } - if ar.ID != nil { - objectMap["id"] = ar.ID - } - if ar.Name != nil { - objectMap["name"] = ar.Name - } - if ar.Type != nil { - objectMap["type"] = ar.Type - } return json.Marshal(objectMap) } @@ -716,7 +726,7 @@ type CheckNameAvailabilityParameter struct { // CheckNameAvailabilityResult the Result of the CheckNameAvailability operation type CheckNameAvailabilityResult struct { autorest.Response `json:"-"` - // Message - The detailed info regarding the reason associated with the Namespace. + // Message - READ-ONLY; The detailed info regarding the reason associated with the Namespace. Message *string `json:"message,omitempty"` // NameAvailable - Value indicating Namespace is availability, true if the Namespace is available; otherwise, false. NameAvailable *bool `json:"nameAvailable,omitempty"` @@ -729,11 +739,11 @@ type ConsumerGroup struct { autorest.Response `json:"-"` // ConsumerGroupProperties - Single item in List or Get Consumer group operation *ConsumerGroupProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -743,15 +753,6 @@ func (cg ConsumerGroup) MarshalJSON() ([]byte, error) { if cg.ConsumerGroupProperties != nil { objectMap["properties"] = cg.ConsumerGroupProperties } - if cg.ID != nil { - objectMap["id"] = cg.ID - } - if cg.Name != nil { - objectMap["name"] = cg.Name - } - if cg.Type != nil { - objectMap["type"] = cg.Type - } return json.Marshal(objectMap) } @@ -954,9 +955,9 @@ func NewConsumerGroupListResultPage(getNextPage func(context.Context, ConsumerGr // ConsumerGroupProperties single item in List or Get Consumer group operation type ConsumerGroupProperties struct { - // CreatedAt - Exact time the message was created. + // CreatedAt - READ-ONLY; Exact time the message was created. CreatedAt *date.Time `json:"createdAt,omitempty"` - // UpdatedAt - The exact time the message was updated. + // UpdatedAt - READ-ONLY; The exact time the message was updated. UpdatedAt *date.Time `json:"updatedAt,omitempty"` // UserMetadata - User Metadata is a placeholder to store user-defined string data with maximum length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information also user-defined configuration settings can be stored. UserMetadata *string `json:"userMetadata,omitempty"` @@ -1037,11 +1038,11 @@ type EHNamespace struct { Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -1060,15 +1061,6 @@ func (en EHNamespace) MarshalJSON() ([]byte, error) { if en.Tags != nil { objectMap["tags"] = en.Tags } - if en.ID != nil { - objectMap["id"] = en.ID - } - if en.Name != nil { - objectMap["name"] = en.Name - } - if en.Type != nil { - objectMap["type"] = en.Type - } return json.Marshal(objectMap) } @@ -1298,15 +1290,15 @@ func NewEHNamespaceListResultPage(getNextPage func(context.Context, EHNamespaceL // EHNamespaceProperties namespace properties supplied for create namespace operation. type EHNamespaceProperties struct { - // ProvisioningState - Provisioning state of the Namespace. + // ProvisioningState - READ-ONLY; Provisioning state of the Namespace. ProvisioningState *string `json:"provisioningState,omitempty"` - // CreatedAt - The time the Namespace was created. + // CreatedAt - READ-ONLY; The time the Namespace was created. CreatedAt *date.Time `json:"createdAt,omitempty"` - // UpdatedAt - The time the Namespace was updated. + // UpdatedAt - READ-ONLY; The time the Namespace was updated. UpdatedAt *date.Time `json:"updatedAt,omitempty"` - // ServiceBusEndpoint - Endpoint you can use to perform Service Bus operations. + // ServiceBusEndpoint - READ-ONLY; Endpoint you can use to perform Service Bus operations. ServiceBusEndpoint *string `json:"serviceBusEndpoint,omitempty"` - // MetricID - Identifier for Azure Insights metrics. + // MetricID - READ-ONLY; Identifier for Azure Insights metrics. MetricID *string `json:"metricId,omitempty"` // IsAutoInflateEnabled - Value that indicates whether AutoInflate is enabled for eventhub namespace. IsAutoInflateEnabled *bool `json:"isAutoInflateEnabled,omitempty"` @@ -1479,11 +1471,11 @@ type MessagingPlan struct { Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -1499,15 +1491,6 @@ func (mp MessagingPlan) MarshalJSON() ([]byte, error) { if mp.Tags != nil { objectMap["tags"] = mp.Tags } - if mp.ID != nil { - objectMap["id"] = mp.ID - } - if mp.Name != nil { - objectMap["name"] = mp.Name - } - if mp.Type != nil { - objectMap["type"] = mp.Type - } return json.Marshal(objectMap) } @@ -1582,13 +1565,13 @@ func (mp *MessagingPlan) UnmarshalJSON(body []byte) error { // MessagingPlanProperties ... type MessagingPlanProperties struct { - // Sku - Sku type + // Sku - READ-ONLY; Sku type Sku *int32 `json:"sku,omitempty"` - // SelectedEventHubUnit - Selected event hub unit + // SelectedEventHubUnit - READ-ONLY; Selected event hub unit SelectedEventHubUnit *int32 `json:"selectedEventHubUnit,omitempty"` - // UpdatedAt - The exact time the messaging plan was updated. + // UpdatedAt - READ-ONLY; The exact time the messaging plan was updated. UpdatedAt *date.Time `json:"updatedAt,omitempty"` - // Revision - revision number + // Revision - READ-ONLY; revision number Revision *int64 `json:"revision,omitempty"` } @@ -1599,11 +1582,11 @@ type MessagingRegions struct { Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -1619,15 +1602,6 @@ func (mr MessagingRegions) MarshalJSON() ([]byte, error) { if mr.Tags != nil { objectMap["tags"] = mr.Tags } - if mr.ID != nil { - objectMap["id"] = mr.ID - } - if mr.Name != nil { - objectMap["name"] = mr.Name - } - if mr.Type != nil { - objectMap["type"] = mr.Type - } return json.Marshal(objectMap) } @@ -1636,7 +1610,7 @@ type MessagingRegionsListResult struct { autorest.Response `json:"-"` // Value - Result of the List MessagingRegions type. Value *[]MessagingRegions `json:"value,omitempty"` - // NextLink - Link to the next set of results. Not empty if Value contains incomplete list of MessagingRegions. + // NextLink - READ-ONLY; Link to the next set of results. Not empty if Value contains incomplete list of MessagingRegions. NextLink *string `json:"nextLink,omitempty"` } @@ -1779,9 +1753,9 @@ func NewMessagingRegionsListResultPage(getNextPage func(context.Context, Messagi // MessagingRegionsProperties ... type MessagingRegionsProperties struct { - // Code - Region code + // Code - READ-ONLY; Region code Code *string `json:"code,omitempty"` - // FullName - Full name of the region + // FullName - READ-ONLY; Full name of the region FullName *string `json:"fullName,omitempty"` } @@ -1790,11 +1764,11 @@ type Model struct { autorest.Response `json:"-"` // Properties - Properties supplied to the Create Or Update Event Hub operation. *Properties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -1804,15 +1778,6 @@ func (mVar Model) MarshalJSON() ([]byte, error) { if mVar.Properties != nil { objectMap["properties"] = mVar.Properties } - if mVar.ID != nil { - objectMap["id"] = mVar.ID - } - if mVar.Name != nil { - objectMap["name"] = mVar.Name - } - if mVar.Type != nil { - objectMap["type"] = mVar.Type - } return json.Marshal(objectMap) } @@ -1877,7 +1842,7 @@ type NamespacesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *NamespacesCreateOrUpdateFuture) Result(client NamespacesClient) (en EHNamespace, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1906,7 +1871,7 @@ type NamespacesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *NamespacesDeleteFuture) Result(client NamespacesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "eventhub.NamespacesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1919,9 +1884,108 @@ func (future *NamespacesDeleteFuture) Result(client NamespacesClient) (ar autore return } +// NetworkRuleSet description of NetworkRuleSet resource. +type NetworkRuleSet struct { + autorest.Response `json:"-"` + // NetworkRuleSetProperties - NetworkRuleSet properties + *NetworkRuleSetProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for NetworkRuleSet. +func (nrs NetworkRuleSet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if nrs.NetworkRuleSetProperties != nil { + objectMap["properties"] = nrs.NetworkRuleSetProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for NetworkRuleSet struct. +func (nrs *NetworkRuleSet) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var networkRuleSetProperties NetworkRuleSetProperties + err = json.Unmarshal(*v, &networkRuleSetProperties) + if err != nil { + return err + } + nrs.NetworkRuleSetProperties = &networkRuleSetProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + nrs.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + nrs.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + nrs.Type = &typeVar + } + } + } + + return nil +} + +// NetworkRuleSetProperties networkRuleSet properties +type NetworkRuleSetProperties struct { + // DefaultAction - Default Action for Network Rule Set. Possible values include: 'Allow', 'Deny' + DefaultAction DefaultAction `json:"defaultAction,omitempty"` + // VirtualNetworkRules - List VirtualNetwork Rules + VirtualNetworkRules *[]NWRuleSetVirtualNetworkRules `json:"virtualNetworkRules,omitempty"` + // IPRules - List of IpRules + IPRules *[]NWRuleSetIPRules `json:"ipRules,omitempty"` +} + +// NWRuleSetIPRules description of NetWorkRuleSet - IpRules resource. +type NWRuleSetIPRules struct { + // IPMask - IP Mask + IPMask *string `json:"ipMask,omitempty"` + // Action - The IP Filter Action. Possible values include: 'NetworkRuleIPActionAllow' + Action NetworkRuleIPAction `json:"action,omitempty"` +} + +// NWRuleSetVirtualNetworkRules description of VirtualNetworkRules - NetworkRules resource. +type NWRuleSetVirtualNetworkRules struct { + // Subnet - Subnet properties + Subnet *Subnet `json:"subnet,omitempty"` + // IgnoreMissingVnetServiceEndpoint - Value that indicates whether to ignore missing VNet Service Endpoint + IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty"` +} + // Operation a Event Hub REST API operation type Operation struct { - // Name - Operation name: {provider}/{resource}/{operation} + // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // Display - The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` @@ -1929,11 +1993,11 @@ type Operation struct { // OperationDisplay the object that represents the operation. type OperationDisplay struct { - // Provider - Service provider: Microsoft.EventHub + // Provider - READ-ONLY; Service provider: Microsoft.EventHub Provider *string `json:"provider,omitempty"` - // Resource - Resource on which the operation is performed: Invoice, etc. + // Resource - READ-ONLY; Resource on which the operation is performed: Invoice, etc. Resource *string `json:"resource,omitempty"` - // Operation - Operation type: Read, write, delete, etc. + // Operation - READ-ONLY; Operation type: Read, write, delete, etc. Operation *string `json:"operation,omitempty"` } @@ -1941,9 +2005,9 @@ type OperationDisplay struct { // and a URL link to get the next set of results. type OperationListResult struct { autorest.Response `json:"-"` - // Value - List of Event Hub operations supported by the Microsoft.EventHub resource provider. + // Value - READ-ONLY; List of Event Hub operations supported by the Microsoft.EventHub resource provider. Value *[]Operation `json:"value,omitempty"` - // NextLink - URL to get the next set of operation list results if there are any. + // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` } @@ -2086,11 +2150,11 @@ func NewOperationListResultPage(getNextPage func(context.Context, OperationListR // Properties properties supplied to the Create Or Update Event Hub operation. type Properties struct { - // PartitionIds - Current number of shards on the Event Hub. + // PartitionIds - READ-ONLY; Current number of shards on the Event Hub. PartitionIds *[]string `json:"partitionIds,omitempty"` - // CreatedAt - Exact time the Event Hub was created. + // CreatedAt - READ-ONLY; Exact time the Event Hub was created. CreatedAt *date.Time `json:"createdAt,omitempty"` - // UpdatedAt - The exact time the message was updated. + // UpdatedAt - READ-ONLY; The exact time the message was updated. UpdatedAt *date.Time `json:"updatedAt,omitempty"` // MessageRetentionInDays - Number of days to retain the events for this Event Hub, value should be 1 to 7 days MessageRetentionInDays *int64 `json:"messageRetentionInDays,omitempty"` @@ -2113,11 +2177,11 @@ type RegenerateAccessKeyParameters struct { // Resource the Resource definition type Resource struct { - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -2131,17 +2195,23 @@ type Sku struct { Capacity *int32 `json:"capacity,omitempty"` } +// Subnet properties supplied for Subnet +type Subnet struct { + // ID - Resource ID of Virtual Network Subnet + ID *string `json:"id,omitempty"` +} + // TrackedResource definition of Resource type TrackedResource struct { // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -2154,14 +2224,5 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Tags != nil { objectMap["tags"] = tr.Tags } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/eventhub/mgmt/2017-04-01/eventhub/namespaces.go b/vendor/github.com/Azure/azure-sdk-for-go/services/eventhub/mgmt/2017-04-01/eventhub/namespaces.go index a67dfa1a4671..2186099c0240 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/eventhub/mgmt/2017-04-01/eventhub/namespaces.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/eventhub/mgmt/2017-04-01/eventhub/namespaces.go @@ -324,6 +324,96 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRuleResponder(resp *ht return } +// CreateOrUpdateNetworkRuleSet create or update NetworkRuleSet for a Namespace. +// Parameters: +// resourceGroupName - name of the resource group within the azure subscription. +// namespaceName - the Namespace name +// parameters - the Namespace IpFilterRule. +func (client NamespacesClient) CreateOrUpdateNetworkRuleSet(ctx context.Context, resourceGroupName string, namespaceName string, parameters NetworkRuleSet) (result NetworkRuleSet, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NamespacesClient.CreateOrUpdateNetworkRuleSet") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: namespaceName, + Constraints: []validation.Constraint{{Target: "namespaceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "namespaceName", Name: validation.MinLength, Rule: 6, Chain: nil}}}}); err != nil { + return result, validation.NewError("eventhub.NamespacesClient", "CreateOrUpdateNetworkRuleSet", err.Error()) + } + + req, err := client.CreateOrUpdateNetworkRuleSetPreparer(ctx, resourceGroupName, namespaceName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "CreateOrUpdateNetworkRuleSet", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateNetworkRuleSetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "CreateOrUpdateNetworkRuleSet", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateNetworkRuleSetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "CreateOrUpdateNetworkRuleSet", resp, "Failure responding to request") + } + + return +} + +// CreateOrUpdateNetworkRuleSetPreparer prepares the CreateOrUpdateNetworkRuleSet request. +func (client NamespacesClient) CreateOrUpdateNetworkRuleSetPreparer(ctx context.Context, resourceGroupName string, namespaceName string, parameters NetworkRuleSet) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "namespaceName": autorest.Encode("path", namespaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2017-04-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkRuleSets/default", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateNetworkRuleSetSender sends the CreateOrUpdateNetworkRuleSet request. The method will close the +// http.Response Body if it receives an error. +func (client NamespacesClient) CreateOrUpdateNetworkRuleSetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateNetworkRuleSetResponder handles the response to the CreateOrUpdateNetworkRuleSet request. The method always +// closes the http.Response Body. +func (client NamespacesClient) CreateOrUpdateNetworkRuleSetResponder(resp *http.Response) (result NetworkRuleSet, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + // Delete deletes an existing namespace. This operation also removes all associated resources under the namespace. // Parameters: // resourceGroupName - name of the resource group within the azure subscription. @@ -765,6 +855,93 @@ func (client NamespacesClient) GetMessagingPlanResponder(resp *http.Response) (r return } +// GetNetworkRuleSet gets NetworkRuleSet for a Namespace. +// Parameters: +// resourceGroupName - name of the resource group within the azure subscription. +// namespaceName - the Namespace name +func (client NamespacesClient) GetNetworkRuleSet(ctx context.Context, resourceGroupName string, namespaceName string) (result NetworkRuleSet, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NamespacesClient.GetNetworkRuleSet") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: namespaceName, + Constraints: []validation.Constraint{{Target: "namespaceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "namespaceName", Name: validation.MinLength, Rule: 6, Chain: nil}}}}); err != nil { + return result, validation.NewError("eventhub.NamespacesClient", "GetNetworkRuleSet", err.Error()) + } + + req, err := client.GetNetworkRuleSetPreparer(ctx, resourceGroupName, namespaceName) + if err != nil { + err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "GetNetworkRuleSet", nil, "Failure preparing request") + return + } + + resp, err := client.GetNetworkRuleSetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "GetNetworkRuleSet", resp, "Failure sending request") + return + } + + result, err = client.GetNetworkRuleSetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "eventhub.NamespacesClient", "GetNetworkRuleSet", resp, "Failure responding to request") + } + + return +} + +// GetNetworkRuleSetPreparer prepares the GetNetworkRuleSet request. +func (client NamespacesClient) GetNetworkRuleSetPreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "namespaceName": autorest.Encode("path", namespaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2017-04-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkRuleSets/default", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetNetworkRuleSetSender sends the GetNetworkRuleSet request. The method will close the +// http.Response Body if it receives an error. +func (client NamespacesClient) GetNetworkRuleSetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetNetworkRuleSetResponder handles the response to the GetNetworkRuleSet request. The method always +// closes the http.Response Body. +func (client NamespacesClient) GetNetworkRuleSetResponder(resp *http.Response) (result NetworkRuleSet, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + // List lists all the available Namespaces within a subscription, irrespective of the resource groups. func (client NamespacesClient) List(ctx context.Context) (result EHNamespaceListResultPage, err error) { if tracing.IsEnabled() { diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac/applications.go b/vendor/github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac/applications.go index fc6dfc571dcf..36a3275fda91 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac/applications.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac/applications.go @@ -142,9 +142,7 @@ func (client ApplicationsClient) Create(ctx context.Context, parameters Applicat } if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.AvailableToOtherTenants", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.DisplayName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.IdentifierUris", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + Constraints: []validation.Constraint{{Target: "parameters.DisplayName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewError("graphrbac.ApplicationsClient", "Create", err.Error()) } @@ -359,6 +357,81 @@ func (client ApplicationsClient) GetResponder(resp *http.Response) (result Appli return } +// GetServicePrincipalsIDByAppID gets an object id for a given application id from the current tenant. +// Parameters: +// applicationID - the application ID. +func (client ApplicationsClient) GetServicePrincipalsIDByAppID(ctx context.Context, applicationID string) (result ServicePrincipalObjectResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationsClient.GetServicePrincipalsIDByAppID") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetServicePrincipalsIDByAppIDPreparer(ctx, applicationID) + if err != nil { + err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "GetServicePrincipalsIDByAppID", nil, "Failure preparing request") + return + } + + resp, err := client.GetServicePrincipalsIDByAppIDSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "GetServicePrincipalsIDByAppID", resp, "Failure sending request") + return + } + + result, err = client.GetServicePrincipalsIDByAppIDResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "graphrbac.ApplicationsClient", "GetServicePrincipalsIDByAppID", resp, "Failure responding to request") + } + + return +} + +// GetServicePrincipalsIDByAppIDPreparer prepares the GetServicePrincipalsIDByAppID request. +func (client ApplicationsClient) GetServicePrincipalsIDByAppIDPreparer(ctx context.Context, applicationID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationID": autorest.Encode("path", applicationID), + "tenantID": autorest.Encode("path", client.TenantID), + } + + const APIVersion = "1.6" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/{tenantID}/servicePrincipalsByAppId/{applicationID}/objectId", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetServicePrincipalsIDByAppIDSender sends the GetServicePrincipalsIDByAppID request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationsClient) GetServicePrincipalsIDByAppIDSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// GetServicePrincipalsIDByAppIDResponder handles the response to the GetServicePrincipalsIDByAppID request. The method always +// closes the http.Response Body. +func (client ApplicationsClient) GetServicePrincipalsIDByAppIDResponder(resp *http.Response) (result ServicePrincipalObjectResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + // List lists applications by filter parameters. // Parameters: // filter - the filters to apply to the operation. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac/models.go index 66c76b8ef6dc..e6b583d96f14 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac/models.go @@ -30,6 +30,21 @@ import ( // The package's fully qualified name. const fqdn = "github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac" +// ConsentType enumerates the values for consent type. +type ConsentType string + +const ( + // AllPrincipals ... + AllPrincipals ConsentType = "AllPrincipals" + // Principal ... + Principal ConsentType = "Principal" +) + +// PossibleConsentTypeValues returns an array of possible values for the ConsentType const type. +func PossibleConsentTypeValues() []ConsentType { + return []ConsentType{AllPrincipals, Principal} +} + // ObjectType enumerates the values for object type. type ObjectType string @@ -137,9 +152,9 @@ type ADGroup struct { Mail *string `json:"mail,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ObjectID - The object ID. + // ObjectID - READ-ONLY; The object ID. ObjectID *string `json:"objectId,omitempty"` - // DeletionTimestamp - The time at which the directory object was deleted. + // DeletionTimestamp - READ-ONLY; The time at which the directory object was deleted. DeletionTimestamp *date.Time `json:"deletionTimestamp,omitempty"` // ObjectType - Possible values include: 'ObjectTypeDirectoryObject', 'ObjectTypeApplication', 'ObjectTypeGroup', 'ObjectTypeServicePrincipal', 'ObjectTypeUser' ObjectType ObjectType `json:"objectType,omitempty"` @@ -164,12 +179,6 @@ func (ag ADGroup) MarshalJSON() ([]byte, error) { if ag.Mail != nil { objectMap["mail"] = ag.Mail } - if ag.ObjectID != nil { - objectMap["objectId"] = ag.ObjectID - } - if ag.DeletionTimestamp != nil { - objectMap["deletionTimestamp"] = ag.DeletionTimestamp - } if ag.ObjectType != "" { objectMap["objectType"] = ag.ObjectType } @@ -313,33 +322,72 @@ type Application struct { autorest.Response `json:"-"` // AppID - The application ID. AppID *string `json:"appId,omitempty"` + // AllowGuestsSignIn - A property on the application to indicate if the application accepts other IDPs or not or partially accepts. + AllowGuestsSignIn *bool `json:"allowGuestsSignIn,omitempty"` + // AllowPassthroughUsers - Indicates that the application supports pass through users who have no presence in the resource tenant. + AllowPassthroughUsers *bool `json:"allowPassthroughUsers,omitempty"` + // AppLogoURL - The url for the application logo image stored in a CDN. + AppLogoURL *string `json:"appLogoUrl,omitempty"` // AppRoles - The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals. AppRoles *[]AppRole `json:"appRoles,omitempty"` // AppPermissions - The application permissions. AppPermissions *[]string `json:"appPermissions,omitempty"` - // AvailableToOtherTenants - Whether the application is be available to other tenants. + // AvailableToOtherTenants - Whether the application is available to other tenants. AvailableToOtherTenants *bool `json:"availableToOtherTenants,omitempty"` // DisplayName - The display name of the application. DisplayName *string `json:"displayName,omitempty"` - // IdentifierUris - A collection of URIs for the application. - IdentifierUris *[]string `json:"identifierUris,omitempty"` - // ReplyUrls - A collection of reply URLs for the application. - ReplyUrls *[]string `json:"replyUrls,omitempty"` + // ErrorURL - A URL provided by the author of the application to report errors when using the application. + ErrorURL *string `json:"errorUrl,omitempty"` + // GroupMembershipClaims - Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects. + GroupMembershipClaims interface{} `json:"groupMembershipClaims,omitempty"` // Homepage - The home page of the application. Homepage *string `json:"homepage,omitempty"` - // Oauth2AllowImplicitFlow - Whether to allow implicit grant flow for OAuth2 - Oauth2AllowImplicitFlow *bool `json:"oauth2AllowImplicitFlow,omitempty"` - // RequiredResourceAccess - Specifies resources that this application requires access to and the set of OAuth permission scopes and application roles that it needs under each of those resources. This pre-configuration of required resource access drives the consent experience. - RequiredResourceAccess *[]RequiredResourceAccess `json:"requiredResourceAccess,omitempty"` + // IdentifierUris - A collection of URIs for the application. + IdentifierUris *[]string `json:"identifierUris,omitempty"` + // InformationalUrls - URLs with more information about the application. + InformationalUrls *InformationalURL `json:"informationalUrls,omitempty"` + // IsDeviceOnlyAuthSupported - Specifies whether this application supports device authentication without a user. The default is false. + IsDeviceOnlyAuthSupported *bool `json:"isDeviceOnlyAuthSupported,omitempty"` // KeyCredentials - A collection of KeyCredential objects. KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"` + // KnownClientApplications - Client applications that are tied to this resource application. Consent to any of the known client applications will result in implicit consent to the resource application through a combined consent dialog (showing the OAuth permission scopes required by the client and the resource). + KnownClientApplications *[]string `json:"knownClientApplications,omitempty"` + // LogoutURL - the url of the logout page + LogoutURL *string `json:"logoutUrl,omitempty"` + // Oauth2AllowImplicitFlow - Whether to allow implicit grant flow for OAuth2 + Oauth2AllowImplicitFlow *bool `json:"oauth2AllowImplicitFlow,omitempty"` + // Oauth2AllowURLPathMatching - Specifies whether during a token Request Azure AD will allow path matching of the redirect URI against the applications collection of replyURLs. The default is false. + Oauth2AllowURLPathMatching *bool `json:"oauth2AllowUrlPathMatching,omitempty"` + // Oauth2Permissions - The collection of OAuth 2.0 permission scopes that the web API (resource) application exposes to client applications. These permission scopes may be granted to client applications during consent. + Oauth2Permissions *[]OAuth2Permission `json:"oauth2Permissions,omitempty"` + // Oauth2RequirePostResponse - Specifies whether, as part of OAuth 2.0 token requests, Azure AD will allow POST requests, as opposed to GET requests. The default is false, which specifies that only GET requests will be allowed. + Oauth2RequirePostResponse *bool `json:"oauth2RequirePostResponse,omitempty"` + // OrgRestrictions - A list of tenants allowed to access application. + OrgRestrictions *[]string `json:"orgRestrictions,omitempty"` + OptionalClaims *OptionalClaims `json:"optionalClaims,omitempty"` // PasswordCredentials - A collection of PasswordCredential objects PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"` + // PreAuthorizedApplications - list of pre-authorized applications. + PreAuthorizedApplications *[]PreAuthorizedApplication `json:"preAuthorizedApplications,omitempty"` + // PublicClient - Specifies whether this application is a public client (such as an installed application running on a mobile device). Default is false. + PublicClient *bool `json:"publicClient,omitempty"` + // PublisherDomain - Reliable domain which can be used to identify an application. + PublisherDomain *string `json:"publisherDomain,omitempty"` + // ReplyUrls - A collection of reply URLs for the application. + ReplyUrls *[]string `json:"replyUrls,omitempty"` + // RequiredResourceAccess - Specifies resources that this application requires access to and the set of OAuth permission scopes and application roles that it needs under each of those resources. This pre-configuration of required resource access drives the consent experience. + RequiredResourceAccess *[]RequiredResourceAccess `json:"requiredResourceAccess,omitempty"` + // SamlMetadataURL - The URL to the SAML metadata for the application. + SamlMetadataURL *string `json:"samlMetadataUrl,omitempty"` + // SignInAudience - Audience for signing in to the application (AzureADMyOrganization, AzureADAllOrganizations, AzureADAndMicrosoftAccounts). + SignInAudience *string `json:"signInAudience,omitempty"` + // WwwHomepage - The primary Web page. + WwwHomepage *string `json:"wwwHomepage,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ObjectID - The object ID. + // ObjectID - READ-ONLY; The object ID. ObjectID *string `json:"objectId,omitempty"` - // DeletionTimestamp - The time at which the directory object was deleted. + // DeletionTimestamp - READ-ONLY; The time at which the directory object was deleted. DeletionTimestamp *date.Time `json:"deletionTimestamp,omitempty"` // ObjectType - Possible values include: 'ObjectTypeDirectoryObject', 'ObjectTypeApplication', 'ObjectTypeGroup', 'ObjectTypeServicePrincipal', 'ObjectTypeUser' ObjectType ObjectType `json:"objectType,omitempty"` @@ -352,6 +400,15 @@ func (a Application) MarshalJSON() ([]byte, error) { if a.AppID != nil { objectMap["appId"] = a.AppID } + if a.AllowGuestsSignIn != nil { + objectMap["allowGuestsSignIn"] = a.AllowGuestsSignIn + } + if a.AllowPassthroughUsers != nil { + objectMap["allowPassthroughUsers"] = a.AllowPassthroughUsers + } + if a.AppLogoURL != nil { + objectMap["appLogoUrl"] = a.AppLogoURL + } if a.AppRoles != nil { objectMap["appRoles"] = a.AppRoles } @@ -364,32 +421,77 @@ func (a Application) MarshalJSON() ([]byte, error) { if a.DisplayName != nil { objectMap["displayName"] = a.DisplayName } - if a.IdentifierUris != nil { - objectMap["identifierUris"] = a.IdentifierUris + if a.ErrorURL != nil { + objectMap["errorUrl"] = a.ErrorURL } - if a.ReplyUrls != nil { - objectMap["replyUrls"] = a.ReplyUrls + if a.GroupMembershipClaims != nil { + objectMap["groupMembershipClaims"] = a.GroupMembershipClaims } if a.Homepage != nil { objectMap["homepage"] = a.Homepage } - if a.Oauth2AllowImplicitFlow != nil { - objectMap["oauth2AllowImplicitFlow"] = a.Oauth2AllowImplicitFlow + if a.IdentifierUris != nil { + objectMap["identifierUris"] = a.IdentifierUris } - if a.RequiredResourceAccess != nil { - objectMap["requiredResourceAccess"] = a.RequiredResourceAccess + if a.InformationalUrls != nil { + objectMap["informationalUrls"] = a.InformationalUrls + } + if a.IsDeviceOnlyAuthSupported != nil { + objectMap["isDeviceOnlyAuthSupported"] = a.IsDeviceOnlyAuthSupported } if a.KeyCredentials != nil { objectMap["keyCredentials"] = a.KeyCredentials } + if a.KnownClientApplications != nil { + objectMap["knownClientApplications"] = a.KnownClientApplications + } + if a.LogoutURL != nil { + objectMap["logoutUrl"] = a.LogoutURL + } + if a.Oauth2AllowImplicitFlow != nil { + objectMap["oauth2AllowImplicitFlow"] = a.Oauth2AllowImplicitFlow + } + if a.Oauth2AllowURLPathMatching != nil { + objectMap["oauth2AllowUrlPathMatching"] = a.Oauth2AllowURLPathMatching + } + if a.Oauth2Permissions != nil { + objectMap["oauth2Permissions"] = a.Oauth2Permissions + } + if a.Oauth2RequirePostResponse != nil { + objectMap["oauth2RequirePostResponse"] = a.Oauth2RequirePostResponse + } + if a.OrgRestrictions != nil { + objectMap["orgRestrictions"] = a.OrgRestrictions + } + if a.OptionalClaims != nil { + objectMap["optionalClaims"] = a.OptionalClaims + } if a.PasswordCredentials != nil { objectMap["passwordCredentials"] = a.PasswordCredentials } - if a.ObjectID != nil { - objectMap["objectId"] = a.ObjectID + if a.PreAuthorizedApplications != nil { + objectMap["preAuthorizedApplications"] = a.PreAuthorizedApplications + } + if a.PublicClient != nil { + objectMap["publicClient"] = a.PublicClient + } + if a.PublisherDomain != nil { + objectMap["publisherDomain"] = a.PublisherDomain + } + if a.ReplyUrls != nil { + objectMap["replyUrls"] = a.ReplyUrls + } + if a.RequiredResourceAccess != nil { + objectMap["requiredResourceAccess"] = a.RequiredResourceAccess + } + if a.SamlMetadataURL != nil { + objectMap["samlMetadataUrl"] = a.SamlMetadataURL } - if a.DeletionTimestamp != nil { - objectMap["deletionTimestamp"] = a.DeletionTimestamp + if a.SignInAudience != nil { + objectMap["signInAudience"] = a.SignInAudience + } + if a.WwwHomepage != nil { + objectMap["wwwHomepage"] = a.WwwHomepage } if a.ObjectType != "" { objectMap["objectType"] = a.ObjectType @@ -448,6 +550,33 @@ func (a *Application) UnmarshalJSON(body []byte) error { } a.AppID = &appID } + case "allowGuestsSignIn": + if v != nil { + var allowGuestsSignIn bool + err = json.Unmarshal(*v, &allowGuestsSignIn) + if err != nil { + return err + } + a.AllowGuestsSignIn = &allowGuestsSignIn + } + case "allowPassthroughUsers": + if v != nil { + var allowPassthroughUsers bool + err = json.Unmarshal(*v, &allowPassthroughUsers) + if err != nil { + return err + } + a.AllowPassthroughUsers = &allowPassthroughUsers + } + case "appLogoUrl": + if v != nil { + var appLogoURL string + err = json.Unmarshal(*v, &appLogoURL) + if err != nil { + return err + } + a.AppLogoURL = &appLogoURL + } case "appRoles": if v != nil { var appRoles []AppRole @@ -484,23 +613,23 @@ func (a *Application) UnmarshalJSON(body []byte) error { } a.DisplayName = &displayName } - case "identifierUris": + case "errorUrl": if v != nil { - var identifierUris []string - err = json.Unmarshal(*v, &identifierUris) + var errorURL string + err = json.Unmarshal(*v, &errorURL) if err != nil { return err } - a.IdentifierUris = &identifierUris + a.ErrorURL = &errorURL } - case "replyUrls": + case "groupMembershipClaims": if v != nil { - var replyUrls []string - err = json.Unmarshal(*v, &replyUrls) + var groupMembershipClaims interface{} + err = json.Unmarshal(*v, &groupMembershipClaims) if err != nil { return err } - a.ReplyUrls = &replyUrls + a.GroupMembershipClaims = groupMembershipClaims } case "homepage": if v != nil { @@ -511,23 +640,32 @@ func (a *Application) UnmarshalJSON(body []byte) error { } a.Homepage = &homepage } - case "oauth2AllowImplicitFlow": + case "identifierUris": if v != nil { - var oauth2AllowImplicitFlow bool - err = json.Unmarshal(*v, &oauth2AllowImplicitFlow) + var identifierUris []string + err = json.Unmarshal(*v, &identifierUris) if err != nil { return err } - a.Oauth2AllowImplicitFlow = &oauth2AllowImplicitFlow + a.IdentifierUris = &identifierUris } - case "requiredResourceAccess": + case "informationalUrls": if v != nil { - var requiredResourceAccess []RequiredResourceAccess - err = json.Unmarshal(*v, &requiredResourceAccess) + var informationalUrls InformationalURL + err = json.Unmarshal(*v, &informationalUrls) if err != nil { return err } - a.RequiredResourceAccess = &requiredResourceAccess + a.InformationalUrls = &informationalUrls + } + case "isDeviceOnlyAuthSupported": + if v != nil { + var isDeviceOnlyAuthSupported bool + err = json.Unmarshal(*v, &isDeviceOnlyAuthSupported) + if err != nil { + return err + } + a.IsDeviceOnlyAuthSupported = &isDeviceOnlyAuthSupported } case "keyCredentials": if v != nil { @@ -538,190 +676,113 @@ func (a *Application) UnmarshalJSON(body []byte) error { } a.KeyCredentials = &keyCredentials } - case "passwordCredentials": + case "knownClientApplications": if v != nil { - var passwordCredentials []PasswordCredential - err = json.Unmarshal(*v, &passwordCredentials) + var knownClientApplications []string + err = json.Unmarshal(*v, &knownClientApplications) if err != nil { return err } - a.PasswordCredentials = &passwordCredentials + a.KnownClientApplications = &knownClientApplications } - default: + case "logoutUrl": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var logoutURL string + err = json.Unmarshal(*v, &logoutURL) if err != nil { return err } - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[k] = additionalProperties + a.LogoutURL = &logoutURL } - case "objectId": + case "oauth2AllowImplicitFlow": if v != nil { - var objectID string - err = json.Unmarshal(*v, &objectID) + var oauth2AllowImplicitFlow bool + err = json.Unmarshal(*v, &oauth2AllowImplicitFlow) if err != nil { return err } - a.ObjectID = &objectID + a.Oauth2AllowImplicitFlow = &oauth2AllowImplicitFlow } - case "deletionTimestamp": + case "oauth2AllowUrlPathMatching": if v != nil { - var deletionTimestamp date.Time - err = json.Unmarshal(*v, &deletionTimestamp) + var oauth2AllowURLPathMatching bool + err = json.Unmarshal(*v, &oauth2AllowURLPathMatching) if err != nil { return err } - a.DeletionTimestamp = &deletionTimestamp + a.Oauth2AllowURLPathMatching = &oauth2AllowURLPathMatching } - case "objectType": + case "oauth2Permissions": if v != nil { - var objectType ObjectType - err = json.Unmarshal(*v, &objectType) + var oauth2Permissions []OAuth2Permission + err = json.Unmarshal(*v, &oauth2Permissions) if err != nil { return err } - a.ObjectType = objectType + a.Oauth2Permissions = &oauth2Permissions } - } - } - - return nil -} - -// ApplicationCreateParameters request parameters for creating a new application. -type ApplicationCreateParameters struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // AppRoles - The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals. - AppRoles *[]AppRole `json:"appRoles,omitempty"` - // AvailableToOtherTenants - Whether the application is available to other tenants. - AvailableToOtherTenants *bool `json:"availableToOtherTenants,omitempty"` - // DisplayName - The display name of the application. - DisplayName *string `json:"displayName,omitempty"` - // Homepage - The home page of the application. - Homepage *string `json:"homepage,omitempty"` - // IdentifierUris - A collection of URIs for the application. - IdentifierUris *[]string `json:"identifierUris,omitempty"` - // ReplyUrls - A collection of reply URLs for the application. - ReplyUrls *[]string `json:"replyUrls,omitempty"` - // KeyCredentials - The list of KeyCredential objects. - KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"` - // PasswordCredentials - The list of PasswordCredential objects. - PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"` - // Oauth2AllowImplicitFlow - Whether to allow implicit grant flow for OAuth2 - Oauth2AllowImplicitFlow *bool `json:"oauth2AllowImplicitFlow,omitempty"` - // RequiredResourceAccess - Specifies resources that this application requires access to and the set of OAuth permission scopes and application roles that it needs under each of those resources. This pre-configuration of required resource access drives the consent experience. - RequiredResourceAccess *[]RequiredResourceAccess `json:"requiredResourceAccess,omitempty"` -} - -// MarshalJSON is the custom marshaler for ApplicationCreateParameters. -func (acp ApplicationCreateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if acp.AppRoles != nil { - objectMap["appRoles"] = acp.AppRoles - } - if acp.AvailableToOtherTenants != nil { - objectMap["availableToOtherTenants"] = acp.AvailableToOtherTenants - } - if acp.DisplayName != nil { - objectMap["displayName"] = acp.DisplayName - } - if acp.Homepage != nil { - objectMap["homepage"] = acp.Homepage - } - if acp.IdentifierUris != nil { - objectMap["identifierUris"] = acp.IdentifierUris - } - if acp.ReplyUrls != nil { - objectMap["replyUrls"] = acp.ReplyUrls - } - if acp.KeyCredentials != nil { - objectMap["keyCredentials"] = acp.KeyCredentials - } - if acp.PasswordCredentials != nil { - objectMap["passwordCredentials"] = acp.PasswordCredentials - } - if acp.Oauth2AllowImplicitFlow != nil { - objectMap["oauth2AllowImplicitFlow"] = acp.Oauth2AllowImplicitFlow - } - if acp.RequiredResourceAccess != nil { - objectMap["requiredResourceAccess"] = acp.RequiredResourceAccess - } - for k, v := range acp.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for ApplicationCreateParameters struct. -func (acp *ApplicationCreateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: + case "oauth2RequirePostResponse": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var oauth2RequirePostResponse bool + err = json.Unmarshal(*v, &oauth2RequirePostResponse) if err != nil { return err } - if acp.AdditionalProperties == nil { - acp.AdditionalProperties = make(map[string]interface{}) + a.Oauth2RequirePostResponse = &oauth2RequirePostResponse + } + case "orgRestrictions": + if v != nil { + var orgRestrictions []string + err = json.Unmarshal(*v, &orgRestrictions) + if err != nil { + return err } - acp.AdditionalProperties[k] = additionalProperties + a.OrgRestrictions = &orgRestrictions } - case "appRoles": + case "optionalClaims": if v != nil { - var appRoles []AppRole - err = json.Unmarshal(*v, &appRoles) + var optionalClaims OptionalClaims + err = json.Unmarshal(*v, &optionalClaims) if err != nil { return err } - acp.AppRoles = &appRoles + a.OptionalClaims = &optionalClaims } - case "availableToOtherTenants": + case "passwordCredentials": if v != nil { - var availableToOtherTenants bool - err = json.Unmarshal(*v, &availableToOtherTenants) + var passwordCredentials []PasswordCredential + err = json.Unmarshal(*v, &passwordCredentials) if err != nil { return err } - acp.AvailableToOtherTenants = &availableToOtherTenants + a.PasswordCredentials = &passwordCredentials } - case "displayName": + case "preAuthorizedApplications": if v != nil { - var displayName string - err = json.Unmarshal(*v, &displayName) + var preAuthorizedApplications []PreAuthorizedApplication + err = json.Unmarshal(*v, &preAuthorizedApplications) if err != nil { return err } - acp.DisplayName = &displayName + a.PreAuthorizedApplications = &preAuthorizedApplications } - case "homepage": + case "publicClient": if v != nil { - var homepage string - err = json.Unmarshal(*v, &homepage) + var publicClient bool + err = json.Unmarshal(*v, &publicClient) if err != nil { return err } - acp.Homepage = &homepage + a.PublicClient = &publicClient } - case "identifierUris": + case "publisherDomain": if v != nil { - var identifierUris []string - err = json.Unmarshal(*v, &identifierUris) + var publisherDomain string + err = json.Unmarshal(*v, &publisherDomain) if err != nil { return err } - acp.IdentifierUris = &identifierUris + a.PublisherDomain = &publisherDomain } case "replyUrls": if v != nil { @@ -730,72 +791,237 @@ func (acp *ApplicationCreateParameters) UnmarshalJSON(body []byte) error { if err != nil { return err } - acp.ReplyUrls = &replyUrls + a.ReplyUrls = &replyUrls } - case "keyCredentials": + case "requiredResourceAccess": if v != nil { - var keyCredentials []KeyCredential - err = json.Unmarshal(*v, &keyCredentials) + var requiredResourceAccess []RequiredResourceAccess + err = json.Unmarshal(*v, &requiredResourceAccess) if err != nil { return err } - acp.KeyCredentials = &keyCredentials + a.RequiredResourceAccess = &requiredResourceAccess } - case "passwordCredentials": + case "samlMetadataUrl": if v != nil { - var passwordCredentials []PasswordCredential - err = json.Unmarshal(*v, &passwordCredentials) + var samlMetadataURL string + err = json.Unmarshal(*v, &samlMetadataURL) if err != nil { return err } - acp.PasswordCredentials = &passwordCredentials + a.SamlMetadataURL = &samlMetadataURL } - case "oauth2AllowImplicitFlow": + case "signInAudience": if v != nil { - var oauth2AllowImplicitFlow bool - err = json.Unmarshal(*v, &oauth2AllowImplicitFlow) + var signInAudience string + err = json.Unmarshal(*v, &signInAudience) if err != nil { return err } - acp.Oauth2AllowImplicitFlow = &oauth2AllowImplicitFlow + a.SignInAudience = &signInAudience } - case "requiredResourceAccess": + case "wwwHomepage": if v != nil { - var requiredResourceAccess []RequiredResourceAccess - err = json.Unmarshal(*v, &requiredResourceAccess) + var wwwHomepage string + err = json.Unmarshal(*v, &wwwHomepage) if err != nil { return err } - acp.RequiredResourceAccess = &requiredResourceAccess + a.WwwHomepage = &wwwHomepage } - } - } - - return nil -} - -// ApplicationListResult application list operation result. -type ApplicationListResult struct { - autorest.Response `json:"-"` - // Value - A collection of applications. - Value *[]Application `json:"value,omitempty"` - // OdataNextLink - The URL to get the next set of results. - OdataNextLink *string `json:"odata.nextLink,omitempty"` -} - -// ApplicationListResultIterator provides access to a complete listing of Application values. -type ApplicationListResultIterator struct { - i int - page ApplicationListResultPage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *ApplicationListResultIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationListResultIterator.NextWithContext") - defer func() { - sc := -1 + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]interface{}) + } + a.AdditionalProperties[k] = additionalProperties + } + case "objectId": + if v != nil { + var objectID string + err = json.Unmarshal(*v, &objectID) + if err != nil { + return err + } + a.ObjectID = &objectID + } + case "deletionTimestamp": + if v != nil { + var deletionTimestamp date.Time + err = json.Unmarshal(*v, &deletionTimestamp) + if err != nil { + return err + } + a.DeletionTimestamp = &deletionTimestamp + } + case "objectType": + if v != nil { + var objectType ObjectType + err = json.Unmarshal(*v, &objectType) + if err != nil { + return err + } + a.ObjectType = objectType + } + } + } + + return nil +} + +// ApplicationBase active Directive Application common properties shared among GET, POST and PATCH +type ApplicationBase struct { + // AllowGuestsSignIn - A property on the application to indicate if the application accepts other IDPs or not or partially accepts. + AllowGuestsSignIn *bool `json:"allowGuestsSignIn,omitempty"` + // AllowPassthroughUsers - Indicates that the application supports pass through users who have no presence in the resource tenant. + AllowPassthroughUsers *bool `json:"allowPassthroughUsers,omitempty"` + // AppLogoURL - The url for the application logo image stored in a CDN. + AppLogoURL *string `json:"appLogoUrl,omitempty"` + // AppRoles - The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals. + AppRoles *[]AppRole `json:"appRoles,omitempty"` + // AppPermissions - The application permissions. + AppPermissions *[]string `json:"appPermissions,omitempty"` + // AvailableToOtherTenants - Whether the application is available to other tenants. + AvailableToOtherTenants *bool `json:"availableToOtherTenants,omitempty"` + // ErrorURL - A URL provided by the author of the application to report errors when using the application. + ErrorURL *string `json:"errorUrl,omitempty"` + // GroupMembershipClaims - Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects. + GroupMembershipClaims interface{} `json:"groupMembershipClaims,omitempty"` + // Homepage - The home page of the application. + Homepage *string `json:"homepage,omitempty"` + // InformationalUrls - URLs with more information about the application. + InformationalUrls *InformationalURL `json:"informationalUrls,omitempty"` + // IsDeviceOnlyAuthSupported - Specifies whether this application supports device authentication without a user. The default is false. + IsDeviceOnlyAuthSupported *bool `json:"isDeviceOnlyAuthSupported,omitempty"` + // KeyCredentials - A collection of KeyCredential objects. + KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"` + // KnownClientApplications - Client applications that are tied to this resource application. Consent to any of the known client applications will result in implicit consent to the resource application through a combined consent dialog (showing the OAuth permission scopes required by the client and the resource). + KnownClientApplications *[]string `json:"knownClientApplications,omitempty"` + // LogoutURL - the url of the logout page + LogoutURL *string `json:"logoutUrl,omitempty"` + // Oauth2AllowImplicitFlow - Whether to allow implicit grant flow for OAuth2 + Oauth2AllowImplicitFlow *bool `json:"oauth2AllowImplicitFlow,omitempty"` + // Oauth2AllowURLPathMatching - Specifies whether during a token Request Azure AD will allow path matching of the redirect URI against the applications collection of replyURLs. The default is false. + Oauth2AllowURLPathMatching *bool `json:"oauth2AllowUrlPathMatching,omitempty"` + // Oauth2Permissions - The collection of OAuth 2.0 permission scopes that the web API (resource) application exposes to client applications. These permission scopes may be granted to client applications during consent. + Oauth2Permissions *[]OAuth2Permission `json:"oauth2Permissions,omitempty"` + // Oauth2RequirePostResponse - Specifies whether, as part of OAuth 2.0 token requests, Azure AD will allow POST requests, as opposed to GET requests. The default is false, which specifies that only GET requests will be allowed. + Oauth2RequirePostResponse *bool `json:"oauth2RequirePostResponse,omitempty"` + // OrgRestrictions - A list of tenants allowed to access application. + OrgRestrictions *[]string `json:"orgRestrictions,omitempty"` + OptionalClaims *OptionalClaims `json:"optionalClaims,omitempty"` + // PasswordCredentials - A collection of PasswordCredential objects + PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"` + // PreAuthorizedApplications - list of pre-authorized applications. + PreAuthorizedApplications *[]PreAuthorizedApplication `json:"preAuthorizedApplications,omitempty"` + // PublicClient - Specifies whether this application is a public client (such as an installed application running on a mobile device). Default is false. + PublicClient *bool `json:"publicClient,omitempty"` + // PublisherDomain - Reliable domain which can be used to identify an application. + PublisherDomain *string `json:"publisherDomain,omitempty"` + // ReplyUrls - A collection of reply URLs for the application. + ReplyUrls *[]string `json:"replyUrls,omitempty"` + // RequiredResourceAccess - Specifies resources that this application requires access to and the set of OAuth permission scopes and application roles that it needs under each of those resources. This pre-configuration of required resource access drives the consent experience. + RequiredResourceAccess *[]RequiredResourceAccess `json:"requiredResourceAccess,omitempty"` + // SamlMetadataURL - The URL to the SAML metadata for the application. + SamlMetadataURL *string `json:"samlMetadataUrl,omitempty"` + // SignInAudience - Audience for signing in to the application (AzureADMyOrganization, AzureADAllOrganizations, AzureADAndMicrosoftAccounts). + SignInAudience *string `json:"signInAudience,omitempty"` + // WwwHomepage - The primary Web page. + WwwHomepage *string `json:"wwwHomepage,omitempty"` +} + +// ApplicationCreateParameters request parameters for creating a new application. +type ApplicationCreateParameters struct { + // DisplayName - The display name of the application. + DisplayName *string `json:"displayName,omitempty"` + // IdentifierUris - A collection of URIs for the application. + IdentifierUris *[]string `json:"identifierUris,omitempty"` + // AllowGuestsSignIn - A property on the application to indicate if the application accepts other IDPs or not or partially accepts. + AllowGuestsSignIn *bool `json:"allowGuestsSignIn,omitempty"` + // AllowPassthroughUsers - Indicates that the application supports pass through users who have no presence in the resource tenant. + AllowPassthroughUsers *bool `json:"allowPassthroughUsers,omitempty"` + // AppLogoURL - The url for the application logo image stored in a CDN. + AppLogoURL *string `json:"appLogoUrl,omitempty"` + // AppRoles - The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals. + AppRoles *[]AppRole `json:"appRoles,omitempty"` + // AppPermissions - The application permissions. + AppPermissions *[]string `json:"appPermissions,omitempty"` + // AvailableToOtherTenants - Whether the application is available to other tenants. + AvailableToOtherTenants *bool `json:"availableToOtherTenants,omitempty"` + // ErrorURL - A URL provided by the author of the application to report errors when using the application. + ErrorURL *string `json:"errorUrl,omitempty"` + // GroupMembershipClaims - Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects. + GroupMembershipClaims interface{} `json:"groupMembershipClaims,omitempty"` + // Homepage - The home page of the application. + Homepage *string `json:"homepage,omitempty"` + // InformationalUrls - URLs with more information about the application. + InformationalUrls *InformationalURL `json:"informationalUrls,omitempty"` + // IsDeviceOnlyAuthSupported - Specifies whether this application supports device authentication without a user. The default is false. + IsDeviceOnlyAuthSupported *bool `json:"isDeviceOnlyAuthSupported,omitempty"` + // KeyCredentials - A collection of KeyCredential objects. + KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"` + // KnownClientApplications - Client applications that are tied to this resource application. Consent to any of the known client applications will result in implicit consent to the resource application through a combined consent dialog (showing the OAuth permission scopes required by the client and the resource). + KnownClientApplications *[]string `json:"knownClientApplications,omitempty"` + // LogoutURL - the url of the logout page + LogoutURL *string `json:"logoutUrl,omitempty"` + // Oauth2AllowImplicitFlow - Whether to allow implicit grant flow for OAuth2 + Oauth2AllowImplicitFlow *bool `json:"oauth2AllowImplicitFlow,omitempty"` + // Oauth2AllowURLPathMatching - Specifies whether during a token Request Azure AD will allow path matching of the redirect URI against the applications collection of replyURLs. The default is false. + Oauth2AllowURLPathMatching *bool `json:"oauth2AllowUrlPathMatching,omitempty"` + // Oauth2Permissions - The collection of OAuth 2.0 permission scopes that the web API (resource) application exposes to client applications. These permission scopes may be granted to client applications during consent. + Oauth2Permissions *[]OAuth2Permission `json:"oauth2Permissions,omitempty"` + // Oauth2RequirePostResponse - Specifies whether, as part of OAuth 2.0 token requests, Azure AD will allow POST requests, as opposed to GET requests. The default is false, which specifies that only GET requests will be allowed. + Oauth2RequirePostResponse *bool `json:"oauth2RequirePostResponse,omitempty"` + // OrgRestrictions - A list of tenants allowed to access application. + OrgRestrictions *[]string `json:"orgRestrictions,omitempty"` + OptionalClaims *OptionalClaims `json:"optionalClaims,omitempty"` + // PasswordCredentials - A collection of PasswordCredential objects + PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"` + // PreAuthorizedApplications - list of pre-authorized applications. + PreAuthorizedApplications *[]PreAuthorizedApplication `json:"preAuthorizedApplications,omitempty"` + // PublicClient - Specifies whether this application is a public client (such as an installed application running on a mobile device). Default is false. + PublicClient *bool `json:"publicClient,omitempty"` + // PublisherDomain - Reliable domain which can be used to identify an application. + PublisherDomain *string `json:"publisherDomain,omitempty"` + // ReplyUrls - A collection of reply URLs for the application. + ReplyUrls *[]string `json:"replyUrls,omitempty"` + // RequiredResourceAccess - Specifies resources that this application requires access to and the set of OAuth permission scopes and application roles that it needs under each of those resources. This pre-configuration of required resource access drives the consent experience. + RequiredResourceAccess *[]RequiredResourceAccess `json:"requiredResourceAccess,omitempty"` + // SamlMetadataURL - The URL to the SAML metadata for the application. + SamlMetadataURL *string `json:"samlMetadataUrl,omitempty"` + // SignInAudience - Audience for signing in to the application (AzureADMyOrganization, AzureADAllOrganizations, AzureADAndMicrosoftAccounts). + SignInAudience *string `json:"signInAudience,omitempty"` + // WwwHomepage - The primary Web page. + WwwHomepage *string `json:"wwwHomepage,omitempty"` +} + +// ApplicationListResult application list operation result. +type ApplicationListResult struct { + autorest.Response `json:"-"` + // Value - A collection of applications. + Value *[]Application `json:"value,omitempty"` + // OdataNextLink - The URL to get the next set of results. + OdataNextLink *string `json:"odata.nextLink,omitempty"` +} + +// ApplicationListResultIterator provides access to a complete listing of Application values. +type ApplicationListResultIterator struct { + i int + page ApplicationListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ApplicationListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ApplicationListResultIterator.NextWithContext") + defer func() { + sc := -1 if iter.Response().Response.Response != nil { sc = iter.Response().Response.Response.StatusCode } @@ -908,186 +1134,69 @@ func NewApplicationListResultPage(getNextPage func(context.Context, ApplicationL return ApplicationListResultPage{fn: getNextPage} } -// ApplicationUpdateParameters request parameters for updating an existing application. +// ApplicationUpdateParameters request parameters for updating a new application. type ApplicationUpdateParameters struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` + // DisplayName - The display name of the application. + DisplayName *string `json:"displayName,omitempty"` + // IdentifierUris - A collection of URIs for the application. + IdentifierUris *[]string `json:"identifierUris,omitempty"` + // AllowGuestsSignIn - A property on the application to indicate if the application accepts other IDPs or not or partially accepts. + AllowGuestsSignIn *bool `json:"allowGuestsSignIn,omitempty"` + // AllowPassthroughUsers - Indicates that the application supports pass through users who have no presence in the resource tenant. + AllowPassthroughUsers *bool `json:"allowPassthroughUsers,omitempty"` + // AppLogoURL - The url for the application logo image stored in a CDN. + AppLogoURL *string `json:"appLogoUrl,omitempty"` // AppRoles - The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals. AppRoles *[]AppRole `json:"appRoles,omitempty"` - // AvailableToOtherTenants - Whether the application is available to other tenants + // AppPermissions - The application permissions. + AppPermissions *[]string `json:"appPermissions,omitempty"` + // AvailableToOtherTenants - Whether the application is available to other tenants. AvailableToOtherTenants *bool `json:"availableToOtherTenants,omitempty"` - // DisplayName - The display name of the application. - DisplayName *string `json:"displayName,omitempty"` + // ErrorURL - A URL provided by the author of the application to report errors when using the application. + ErrorURL *string `json:"errorUrl,omitempty"` + // GroupMembershipClaims - Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects. + GroupMembershipClaims interface{} `json:"groupMembershipClaims,omitempty"` // Homepage - The home page of the application. Homepage *string `json:"homepage,omitempty"` - // IdentifierUris - A collection of URIs for the application. - IdentifierUris *[]string `json:"identifierUris,omitempty"` - // ReplyUrls - A collection of reply URLs for the application. - ReplyUrls *[]string `json:"replyUrls,omitempty"` - // KeyCredentials - The list of KeyCredential objects. + // InformationalUrls - URLs with more information about the application. + InformationalUrls *InformationalURL `json:"informationalUrls,omitempty"` + // IsDeviceOnlyAuthSupported - Specifies whether this application supports device authentication without a user. The default is false. + IsDeviceOnlyAuthSupported *bool `json:"isDeviceOnlyAuthSupported,omitempty"` + // KeyCredentials - A collection of KeyCredential objects. KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"` - // PasswordCredentials - The list of PasswordCredential objects. - PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"` + // KnownClientApplications - Client applications that are tied to this resource application. Consent to any of the known client applications will result in implicit consent to the resource application through a combined consent dialog (showing the OAuth permission scopes required by the client and the resource). + KnownClientApplications *[]string `json:"knownClientApplications,omitempty"` + // LogoutURL - the url of the logout page + LogoutURL *string `json:"logoutUrl,omitempty"` // Oauth2AllowImplicitFlow - Whether to allow implicit grant flow for OAuth2 Oauth2AllowImplicitFlow *bool `json:"oauth2AllowImplicitFlow,omitempty"` + // Oauth2AllowURLPathMatching - Specifies whether during a token Request Azure AD will allow path matching of the redirect URI against the applications collection of replyURLs. The default is false. + Oauth2AllowURLPathMatching *bool `json:"oauth2AllowUrlPathMatching,omitempty"` + // Oauth2Permissions - The collection of OAuth 2.0 permission scopes that the web API (resource) application exposes to client applications. These permission scopes may be granted to client applications during consent. + Oauth2Permissions *[]OAuth2Permission `json:"oauth2Permissions,omitempty"` + // Oauth2RequirePostResponse - Specifies whether, as part of OAuth 2.0 token requests, Azure AD will allow POST requests, as opposed to GET requests. The default is false, which specifies that only GET requests will be allowed. + Oauth2RequirePostResponse *bool `json:"oauth2RequirePostResponse,omitempty"` + // OrgRestrictions - A list of tenants allowed to access application. + OrgRestrictions *[]string `json:"orgRestrictions,omitempty"` + OptionalClaims *OptionalClaims `json:"optionalClaims,omitempty"` + // PasswordCredentials - A collection of PasswordCredential objects + PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"` + // PreAuthorizedApplications - list of pre-authorized applications. + PreAuthorizedApplications *[]PreAuthorizedApplication `json:"preAuthorizedApplications,omitempty"` + // PublicClient - Specifies whether this application is a public client (such as an installed application running on a mobile device). Default is false. + PublicClient *bool `json:"publicClient,omitempty"` + // PublisherDomain - Reliable domain which can be used to identify an application. + PublisherDomain *string `json:"publisherDomain,omitempty"` + // ReplyUrls - A collection of reply URLs for the application. + ReplyUrls *[]string `json:"replyUrls,omitempty"` // RequiredResourceAccess - Specifies resources that this application requires access to and the set of OAuth permission scopes and application roles that it needs under each of those resources. This pre-configuration of required resource access drives the consent experience. RequiredResourceAccess *[]RequiredResourceAccess `json:"requiredResourceAccess,omitempty"` -} - -// MarshalJSON is the custom marshaler for ApplicationUpdateParameters. -func (aup ApplicationUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if aup.AppRoles != nil { - objectMap["appRoles"] = aup.AppRoles - } - if aup.AvailableToOtherTenants != nil { - objectMap["availableToOtherTenants"] = aup.AvailableToOtherTenants - } - if aup.DisplayName != nil { - objectMap["displayName"] = aup.DisplayName - } - if aup.Homepage != nil { - objectMap["homepage"] = aup.Homepage - } - if aup.IdentifierUris != nil { - objectMap["identifierUris"] = aup.IdentifierUris - } - if aup.ReplyUrls != nil { - objectMap["replyUrls"] = aup.ReplyUrls - } - if aup.KeyCredentials != nil { - objectMap["keyCredentials"] = aup.KeyCredentials - } - if aup.PasswordCredentials != nil { - objectMap["passwordCredentials"] = aup.PasswordCredentials - } - if aup.Oauth2AllowImplicitFlow != nil { - objectMap["oauth2AllowImplicitFlow"] = aup.Oauth2AllowImplicitFlow - } - if aup.RequiredResourceAccess != nil { - objectMap["requiredResourceAccess"] = aup.RequiredResourceAccess - } - for k, v := range aup.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for ApplicationUpdateParameters struct. -func (aup *ApplicationUpdateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if aup.AdditionalProperties == nil { - aup.AdditionalProperties = make(map[string]interface{}) - } - aup.AdditionalProperties[k] = additionalProperties - } - case "appRoles": - if v != nil { - var appRoles []AppRole - err = json.Unmarshal(*v, &appRoles) - if err != nil { - return err - } - aup.AppRoles = &appRoles - } - case "availableToOtherTenants": - if v != nil { - var availableToOtherTenants bool - err = json.Unmarshal(*v, &availableToOtherTenants) - if err != nil { - return err - } - aup.AvailableToOtherTenants = &availableToOtherTenants - } - case "displayName": - if v != nil { - var displayName string - err = json.Unmarshal(*v, &displayName) - if err != nil { - return err - } - aup.DisplayName = &displayName - } - case "homepage": - if v != nil { - var homepage string - err = json.Unmarshal(*v, &homepage) - if err != nil { - return err - } - aup.Homepage = &homepage - } - case "identifierUris": - if v != nil { - var identifierUris []string - err = json.Unmarshal(*v, &identifierUris) - if err != nil { - return err - } - aup.IdentifierUris = &identifierUris - } - case "replyUrls": - if v != nil { - var replyUrls []string - err = json.Unmarshal(*v, &replyUrls) - if err != nil { - return err - } - aup.ReplyUrls = &replyUrls - } - case "keyCredentials": - if v != nil { - var keyCredentials []KeyCredential - err = json.Unmarshal(*v, &keyCredentials) - if err != nil { - return err - } - aup.KeyCredentials = &keyCredentials - } - case "passwordCredentials": - if v != nil { - var passwordCredentials []PasswordCredential - err = json.Unmarshal(*v, &passwordCredentials) - if err != nil { - return err - } - aup.PasswordCredentials = &passwordCredentials - } - case "oauth2AllowImplicitFlow": - if v != nil { - var oauth2AllowImplicitFlow bool - err = json.Unmarshal(*v, &oauth2AllowImplicitFlow) - if err != nil { - return err - } - aup.Oauth2AllowImplicitFlow = &oauth2AllowImplicitFlow - } - case "requiredResourceAccess": - if v != nil { - var requiredResourceAccess []RequiredResourceAccess - err = json.Unmarshal(*v, &requiredResourceAccess) - if err != nil { - return err - } - aup.RequiredResourceAccess = &requiredResourceAccess - } - } - } - - return nil + // SamlMetadataURL - The URL to the SAML metadata for the application. + SamlMetadataURL *string `json:"samlMetadataUrl,omitempty"` + // SignInAudience - Audience for signing in to the application (AzureADMyOrganization, AzureADAllOrganizations, AzureADAndMicrosoftAccounts). + SignInAudience *string `json:"signInAudience,omitempty"` + // WwwHomepage - The primary Web page. + WwwHomepage *string `json:"wwwHomepage,omitempty"` } // AppRole ... @@ -1246,9 +1355,9 @@ type BasicDirectoryObject interface { type DirectoryObject struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ObjectID - The object ID. + // ObjectID - READ-ONLY; The object ID. ObjectID *string `json:"objectId,omitempty"` - // DeletionTimestamp - The time at which the directory object was deleted. + // DeletionTimestamp - READ-ONLY; The time at which the directory object was deleted. DeletionTimestamp *date.Time `json:"deletionTimestamp,omitempty"` // ObjectType - Possible values include: 'ObjectTypeDirectoryObject', 'ObjectTypeApplication', 'ObjectTypeGroup', 'ObjectTypeServicePrincipal', 'ObjectTypeUser' ObjectType ObjectType `json:"objectType,omitempty"` @@ -1307,12 +1416,6 @@ func unmarshalBasicDirectoryObjectArray(body []byte) ([]BasicDirectoryObject, er func (do DirectoryObject) MarshalJSON() ([]byte, error) { do.ObjectType = ObjectTypeDirectoryObject objectMap := make(map[string]interface{}) - if do.ObjectID != nil { - objectMap["objectId"] = do.ObjectID - } - if do.DeletionTimestamp != nil { - objectMap["deletionTimestamp"] = do.DeletionTimestamp - } if do.ObjectType != "" { objectMap["objectType"] = do.ObjectType } @@ -1589,11 +1692,11 @@ type Domain struct { autorest.Response `json:"-"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // AuthenticationType - the type of the authentication into the domain. + // AuthenticationType - READ-ONLY; the type of the authentication into the domain. AuthenticationType *string `json:"authenticationType,omitempty"` - // IsDefault - if this is the default domain in the tenant. + // IsDefault - READ-ONLY; if this is the default domain in the tenant. IsDefault *bool `json:"isDefault,omitempty"` - // IsVerified - if this domain's ownership is verified. + // IsVerified - READ-ONLY; if this domain's ownership is verified. IsVerified *bool `json:"isVerified,omitempty"` // Name - the domain name. Name *string `json:"name,omitempty"` @@ -1602,17 +1705,8 @@ type Domain struct { // MarshalJSON is the custom marshaler for Domain. func (d Domain) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if d.AuthenticationType != nil { - objectMap["authenticationType"] = d.AuthenticationType - } - if d.IsDefault != nil { - objectMap["isDefault"] = d.IsDefault - } - if d.IsVerified != nil { - objectMap["isVerified"] = d.IsVerified - } - if d.Name != nil { - objectMap["name"] = d.Name + if d.Name != nil { + objectMap["name"] = d.Name } for k, v := range d.AdditionalProperties { objectMap[k] = v @@ -2170,6 +2264,19 @@ func NewGroupListResultPage(getNextPage func(context.Context, GroupListResult) ( return GroupListResultPage{fn: getNextPage} } +// InformationalURL represents a group of URIs that provide terms of service, marketing, support and +// privacy policy information about an application. The default value for each string is null. +type InformationalURL struct { + // TermsOfService - The terms of service URI + TermsOfService *string `json:"termsOfService,omitempty"` + // Marketing - The marketing URI + Marketing *string `json:"marketing,omitempty"` + // Privacy - The privacy policy URI + Privacy *string `json:"privacy,omitempty"` + // Support - The support URI + Support *string `json:"support,omitempty"` +} + // KeyCredential active Directory Key Credential information. type KeyCredential struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -2323,6 +2430,187 @@ type KeyCredentialsUpdateParameters struct { Value *[]KeyCredential `json:"value,omitempty"` } +// OAuth2Permission represents an OAuth 2.0 delegated permission scope. The specified OAuth 2.0 delegated +// permission scopes may be requested by client applications (through the requiredResourceAccess collection +// on the Application object) when calling a resource application. The oauth2Permissions property of the +// ServicePrincipal entity and of the Application entity is a collection of OAuth2Permission. +type OAuth2Permission struct { + // AdminConsentDescription - Permission help text that appears in the admin consent and app assignment experiences. + AdminConsentDescription *string `json:"adminConsentDescription,omitempty"` + // AdminConsentDisplayName - Display name for the permission that appears in the admin consent and app assignment experiences. + AdminConsentDisplayName *string `json:"adminConsentDisplayName,omitempty"` + // ID - Unique scope permission identifier inside the oauth2Permissions collection. + ID *string `json:"id,omitempty"` + // IsEnabled - When creating or updating a permission, this property must be set to true (which is the default). To delete a permission, this property must first be set to false. At that point, in a subsequent call, the permission may be removed. + IsEnabled *bool `json:"isEnabled,omitempty"` + // Type - Specifies whether this scope permission can be consented to by an end user, or whether it is a tenant-wide permission that must be consented to by a Company Administrator. Possible values are "User" or "Admin". + Type *string `json:"type,omitempty"` + // UserConsentDescription - Permission help text that appears in the end user consent experience. + UserConsentDescription *string `json:"userConsentDescription,omitempty"` + // UserConsentDisplayName - Display name for the permission that appears in the end user consent experience. + UserConsentDisplayName *string `json:"userConsentDisplayName,omitempty"` + // Value - The value of the scope claim that the resource application should expect in the OAuth 2.0 access token. + Value *string `json:"value,omitempty"` +} + +// OAuth2PermissionGrant ... +type OAuth2PermissionGrant struct { + autorest.Response `json:"-"` + // OdataType - Microsoft.DirectoryServices.OAuth2PermissionGrant + OdataType *string `json:"odata.type,omitempty"` + // ClientID - The id of the resource's service principal granted consent to impersonate the user when accessing the resource (represented by the resourceId property). + ClientID *string `json:"clientId,omitempty"` + // ObjectID - The id of the permission grant + ObjectID *string `json:"objectId,omitempty"` + // ConsentType - Indicates if consent was provided by the administrator (on behalf of the organization) or by an individual. Possible values include: 'AllPrincipals', 'Principal' + ConsentType ConsentType `json:"consentType,omitempty"` + // PrincipalID - When consent type is Principal, this property specifies the id of the user that granted consent and applies only for that user. + PrincipalID *string `json:"principalId,omitempty"` + // ResourceID - Object Id of the resource you want to grant + ResourceID *string `json:"resourceId,omitempty"` + // Scope - Specifies the value of the scope claim that the resource application should expect in the OAuth 2.0 access token. For example, User.Read + Scope *string `json:"scope,omitempty"` + // StartTime - Start time for TTL + StartTime *string `json:"startTime,omitempty"` + // ExpiryTime - Expiry time for TTL + ExpiryTime *string `json:"expiryTime,omitempty"` +} + +// OAuth2PermissionGrantListResult server response for get oauth2 permissions grants +type OAuth2PermissionGrantListResult struct { + autorest.Response `json:"-"` + // Value - the list of oauth2 permissions grants + Value *[]OAuth2PermissionGrant `json:"value,omitempty"` + // OdataNextLink - the URL to get the next set of results. + OdataNextLink *string `json:"odata.nextLink,omitempty"` +} + +// OAuth2PermissionGrantListResultIterator provides access to a complete listing of OAuth2PermissionGrant +// values. +type OAuth2PermissionGrantListResultIterator struct { + i int + page OAuth2PermissionGrantListResultPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *OAuth2PermissionGrantListResultIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OAuth2PermissionGrantListResultIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *OAuth2PermissionGrantListResultIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter OAuth2PermissionGrantListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter OAuth2PermissionGrantListResultIterator) Response() OAuth2PermissionGrantListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter OAuth2PermissionGrantListResultIterator) Value() OAuth2PermissionGrant { + if !iter.page.NotDone() { + return OAuth2PermissionGrant{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the OAuth2PermissionGrantListResultIterator type. +func NewOAuth2PermissionGrantListResultIterator(page OAuth2PermissionGrantListResultPage) OAuth2PermissionGrantListResultIterator { + return OAuth2PermissionGrantListResultIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (oa2pglr OAuth2PermissionGrantListResult) IsEmpty() bool { + return oa2pglr.Value == nil || len(*oa2pglr.Value) == 0 +} + +// OAuth2PermissionGrantListResultPage contains a page of OAuth2PermissionGrant values. +type OAuth2PermissionGrantListResultPage struct { + fn func(context.Context, OAuth2PermissionGrantListResult) (OAuth2PermissionGrantListResult, error) + oa2pglr OAuth2PermissionGrantListResult +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *OAuth2PermissionGrantListResultPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OAuth2PermissionGrantListResultPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.oa2pglr) + if err != nil { + return err + } + page.oa2pglr = next + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *OAuth2PermissionGrantListResultPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page OAuth2PermissionGrantListResultPage) NotDone() bool { + return !page.oa2pglr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page OAuth2PermissionGrantListResultPage) Response() OAuth2PermissionGrantListResult { + return page.oa2pglr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page OAuth2PermissionGrantListResultPage) Values() []OAuth2PermissionGrant { + if page.oa2pglr.IsEmpty() { + return nil + } + return *page.oa2pglr.Value +} + +// Creates a new instance of the OAuth2PermissionGrantListResultPage type. +func NewOAuth2PermissionGrantListResultPage(getNextPage func(context.Context, OAuth2PermissionGrantListResult) (OAuth2PermissionGrantListResult, error)) OAuth2PermissionGrantListResultPage { + return OAuth2PermissionGrantListResultPage{fn: getNextPage} +} + // OdataError active Directory OData error information. type OdataError struct { // Code - Error code. @@ -2376,6 +2664,27 @@ func (oe *OdataError) UnmarshalJSON(body []byte) error { return nil } +// OptionalClaim specifying the claims to be included in a token. +type OptionalClaim struct { + // Name - Claim name. + Name *string `json:"name,omitempty"` + // Source - Claim source. + Source *string `json:"source,omitempty"` + // Essential - Is this a required claim. + Essential *bool `json:"essential,omitempty"` + AdditionalProperties interface{} `json:"additionalProperties,omitempty"` +} + +// OptionalClaims specifying the claims to be included in the token. +type OptionalClaims struct { + // IDToken - Optional claims requested to be included in the id token. + IDToken *[]OptionalClaim `json:"idToken,omitempty"` + // AccessToken - Optional claims requested to be included in the access token. + AccessToken *[]OptionalClaim `json:"accessToken,omitempty"` + // SamlToken - Optional claims requested to be included in the saml token. + SamlToken *[]OptionalClaim `json:"samlToken,omitempty"` +} + // PasswordCredential active Directory Password Credential information. type PasswordCredential struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection @@ -2571,25 +2880,29 @@ func (pp *PasswordProfile) UnmarshalJSON(body []byte) error { return nil } -// Permissions ... -type Permissions struct { - autorest.Response `json:"-"` - // OdataType - Microsoft.DirectoryServices.OAuth2PermissionGrant - OdataType *string `json:"odata.type,omitempty"` - // ClientID - The objectId of the Service Principal associated with the app - ClientID *string `json:"clientId,omitempty"` - // ConsentType - Typically set to AllPrincipals - ConsentType *string `json:"consentType,omitempty"` - // PrincipalID - Set to null if AllPrincipals is set - PrincipalID interface{} `json:"principalId,omitempty"` - // ResourceID - Service Principal Id of the resource you want to grant - ResourceID *string `json:"resourceId,omitempty"` - // Scope - Typically set to user_impersonation - Scope *string `json:"scope,omitempty"` - // StartTime - Start time for TTL - StartTime *string `json:"startTime,omitempty"` - // ExpiryTime - Expiry time for TTL - ExpiryTime *string `json:"expiryTime,omitempty"` +// PreAuthorizedApplication contains information about pre authorized client application. +type PreAuthorizedApplication struct { + // AppID - Represents the application id. + AppID *string `json:"appId,omitempty"` + // Permissions - Collection of required app permissions/entitlements from the resource application. + Permissions *[]PreAuthorizedApplicationPermission `json:"permissions,omitempty"` + // Extensions - Collection of extensions from the resource application. + Extensions *[]PreAuthorizedApplicationExtension `json:"extensions,omitempty"` +} + +// PreAuthorizedApplicationExtension representation of an app PreAuthorizedApplicationExtension required by +// a pre authorized client app. +type PreAuthorizedApplicationExtension struct { + // Conditions - The extension's conditions. + Conditions *[]string `json:"conditions,omitempty"` +} + +// PreAuthorizedApplicationPermission contains information about the pre-authorized permissions. +type PreAuthorizedApplicationPermission struct { + // DirectAccessGrant - Indicates whether the permission set is DirectAccess or impersonation. + DirectAccessGrant *bool `json:"directAccessGrant,omitempty"` + // AccessGrants - The list of permissions. + AccessGrants *[]string `json:"accessGrants,omitempty"` } // RequiredResourceAccess specifies the set of OAuth 2.0 permission scopes and app roles under the @@ -2740,19 +3053,53 @@ func (ra *ResourceAccess) UnmarshalJSON(body []byte) error { // ServicePrincipal active Directory service principal information. type ServicePrincipal struct { autorest.Response `json:"-"` - // DisplayName - The display name of the service principal. - DisplayName *string `json:"displayName,omitempty"` + // AccountEnabled - whether or not the service principal account is enabled + AccountEnabled *bool `json:"accountEnabled,omitempty"` + // AlternativeNames - alternative names + AlternativeNames *[]string `json:"alternativeNames,omitempty"` + // AppDisplayName - READ-ONLY; The display name exposed by the associated application. + AppDisplayName *string `json:"appDisplayName,omitempty"` // AppID - The application ID. AppID *string `json:"appId,omitempty"` + // AppOwnerTenantID - READ-ONLY + AppOwnerTenantID *string `json:"appOwnerTenantId,omitempty"` + // AppRoleAssignmentRequired - Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application. + AppRoleAssignmentRequired *bool `json:"appRoleAssignmentRequired,omitempty"` // AppRoles - The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals. AppRoles *[]AppRole `json:"appRoles,omitempty"` + // DisplayName - The display name of the service principal. + DisplayName *string `json:"displayName,omitempty"` + // ErrorURL - A URL provided by the author of the associated application to report errors when using the application. + ErrorURL *string `json:"errorUrl,omitempty"` + // Homepage - The URL to the homepage of the associated application. + Homepage *string `json:"homepage,omitempty"` + // KeyCredentials - The collection of key credentials associated with the service principal. + KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"` + // LogoutURL - A URL provided by the author of the associated application to logout + LogoutURL *string `json:"logoutUrl,omitempty"` + // Oauth2Permissions - READ-ONLY; The OAuth 2.0 permissions exposed by the associated application. + Oauth2Permissions *[]OAuth2Permission `json:"oauth2Permissions,omitempty"` + // PasswordCredentials - The collection of password credentials associated with the service principal. + PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"` + // PreferredTokenSigningKeyThumbprint - The thumbprint of preferred certificate to sign the token + PreferredTokenSigningKeyThumbprint *string `json:"preferredTokenSigningKeyThumbprint,omitempty"` + // PublisherName - The publisher's name of the associated application + PublisherName *string `json:"publisherName,omitempty"` + // ReplyUrls - The URLs that user tokens are sent to for sign in with the associated application. The redirect URIs that the oAuth 2.0 authorization code and access tokens are sent to for the associated application. + ReplyUrls *[]string `json:"replyUrls,omitempty"` + // SamlMetadataURL - The URL to the SAML metadata of the associated application + SamlMetadataURL *string `json:"samlMetadataUrl,omitempty"` // ServicePrincipalNames - A collection of service principal names. ServicePrincipalNames *[]string `json:"servicePrincipalNames,omitempty"` + // ServicePrincipalType - the type of the service principal + ServicePrincipalType *string `json:"servicePrincipalType,omitempty"` + // Tags - Optional list of tags that you can apply to your service principals. Not nullable. + Tags *[]string `json:"tags,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ObjectID - The object ID. + // ObjectID - READ-ONLY; The object ID. ObjectID *string `json:"objectId,omitempty"` - // DeletionTimestamp - The time at which the directory object was deleted. + // DeletionTimestamp - READ-ONLY; The time at which the directory object was deleted. DeletionTimestamp *date.Time `json:"deletionTimestamp,omitempty"` // ObjectType - Possible values include: 'ObjectTypeDirectoryObject', 'ObjectTypeApplication', 'ObjectTypeGroup', 'ObjectTypeServicePrincipal', 'ObjectTypeUser' ObjectType ObjectType `json:"objectType,omitempty"` @@ -2762,23 +3109,59 @@ type ServicePrincipal struct { func (sp ServicePrincipal) MarshalJSON() ([]byte, error) { sp.ObjectType = ObjectTypeServicePrincipal objectMap := make(map[string]interface{}) - if sp.DisplayName != nil { - objectMap["displayName"] = sp.DisplayName + if sp.AccountEnabled != nil { + objectMap["accountEnabled"] = sp.AccountEnabled + } + if sp.AlternativeNames != nil { + objectMap["alternativeNames"] = sp.AlternativeNames } if sp.AppID != nil { objectMap["appId"] = sp.AppID } + if sp.AppRoleAssignmentRequired != nil { + objectMap["appRoleAssignmentRequired"] = sp.AppRoleAssignmentRequired + } if sp.AppRoles != nil { objectMap["appRoles"] = sp.AppRoles } + if sp.DisplayName != nil { + objectMap["displayName"] = sp.DisplayName + } + if sp.ErrorURL != nil { + objectMap["errorUrl"] = sp.ErrorURL + } + if sp.Homepage != nil { + objectMap["homepage"] = sp.Homepage + } + if sp.KeyCredentials != nil { + objectMap["keyCredentials"] = sp.KeyCredentials + } + if sp.LogoutURL != nil { + objectMap["logoutUrl"] = sp.LogoutURL + } + if sp.PasswordCredentials != nil { + objectMap["passwordCredentials"] = sp.PasswordCredentials + } + if sp.PreferredTokenSigningKeyThumbprint != nil { + objectMap["preferredTokenSigningKeyThumbprint"] = sp.PreferredTokenSigningKeyThumbprint + } + if sp.PublisherName != nil { + objectMap["publisherName"] = sp.PublisherName + } + if sp.ReplyUrls != nil { + objectMap["replyUrls"] = sp.ReplyUrls + } + if sp.SamlMetadataURL != nil { + objectMap["samlMetadataUrl"] = sp.SamlMetadataURL + } if sp.ServicePrincipalNames != nil { objectMap["servicePrincipalNames"] = sp.ServicePrincipalNames } - if sp.ObjectID != nil { - objectMap["objectId"] = sp.ObjectID + if sp.ServicePrincipalType != nil { + objectMap["servicePrincipalType"] = sp.ServicePrincipalType } - if sp.DeletionTimestamp != nil { - objectMap["deletionTimestamp"] = sp.DeletionTimestamp + if sp.Tags != nil { + objectMap["tags"] = sp.Tags } if sp.ObjectType != "" { objectMap["objectType"] = sp.ObjectType @@ -2828,14 +3211,32 @@ func (sp *ServicePrincipal) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "displayName": + case "accountEnabled": if v != nil { - var displayName string - err = json.Unmarshal(*v, &displayName) + var accountEnabled bool + err = json.Unmarshal(*v, &accountEnabled) if err != nil { return err } - sp.DisplayName = &displayName + sp.AccountEnabled = &accountEnabled + } + case "alternativeNames": + if v != nil { + var alternativeNames []string + err = json.Unmarshal(*v, &alternativeNames) + if err != nil { + return err + } + sp.AlternativeNames = &alternativeNames + } + case "appDisplayName": + if v != nil { + var appDisplayName string + err = json.Unmarshal(*v, &appDisplayName) + if err != nil { + return err + } + sp.AppDisplayName = &appDisplayName } case "appId": if v != nil { @@ -2846,6 +3247,24 @@ func (sp *ServicePrincipal) UnmarshalJSON(body []byte) error { } sp.AppID = &appID } + case "appOwnerTenantId": + if v != nil { + var appOwnerTenantID string + err = json.Unmarshal(*v, &appOwnerTenantID) + if err != nil { + return err + } + sp.AppOwnerTenantID = &appOwnerTenantID + } + case "appRoleAssignmentRequired": + if v != nil { + var appRoleAssignmentRequired bool + err = json.Unmarshal(*v, &appRoleAssignmentRequired) + if err != nil { + return err + } + sp.AppRoleAssignmentRequired = &appRoleAssignmentRequired + } case "appRoles": if v != nil { var appRoles []AppRole @@ -2855,274 +3274,170 @@ func (sp *ServicePrincipal) UnmarshalJSON(body []byte) error { } sp.AppRoles = &appRoles } - case "servicePrincipalNames": + case "displayName": if v != nil { - var servicePrincipalNames []string - err = json.Unmarshal(*v, &servicePrincipalNames) + var displayName string + err = json.Unmarshal(*v, &displayName) if err != nil { return err } - sp.ServicePrincipalNames = &servicePrincipalNames + sp.DisplayName = &displayName } - default: + case "errorUrl": if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) + var errorURL string + err = json.Unmarshal(*v, &errorURL) if err != nil { return err } - if sp.AdditionalProperties == nil { - sp.AdditionalProperties = make(map[string]interface{}) + sp.ErrorURL = &errorURL + } + case "homepage": + if v != nil { + var homepage string + err = json.Unmarshal(*v, &homepage) + if err != nil { + return err } - sp.AdditionalProperties[k] = additionalProperties + sp.Homepage = &homepage } - case "objectId": + case "keyCredentials": if v != nil { - var objectID string - err = json.Unmarshal(*v, &objectID) + var keyCredentials []KeyCredential + err = json.Unmarshal(*v, &keyCredentials) if err != nil { return err } - sp.ObjectID = &objectID + sp.KeyCredentials = &keyCredentials } - case "deletionTimestamp": + case "logoutUrl": if v != nil { - var deletionTimestamp date.Time - err = json.Unmarshal(*v, &deletionTimestamp) + var logoutURL string + err = json.Unmarshal(*v, &logoutURL) if err != nil { return err } - sp.DeletionTimestamp = &deletionTimestamp + sp.LogoutURL = &logoutURL } - case "objectType": + case "oauth2Permissions": if v != nil { - var objectType ObjectType - err = json.Unmarshal(*v, &objectType) + var oauth2Permissions []OAuth2Permission + err = json.Unmarshal(*v, &oauth2Permissions) if err != nil { return err } - sp.ObjectType = objectType + sp.Oauth2Permissions = &oauth2Permissions } - } - } - - return nil -} - -// ServicePrincipalCreateParameters request parameters for creating a new service principal. -type ServicePrincipalCreateParameters struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // AccountEnabled - Whether the account is enabled - AccountEnabled *bool `json:"accountEnabled,omitempty"` - // AppID - application Id - AppID *string `json:"appId,omitempty"` - // AppRoleAssignmentRequired - Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application. - AppRoleAssignmentRequired *bool `json:"appRoleAssignmentRequired,omitempty"` - // DisplayName - The display name for the service principal. - DisplayName *string `json:"displayName,omitempty"` - ErrorURL *string `json:"errorUrl,omitempty"` - // Homepage - The URL to the homepage of the associated application. - Homepage *string `json:"homepage,omitempty"` - // KeyCredentials - A collection of KeyCredential objects. - KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"` - // PasswordCredentials - A collection of PasswordCredential objects - PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"` - // PublisherName - The display name of the tenant in which the associated application is specified. - PublisherName *string `json:"publisherName,omitempty"` - // ReplyUrls - A collection of reply URLs for the service principal. - ReplyUrls *[]string `json:"replyUrls,omitempty"` - SamlMetadataURL *string `json:"samlMetadataUrl,omitempty"` - // ServicePrincipalNames - A collection of service principal names. - ServicePrincipalNames *[]string `json:"servicePrincipalNames,omitempty"` - Tags *[]string `json:"tags,omitempty"` -} - -// MarshalJSON is the custom marshaler for ServicePrincipalCreateParameters. -func (spcp ServicePrincipalCreateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if spcp.AccountEnabled != nil { - objectMap["accountEnabled"] = spcp.AccountEnabled - } - if spcp.AppID != nil { - objectMap["appId"] = spcp.AppID - } - if spcp.AppRoleAssignmentRequired != nil { - objectMap["appRoleAssignmentRequired"] = spcp.AppRoleAssignmentRequired - } - if spcp.DisplayName != nil { - objectMap["displayName"] = spcp.DisplayName - } - if spcp.ErrorURL != nil { - objectMap["errorUrl"] = spcp.ErrorURL - } - if spcp.Homepage != nil { - objectMap["homepage"] = spcp.Homepage - } - if spcp.KeyCredentials != nil { - objectMap["keyCredentials"] = spcp.KeyCredentials - } - if spcp.PasswordCredentials != nil { - objectMap["passwordCredentials"] = spcp.PasswordCredentials - } - if spcp.PublisherName != nil { - objectMap["publisherName"] = spcp.PublisherName - } - if spcp.ReplyUrls != nil { - objectMap["replyUrls"] = spcp.ReplyUrls - } - if spcp.SamlMetadataURL != nil { - objectMap["samlMetadataUrl"] = spcp.SamlMetadataURL - } - if spcp.ServicePrincipalNames != nil { - objectMap["servicePrincipalNames"] = spcp.ServicePrincipalNames - } - if spcp.Tags != nil { - objectMap["tags"] = spcp.Tags - } - for k, v := range spcp.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for ServicePrincipalCreateParameters struct. -func (spcp *ServicePrincipalCreateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if spcp.AdditionalProperties == nil { - spcp.AdditionalProperties = make(map[string]interface{}) - } - spcp.AdditionalProperties[k] = additionalProperties - } - case "accountEnabled": + case "passwordCredentials": if v != nil { - var accountEnabled bool - err = json.Unmarshal(*v, &accountEnabled) + var passwordCredentials []PasswordCredential + err = json.Unmarshal(*v, &passwordCredentials) if err != nil { return err } - spcp.AccountEnabled = &accountEnabled + sp.PasswordCredentials = &passwordCredentials } - case "appId": + case "preferredTokenSigningKeyThumbprint": if v != nil { - var appID string - err = json.Unmarshal(*v, &appID) + var preferredTokenSigningKeyThumbprint string + err = json.Unmarshal(*v, &preferredTokenSigningKeyThumbprint) if err != nil { return err } - spcp.AppID = &appID + sp.PreferredTokenSigningKeyThumbprint = &preferredTokenSigningKeyThumbprint } - case "appRoleAssignmentRequired": + case "publisherName": if v != nil { - var appRoleAssignmentRequired bool - err = json.Unmarshal(*v, &appRoleAssignmentRequired) + var publisherName string + err = json.Unmarshal(*v, &publisherName) if err != nil { return err } - spcp.AppRoleAssignmentRequired = &appRoleAssignmentRequired + sp.PublisherName = &publisherName } - case "displayName": + case "replyUrls": if v != nil { - var displayName string - err = json.Unmarshal(*v, &displayName) + var replyUrls []string + err = json.Unmarshal(*v, &replyUrls) if err != nil { return err } - spcp.DisplayName = &displayName + sp.ReplyUrls = &replyUrls } - case "errorUrl": + case "samlMetadataUrl": if v != nil { - var errorURL string - err = json.Unmarshal(*v, &errorURL) + var samlMetadataURL string + err = json.Unmarshal(*v, &samlMetadataURL) if err != nil { return err } - spcp.ErrorURL = &errorURL + sp.SamlMetadataURL = &samlMetadataURL } - case "homepage": + case "servicePrincipalNames": if v != nil { - var homepage string - err = json.Unmarshal(*v, &homepage) + var servicePrincipalNames []string + err = json.Unmarshal(*v, &servicePrincipalNames) if err != nil { return err } - spcp.Homepage = &homepage + sp.ServicePrincipalNames = &servicePrincipalNames } - case "keyCredentials": + case "servicePrincipalType": if v != nil { - var keyCredentials []KeyCredential - err = json.Unmarshal(*v, &keyCredentials) + var servicePrincipalType string + err = json.Unmarshal(*v, &servicePrincipalType) if err != nil { return err } - spcp.KeyCredentials = &keyCredentials + sp.ServicePrincipalType = &servicePrincipalType } - case "passwordCredentials": + case "tags": if v != nil { - var passwordCredentials []PasswordCredential - err = json.Unmarshal(*v, &passwordCredentials) + var tags []string + err = json.Unmarshal(*v, &tags) if err != nil { return err } - spcp.PasswordCredentials = &passwordCredentials + sp.Tags = &tags } - case "publisherName": + default: if v != nil { - var publisherName string - err = json.Unmarshal(*v, &publisherName) + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) if err != nil { return err } - spcp.PublisherName = &publisherName - } - case "replyUrls": - if v != nil { - var replyUrls []string - err = json.Unmarshal(*v, &replyUrls) - if err != nil { - return err + if sp.AdditionalProperties == nil { + sp.AdditionalProperties = make(map[string]interface{}) } - spcp.ReplyUrls = &replyUrls + sp.AdditionalProperties[k] = additionalProperties } - case "samlMetadataUrl": + case "objectId": if v != nil { - var samlMetadataURL string - err = json.Unmarshal(*v, &samlMetadataURL) + var objectID string + err = json.Unmarshal(*v, &objectID) if err != nil { return err } - spcp.SamlMetadataURL = &samlMetadataURL + sp.ObjectID = &objectID } - case "servicePrincipalNames": + case "deletionTimestamp": if v != nil { - var servicePrincipalNames []string - err = json.Unmarshal(*v, &servicePrincipalNames) + var deletionTimestamp date.Time + err = json.Unmarshal(*v, &deletionTimestamp) if err != nil { return err } - spcp.ServicePrincipalNames = &servicePrincipalNames + sp.DeletionTimestamp = &deletionTimestamp } - case "tags": + case "objectType": if v != nil { - var tags []string - err = json.Unmarshal(*v, &tags) + var objectType ObjectType + err = json.Unmarshal(*v, &objectType) if err != nil { return err } - spcp.Tags = &tags + sp.ObjectType = objectType } } } @@ -3130,6 +3445,41 @@ func (spcp *ServicePrincipalCreateParameters) UnmarshalJSON(body []byte) error { return nil } +// ServicePrincipalBase active Directory service principal common properties shared among GET, POST and +// PATCH +type ServicePrincipalBase struct { + // AccountEnabled - whether or not the service principal account is enabled + AccountEnabled *bool `json:"accountEnabled,omitempty"` + // AppRoleAssignmentRequired - Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application. + AppRoleAssignmentRequired *bool `json:"appRoleAssignmentRequired,omitempty"` + // KeyCredentials - The collection of key credentials associated with the service principal. + KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"` + // PasswordCredentials - The collection of password credentials associated with the service principal. + PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"` + // ServicePrincipalType - the type of the service principal + ServicePrincipalType *string `json:"servicePrincipalType,omitempty"` + // Tags - Optional list of tags that you can apply to your service principals. Not nullable. + Tags *[]string `json:"tags,omitempty"` +} + +// ServicePrincipalCreateParameters request parameters for creating a new service principal. +type ServicePrincipalCreateParameters struct { + // AppID - The application ID. + AppID *string `json:"appId,omitempty"` + // AccountEnabled - whether or not the service principal account is enabled + AccountEnabled *bool `json:"accountEnabled,omitempty"` + // AppRoleAssignmentRequired - Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application. + AppRoleAssignmentRequired *bool `json:"appRoleAssignmentRequired,omitempty"` + // KeyCredentials - The collection of key credentials associated with the service principal. + KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"` + // PasswordCredentials - The collection of password credentials associated with the service principal. + PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"` + // ServicePrincipalType - the type of the service principal + ServicePrincipalType *string `json:"servicePrincipalType,omitempty"` + // Tags - Optional list of tags that you can apply to your service principals. Not nullable. + Tags *[]string `json:"tags,omitempty"` +} + // ServicePrincipalListResult server response for get tenant service principals API call. type ServicePrincipalListResult struct { autorest.Response `json:"-"` @@ -3264,225 +3614,29 @@ func NewServicePrincipalListResultPage(getNextPage func(context.Context, Service return ServicePrincipalListResultPage{fn: getNextPage} } -// ServicePrincipalUpdateParameters request parameters for creating a new service principal. +// ServicePrincipalObjectResult service Principal Object Result. +type ServicePrincipalObjectResult struct { + autorest.Response `json:"-"` + // Value - The Object ID of the service principal with the specified application ID. + Value *string `json:"value,omitempty"` + // OdataMetadata - The URL representing edm equivalent. + OdataMetadata *string `json:"odata.metadata,omitempty"` +} + +// ServicePrincipalUpdateParameters request parameters for update an existing service principal. type ServicePrincipalUpdateParameters struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // AccountEnabled - Whether the account is enabled + // AccountEnabled - whether or not the service principal account is enabled AccountEnabled *bool `json:"accountEnabled,omitempty"` - // AppID - application Id - AppID *string `json:"appId,omitempty"` // AppRoleAssignmentRequired - Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application. AppRoleAssignmentRequired *bool `json:"appRoleAssignmentRequired,omitempty"` - // DisplayName - The display name for the service principal. - DisplayName *string `json:"displayName,omitempty"` - ErrorURL *string `json:"errorUrl,omitempty"` - // Homepage - The URL to the homepage of the associated application. - Homepage *string `json:"homepage,omitempty"` - // KeyCredentials - A collection of KeyCredential objects. + // KeyCredentials - The collection of key credentials associated with the service principal. KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"` - // PasswordCredentials - A collection of PasswordCredential objects + // PasswordCredentials - The collection of password credentials associated with the service principal. PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"` - // PublisherName - The display name of the tenant in which the associated application is specified. - PublisherName *string `json:"publisherName,omitempty"` - // ReplyUrls - A collection of reply URLs for the service principal. - ReplyUrls *[]string `json:"replyUrls,omitempty"` - SamlMetadataURL *string `json:"samlMetadataUrl,omitempty"` - // ServicePrincipalNames - A collection of service principal names. - ServicePrincipalNames *[]string `json:"servicePrincipalNames,omitempty"` - Tags *[]string `json:"tags,omitempty"` -} - -// MarshalJSON is the custom marshaler for ServicePrincipalUpdateParameters. -func (spup ServicePrincipalUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if spup.AccountEnabled != nil { - objectMap["accountEnabled"] = spup.AccountEnabled - } - if spup.AppID != nil { - objectMap["appId"] = spup.AppID - } - if spup.AppRoleAssignmentRequired != nil { - objectMap["appRoleAssignmentRequired"] = spup.AppRoleAssignmentRequired - } - if spup.DisplayName != nil { - objectMap["displayName"] = spup.DisplayName - } - if spup.ErrorURL != nil { - objectMap["errorUrl"] = spup.ErrorURL - } - if spup.Homepage != nil { - objectMap["homepage"] = spup.Homepage - } - if spup.KeyCredentials != nil { - objectMap["keyCredentials"] = spup.KeyCredentials - } - if spup.PasswordCredentials != nil { - objectMap["passwordCredentials"] = spup.PasswordCredentials - } - if spup.PublisherName != nil { - objectMap["publisherName"] = spup.PublisherName - } - if spup.ReplyUrls != nil { - objectMap["replyUrls"] = spup.ReplyUrls - } - if spup.SamlMetadataURL != nil { - objectMap["samlMetadataUrl"] = spup.SamlMetadataURL - } - if spup.ServicePrincipalNames != nil { - objectMap["servicePrincipalNames"] = spup.ServicePrincipalNames - } - if spup.Tags != nil { - objectMap["tags"] = spup.Tags - } - for k, v := range spup.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for ServicePrincipalUpdateParameters struct. -func (spup *ServicePrincipalUpdateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if spup.AdditionalProperties == nil { - spup.AdditionalProperties = make(map[string]interface{}) - } - spup.AdditionalProperties[k] = additionalProperties - } - case "accountEnabled": - if v != nil { - var accountEnabled bool - err = json.Unmarshal(*v, &accountEnabled) - if err != nil { - return err - } - spup.AccountEnabled = &accountEnabled - } - case "appId": - if v != nil { - var appID string - err = json.Unmarshal(*v, &appID) - if err != nil { - return err - } - spup.AppID = &appID - } - case "appRoleAssignmentRequired": - if v != nil { - var appRoleAssignmentRequired bool - err = json.Unmarshal(*v, &appRoleAssignmentRequired) - if err != nil { - return err - } - spup.AppRoleAssignmentRequired = &appRoleAssignmentRequired - } - case "displayName": - if v != nil { - var displayName string - err = json.Unmarshal(*v, &displayName) - if err != nil { - return err - } - spup.DisplayName = &displayName - } - case "errorUrl": - if v != nil { - var errorURL string - err = json.Unmarshal(*v, &errorURL) - if err != nil { - return err - } - spup.ErrorURL = &errorURL - } - case "homepage": - if v != nil { - var homepage string - err = json.Unmarshal(*v, &homepage) - if err != nil { - return err - } - spup.Homepage = &homepage - } - case "keyCredentials": - if v != nil { - var keyCredentials []KeyCredential - err = json.Unmarshal(*v, &keyCredentials) - if err != nil { - return err - } - spup.KeyCredentials = &keyCredentials - } - case "passwordCredentials": - if v != nil { - var passwordCredentials []PasswordCredential - err = json.Unmarshal(*v, &passwordCredentials) - if err != nil { - return err - } - spup.PasswordCredentials = &passwordCredentials - } - case "publisherName": - if v != nil { - var publisherName string - err = json.Unmarshal(*v, &publisherName) - if err != nil { - return err - } - spup.PublisherName = &publisherName - } - case "replyUrls": - if v != nil { - var replyUrls []string - err = json.Unmarshal(*v, &replyUrls) - if err != nil { - return err - } - spup.ReplyUrls = &replyUrls - } - case "samlMetadataUrl": - if v != nil { - var samlMetadataURL string - err = json.Unmarshal(*v, &samlMetadataURL) - if err != nil { - return err - } - spup.SamlMetadataURL = &samlMetadataURL - } - case "servicePrincipalNames": - if v != nil { - var servicePrincipalNames []string - err = json.Unmarshal(*v, &servicePrincipalNames) - if err != nil { - return err - } - spup.ServicePrincipalNames = &servicePrincipalNames - } - case "tags": - if v != nil { - var tags []string - err = json.Unmarshal(*v, &tags) - if err != nil { - return err - } - spup.Tags = &tags - } - } - } - - return nil + // ServicePrincipalType - the type of the service principal + ServicePrincipalType *string `json:"servicePrincipalType,omitempty"` + // Tags - Optional list of tags that you can apply to your service principals. Not nullable. + Tags *[]string `json:"tags,omitempty"` } // SignInName contains information about a sign-in name of a local account user in an Azure Active @@ -3583,9 +3737,9 @@ type User struct { SignInNames *[]SignInName `json:"signInNames,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // ObjectID - The object ID. + // ObjectID - READ-ONLY; The object ID. ObjectID *string `json:"objectId,omitempty"` - // DeletionTimestamp - The time at which the directory object was deleted. + // DeletionTimestamp - READ-ONLY; The time at which the directory object was deleted. DeletionTimestamp *date.Time `json:"deletionTimestamp,omitempty"` // ObjectType - Possible values include: 'ObjectTypeDirectoryObject', 'ObjectTypeApplication', 'ObjectTypeGroup', 'ObjectTypeServicePrincipal', 'ObjectTypeUser' ObjectType ObjectType `json:"objectType,omitempty"` @@ -3628,12 +3782,6 @@ func (u User) MarshalJSON() ([]byte, error) { if u.SignInNames != nil { objectMap["signInNames"] = u.SignInNames } - if u.ObjectID != nil { - objectMap["objectId"] = u.ObjectID - } - if u.DeletionTimestamp != nil { - objectMap["deletionTimestamp"] = u.DeletionTimestamp - } if u.ObjectType != "" { objectMap["objectType"] = u.ObjectType } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac/oauth2.go b/vendor/github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac/oauth2.go deleted file mode 100644 index 97e79c76ddcf..000000000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac/oauth2.go +++ /dev/null @@ -1,197 +0,0 @@ -package graphrbac - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// OAuth2Client is the the Graph RBAC Management Client -type OAuth2Client struct { - BaseClient -} - -// NewOAuth2Client creates an instance of the OAuth2Client client. -func NewOAuth2Client(tenantID string) OAuth2Client { - return NewOAuth2ClientWithBaseURI(DefaultBaseURI, tenantID) -} - -// NewOAuth2ClientWithBaseURI creates an instance of the OAuth2Client client. -func NewOAuth2ClientWithBaseURI(baseURI string, tenantID string) OAuth2Client { - return OAuth2Client{NewWithBaseURI(baseURI, tenantID)} -} - -// Get queries OAuth2 permissions for the relevant SP ObjectId of an app. -// Parameters: -// filter - this is the Service Principal ObjectId associated with the app -func (client OAuth2Client) Get(ctx context.Context, filter string) (result Permissions, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OAuth2Client.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - req, err := client.GetPreparer(ctx, filter) - if err != nil { - err = autorest.NewErrorWithError(err, "graphrbac.OAuth2Client", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "graphrbac.OAuth2Client", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "graphrbac.OAuth2Client", "Get", resp, "Failure responding to request") - } - - return -} - -// GetPreparer prepares the Get request. -func (client OAuth2Client) GetPreparer(ctx context.Context, filter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "tenantID": autorest.Encode("path", client.TenantID), - } - - const APIVersion = "1.6" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{tenantID}/oauth2PermissionGrants", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client OAuth2Client) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client OAuth2Client) GetResponder(resp *http.Response) (result Permissions, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Grant grants OAuth2 permissions for the relevant resource Ids of an app. -// Parameters: -// body - the relevant app Service Principal Object Id and the Service Principal Object Id you want to grant. -func (client OAuth2Client) Grant(ctx context.Context, body *Permissions) (result Permissions, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OAuth2Client.Grant") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - req, err := client.GrantPreparer(ctx, body) - if err != nil { - err = autorest.NewErrorWithError(err, "graphrbac.OAuth2Client", "Grant", nil, "Failure preparing request") - return - } - - resp, err := client.GrantSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "graphrbac.OAuth2Client", "Grant", resp, "Failure sending request") - return - } - - result, err = client.GrantResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "graphrbac.OAuth2Client", "Grant", resp, "Failure responding to request") - } - - return -} - -// GrantPreparer prepares the Grant request. -func (client OAuth2Client) GrantPreparer(ctx context.Context, body *Permissions) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "tenantID": autorest.Encode("path", client.TenantID), - } - - const APIVersion = "1.6" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{tenantID}/oauth2PermissionGrants", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if body != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(body)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// GrantSender sends the Grant request. The method will close the -// http.Response Body if it receives an error. -func (client OAuth2Client) GrantSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// GrantResponder handles the response to the Grant request. The method always -// closes the http.Response Body. -func (client OAuth2Client) GrantResponder(resp *http.Response) (result Permissions, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac/oauth2permissiongrant.go b/vendor/github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac/oauth2permissiongrant.go new file mode 100644 index 000000000000..3d1ec66eb686 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac/oauth2permissiongrant.go @@ -0,0 +1,369 @@ +package graphrbac + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/to" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// OAuth2PermissionGrantClient is the the Graph RBAC Management Client +type OAuth2PermissionGrantClient struct { + BaseClient +} + +// NewOAuth2PermissionGrantClient creates an instance of the OAuth2PermissionGrantClient client. +func NewOAuth2PermissionGrantClient(tenantID string) OAuth2PermissionGrantClient { + return NewOAuth2PermissionGrantClientWithBaseURI(DefaultBaseURI, tenantID) +} + +// NewOAuth2PermissionGrantClientWithBaseURI creates an instance of the OAuth2PermissionGrantClient client. +func NewOAuth2PermissionGrantClientWithBaseURI(baseURI string, tenantID string) OAuth2PermissionGrantClient { + return OAuth2PermissionGrantClient{NewWithBaseURI(baseURI, tenantID)} +} + +// Create grants OAuth2 permissions for the relevant resource Ids of an app. +// Parameters: +// body - the relevant app Service Principal Object Id and the Service Principal Object Id you want to grant. +func (client OAuth2PermissionGrantClient) Create(ctx context.Context, body *OAuth2PermissionGrant) (result OAuth2PermissionGrant, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OAuth2PermissionGrantClient.Create") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreatePreparer(ctx, body) + if err != nil { + err = autorest.NewErrorWithError(err, "graphrbac.OAuth2PermissionGrantClient", "Create", nil, "Failure preparing request") + return + } + + resp, err := client.CreateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "graphrbac.OAuth2PermissionGrantClient", "Create", resp, "Failure sending request") + return + } + + result, err = client.CreateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "graphrbac.OAuth2PermissionGrantClient", "Create", resp, "Failure responding to request") + } + + return +} + +// CreatePreparer prepares the Create request. +func (client OAuth2PermissionGrantClient) CreatePreparer(ctx context.Context, body *OAuth2PermissionGrant) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "tenantID": autorest.Encode("path", client.TenantID), + } + + const APIVersion = "1.6" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/{tenantID}/oauth2PermissionGrants", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if body != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(body)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client OAuth2PermissionGrantClient) CreateSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client OAuth2PermissionGrantClient) CreateResponder(resp *http.Response) (result OAuth2PermissionGrant, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete delete a OAuth2 permission grant for the relevant resource Ids of an app. +// Parameters: +// objectID - the object ID of a permission grant. +func (client OAuth2PermissionGrantClient) Delete(ctx context.Context, objectID string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OAuth2PermissionGrantClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, objectID) + if err != nil { + err = autorest.NewErrorWithError(err, "graphrbac.OAuth2PermissionGrantClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "graphrbac.OAuth2PermissionGrantClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "graphrbac.OAuth2PermissionGrantClient", "Delete", resp, "Failure responding to request") + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client OAuth2PermissionGrantClient) DeletePreparer(ctx context.Context, objectID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "objectId": autorest.Encode("path", objectID), + "tenantID": autorest.Encode("path", client.TenantID), + } + + const APIVersion = "1.6" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/{tenantID}/oauth2PermissionGrants/{objectId}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client OAuth2PermissionGrantClient) DeleteSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client OAuth2PermissionGrantClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// List queries OAuth2 permissions grants for the relevant SP ObjectId of an app. +// Parameters: +// filter - this is the Service Principal ObjectId associated with the app +func (client OAuth2PermissionGrantClient) List(ctx context.Context, filter string) (result OAuth2PermissionGrantListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OAuth2PermissionGrantClient.List") + defer func() { + sc := -1 + if result.oa2pglr.Response.Response != nil { + sc = result.oa2pglr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = func(ctx context.Context, lastResult OAuth2PermissionGrantListResult) (OAuth2PermissionGrantListResult, error) { + if lastResult.OdataNextLink == nil || len(to.String(lastResult.OdataNextLink)) < 1 { + return OAuth2PermissionGrantListResult{}, nil + } + return client.ListNext(ctx, *lastResult.OdataNextLink) + } + req, err := client.ListPreparer(ctx, filter) + if err != nil { + err = autorest.NewErrorWithError(err, "graphrbac.OAuth2PermissionGrantClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.oa2pglr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "graphrbac.OAuth2PermissionGrantClient", "List", resp, "Failure sending request") + return + } + + result.oa2pglr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "graphrbac.OAuth2PermissionGrantClient", "List", resp, "Failure responding to request") + } + + return +} + +// ListPreparer prepares the List request. +func (client OAuth2PermissionGrantClient) ListPreparer(ctx context.Context, filter string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "tenantID": autorest.Encode("path", client.TenantID), + } + + const APIVersion = "1.6" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/{tenantID}/oauth2PermissionGrants", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client OAuth2PermissionGrantClient) ListSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client OAuth2PermissionGrantClient) ListResponder(resp *http.Response) (result OAuth2PermissionGrantListResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client OAuth2PermissionGrantClient) ListComplete(ctx context.Context, filter string) (result OAuth2PermissionGrantListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OAuth2PermissionGrantClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, filter) + return +} + +// ListNext gets the next page of OAuth2 permission grants +// Parameters: +// nextLink - next link for the list operation. +func (client OAuth2PermissionGrantClient) ListNext(ctx context.Context, nextLink string) (result OAuth2PermissionGrantListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OAuth2PermissionGrantClient.ListNext") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListNextPreparer(ctx, nextLink) + if err != nil { + err = autorest.NewErrorWithError(err, "graphrbac.OAuth2PermissionGrantClient", "ListNext", nil, "Failure preparing request") + return + } + + resp, err := client.ListNextSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "graphrbac.OAuth2PermissionGrantClient", "ListNext", resp, "Failure sending request") + return + } + + result, err = client.ListNextResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "graphrbac.OAuth2PermissionGrantClient", "ListNext", resp, "Failure responding to request") + } + + return +} + +// ListNextPreparer prepares the ListNext request. +func (client OAuth2PermissionGrantClient) ListNextPreparer(ctx context.Context, nextLink string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "nextLink": nextLink, + "tenantID": autorest.Encode("path", client.TenantID), + } + + const APIVersion = "1.6" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/{tenantID}/{nextLink}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListNextSender sends the ListNext request. The method will close the +// http.Response Body if it receives an error. +func (client OAuth2PermissionGrantClient) ListNextSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// ListNextResponder handles the response to the ListNext request. The method always +// closes the http.Response Body. +func (client OAuth2PermissionGrantClient) ListNextResponder(resp *http.Response) (result OAuth2PermissionGrantListResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault/client.go b/vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault/client.go index 42943238bae2..2cd269df6635 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault/client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault/client.go @@ -4848,6 +4848,7 @@ func (client BaseClient) SetCertificateContactsPreparer(ctx context.Context, vau "api-version": APIVersion, } + contacts.ID = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -5733,6 +5734,7 @@ func (client BaseClient) UpdateCertificatePolicyPreparer(ctx context.Context, va "api-version": APIVersion, } + certificatePolicy.ID = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPatch(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault/models.go index 66803aee108c..cbfec5797c69 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault/models.go @@ -236,29 +236,29 @@ type Attributes struct { NotBefore *date.UnixTime `json:"nbf,omitempty"` // Expires - Expiry date in UTC. Expires *date.UnixTime `json:"exp,omitempty"` - // Created - Creation time in UTC. + // Created - READ-ONLY; Creation time in UTC. Created *date.UnixTime `json:"created,omitempty"` - // Updated - Last updated time in UTC. + // Updated - READ-ONLY; Last updated time in UTC. Updated *date.UnixTime `json:"updated,omitempty"` } // BackupKeyResult the backup key result, containing the backup blob. type BackupKeyResult struct { autorest.Response `json:"-"` - // Value - The backup blob containing the backed up key. (a URL-encoded base64 string) + // Value - READ-ONLY; The backup blob containing the backed up key. (a URL-encoded base64 string) Value *string `json:"value,omitempty"` } // BackupSecretResult the backup secret result, containing the backup blob. type BackupSecretResult struct { autorest.Response `json:"-"` - // Value - The backup blob containing the backed up secret. (a URL-encoded base64 string) + // Value - READ-ONLY; The backup blob containing the backed up secret. (a URL-encoded base64 string) Value *string `json:"value,omitempty"` } // CertificateAttributes the certificate management attributes. type CertificateAttributes struct { - // RecoveryLevel - Reflects the deletion recovery level currently in effect for certificates in the current vault. If it contains 'Purgeable', the certificate can be permanently deleted by a privileged user; otherwise, only the system can purge the certificate, at the end of the retention interval. Possible values include: 'Purgeable', 'RecoverablePurgeable', 'Recoverable', 'RecoverableProtectedSubscription' + // RecoveryLevel - READ-ONLY; Reflects the deletion recovery level currently in effect for certificates in the current vault. If it contains 'Purgeable', the certificate can be permanently deleted by a privileged user; otherwise, only the system can purge the certificate, at the end of the retention interval. Possible values include: 'Purgeable', 'RecoverablePurgeable', 'Recoverable', 'RecoverableProtectedSubscription' RecoveryLevel DeletionRecoveryLevel `json:"recoveryLevel,omitempty"` // Enabled - Determines whether the object is enabled. Enabled *bool `json:"enabled,omitempty"` @@ -266,24 +266,24 @@ type CertificateAttributes struct { NotBefore *date.UnixTime `json:"nbf,omitempty"` // Expires - Expiry date in UTC. Expires *date.UnixTime `json:"exp,omitempty"` - // Created - Creation time in UTC. + // Created - READ-ONLY; Creation time in UTC. Created *date.UnixTime `json:"created,omitempty"` - // Updated - Last updated time in UTC. + // Updated - READ-ONLY; Last updated time in UTC. Updated *date.UnixTime `json:"updated,omitempty"` } // CertificateBundle a certificate bundle consists of a certificate (X509) plus its attributes. type CertificateBundle struct { autorest.Response `json:"-"` - // ID - The certificate id. + // ID - READ-ONLY; The certificate id. ID *string `json:"id,omitempty"` - // Kid - The key id. + // Kid - READ-ONLY; The key id. Kid *string `json:"kid,omitempty"` - // Sid - The secret id. + // Sid - READ-ONLY; The secret id. Sid *string `json:"sid,omitempty"` - // X509Thumbprint - Thumbprint of the certificate. (a URL-encoded base64 string) + // X509Thumbprint - READ-ONLY; Thumbprint of the certificate. (a URL-encoded base64 string) X509Thumbprint *string `json:"x5t,omitempty"` - // Policy - The management policy. + // Policy - READ-ONLY; The management policy. Policy *CertificatePolicy `json:"policy,omitempty"` // Cer - CER contents of x509 certificate. Cer *[]byte `json:"cer,omitempty"` @@ -298,21 +298,6 @@ type CertificateBundle struct { // MarshalJSON is the custom marshaler for CertificateBundle. func (cb CertificateBundle) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if cb.ID != nil { - objectMap["id"] = cb.ID - } - if cb.Kid != nil { - objectMap["kid"] = cb.Kid - } - if cb.Sid != nil { - objectMap["sid"] = cb.Sid - } - if cb.X509Thumbprint != nil { - objectMap["x5t"] = cb.X509Thumbprint - } - if cb.Policy != nil { - objectMap["policy"] = cb.Policy - } if cb.Cer != nil { objectMap["cer"] = cb.Cer } @@ -399,9 +384,9 @@ type CertificateIssuerItem struct { // CertificateIssuerListResult the certificate issuer list result. type CertificateIssuerListResult struct { autorest.Response `json:"-"` - // Value - A response message containing a list of certificate issuers in the key vault along with a link to the next page of certificate issuers. + // Value - READ-ONLY; A response message containing a list of certificate issuers in the key vault along with a link to the next page of certificate issuers. Value *[]CertificateIssuerItem `json:"value,omitempty"` - // NextLink - The URL to get the next set of certificate issuers. + // NextLink - READ-ONLY; The URL to get the next set of certificate issuers. NextLink *string `json:"nextLink,omitempty"` } @@ -600,9 +585,9 @@ func (ci CertificateItem) MarshalJSON() ([]byte, error) { // CertificateListResult the certificate list result. type CertificateListResult struct { autorest.Response `json:"-"` - // Value - A response message containing a list of certificates in the key vault along with a link to the next page of certificates. + // Value - READ-ONLY; A response message containing a list of certificates in the key vault along with a link to the next page of certificates. Value *[]CertificateItem `json:"value,omitempty"` - // NextLink - The URL to get the next set of certificates. + // NextLink - READ-ONLY; The URL to get the next set of certificates. NextLink *string `json:"nextLink,omitempty"` } @@ -771,7 +756,7 @@ func (cmp CertificateMergeParameters) MarshalJSON() ([]byte, error) { // CertificateOperation a certificate operation is returned in case of asynchronous requests. type CertificateOperation struct { autorest.Response `json:"-"` - // ID - The certificate id. + // ID - READ-ONLY; The certificate id. ID *string `json:"id,omitempty"` // IssuerParameters - Parameters for the issuer of the X509 component of a certificate. IssuerParameters *IssuerParameters `json:"issuer,omitempty"` @@ -800,7 +785,7 @@ type CertificateOperationUpdateParameter struct { // CertificatePolicy management policy for a certificate. type CertificatePolicy struct { autorest.Response `json:"-"` - // ID - The certificate id. + // ID - READ-ONLY; The certificate id. ID *string `json:"id,omitempty"` // KeyProperties - Properties of the key backing a certificate. KeyProperties *KeyProperties `json:"key_props,omitempty"` @@ -854,7 +839,7 @@ type Contact struct { // Contacts the contacts for the vault certificates. type Contacts struct { autorest.Response `json:"-"` - // ID - Identifier for the contacts collection. + // ID - READ-ONLY; Identifier for the contacts collection. ID *string `json:"id,omitempty"` // ContactList - The contact list for the vault certificates. ContactList *[]Contact `json:"contacts,omitempty"` @@ -866,19 +851,19 @@ type DeletedCertificateBundle struct { autorest.Response `json:"-"` // RecoveryID - The url of the recovery object, used to identify and recover the deleted certificate. RecoveryID *string `json:"recoveryId,omitempty"` - // ScheduledPurgeDate - The time when the certificate is scheduled to be purged, in UTC + // ScheduledPurgeDate - READ-ONLY; The time when the certificate is scheduled to be purged, in UTC ScheduledPurgeDate *date.UnixTime `json:"scheduledPurgeDate,omitempty"` - // DeletedDate - The time when the certificate was deleted, in UTC + // DeletedDate - READ-ONLY; The time when the certificate was deleted, in UTC DeletedDate *date.UnixTime `json:"deletedDate,omitempty"` - // ID - The certificate id. + // ID - READ-ONLY; The certificate id. ID *string `json:"id,omitempty"` - // Kid - The key id. + // Kid - READ-ONLY; The key id. Kid *string `json:"kid,omitempty"` - // Sid - The secret id. + // Sid - READ-ONLY; The secret id. Sid *string `json:"sid,omitempty"` - // X509Thumbprint - Thumbprint of the certificate. (a URL-encoded base64 string) + // X509Thumbprint - READ-ONLY; Thumbprint of the certificate. (a URL-encoded base64 string) X509Thumbprint *string `json:"x5t,omitempty"` - // Policy - The management policy. + // Policy - READ-ONLY; The management policy. Policy *CertificatePolicy `json:"policy,omitempty"` // Cer - CER contents of x509 certificate. Cer *[]byte `json:"cer,omitempty"` @@ -896,27 +881,6 @@ func (dcb DeletedCertificateBundle) MarshalJSON() ([]byte, error) { if dcb.RecoveryID != nil { objectMap["recoveryId"] = dcb.RecoveryID } - if dcb.ScheduledPurgeDate != nil { - objectMap["scheduledPurgeDate"] = dcb.ScheduledPurgeDate - } - if dcb.DeletedDate != nil { - objectMap["deletedDate"] = dcb.DeletedDate - } - if dcb.ID != nil { - objectMap["id"] = dcb.ID - } - if dcb.Kid != nil { - objectMap["kid"] = dcb.Kid - } - if dcb.Sid != nil { - objectMap["sid"] = dcb.Sid - } - if dcb.X509Thumbprint != nil { - objectMap["x5t"] = dcb.X509Thumbprint - } - if dcb.Policy != nil { - objectMap["policy"] = dcb.Policy - } if dcb.Cer != nil { objectMap["cer"] = dcb.Cer } @@ -936,9 +900,9 @@ func (dcb DeletedCertificateBundle) MarshalJSON() ([]byte, error) { type DeletedCertificateItem struct { // RecoveryID - The url of the recovery object, used to identify and recover the deleted certificate. RecoveryID *string `json:"recoveryId,omitempty"` - // ScheduledPurgeDate - The time when the certificate is scheduled to be purged, in UTC + // ScheduledPurgeDate - READ-ONLY; The time when the certificate is scheduled to be purged, in UTC ScheduledPurgeDate *date.UnixTime `json:"scheduledPurgeDate,omitempty"` - // DeletedDate - The time when the certificate was deleted, in UTC + // DeletedDate - READ-ONLY; The time when the certificate was deleted, in UTC DeletedDate *date.UnixTime `json:"deletedDate,omitempty"` // ID - Certificate identifier. ID *string `json:"id,omitempty"` @@ -956,12 +920,6 @@ func (dci DeletedCertificateItem) MarshalJSON() ([]byte, error) { if dci.RecoveryID != nil { objectMap["recoveryId"] = dci.RecoveryID } - if dci.ScheduledPurgeDate != nil { - objectMap["scheduledPurgeDate"] = dci.ScheduledPurgeDate - } - if dci.DeletedDate != nil { - objectMap["deletedDate"] = dci.DeletedDate - } if dci.ID != nil { objectMap["id"] = dci.ID } @@ -980,9 +938,9 @@ func (dci DeletedCertificateItem) MarshalJSON() ([]byte, error) { // DeletedCertificateListResult a list of certificates that have been deleted in this vault. type DeletedCertificateListResult struct { autorest.Response `json:"-"` - // Value - A response message containing a list of deleted certificates in the vault along with a link to the next page of deleted certificates + // Value - READ-ONLY; A response message containing a list of deleted certificates in the vault along with a link to the next page of deleted certificates Value *[]DeletedCertificateItem `json:"value,omitempty"` - // NextLink - The URL to get the next set of deleted certificates. + // NextLink - READ-ONLY; The URL to get the next set of deleted certificates. NextLink *string `json:"nextLink,omitempty"` } @@ -1129,9 +1087,9 @@ type DeletedKeyBundle struct { autorest.Response `json:"-"` // RecoveryID - The url of the recovery object, used to identify and recover the deleted key. RecoveryID *string `json:"recoveryId,omitempty"` - // ScheduledPurgeDate - The time when the key is scheduled to be purged, in UTC + // ScheduledPurgeDate - READ-ONLY; The time when the key is scheduled to be purged, in UTC ScheduledPurgeDate *date.UnixTime `json:"scheduledPurgeDate,omitempty"` - // DeletedDate - The time when the key was deleted, in UTC + // DeletedDate - READ-ONLY; The time when the key was deleted, in UTC DeletedDate *date.UnixTime `json:"deletedDate,omitempty"` // Key - The Json web key. Key *JSONWebKey `json:"key,omitempty"` @@ -1139,7 +1097,7 @@ type DeletedKeyBundle struct { Attributes *KeyAttributes `json:"attributes,omitempty"` // Tags - Application specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags"` - // Managed - True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. + // Managed - READ-ONLY; True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. Managed *bool `json:"managed,omitempty"` } @@ -1149,12 +1107,6 @@ func (dkb DeletedKeyBundle) MarshalJSON() ([]byte, error) { if dkb.RecoveryID != nil { objectMap["recoveryId"] = dkb.RecoveryID } - if dkb.ScheduledPurgeDate != nil { - objectMap["scheduledPurgeDate"] = dkb.ScheduledPurgeDate - } - if dkb.DeletedDate != nil { - objectMap["deletedDate"] = dkb.DeletedDate - } if dkb.Key != nil { objectMap["key"] = dkb.Key } @@ -1164,9 +1116,6 @@ func (dkb DeletedKeyBundle) MarshalJSON() ([]byte, error) { if dkb.Tags != nil { objectMap["tags"] = dkb.Tags } - if dkb.Managed != nil { - objectMap["managed"] = dkb.Managed - } return json.Marshal(objectMap) } @@ -1174,9 +1123,9 @@ func (dkb DeletedKeyBundle) MarshalJSON() ([]byte, error) { type DeletedKeyItem struct { // RecoveryID - The url of the recovery object, used to identify and recover the deleted key. RecoveryID *string `json:"recoveryId,omitempty"` - // ScheduledPurgeDate - The time when the key is scheduled to be purged, in UTC + // ScheduledPurgeDate - READ-ONLY; The time when the key is scheduled to be purged, in UTC ScheduledPurgeDate *date.UnixTime `json:"scheduledPurgeDate,omitempty"` - // DeletedDate - The time when the key was deleted, in UTC + // DeletedDate - READ-ONLY; The time when the key was deleted, in UTC DeletedDate *date.UnixTime `json:"deletedDate,omitempty"` // Kid - Key identifier. Kid *string `json:"kid,omitempty"` @@ -1184,7 +1133,7 @@ type DeletedKeyItem struct { Attributes *KeyAttributes `json:"attributes,omitempty"` // Tags - Application specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags"` - // Managed - True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. + // Managed - READ-ONLY; True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. Managed *bool `json:"managed,omitempty"` } @@ -1194,12 +1143,6 @@ func (dki DeletedKeyItem) MarshalJSON() ([]byte, error) { if dki.RecoveryID != nil { objectMap["recoveryId"] = dki.RecoveryID } - if dki.ScheduledPurgeDate != nil { - objectMap["scheduledPurgeDate"] = dki.ScheduledPurgeDate - } - if dki.DeletedDate != nil { - objectMap["deletedDate"] = dki.DeletedDate - } if dki.Kid != nil { objectMap["kid"] = dki.Kid } @@ -1209,18 +1152,15 @@ func (dki DeletedKeyItem) MarshalJSON() ([]byte, error) { if dki.Tags != nil { objectMap["tags"] = dki.Tags } - if dki.Managed != nil { - objectMap["managed"] = dki.Managed - } return json.Marshal(objectMap) } // DeletedKeyListResult a list of keys that have been deleted in this vault. type DeletedKeyListResult struct { autorest.Response `json:"-"` - // Value - A response message containing a list of deleted keys in the vault along with a link to the next page of deleted keys + // Value - READ-ONLY; A response message containing a list of deleted keys in the vault along with a link to the next page of deleted keys Value *[]DeletedKeyItem `json:"value,omitempty"` - // NextLink - The URL to get the next set of deleted keys. + // NextLink - READ-ONLY; The URL to get the next set of deleted keys. NextLink *string `json:"nextLink,omitempty"` } @@ -1367,9 +1307,9 @@ type DeletedSecretBundle struct { autorest.Response `json:"-"` // RecoveryID - The url of the recovery object, used to identify and recover the deleted secret. RecoveryID *string `json:"recoveryId,omitempty"` - // ScheduledPurgeDate - The time when the secret is scheduled to be purged, in UTC + // ScheduledPurgeDate - READ-ONLY; The time when the secret is scheduled to be purged, in UTC ScheduledPurgeDate *date.UnixTime `json:"scheduledPurgeDate,omitempty"` - // DeletedDate - The time when the secret was deleted, in UTC + // DeletedDate - READ-ONLY; The time when the secret was deleted, in UTC DeletedDate *date.UnixTime `json:"deletedDate,omitempty"` // Value - The secret value. Value *string `json:"value,omitempty"` @@ -1381,9 +1321,9 @@ type DeletedSecretBundle struct { Attributes *SecretAttributes `json:"attributes,omitempty"` // Tags - Application specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags"` - // Kid - If this is a secret backing a KV certificate, then this field specifies the corresponding key backing the KV certificate. + // Kid - READ-ONLY; If this is a secret backing a KV certificate, then this field specifies the corresponding key backing the KV certificate. Kid *string `json:"kid,omitempty"` - // Managed - True if the secret's lifetime is managed by key vault. If this is a secret backing a certificate, then managed will be true. + // Managed - READ-ONLY; True if the secret's lifetime is managed by key vault. If this is a secret backing a certificate, then managed will be true. Managed *bool `json:"managed,omitempty"` } @@ -1393,12 +1333,6 @@ func (dsb DeletedSecretBundle) MarshalJSON() ([]byte, error) { if dsb.RecoveryID != nil { objectMap["recoveryId"] = dsb.RecoveryID } - if dsb.ScheduledPurgeDate != nil { - objectMap["scheduledPurgeDate"] = dsb.ScheduledPurgeDate - } - if dsb.DeletedDate != nil { - objectMap["deletedDate"] = dsb.DeletedDate - } if dsb.Value != nil { objectMap["value"] = dsb.Value } @@ -1414,12 +1348,6 @@ func (dsb DeletedSecretBundle) MarshalJSON() ([]byte, error) { if dsb.Tags != nil { objectMap["tags"] = dsb.Tags } - if dsb.Kid != nil { - objectMap["kid"] = dsb.Kid - } - if dsb.Managed != nil { - objectMap["managed"] = dsb.Managed - } return json.Marshal(objectMap) } @@ -1427,9 +1355,9 @@ func (dsb DeletedSecretBundle) MarshalJSON() ([]byte, error) { type DeletedSecretItem struct { // RecoveryID - The url of the recovery object, used to identify and recover the deleted secret. RecoveryID *string `json:"recoveryId,omitempty"` - // ScheduledPurgeDate - The time when the secret is scheduled to be purged, in UTC + // ScheduledPurgeDate - READ-ONLY; The time when the secret is scheduled to be purged, in UTC ScheduledPurgeDate *date.UnixTime `json:"scheduledPurgeDate,omitempty"` - // DeletedDate - The time when the secret was deleted, in UTC + // DeletedDate - READ-ONLY; The time when the secret was deleted, in UTC DeletedDate *date.UnixTime `json:"deletedDate,omitempty"` // ID - Secret identifier. ID *string `json:"id,omitempty"` @@ -1439,7 +1367,7 @@ type DeletedSecretItem struct { Tags map[string]*string `json:"tags"` // ContentType - Type of the secret value such as a password. ContentType *string `json:"contentType,omitempty"` - // Managed - True if the secret's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. + // Managed - READ-ONLY; True if the secret's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. Managed *bool `json:"managed,omitempty"` } @@ -1449,12 +1377,6 @@ func (dsi DeletedSecretItem) MarshalJSON() ([]byte, error) { if dsi.RecoveryID != nil { objectMap["recoveryId"] = dsi.RecoveryID } - if dsi.ScheduledPurgeDate != nil { - objectMap["scheduledPurgeDate"] = dsi.ScheduledPurgeDate - } - if dsi.DeletedDate != nil { - objectMap["deletedDate"] = dsi.DeletedDate - } if dsi.ID != nil { objectMap["id"] = dsi.ID } @@ -1467,18 +1389,15 @@ func (dsi DeletedSecretItem) MarshalJSON() ([]byte, error) { if dsi.ContentType != nil { objectMap["contentType"] = dsi.ContentType } - if dsi.Managed != nil { - objectMap["managed"] = dsi.Managed - } return json.Marshal(objectMap) } // DeletedSecretListResult the deleted secret list result type DeletedSecretListResult struct { autorest.Response `json:"-"` - // Value - A response message containing a list of the deleted secrets in the vault along with a link to the next page of deleted secrets + // Value - READ-ONLY; A response message containing a list of the deleted secrets in the vault along with a link to the next page of deleted secrets Value *[]DeletedSecretItem `json:"value,omitempty"` - // NextLink - The URL to get the next set of deleted secrets. + // NextLink - READ-ONLY; The URL to get the next set of deleted secrets. NextLink *string `json:"nextLink,omitempty"` } @@ -1621,15 +1540,17 @@ func NewDeletedSecretListResultPage(getNextPage func(context.Context, DeletedSec // Error the key vault server error. type Error struct { - // Code - The error code. + // Code - READ-ONLY; The error code. Code *string `json:"code,omitempty"` - // Message - The error message. - Message *string `json:"message,omitempty"` - InnerError *Error `json:"innererror,omitempty"` + // Message - READ-ONLY; The error message. + Message *string `json:"message,omitempty"` + // InnerError - READ-ONLY + InnerError *Error `json:"innererror,omitempty"` } // ErrorType the key vault error exception. type ErrorType struct { + // Error - READ-ONLY Error *Error `json:"error,omitempty"` } @@ -1637,16 +1558,16 @@ type ErrorType struct { type IssuerAttributes struct { // Enabled - Determines whether the issuer is enabled. Enabled *bool `json:"enabled,omitempty"` - // Created - Creation time in UTC. + // Created - READ-ONLY; Creation time in UTC. Created *date.UnixTime `json:"created,omitempty"` - // Updated - Last updated time in UTC. + // Updated - READ-ONLY; Last updated time in UTC. Updated *date.UnixTime `json:"updated,omitempty"` } // IssuerBundle the issuer for Key Vault certificate. type IssuerBundle struct { autorest.Response `json:"-"` - // ID - Identifier for the issuer object. + // ID - READ-ONLY; Identifier for the issuer object. ID *string `json:"id,omitempty"` // Provider - The issuer provider. Provider *string `json:"provider,omitempty"` @@ -1711,7 +1632,7 @@ type JSONWebKey struct { // KeyAttributes the attributes of a key managed by the key vault service. type KeyAttributes struct { - // RecoveryLevel - Reflects the deletion recovery level currently in effect for keys in the current vault. If it contains 'Purgeable' the key can be permanently deleted by a privileged user; otherwise, only the system can purge the key, at the end of the retention interval. Possible values include: 'Purgeable', 'RecoverablePurgeable', 'Recoverable', 'RecoverableProtectedSubscription' + // RecoveryLevel - READ-ONLY; Reflects the deletion recovery level currently in effect for keys in the current vault. If it contains 'Purgeable' the key can be permanently deleted by a privileged user; otherwise, only the system can purge the key, at the end of the retention interval. Possible values include: 'Purgeable', 'RecoverablePurgeable', 'Recoverable', 'RecoverableProtectedSubscription' RecoveryLevel DeletionRecoveryLevel `json:"recoveryLevel,omitempty"` // Enabled - Determines whether the object is enabled. Enabled *bool `json:"enabled,omitempty"` @@ -1719,9 +1640,9 @@ type KeyAttributes struct { NotBefore *date.UnixTime `json:"nbf,omitempty"` // Expires - Expiry date in UTC. Expires *date.UnixTime `json:"exp,omitempty"` - // Created - Creation time in UTC. + // Created - READ-ONLY; Creation time in UTC. Created *date.UnixTime `json:"created,omitempty"` - // Updated - Last updated time in UTC. + // Updated - READ-ONLY; Last updated time in UTC. Updated *date.UnixTime `json:"updated,omitempty"` } @@ -1734,7 +1655,7 @@ type KeyBundle struct { Attributes *KeyAttributes `json:"attributes,omitempty"` // Tags - Application specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags"` - // Managed - True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. + // Managed - READ-ONLY; True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. Managed *bool `json:"managed,omitempty"` } @@ -1750,9 +1671,6 @@ func (kb KeyBundle) MarshalJSON() ([]byte, error) { if kb.Tags != nil { objectMap["tags"] = kb.Tags } - if kb.Managed != nil { - objectMap["managed"] = kb.Managed - } return json.Marshal(objectMap) } @@ -1832,7 +1750,7 @@ type KeyItem struct { Attributes *KeyAttributes `json:"attributes,omitempty"` // Tags - Application specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags"` - // Managed - True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. + // Managed - READ-ONLY; True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. Managed *bool `json:"managed,omitempty"` } @@ -1848,18 +1766,15 @@ func (ki KeyItem) MarshalJSON() ([]byte, error) { if ki.Tags != nil { objectMap["tags"] = ki.Tags } - if ki.Managed != nil { - objectMap["managed"] = ki.Managed - } return json.Marshal(objectMap) } // KeyListResult the key list result. type KeyListResult struct { autorest.Response `json:"-"` - // Value - A response message containing a list of keys in the key vault along with a link to the next page of keys. + // Value - READ-ONLY; A response message containing a list of keys in the key vault along with a link to the next page of keys. Value *[]KeyItem `json:"value,omitempty"` - // NextLink - The URL to get the next set of keys. + // NextLink - READ-ONLY; The URL to get the next set of keys. NextLink *string `json:"nextLink,omitempty"` } @@ -2003,9 +1918,9 @@ func NewKeyListResultPage(getNextPage func(context.Context, KeyListResult) (KeyL // KeyOperationResult the key operation result. type KeyOperationResult struct { autorest.Response `json:"-"` - // Kid - Key identifier + // Kid - READ-ONLY; Key identifier Kid *string `json:"kid,omitempty"` - // Result - a URL-encoded base64 string + // Result - READ-ONLY; a URL-encoded base64 string Result *string `json:"value,omitempty"` } @@ -2080,7 +1995,7 @@ type KeyVerifyParameters struct { // KeyVerifyResult the key verify result. type KeyVerifyResult struct { autorest.Response `json:"-"` - // Value - True if the signature is verified, otherwise false. + // Value - READ-ONLY; True if the signature is verified, otherwise false. Value *bool `json:"value,omitempty"` } @@ -2103,7 +2018,7 @@ type OrganizationDetails struct { // PendingCertificateSigningRequestResult the pending certificate signing request result. type PendingCertificateSigningRequestResult struct { - // Value - The pending certificate signing request as Base64 encoded string. + // Value - READ-ONLY; The pending certificate signing request as Base64 encoded string. Value *string `json:"value,omitempty"` } @@ -2111,9 +2026,9 @@ type PendingCertificateSigningRequestResult struct { type SasDefinitionAttributes struct { // Enabled - the enabled state of the object. Enabled *bool `json:"enabled,omitempty"` - // Created - Creation time in UTC. + // Created - READ-ONLY; Creation time in UTC. Created *date.UnixTime `json:"created,omitempty"` - // Updated - Last updated time in UTC. + // Updated - READ-ONLY; Last updated time in UTC. Updated *date.UnixTime `json:"updated,omitempty"` } @@ -2121,36 +2036,21 @@ type SasDefinitionAttributes struct { // attributes. type SasDefinitionBundle struct { autorest.Response `json:"-"` - // ID - The SAS definition id. + // ID - READ-ONLY; The SAS definition id. ID *string `json:"id,omitempty"` - // SecretID - Storage account SAS definition secret id. + // SecretID - READ-ONLY; Storage account SAS definition secret id. SecretID *string `json:"sid,omitempty"` - // Parameters - The SAS definition metadata in the form of key-value pairs. + // Parameters - READ-ONLY; The SAS definition metadata in the form of key-value pairs. Parameters map[string]*string `json:"parameters"` - // Attributes - The SAS definition attributes. + // Attributes - READ-ONLY; The SAS definition attributes. Attributes *SasDefinitionAttributes `json:"attributes,omitempty"` - // Tags - Application specific metadata in the form of key-value pairs + // Tags - READ-ONLY; Application specific metadata in the form of key-value pairs Tags map[string]*string `json:"tags"` } // MarshalJSON is the custom marshaler for SasDefinitionBundle. func (sdb SasDefinitionBundle) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if sdb.ID != nil { - objectMap["id"] = sdb.ID - } - if sdb.SecretID != nil { - objectMap["sid"] = sdb.SecretID - } - if sdb.Parameters != nil { - objectMap["parameters"] = sdb.Parameters - } - if sdb.Attributes != nil { - objectMap["attributes"] = sdb.Attributes - } - if sdb.Tags != nil { - objectMap["tags"] = sdb.Tags - } return json.Marshal(objectMap) } @@ -2181,40 +2081,28 @@ func (sdcp SasDefinitionCreateParameters) MarshalJSON() ([]byte, error) { // SasDefinitionItem the SAS definition item containing storage SAS definition metadata. type SasDefinitionItem struct { - // ID - The storage SAS identifier. + // ID - READ-ONLY; The storage SAS identifier. ID *string `json:"id,omitempty"` - // SecretID - The storage account SAS definition secret id. + // SecretID - READ-ONLY; The storage account SAS definition secret id. SecretID *string `json:"sid,omitempty"` - // Attributes - The SAS definition management attributes. + // Attributes - READ-ONLY; The SAS definition management attributes. Attributes *SasDefinitionAttributes `json:"attributes,omitempty"` - // Tags - Application specific metadata in the form of key-value pairs. + // Tags - READ-ONLY; Application specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags"` } // MarshalJSON is the custom marshaler for SasDefinitionItem. func (sdi SasDefinitionItem) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if sdi.ID != nil { - objectMap["id"] = sdi.ID - } - if sdi.SecretID != nil { - objectMap["sid"] = sdi.SecretID - } - if sdi.Attributes != nil { - objectMap["attributes"] = sdi.Attributes - } - if sdi.Tags != nil { - objectMap["tags"] = sdi.Tags - } return json.Marshal(objectMap) } // SasDefinitionListResult the storage account SAS definition list result. type SasDefinitionListResult struct { autorest.Response `json:"-"` - // Value - A response message containing a list of SAS definitions along with a link to the next page of SAS definitions. + // Value - READ-ONLY; A response message containing a list of SAS definitions along with a link to the next page of SAS definitions. Value *[]SasDefinitionItem `json:"value,omitempty"` - // NextLink - The URL to get the next set of SAS definitions. + // NextLink - READ-ONLY; The URL to get the next set of SAS definitions. NextLink *string `json:"nextLink,omitempty"` } @@ -2382,7 +2270,7 @@ func (sdup SasDefinitionUpdateParameters) MarshalJSON() ([]byte, error) { // SecretAttributes the secret management attributes. type SecretAttributes struct { - // RecoveryLevel - Reflects the deletion recovery level currently in effect for secrets in the current vault. If it contains 'Purgeable', the secret can be permanently deleted by a privileged user; otherwise, only the system can purge the secret, at the end of the retention interval. Possible values include: 'Purgeable', 'RecoverablePurgeable', 'Recoverable', 'RecoverableProtectedSubscription' + // RecoveryLevel - READ-ONLY; Reflects the deletion recovery level currently in effect for secrets in the current vault. If it contains 'Purgeable', the secret can be permanently deleted by a privileged user; otherwise, only the system can purge the secret, at the end of the retention interval. Possible values include: 'Purgeable', 'RecoverablePurgeable', 'Recoverable', 'RecoverableProtectedSubscription' RecoveryLevel DeletionRecoveryLevel `json:"recoveryLevel,omitempty"` // Enabled - Determines whether the object is enabled. Enabled *bool `json:"enabled,omitempty"` @@ -2390,9 +2278,9 @@ type SecretAttributes struct { NotBefore *date.UnixTime `json:"nbf,omitempty"` // Expires - Expiry date in UTC. Expires *date.UnixTime `json:"exp,omitempty"` - // Created - Creation time in UTC. + // Created - READ-ONLY; Creation time in UTC. Created *date.UnixTime `json:"created,omitempty"` - // Updated - Last updated time in UTC. + // Updated - READ-ONLY; Last updated time in UTC. Updated *date.UnixTime `json:"updated,omitempty"` } @@ -2409,9 +2297,9 @@ type SecretBundle struct { Attributes *SecretAttributes `json:"attributes,omitempty"` // Tags - Application specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags"` - // Kid - If this is a secret backing a KV certificate, then this field specifies the corresponding key backing the KV certificate. + // Kid - READ-ONLY; If this is a secret backing a KV certificate, then this field specifies the corresponding key backing the KV certificate. Kid *string `json:"kid,omitempty"` - // Managed - True if the secret's lifetime is managed by key vault. If this is a secret backing a certificate, then managed will be true. + // Managed - READ-ONLY; True if the secret's lifetime is managed by key vault. If this is a secret backing a certificate, then managed will be true. Managed *bool `json:"managed,omitempty"` } @@ -2433,12 +2321,6 @@ func (sb SecretBundle) MarshalJSON() ([]byte, error) { if sb.Tags != nil { objectMap["tags"] = sb.Tags } - if sb.Kid != nil { - objectMap["kid"] = sb.Kid - } - if sb.Managed != nil { - objectMap["managed"] = sb.Managed - } return json.Marshal(objectMap) } @@ -2452,7 +2334,7 @@ type SecretItem struct { Tags map[string]*string `json:"tags"` // ContentType - Type of the secret value such as a password. ContentType *string `json:"contentType,omitempty"` - // Managed - True if the secret's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. + // Managed - READ-ONLY; True if the secret's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. Managed *bool `json:"managed,omitempty"` } @@ -2471,18 +2353,15 @@ func (si SecretItem) MarshalJSON() ([]byte, error) { if si.ContentType != nil { objectMap["contentType"] = si.ContentType } - if si.Managed != nil { - objectMap["managed"] = si.Managed - } return json.Marshal(objectMap) } // SecretListResult the secret list result. type SecretListResult struct { autorest.Response `json:"-"` - // Value - A response message containing a list of secrets in the key vault along with a link to the next page of secrets. + // Value - READ-ONLY; A response message containing a list of secrets in the key vault along with a link to the next page of secrets. Value *[]SecretItem `json:"value,omitempty"` - // NextLink - The URL to get the next set of secrets. + // NextLink - READ-ONLY; The URL to get the next set of secrets. NextLink *string `json:"nextLink,omitempty"` } @@ -2694,9 +2573,9 @@ func (sup SecretUpdateParameters) MarshalJSON() ([]byte, error) { type StorageAccountAttributes struct { // Enabled - the enabled state of the object. Enabled *bool `json:"enabled,omitempty"` - // Created - Creation time in UTC. + // Created - READ-ONLY; Creation time in UTC. Created *date.UnixTime `json:"created,omitempty"` - // Updated - Last updated time in UTC. + // Updated - READ-ONLY; Last updated time in UTC. Updated *date.UnixTime `json:"updated,omitempty"` } @@ -2742,31 +2621,19 @@ func (sacp StorageAccountCreateParameters) MarshalJSON() ([]byte, error) { // StorageAccountItem the storage account item containing storage account metadata. type StorageAccountItem struct { - // ID - Storage identifier. + // ID - READ-ONLY; Storage identifier. ID *string `json:"id,omitempty"` - // ResourceID - Storage account resource Id. + // ResourceID - READ-ONLY; Storage account resource Id. ResourceID *string `json:"resourceId,omitempty"` - // Attributes - The storage account management attributes. + // Attributes - READ-ONLY; The storage account management attributes. Attributes *StorageAccountAttributes `json:"attributes,omitempty"` - // Tags - Application specific metadata in the form of key-value pairs. + // Tags - READ-ONLY; Application specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags"` } // MarshalJSON is the custom marshaler for StorageAccountItem. func (sai StorageAccountItem) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if sai.ID != nil { - objectMap["id"] = sai.ID - } - if sai.ResourceID != nil { - objectMap["resourceId"] = sai.ResourceID - } - if sai.Attributes != nil { - objectMap["attributes"] = sai.Attributes - } - if sai.Tags != nil { - objectMap["tags"] = sai.Tags - } return json.Marshal(objectMap) } @@ -2815,55 +2682,34 @@ func (saup StorageAccountUpdateParameters) MarshalJSON() ([]byte, error) { // attributes. type StorageBundle struct { autorest.Response `json:"-"` - // ID - The storage account id. + // ID - READ-ONLY; The storage account id. ID *string `json:"id,omitempty"` - // ResourceID - The storage account resource id. + // ResourceID - READ-ONLY; The storage account resource id. ResourceID *string `json:"resourceId,omitempty"` - // ActiveKeyName - The current active storage account key name. + // ActiveKeyName - READ-ONLY; The current active storage account key name. ActiveKeyName *string `json:"activeKeyName,omitempty"` - // AutoRegenerateKey - whether keyvault should manage the storage account for the user. + // AutoRegenerateKey - READ-ONLY; whether keyvault should manage the storage account for the user. AutoRegenerateKey *bool `json:"autoRegenerateKey,omitempty"` - // RegenerationPeriod - The key regeneration time duration specified in ISO-8601 format. + // RegenerationPeriod - READ-ONLY; The key regeneration time duration specified in ISO-8601 format. RegenerationPeriod *string `json:"regenerationPeriod,omitempty"` - // Attributes - The storage account attributes. + // Attributes - READ-ONLY; The storage account attributes. Attributes *StorageAccountAttributes `json:"attributes,omitempty"` - // Tags - Application specific metadata in the form of key-value pairs + // Tags - READ-ONLY; Application specific metadata in the form of key-value pairs Tags map[string]*string `json:"tags"` } // MarshalJSON is the custom marshaler for StorageBundle. func (sb StorageBundle) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if sb.ID != nil { - objectMap["id"] = sb.ID - } - if sb.ResourceID != nil { - objectMap["resourceId"] = sb.ResourceID - } - if sb.ActiveKeyName != nil { - objectMap["activeKeyName"] = sb.ActiveKeyName - } - if sb.AutoRegenerateKey != nil { - objectMap["autoRegenerateKey"] = sb.AutoRegenerateKey - } - if sb.RegenerationPeriod != nil { - objectMap["regenerationPeriod"] = sb.RegenerationPeriod - } - if sb.Attributes != nil { - objectMap["attributes"] = sb.Attributes - } - if sb.Tags != nil { - objectMap["tags"] = sb.Tags - } return json.Marshal(objectMap) } // StorageListResult the storage accounts list result. type StorageListResult struct { autorest.Response `json:"-"` - // Value - A response message containing a list of storage accounts in the key vault along with a link to the next page of storage accounts. + // Value - READ-ONLY; A response message containing a list of storage accounts in the key vault along with a link to the next page of storage accounts. Value *[]StorageAccountItem `json:"value,omitempty"` - // NextLink - The URL to get the next set of storage accounts. + // NextLink - READ-ONLY; The URL to get the next set of storage accounts. NextLink *string `json:"nextLink,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2018-02-14/keyvault/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2018-02-14/keyvault/models.go index 9383678d7c90..62a3df4c9094 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2018-02-14/keyvault/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2018-02-14/keyvault/models.go @@ -292,22 +292,22 @@ type AccessPolicyEntry struct { // CheckNameAvailabilityResult the CheckNameAvailability operation response. type CheckNameAvailabilityResult struct { autorest.Response `json:"-"` - // NameAvailable - A boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used. + // NameAvailable - READ-ONLY; A boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used. NameAvailable *bool `json:"nameAvailable,omitempty"` - // Reason - The reason that a vault name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'AccountNameInvalid', 'AlreadyExists' + // Reason - READ-ONLY; The reason that a vault name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'AccountNameInvalid', 'AlreadyExists' Reason Reason `json:"reason,omitempty"` - // Message - An error message explaining the Reason value in more detail. + // Message - READ-ONLY; An error message explaining the Reason value in more detail. Message *string `json:"message,omitempty"` } // DeletedVault deleted vault information with extended details. type DeletedVault struct { autorest.Response `json:"-"` - // ID - The resource ID for the deleted key vault. + // ID - READ-ONLY; The resource ID for the deleted key vault. ID *string `json:"id,omitempty"` - // Name - The name of the key vault. + // Name - READ-ONLY; The name of the key vault. Name *string `json:"name,omitempty"` - // Type - The resource type of the key vault. + // Type - READ-ONLY; The resource type of the key vault. Type *string `json:"type,omitempty"` // Properties - Properties of the vault Properties *DeletedVaultProperties `json:"properties,omitempty"` @@ -461,36 +461,21 @@ func NewDeletedVaultListResultPage(getNextPage func(context.Context, DeletedVaul // DeletedVaultProperties properties of the deleted vault. type DeletedVaultProperties struct { - // VaultID - The resource id of the original vault. + // VaultID - READ-ONLY; The resource id of the original vault. VaultID *string `json:"vaultId,omitempty"` - // Location - The location of the original vault. + // Location - READ-ONLY; The location of the original vault. Location *string `json:"location,omitempty"` - // DeletionDate - The deleted date. + // DeletionDate - READ-ONLY; The deleted date. DeletionDate *date.Time `json:"deletionDate,omitempty"` - // ScheduledPurgeDate - The scheduled purged date. + // ScheduledPurgeDate - READ-ONLY; The scheduled purged date. ScheduledPurgeDate *date.Time `json:"scheduledPurgeDate,omitempty"` - // Tags - Tags of the original vault. + // Tags - READ-ONLY; Tags of the original vault. Tags map[string]*string `json:"tags"` } // MarshalJSON is the custom marshaler for DeletedVaultProperties. func (dvp DeletedVaultProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if dvp.VaultID != nil { - objectMap["vaultId"] = dvp.VaultID - } - if dvp.Location != nil { - objectMap["location"] = dvp.Location - } - if dvp.DeletionDate != nil { - objectMap["deletionDate"] = dvp.DeletionDate - } - if dvp.ScheduledPurgeDate != nil { - objectMap["scheduledPurgeDate"] = dvp.ScheduledPurgeDate - } - if dvp.Tags != nil { - objectMap["tags"] = dvp.Tags - } return json.Marshal(objectMap) } @@ -782,11 +767,11 @@ type Permissions struct { // Resource key Vault resource type Resource struct { - // ID - The Azure Resource Manager resource ID for the key vault. + // ID - READ-ONLY; The Azure Resource Manager resource ID for the key vault. ID *string `json:"id,omitempty"` - // Name - The name of the key vault. + // Name - READ-ONLY; The name of the key vault. Name *string `json:"name,omitempty"` - // Type - The resource type of the key vault. + // Type - READ-ONLY; The resource type of the key vault. Type *string `json:"type,omitempty"` // Location - The supported Azure location where the key vault should be created. Location *string `json:"location,omitempty"` @@ -797,15 +782,6 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -980,11 +956,11 @@ type Vault struct { autorest.Response `json:"-"` // Properties - Properties of the vault Properties *VaultProperties `json:"properties,omitempty"` - // ID - The Azure Resource Manager resource ID for the key vault. + // ID - READ-ONLY; The Azure Resource Manager resource ID for the key vault. ID *string `json:"id,omitempty"` - // Name - The name of the key vault. + // Name - READ-ONLY; The name of the key vault. Name *string `json:"name,omitempty"` - // Type - The resource type of the key vault. + // Type - READ-ONLY; The resource type of the key vault. Type *string `json:"type,omitempty"` // Location - The supported Azure location where the key vault should be created. Location *string `json:"location,omitempty"` @@ -998,15 +974,6 @@ func (vVar Vault) MarshalJSON() ([]byte, error) { if vVar.Properties != nil { objectMap["properties"] = vVar.Properties } - if vVar.ID != nil { - objectMap["id"] = vVar.ID - } - if vVar.Name != nil { - objectMap["name"] = vVar.Name - } - if vVar.Type != nil { - objectMap["type"] = vVar.Type - } if vVar.Location != nil { objectMap["location"] = vVar.Location } @@ -1019,13 +986,13 @@ func (vVar Vault) MarshalJSON() ([]byte, error) { // VaultAccessPolicyParameters parameters for updating the access policy in a vault type VaultAccessPolicyParameters struct { autorest.Response `json:"-"` - // ID - The resource id of the access policy. + // ID - READ-ONLY; The resource id of the access policy. ID *string `json:"id,omitempty"` - // Name - The resource name of the access policy. + // Name - READ-ONLY; The resource name of the access policy. Name *string `json:"name,omitempty"` - // Type - The resource name of the access policy. + // Type - READ-ONLY; The resource name of the access policy. Type *string `json:"type,omitempty"` - // Location - The resource type of the access policy. + // Location - READ-ONLY; The resource type of the access policy. Location *string `json:"location,omitempty"` // Properties - Properties of the access policy Properties *VaultAccessPolicyProperties `json:"properties,omitempty"` @@ -1296,7 +1263,7 @@ type VaultsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VaultsCreateOrUpdateFuture) Result(client VaultsClient) (vVar Vault, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1325,7 +1292,7 @@ type VaultsPurgeDeletedFuture struct { // If the operation has not completed it will return an error. func (future *VaultsPurgeDeletedFuture) Result(client VaultsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "keyvault.VaultsPurgeDeletedFuture", "Result", future.Response(), "Polling failure") return diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2018-02-14/keyvault/vaults.go b/vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2018-02-14/keyvault/vaults.go index 6b5b7ac3f9e5..8f83c9359219 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2018-02-14/keyvault/vaults.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2018-02-14/keyvault/vaults.go @@ -1130,6 +1130,10 @@ func (client VaultsClient) UpdateAccessPolicyPreparer(ctx context.Context, resou "api-version": APIVersion, } + parameters.ID = nil + parameters.Name = nil + parameters.Type = nil + parameters.Location = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/logic/mgmt/2016-06-01/logic/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/logic/mgmt/2016-06-01/logic/models.go index aa8f91e46668..6dc78be1ae7f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/logic/mgmt/2016-06-01/logic/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/logic/mgmt/2016-06-01/logic/models.go @@ -975,11 +975,11 @@ type AssemblyDefinition struct { autorest.Response `json:"-"` // Properties - The assembly properties. Properties *AssemblyProperties `json:"properties,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - Gets the resource name. + // Name - READ-ONLY; Gets the resource name. Name *string `json:"name,omitempty"` - // Type - Gets the resource type. + // Type - READ-ONLY; Gets the resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -993,15 +993,6 @@ func (ad AssemblyDefinition) MarshalJSON() ([]byte, error) { if ad.Properties != nil { objectMap["properties"] = ad.Properties } - if ad.ID != nil { - objectMap["id"] = ad.ID - } - if ad.Name != nil { - objectMap["name"] = ad.Name - } - if ad.Type != nil { - objectMap["type"] = ad.Type - } if ad.Location != nil { objectMap["location"] = ad.Location } @@ -1054,11 +1045,11 @@ type BatchConfiguration struct { autorest.Response `json:"-"` // Properties - The batch configuration properties. Properties *BatchConfigurationProperties `json:"properties,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - Gets the resource name. + // Name - READ-ONLY; Gets the resource name. Name *string `json:"name,omitempty"` - // Type - Gets the resource type. + // Type - READ-ONLY; Gets the resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -1072,15 +1063,6 @@ func (bc BatchConfiguration) MarshalJSON() ([]byte, error) { if bc.Properties != nil { objectMap["properties"] = bc.Properties } - if bc.ID != nil { - objectMap["id"] = bc.ID - } - if bc.Name != nil { - objectMap["name"] = bc.Name - } - if bc.Type != nil { - objectMap["type"] = bc.Type - } if bc.Location != nil { objectMap["location"] = bc.Location } @@ -1559,11 +1541,11 @@ type IntegrationAccount struct { Properties interface{} `json:"properties,omitempty"` // Sku - The sku. Sku *IntegrationAccountSku `json:"sku,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - Gets the resource name. + // Name - READ-ONLY; Gets the resource name. Name *string `json:"name,omitempty"` - // Type - Gets the resource type. + // Type - READ-ONLY; Gets the resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -1580,15 +1562,6 @@ func (ia IntegrationAccount) MarshalJSON() ([]byte, error) { if ia.Sku != nil { objectMap["sku"] = ia.Sku } - if ia.ID != nil { - objectMap["id"] = ia.ID - } - if ia.Name != nil { - objectMap["name"] = ia.Name - } - if ia.Type != nil { - objectMap["type"] = ia.Type - } if ia.Location != nil { objectMap["location"] = ia.Location } @@ -1603,11 +1576,11 @@ type IntegrationAccountAgreement struct { autorest.Response `json:"-"` // IntegrationAccountAgreementProperties - The integration account agreement properties. *IntegrationAccountAgreementProperties `json:"properties,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - Gets the resource name. + // Name - READ-ONLY; Gets the resource name. Name *string `json:"name,omitempty"` - // Type - Gets the resource type. + // Type - READ-ONLY; Gets the resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -1621,15 +1594,6 @@ func (iaa IntegrationAccountAgreement) MarshalJSON() ([]byte, error) { if iaa.IntegrationAccountAgreementProperties != nil { objectMap["properties"] = iaa.IntegrationAccountAgreementProperties } - if iaa.ID != nil { - objectMap["id"] = iaa.ID - } - if iaa.Name != nil { - objectMap["name"] = iaa.Name - } - if iaa.Type != nil { - objectMap["type"] = iaa.Type - } if iaa.Location != nil { objectMap["location"] = iaa.Location } @@ -1863,9 +1827,9 @@ func NewIntegrationAccountAgreementListResultPage(getNextPage func(context.Conte // IntegrationAccountAgreementProperties the integration account agreement properties. type IntegrationAccountAgreementProperties struct { - // CreatedTime - The created time. + // CreatedTime - READ-ONLY; The created time. CreatedTime *date.Time `json:"createdTime,omitempty"` - // ChangedTime - The changed time. + // ChangedTime - READ-ONLY; The changed time. ChangedTime *date.Time `json:"changedTime,omitempty"` // Metadata - The metadata. Metadata interface{} `json:"metadata,omitempty"` @@ -1888,11 +1852,11 @@ type IntegrationAccountCertificate struct { autorest.Response `json:"-"` // IntegrationAccountCertificateProperties - The integration account certificate properties. *IntegrationAccountCertificateProperties `json:"properties,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - Gets the resource name. + // Name - READ-ONLY; Gets the resource name. Name *string `json:"name,omitempty"` - // Type - Gets the resource type. + // Type - READ-ONLY; Gets the resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -1906,15 +1870,6 @@ func (iac IntegrationAccountCertificate) MarshalJSON() ([]byte, error) { if iac.IntegrationAccountCertificateProperties != nil { objectMap["properties"] = iac.IntegrationAccountCertificateProperties } - if iac.ID != nil { - objectMap["id"] = iac.ID - } - if iac.Name != nil { - objectMap["name"] = iac.Name - } - if iac.Type != nil { - objectMap["type"] = iac.Type - } if iac.Location != nil { objectMap["location"] = iac.Location } @@ -2142,9 +2097,9 @@ func NewIntegrationAccountCertificateListResultPage(getNextPage func(context.Con // IntegrationAccountCertificateProperties the integration account certificate properties. type IntegrationAccountCertificateProperties struct { - // CreatedTime - The created time. + // CreatedTime - READ-ONLY; The created time. CreatedTime *date.Time `json:"createdTime,omitempty"` - // ChangedTime - The changed time. + // ChangedTime - READ-ONLY; The changed time. ChangedTime *date.Time `json:"changedTime,omitempty"` // Metadata - The metadata. Metadata interface{} `json:"metadata,omitempty"` @@ -2305,11 +2260,11 @@ type IntegrationAccountMap struct { autorest.Response `json:"-"` // IntegrationAccountMapProperties - The integration account map properties. *IntegrationAccountMapProperties `json:"properties,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - Gets the resource name. + // Name - READ-ONLY; Gets the resource name. Name *string `json:"name,omitempty"` - // Type - Gets the resource type. + // Type - READ-ONLY; Gets the resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -2323,15 +2278,6 @@ func (iam IntegrationAccountMap) MarshalJSON() ([]byte, error) { if iam.IntegrationAccountMapProperties != nil { objectMap["properties"] = iam.IntegrationAccountMapProperties } - if iam.ID != nil { - objectMap["id"] = iam.ID - } - if iam.Name != nil { - objectMap["name"] = iam.Name - } - if iam.Type != nil { - objectMap["type"] = iam.Type - } if iam.Location != nil { objectMap["location"] = iam.Location } @@ -2569,15 +2515,15 @@ type IntegrationAccountMapProperties struct { MapType MapType `json:"mapType,omitempty"` // ParametersSchema - The parameters schema of integration account map. ParametersSchema *IntegrationAccountMapPropertiesParametersSchema `json:"parametersSchema,omitempty"` - // CreatedTime - The created time. + // CreatedTime - READ-ONLY; The created time. CreatedTime *date.Time `json:"createdTime,omitempty"` - // ChangedTime - The changed time. + // ChangedTime - READ-ONLY; The changed time. ChangedTime *date.Time `json:"changedTime,omitempty"` // Content - The content. Content *string `json:"content,omitempty"` // ContentType - The content type. ContentType *string `json:"contentType,omitempty"` - // ContentLink - The content link. + // ContentLink - READ-ONLY; The content link. ContentLink *ContentLink `json:"contentLink,omitempty"` // Metadata - The metadata. Metadata interface{} `json:"metadata,omitempty"` @@ -2594,11 +2540,11 @@ type IntegrationAccountPartner struct { autorest.Response `json:"-"` // IntegrationAccountPartnerProperties - The integration account partner properties. *IntegrationAccountPartnerProperties `json:"properties,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - Gets the resource name. + // Name - READ-ONLY; Gets the resource name. Name *string `json:"name,omitempty"` - // Type - Gets the resource type. + // Type - READ-ONLY; Gets the resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -2612,15 +2558,6 @@ func (iap IntegrationAccountPartner) MarshalJSON() ([]byte, error) { if iap.IntegrationAccountPartnerProperties != nil { objectMap["properties"] = iap.IntegrationAccountPartnerProperties } - if iap.ID != nil { - objectMap["id"] = iap.ID - } - if iap.Name != nil { - objectMap["name"] = iap.Name - } - if iap.Type != nil { - objectMap["type"] = iap.Type - } if iap.Location != nil { objectMap["location"] = iap.Location } @@ -2856,9 +2793,9 @@ func NewIntegrationAccountPartnerListResultPage(getNextPage func(context.Context type IntegrationAccountPartnerProperties struct { // PartnerType - The partner type. Possible values include: 'PartnerTypeNotSpecified', 'PartnerTypeB2B' PartnerType PartnerType `json:"partnerType,omitempty"` - // CreatedTime - The created time. + // CreatedTime - READ-ONLY; The created time. CreatedTime *date.Time `json:"createdTime,omitempty"` - // ChangedTime - The changed time. + // ChangedTime - READ-ONLY; The changed time. ChangedTime *date.Time `json:"changedTime,omitempty"` // Metadata - The metadata. Metadata interface{} `json:"metadata,omitempty"` @@ -2871,11 +2808,11 @@ type IntegrationAccountSchema struct { autorest.Response `json:"-"` // IntegrationAccountSchemaProperties - The integration account schema properties. *IntegrationAccountSchemaProperties `json:"properties,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - Gets the resource name. + // Name - READ-ONLY; Gets the resource name. Name *string `json:"name,omitempty"` - // Type - Gets the resource type. + // Type - READ-ONLY; Gets the resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -2889,15 +2826,6 @@ func (ias IntegrationAccountSchema) MarshalJSON() ([]byte, error) { if ias.IntegrationAccountSchemaProperties != nil { objectMap["properties"] = ias.IntegrationAccountSchemaProperties } - if ias.ID != nil { - objectMap["id"] = ias.ID - } - if ias.Name != nil { - objectMap["name"] = ias.Name - } - if ias.Type != nil { - objectMap["type"] = ias.Type - } if ias.Location != nil { objectMap["location"] = ias.Location } @@ -3139,9 +3067,9 @@ type IntegrationAccountSchemaProperties struct { DocumentName *string `json:"documentName,omitempty"` // FileName - The file name. FileName *string `json:"fileName,omitempty"` - // CreatedTime - The created time. + // CreatedTime - READ-ONLY; The created time. CreatedTime *date.Time `json:"createdTime,omitempty"` - // ChangedTime - The changed time. + // ChangedTime - READ-ONLY; The changed time. ChangedTime *date.Time `json:"changedTime,omitempty"` // Metadata - The metadata. Metadata interface{} `json:"metadata,omitempty"` @@ -3149,7 +3077,7 @@ type IntegrationAccountSchemaProperties struct { Content *string `json:"content,omitempty"` // ContentType - The content type. ContentType *string `json:"contentType,omitempty"` - // ContentLink - The content link. + // ContentLink - READ-ONLY; The content link. ContentLink *ContentLink `json:"contentLink,omitempty"` } @@ -3158,11 +3086,11 @@ type IntegrationAccountSession struct { autorest.Response `json:"-"` // IntegrationAccountSessionProperties - The integration account session properties. *IntegrationAccountSessionProperties `json:"properties,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - Gets the resource name. + // Name - READ-ONLY; Gets the resource name. Name *string `json:"name,omitempty"` - // Type - Gets the resource type. + // Type - READ-ONLY; Gets the resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -3176,15 +3104,6 @@ func (ias IntegrationAccountSession) MarshalJSON() ([]byte, error) { if ias.IntegrationAccountSessionProperties != nil { objectMap["properties"] = ias.IntegrationAccountSessionProperties } - if ias.ID != nil { - objectMap["id"] = ias.ID - } - if ias.Name != nil { - objectMap["name"] = ias.Name - } - if ias.Type != nil { - objectMap["type"] = ias.Type - } if ias.Location != nil { objectMap["location"] = ias.Location } @@ -3418,9 +3337,9 @@ func NewIntegrationAccountSessionListResultPage(getNextPage func(context.Context // IntegrationAccountSessionProperties the integration account session properties. type IntegrationAccountSessionProperties struct { - // CreatedTime - The created time. + // CreatedTime - READ-ONLY; The created time. CreatedTime *date.Time `json:"createdTime,omitempty"` - // ChangedTime - The changed time. + // ChangedTime - READ-ONLY; The changed time. ChangedTime *date.Time `json:"changedTime,omitempty"` // Content - The session content. Content interface{} `json:"content,omitempty"` @@ -3482,19 +3401,19 @@ type KeyVaultKeyReference struct { type KeyVaultKeyReferenceKeyVault struct { // ID - The resource id. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` } // KeyVaultReference the key vault reference. type KeyVaultReference struct { - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - Gets the resource name. + // Name - READ-ONLY; Gets the resource name. Name *string `json:"name,omitempty"` - // Type - Gets the resource type. + // Type - READ-ONLY; Gets the resource type. Type *string `json:"type,omitempty"` } @@ -3673,17 +3592,17 @@ func NewOperationListResultPage(getNextPage func(context.Context, OperationListR // OperationResult the operation result definition. type OperationResult struct { - // TrackingID - Gets the tracking id. + // TrackingID - READ-ONLY; Gets the tracking id. TrackingID *string `json:"trackingId,omitempty"` - // Inputs - Gets the inputs. + // Inputs - READ-ONLY; Gets the inputs. Inputs interface{} `json:"inputs,omitempty"` - // InputsLink - Gets the link to inputs. + // InputsLink - READ-ONLY; Gets the link to inputs. InputsLink *ContentLink `json:"inputsLink,omitempty"` - // Outputs - Gets the outputs. + // Outputs - READ-ONLY; Gets the outputs. Outputs interface{} `json:"outputs,omitempty"` - // OutputsLink - Gets the link to outputs. + // OutputsLink - READ-ONLY; Gets the link to outputs. OutputsLink *ContentLink `json:"outputsLink,omitempty"` - // TrackedProperties - Gets the tracked properties. + // TrackedProperties - READ-ONLY; Gets the tracked properties. TrackedProperties interface{} `json:"trackedProperties,omitempty"` // RetryHistory - Gets the retry histories. RetryHistory *[]RetryHistory `json:"retryHistory,omitempty"` @@ -3773,11 +3692,11 @@ type RequestHistory struct { autorest.Response `json:"-"` // Properties - The request history properties. Properties *RequestHistoryProperties `json:"properties,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - Gets the resource name. + // Name - READ-ONLY; Gets the resource name. Name *string `json:"name,omitempty"` - // Type - Gets the resource type. + // Type - READ-ONLY; Gets the resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -3791,15 +3710,6 @@ func (rh RequestHistory) MarshalJSON() ([]byte, error) { if rh.Properties != nil { objectMap["properties"] = rh.Properties } - if rh.ID != nil { - objectMap["id"] = rh.ID - } - if rh.Name != nil { - objectMap["name"] = rh.Name - } - if rh.Type != nil { - objectMap["type"] = rh.Type - } if rh.Location != nil { objectMap["location"] = rh.Location } @@ -3969,11 +3879,11 @@ type RequestHistoryProperties struct { // Resource the base resource type. type Resource struct { - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - Gets the resource name. + // Name - READ-ONLY; Gets the resource name. Name *string `json:"name,omitempty"` - // Type - Gets the resource type. + // Type - READ-ONLY; Gets the resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -3984,15 +3894,6 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -4004,11 +3905,11 @@ func (r Resource) MarshalJSON() ([]byte, error) { // ResourceReference the resource reference. type ResourceReference struct { - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - Gets the resource name. + // Name - READ-ONLY; Gets the resource name. Name *string `json:"name,omitempty"` - // Type - Gets the resource type. + // Type - READ-ONLY; Gets the resource type. Type *string `json:"type,omitempty"` } @@ -4077,7 +3978,7 @@ type Sku struct { // SubResource the sub resource type. type SubResource struct { - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` } @@ -4110,11 +4011,11 @@ type Workflow struct { autorest.Response `json:"-"` // WorkflowProperties - The workflow properties. *WorkflowProperties `json:"properties,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - Gets the resource name. + // Name - READ-ONLY; Gets the resource name. Name *string `json:"name,omitempty"` - // Type - Gets the resource type. + // Type - READ-ONLY; Gets the resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -4128,15 +4029,6 @@ func (w Workflow) MarshalJSON() ([]byte, error) { if w.WorkflowProperties != nil { objectMap["properties"] = w.WorkflowProperties } - if w.ID != nil { - objectMap["id"] = w.ID - } - if w.Name != nil { - objectMap["name"] = w.Name - } - if w.Type != nil { - objectMap["type"] = w.Type - } if w.Location != nil { objectMap["location"] = w.Location } @@ -4369,7 +4261,7 @@ func NewWorkflowListResultPage(getNextPage func(context.Context, WorkflowListRes // WorkflowOutputParameter the workflow output parameter. type WorkflowOutputParameter struct { - // Error - Gets the error. + // Error - READ-ONLY; Gets the error. Error interface{} `json:"error,omitempty"` // Type - The type. Possible values include: 'ParameterTypeNotSpecified', 'ParameterTypeString', 'ParameterTypeSecureString', 'ParameterTypeInt', 'ParameterTypeFloat', 'ParameterTypeBool', 'ParameterTypeArray', 'ParameterTypeObject', 'ParameterTypeSecureObject' Type ParameterType `json:"type,omitempty"` @@ -4395,17 +4287,17 @@ type WorkflowParameter struct { // WorkflowProperties the workflow properties. type WorkflowProperties struct { - // ProvisioningState - Gets the provisioning state. Possible values include: 'WorkflowProvisioningStateNotSpecified', 'WorkflowProvisioningStateAccepted', 'WorkflowProvisioningStateRunning', 'WorkflowProvisioningStateReady', 'WorkflowProvisioningStateCreating', 'WorkflowProvisioningStateCreated', 'WorkflowProvisioningStateDeleting', 'WorkflowProvisioningStateDeleted', 'WorkflowProvisioningStateCanceled', 'WorkflowProvisioningStateFailed', 'WorkflowProvisioningStateSucceeded', 'WorkflowProvisioningStateMoving', 'WorkflowProvisioningStateUpdating', 'WorkflowProvisioningStateRegistering', 'WorkflowProvisioningStateRegistered', 'WorkflowProvisioningStateUnregistering', 'WorkflowProvisioningStateUnregistered', 'WorkflowProvisioningStateCompleted' + // ProvisioningState - READ-ONLY; Gets the provisioning state. Possible values include: 'WorkflowProvisioningStateNotSpecified', 'WorkflowProvisioningStateAccepted', 'WorkflowProvisioningStateRunning', 'WorkflowProvisioningStateReady', 'WorkflowProvisioningStateCreating', 'WorkflowProvisioningStateCreated', 'WorkflowProvisioningStateDeleting', 'WorkflowProvisioningStateDeleted', 'WorkflowProvisioningStateCanceled', 'WorkflowProvisioningStateFailed', 'WorkflowProvisioningStateSucceeded', 'WorkflowProvisioningStateMoving', 'WorkflowProvisioningStateUpdating', 'WorkflowProvisioningStateRegistering', 'WorkflowProvisioningStateRegistered', 'WorkflowProvisioningStateUnregistering', 'WorkflowProvisioningStateUnregistered', 'WorkflowProvisioningStateCompleted' ProvisioningState WorkflowProvisioningState `json:"provisioningState,omitempty"` - // CreatedTime - Gets the created time. + // CreatedTime - READ-ONLY; Gets the created time. CreatedTime *date.Time `json:"createdTime,omitempty"` - // ChangedTime - Gets the changed time. + // ChangedTime - READ-ONLY; Gets the changed time. ChangedTime *date.Time `json:"changedTime,omitempty"` // State - The state. Possible values include: 'WorkflowStateNotSpecified', 'WorkflowStateCompleted', 'WorkflowStateEnabled', 'WorkflowStateDisabled', 'WorkflowStateDeleted', 'WorkflowStateSuspended' State WorkflowState `json:"state,omitempty"` - // Version - Gets the version. + // Version - READ-ONLY; Gets the version. Version *string `json:"version,omitempty"` - // AccessEndpoint - Gets the access endpoint. + // AccessEndpoint - READ-ONLY; Gets the access endpoint. AccessEndpoint *string `json:"accessEndpoint,omitempty"` // Sku - The sku. Sku *Sku `json:"sku,omitempty"` @@ -4420,24 +4312,9 @@ type WorkflowProperties struct { // MarshalJSON is the custom marshaler for WorkflowProperties. func (wp WorkflowProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if wp.ProvisioningState != "" { - objectMap["provisioningState"] = wp.ProvisioningState - } - if wp.CreatedTime != nil { - objectMap["createdTime"] = wp.CreatedTime - } - if wp.ChangedTime != nil { - objectMap["changedTime"] = wp.ChangedTime - } if wp.State != "" { objectMap["state"] = wp.State } - if wp.Version != nil { - objectMap["version"] = wp.Version - } - if wp.AccessEndpoint != nil { - objectMap["accessEndpoint"] = wp.AccessEndpoint - } if wp.Sku != nil { objectMap["sku"] = wp.Sku } @@ -4458,11 +4335,11 @@ type WorkflowRun struct { autorest.Response `json:"-"` // WorkflowRunProperties - The workflow run properties. *WorkflowRunProperties `json:"properties,omitempty"` - // Name - Gets the workflow run name. + // Name - READ-ONLY; Gets the workflow run name. Name *string `json:"name,omitempty"` - // Type - Gets the workflow run type. + // Type - READ-ONLY; Gets the workflow run type. Type *string `json:"type,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` } @@ -4472,15 +4349,6 @@ func (wr WorkflowRun) MarshalJSON() ([]byte, error) { if wr.WorkflowRunProperties != nil { objectMap["properties"] = wr.WorkflowRunProperties } - if wr.Name != nil { - objectMap["name"] = wr.Name - } - if wr.Type != nil { - objectMap["type"] = wr.Type - } - if wr.ID != nil { - objectMap["id"] = wr.ID - } return json.Marshal(objectMap) } @@ -4540,11 +4408,11 @@ type WorkflowRunAction struct { autorest.Response `json:"-"` // WorkflowRunActionProperties - The workflow run action properties. *WorkflowRunActionProperties `json:"properties,omitempty"` - // Name - Gets the workflow run action name. + // Name - READ-ONLY; Gets the workflow run action name. Name *string `json:"name,omitempty"` - // Type - Gets the workflow run action type. + // Type - READ-ONLY; Gets the workflow run action type. Type *string `json:"type,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` } @@ -4554,15 +4422,6 @@ func (wra WorkflowRunAction) MarshalJSON() ([]byte, error) { if wra.WorkflowRunActionProperties != nil { objectMap["properties"] = wra.WorkflowRunActionProperties } - if wra.Name != nil { - objectMap["name"] = wra.Name - } - if wra.Type != nil { - objectMap["type"] = wra.Type - } - if wra.ID != nil { - objectMap["id"] = wra.ID - } return json.Marshal(objectMap) } @@ -4771,25 +4630,25 @@ func NewWorkflowRunActionListResultPage(getNextPage func(context.Context, Workfl // WorkflowRunActionProperties the workflow run action properties. type WorkflowRunActionProperties struct { - // StartTime - Gets the start time. + // StartTime - READ-ONLY; Gets the start time. StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - Gets the end time. + // EndTime - READ-ONLY; Gets the end time. EndTime *date.Time `json:"endTime,omitempty"` - // Status - Gets the status. Possible values include: 'WorkflowStatusNotSpecified', 'WorkflowStatusPaused', 'WorkflowStatusRunning', 'WorkflowStatusWaiting', 'WorkflowStatusSucceeded', 'WorkflowStatusSkipped', 'WorkflowStatusSuspended', 'WorkflowStatusCancelled', 'WorkflowStatusFailed', 'WorkflowStatusFaulted', 'WorkflowStatusTimedOut', 'WorkflowStatusAborted', 'WorkflowStatusIgnored' + // Status - READ-ONLY; Gets the status. Possible values include: 'WorkflowStatusNotSpecified', 'WorkflowStatusPaused', 'WorkflowStatusRunning', 'WorkflowStatusWaiting', 'WorkflowStatusSucceeded', 'WorkflowStatusSkipped', 'WorkflowStatusSuspended', 'WorkflowStatusCancelled', 'WorkflowStatusFailed', 'WorkflowStatusFaulted', 'WorkflowStatusTimedOut', 'WorkflowStatusAborted', 'WorkflowStatusIgnored' Status WorkflowStatus `json:"status,omitempty"` - // Code - Gets the code. + // Code - READ-ONLY; Gets the code. Code *string `json:"code,omitempty"` - // Error - Gets the error. + // Error - READ-ONLY; Gets the error. Error interface{} `json:"error,omitempty"` - // TrackingID - Gets the tracking id. + // TrackingID - READ-ONLY; Gets the tracking id. TrackingID *string `json:"trackingId,omitempty"` // Correlation - The correlation properties. Correlation *Correlation `json:"correlation,omitempty"` - // InputsLink - Gets the link to inputs. + // InputsLink - READ-ONLY; Gets the link to inputs. InputsLink *ContentLink `json:"inputsLink,omitempty"` - // OutputsLink - Gets the link to outputs. + // OutputsLink - READ-ONLY; Gets the link to outputs. OutputsLink *ContentLink `json:"outputsLink,omitempty"` - // TrackedProperties - Gets the tracked properties. + // TrackedProperties - READ-ONLY; Gets the tracked properties. TrackedProperties interface{} `json:"trackedProperties,omitempty"` // RetryHistory - Gets the retry histories. RetryHistory *[]RetryHistory `json:"retryHistory,omitempty"` @@ -4800,11 +4659,11 @@ type WorkflowRunActionRepetitionDefinition struct { autorest.Response `json:"-"` // WorkflowRunActionRepetitionProperties - The workflow run action repetition properties definition. *WorkflowRunActionRepetitionProperties `json:"properties,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - Gets the resource name. + // Name - READ-ONLY; Gets the resource name. Name *string `json:"name,omitempty"` - // Type - Gets the resource type. + // Type - READ-ONLY; Gets the resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -4818,15 +4677,6 @@ func (wrard WorkflowRunActionRepetitionDefinition) MarshalJSON() ([]byte, error) if wrard.WorkflowRunActionRepetitionProperties != nil { objectMap["properties"] = wrard.WorkflowRunActionRepetitionProperties } - if wrard.ID != nil { - objectMap["id"] = wrard.ID - } - if wrard.Name != nil { - objectMap["name"] = wrard.Name - } - if wrard.Type != nil { - objectMap["type"] = wrard.Type - } if wrard.Location != nil { objectMap["location"] = wrard.Location } @@ -4915,17 +4765,17 @@ type WorkflowRunActionRepetitionDefinitionCollection struct { type WorkflowRunActionRepetitionProperties struct { // RepetitionIndexes - The repetition indexes. RepetitionIndexes *[]RepetitionIndex `json:"repetitionIndexes,omitempty"` - // TrackingID - Gets the tracking id. + // TrackingID - READ-ONLY; Gets the tracking id. TrackingID *string `json:"trackingId,omitempty"` - // Inputs - Gets the inputs. + // Inputs - READ-ONLY; Gets the inputs. Inputs interface{} `json:"inputs,omitempty"` - // InputsLink - Gets the link to inputs. + // InputsLink - READ-ONLY; Gets the link to inputs. InputsLink *ContentLink `json:"inputsLink,omitempty"` - // Outputs - Gets the outputs. + // Outputs - READ-ONLY; Gets the outputs. Outputs interface{} `json:"outputs,omitempty"` - // OutputsLink - Gets the link to outputs. + // OutputsLink - READ-ONLY; Gets the link to outputs. OutputsLink *ContentLink `json:"outputsLink,omitempty"` - // TrackedProperties - Gets the tracked properties. + // TrackedProperties - READ-ONLY; Gets the tracked properties. TrackedProperties interface{} `json:"trackedProperties,omitempty"` // RetryHistory - Gets the retry histories. RetryHistory *[]RetryHistory `json:"retryHistory,omitempty"` @@ -5097,103 +4947,70 @@ func NewWorkflowRunListResultPage(getNextPage func(context.Context, WorkflowRunL // WorkflowRunProperties the workflow run properties. type WorkflowRunProperties struct { - // WaitEndTime - Gets the wait end time. + // WaitEndTime - READ-ONLY; Gets the wait end time. WaitEndTime *date.Time `json:"waitEndTime,omitempty"` - // StartTime - Gets the start time. + // StartTime - READ-ONLY; Gets the start time. StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - Gets the end time. + // EndTime - READ-ONLY; Gets the end time. EndTime *date.Time `json:"endTime,omitempty"` - // Status - Gets the status. Possible values include: 'WorkflowStatusNotSpecified', 'WorkflowStatusPaused', 'WorkflowStatusRunning', 'WorkflowStatusWaiting', 'WorkflowStatusSucceeded', 'WorkflowStatusSkipped', 'WorkflowStatusSuspended', 'WorkflowStatusCancelled', 'WorkflowStatusFailed', 'WorkflowStatusFaulted', 'WorkflowStatusTimedOut', 'WorkflowStatusAborted', 'WorkflowStatusIgnored' + // Status - READ-ONLY; Gets the status. Possible values include: 'WorkflowStatusNotSpecified', 'WorkflowStatusPaused', 'WorkflowStatusRunning', 'WorkflowStatusWaiting', 'WorkflowStatusSucceeded', 'WorkflowStatusSkipped', 'WorkflowStatusSuspended', 'WorkflowStatusCancelled', 'WorkflowStatusFailed', 'WorkflowStatusFaulted', 'WorkflowStatusTimedOut', 'WorkflowStatusAborted', 'WorkflowStatusIgnored' Status WorkflowStatus `json:"status,omitempty"` - // Code - Gets the code. + // Code - READ-ONLY; Gets the code. Code *string `json:"code,omitempty"` - // Error - Gets the error. + // Error - READ-ONLY; Gets the error. Error interface{} `json:"error,omitempty"` - // CorrelationID - Gets the correlation id. + // CorrelationID - READ-ONLY; Gets the correlation id. CorrelationID *string `json:"correlationId,omitempty"` // Correlation - The run correlation. Correlation *Correlation `json:"correlation,omitempty"` - // Workflow - Gets the reference to workflow version. + // Workflow - READ-ONLY; Gets the reference to workflow version. Workflow *ResourceReference `json:"workflow,omitempty"` - // Trigger - Gets the fired trigger. + // Trigger - READ-ONLY; Gets the fired trigger. Trigger *WorkflowRunTrigger `json:"trigger,omitempty"` - // Outputs - Gets the outputs. + // Outputs - READ-ONLY; Gets the outputs. Outputs map[string]*WorkflowOutputParameter `json:"outputs"` - // Response - Gets the response of the flow run. + // Response - READ-ONLY; Gets the response of the flow run. Response *WorkflowRunTrigger `json:"response,omitempty"` } // MarshalJSON is the custom marshaler for WorkflowRunProperties. func (wrp WorkflowRunProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if wrp.WaitEndTime != nil { - objectMap["waitEndTime"] = wrp.WaitEndTime - } - if wrp.StartTime != nil { - objectMap["startTime"] = wrp.StartTime - } - if wrp.EndTime != nil { - objectMap["endTime"] = wrp.EndTime - } - if wrp.Status != "" { - objectMap["status"] = wrp.Status - } - if wrp.Code != nil { - objectMap["code"] = wrp.Code - } - if wrp.Error != nil { - objectMap["error"] = wrp.Error - } - if wrp.CorrelationID != nil { - objectMap["correlationId"] = wrp.CorrelationID - } if wrp.Correlation != nil { objectMap["correlation"] = wrp.Correlation } - if wrp.Workflow != nil { - objectMap["workflow"] = wrp.Workflow - } - if wrp.Trigger != nil { - objectMap["trigger"] = wrp.Trigger - } - if wrp.Outputs != nil { - objectMap["outputs"] = wrp.Outputs - } - if wrp.Response != nil { - objectMap["response"] = wrp.Response - } return json.Marshal(objectMap) } // WorkflowRunTrigger the workflow run trigger. type WorkflowRunTrigger struct { - // Name - Gets the name. + // Name - READ-ONLY; Gets the name. Name *string `json:"name,omitempty"` - // Inputs - Gets the inputs. + // Inputs - READ-ONLY; Gets the inputs. Inputs interface{} `json:"inputs,omitempty"` - // InputsLink - Gets the link to inputs. + // InputsLink - READ-ONLY; Gets the link to inputs. InputsLink *ContentLink `json:"inputsLink,omitempty"` - // Outputs - Gets the outputs. + // Outputs - READ-ONLY; Gets the outputs. Outputs interface{} `json:"outputs,omitempty"` - // OutputsLink - Gets the link to outputs. + // OutputsLink - READ-ONLY; Gets the link to outputs. OutputsLink *ContentLink `json:"outputsLink,omitempty"` - // ScheduledTime - Gets the scheduled time. + // ScheduledTime - READ-ONLY; Gets the scheduled time. ScheduledTime *date.Time `json:"scheduledTime,omitempty"` - // StartTime - Gets the start time. + // StartTime - READ-ONLY; Gets the start time. StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - Gets the end time. + // EndTime - READ-ONLY; Gets the end time. EndTime *date.Time `json:"endTime,omitempty"` - // TrackingID - Gets the tracking id. + // TrackingID - READ-ONLY; Gets the tracking id. TrackingID *string `json:"trackingId,omitempty"` // Correlation - The run correlation. Correlation *Correlation `json:"correlation,omitempty"` - // Code - Gets the code. + // Code - READ-ONLY; Gets the code. Code *string `json:"code,omitempty"` - // Status - Gets the status. Possible values include: 'WorkflowStatusNotSpecified', 'WorkflowStatusPaused', 'WorkflowStatusRunning', 'WorkflowStatusWaiting', 'WorkflowStatusSucceeded', 'WorkflowStatusSkipped', 'WorkflowStatusSuspended', 'WorkflowStatusCancelled', 'WorkflowStatusFailed', 'WorkflowStatusFaulted', 'WorkflowStatusTimedOut', 'WorkflowStatusAborted', 'WorkflowStatusIgnored' + // Status - READ-ONLY; Gets the status. Possible values include: 'WorkflowStatusNotSpecified', 'WorkflowStatusPaused', 'WorkflowStatusRunning', 'WorkflowStatusWaiting', 'WorkflowStatusSucceeded', 'WorkflowStatusSkipped', 'WorkflowStatusSuspended', 'WorkflowStatusCancelled', 'WorkflowStatusFailed', 'WorkflowStatusFaulted', 'WorkflowStatusTimedOut', 'WorkflowStatusAborted', 'WorkflowStatusIgnored' Status WorkflowStatus `json:"status,omitempty"` - // Error - Gets the error. + // Error - READ-ONLY; Gets the error. Error interface{} `json:"error,omitempty"` - // TrackedProperties - Gets the tracked properties. + // TrackedProperties - READ-ONLY; Gets the tracked properties. TrackedProperties interface{} `json:"trackedProperties,omitempty"` } @@ -5202,11 +5019,11 @@ type WorkflowTrigger struct { autorest.Response `json:"-"` // WorkflowTriggerProperties - The workflow trigger properties. *WorkflowTriggerProperties `json:"properties,omitempty"` - // Name - Gets the workflow trigger name. + // Name - READ-ONLY; Gets the workflow trigger name. Name *string `json:"name,omitempty"` - // Type - Gets the workflow trigger type. + // Type - READ-ONLY; Gets the workflow trigger type. Type *string `json:"type,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` } @@ -5216,15 +5033,6 @@ func (wt WorkflowTrigger) MarshalJSON() ([]byte, error) { if wt.WorkflowTriggerProperties != nil { objectMap["properties"] = wt.WorkflowTriggerProperties } - if wt.Name != nil { - objectMap["name"] = wt.Name - } - if wt.Type != nil { - objectMap["type"] = wt.Type - } - if wt.ID != nil { - objectMap["id"] = wt.ID - } return json.Marshal(objectMap) } @@ -5282,13 +5090,13 @@ func (wt *WorkflowTrigger) UnmarshalJSON(body []byte) error { // WorkflowTriggerCallbackURL the workflow trigger callback URL. type WorkflowTriggerCallbackURL struct { autorest.Response `json:"-"` - // Value - Gets the workflow trigger callback URL. + // Value - READ-ONLY; Gets the workflow trigger callback URL. Value *string `json:"value,omitempty"` - // Method - Gets the workflow trigger callback URL HTTP method. + // Method - READ-ONLY; Gets the workflow trigger callback URL HTTP method. Method *string `json:"method,omitempty"` - // BasePath - Gets the workflow trigger callback URL base path. + // BasePath - READ-ONLY; Gets the workflow trigger callback URL base path. BasePath *string `json:"basePath,omitempty"` - // RelativePath - Gets the workflow trigger callback URL relative path. + // RelativePath - READ-ONLY; Gets the workflow trigger callback URL relative path. RelativePath *string `json:"relativePath,omitempty"` // RelativePathParameters - Gets the workflow trigger callback URL relative path parameters. RelativePathParameters *[]string `json:"relativePathParameters,omitempty"` @@ -5307,11 +5115,11 @@ type WorkflowTriggerHistory struct { autorest.Response `json:"-"` // WorkflowTriggerHistoryProperties - Gets the workflow trigger history properties. *WorkflowTriggerHistoryProperties `json:"properties,omitempty"` - // Name - Gets the workflow trigger history name. + // Name - READ-ONLY; Gets the workflow trigger history name. Name *string `json:"name,omitempty"` - // Type - Gets the workflow trigger history type. + // Type - READ-ONLY; Gets the workflow trigger history type. Type *string `json:"type,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` } @@ -5321,15 +5129,6 @@ func (wth WorkflowTriggerHistory) MarshalJSON() ([]byte, error) { if wth.WorkflowTriggerHistoryProperties != nil { objectMap["properties"] = wth.WorkflowTriggerHistoryProperties } - if wth.Name != nil { - objectMap["name"] = wth.Name - } - if wth.Type != nil { - objectMap["type"] = wth.Type - } - if wth.ID != nil { - objectMap["id"] = wth.ID - } return json.Marshal(objectMap) } @@ -5539,27 +5338,27 @@ func NewWorkflowTriggerHistoryListResultPage(getNextPage func(context.Context, W // WorkflowTriggerHistoryProperties the workflow trigger history properties. type WorkflowTriggerHistoryProperties struct { - // StartTime - Gets the start time. + // StartTime - READ-ONLY; Gets the start time. StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - Gets the end time. + // EndTime - READ-ONLY; Gets the end time. EndTime *date.Time `json:"endTime,omitempty"` - // Status - Gets the status. Possible values include: 'WorkflowStatusNotSpecified', 'WorkflowStatusPaused', 'WorkflowStatusRunning', 'WorkflowStatusWaiting', 'WorkflowStatusSucceeded', 'WorkflowStatusSkipped', 'WorkflowStatusSuspended', 'WorkflowStatusCancelled', 'WorkflowStatusFailed', 'WorkflowStatusFaulted', 'WorkflowStatusTimedOut', 'WorkflowStatusAborted', 'WorkflowStatusIgnored' + // Status - READ-ONLY; Gets the status. Possible values include: 'WorkflowStatusNotSpecified', 'WorkflowStatusPaused', 'WorkflowStatusRunning', 'WorkflowStatusWaiting', 'WorkflowStatusSucceeded', 'WorkflowStatusSkipped', 'WorkflowStatusSuspended', 'WorkflowStatusCancelled', 'WorkflowStatusFailed', 'WorkflowStatusFaulted', 'WorkflowStatusTimedOut', 'WorkflowStatusAborted', 'WorkflowStatusIgnored' Status WorkflowStatus `json:"status,omitempty"` - // Code - Gets the code. + // Code - READ-ONLY; Gets the code. Code *string `json:"code,omitempty"` - // Error - Gets the error. + // Error - READ-ONLY; Gets the error. Error interface{} `json:"error,omitempty"` - // TrackingID - Gets the tracking id. + // TrackingID - READ-ONLY; Gets the tracking id. TrackingID *string `json:"trackingId,omitempty"` // Correlation - The run correlation. Correlation *Correlation `json:"correlation,omitempty"` - // InputsLink - Gets the link to input parameters. + // InputsLink - READ-ONLY; Gets the link to input parameters. InputsLink *ContentLink `json:"inputsLink,omitempty"` - // OutputsLink - Gets the link to output parameters. + // OutputsLink - READ-ONLY; Gets the link to output parameters. OutputsLink *ContentLink `json:"outputsLink,omitempty"` - // Fired - Gets a value indicating whether trigger was fired. + // Fired - READ-ONLY; Gets a value indicating whether trigger was fired. Fired *bool `json:"fired,omitempty"` - // Run - Gets the reference to workflow run. + // Run - READ-ONLY; Gets the reference to workflow run. Run *ResourceReference `json:"run,omitempty"` } @@ -5725,23 +5524,23 @@ func NewWorkflowTriggerListResultPage(getNextPage func(context.Context, Workflow // WorkflowTriggerProperties the workflow trigger properties. type WorkflowTriggerProperties struct { - // ProvisioningState - Gets the provisioning state. Possible values include: 'WorkflowTriggerProvisioningStateNotSpecified', 'WorkflowTriggerProvisioningStateAccepted', 'WorkflowTriggerProvisioningStateRunning', 'WorkflowTriggerProvisioningStateReady', 'WorkflowTriggerProvisioningStateCreating', 'WorkflowTriggerProvisioningStateCreated', 'WorkflowTriggerProvisioningStateDeleting', 'WorkflowTriggerProvisioningStateDeleted', 'WorkflowTriggerProvisioningStateCanceled', 'WorkflowTriggerProvisioningStateFailed', 'WorkflowTriggerProvisioningStateSucceeded', 'WorkflowTriggerProvisioningStateMoving', 'WorkflowTriggerProvisioningStateUpdating', 'WorkflowTriggerProvisioningStateRegistering', 'WorkflowTriggerProvisioningStateRegistered', 'WorkflowTriggerProvisioningStateUnregistering', 'WorkflowTriggerProvisioningStateUnregistered', 'WorkflowTriggerProvisioningStateCompleted' + // ProvisioningState - READ-ONLY; Gets the provisioning state. Possible values include: 'WorkflowTriggerProvisioningStateNotSpecified', 'WorkflowTriggerProvisioningStateAccepted', 'WorkflowTriggerProvisioningStateRunning', 'WorkflowTriggerProvisioningStateReady', 'WorkflowTriggerProvisioningStateCreating', 'WorkflowTriggerProvisioningStateCreated', 'WorkflowTriggerProvisioningStateDeleting', 'WorkflowTriggerProvisioningStateDeleted', 'WorkflowTriggerProvisioningStateCanceled', 'WorkflowTriggerProvisioningStateFailed', 'WorkflowTriggerProvisioningStateSucceeded', 'WorkflowTriggerProvisioningStateMoving', 'WorkflowTriggerProvisioningStateUpdating', 'WorkflowTriggerProvisioningStateRegistering', 'WorkflowTriggerProvisioningStateRegistered', 'WorkflowTriggerProvisioningStateUnregistering', 'WorkflowTriggerProvisioningStateUnregistered', 'WorkflowTriggerProvisioningStateCompleted' ProvisioningState WorkflowTriggerProvisioningState `json:"provisioningState,omitempty"` - // CreatedTime - Gets the created time. + // CreatedTime - READ-ONLY; Gets the created time. CreatedTime *date.Time `json:"createdTime,omitempty"` - // ChangedTime - Gets the changed time. + // ChangedTime - READ-ONLY; Gets the changed time. ChangedTime *date.Time `json:"changedTime,omitempty"` - // State - Gets the state. Possible values include: 'WorkflowStateNotSpecified', 'WorkflowStateCompleted', 'WorkflowStateEnabled', 'WorkflowStateDisabled', 'WorkflowStateDeleted', 'WorkflowStateSuspended' + // State - READ-ONLY; Gets the state. Possible values include: 'WorkflowStateNotSpecified', 'WorkflowStateCompleted', 'WorkflowStateEnabled', 'WorkflowStateDisabled', 'WorkflowStateDeleted', 'WorkflowStateSuspended' State WorkflowState `json:"state,omitempty"` - // Status - Gets the status. Possible values include: 'WorkflowStatusNotSpecified', 'WorkflowStatusPaused', 'WorkflowStatusRunning', 'WorkflowStatusWaiting', 'WorkflowStatusSucceeded', 'WorkflowStatusSkipped', 'WorkflowStatusSuspended', 'WorkflowStatusCancelled', 'WorkflowStatusFailed', 'WorkflowStatusFaulted', 'WorkflowStatusTimedOut', 'WorkflowStatusAborted', 'WorkflowStatusIgnored' + // Status - READ-ONLY; Gets the status. Possible values include: 'WorkflowStatusNotSpecified', 'WorkflowStatusPaused', 'WorkflowStatusRunning', 'WorkflowStatusWaiting', 'WorkflowStatusSucceeded', 'WorkflowStatusSkipped', 'WorkflowStatusSuspended', 'WorkflowStatusCancelled', 'WorkflowStatusFailed', 'WorkflowStatusFaulted', 'WorkflowStatusTimedOut', 'WorkflowStatusAborted', 'WorkflowStatusIgnored' Status WorkflowStatus `json:"status,omitempty"` - // LastExecutionTime - Gets the last execution time. + // LastExecutionTime - READ-ONLY; Gets the last execution time. LastExecutionTime *date.Time `json:"lastExecutionTime,omitempty"` - // NextExecutionTime - Gets the next execution time. + // NextExecutionTime - READ-ONLY; Gets the next execution time. NextExecutionTime *date.Time `json:"nextExecutionTime,omitempty"` - // Recurrence - Gets the workflow trigger recurrence. + // Recurrence - READ-ONLY; Gets the workflow trigger recurrence. Recurrence *WorkflowTriggerRecurrence `json:"recurrence,omitempty"` - // Workflow - Gets the reference to workflow. + // Workflow - READ-ONLY; Gets the reference to workflow. Workflow *ResourceReference `json:"workflow,omitempty"` } @@ -5766,11 +5565,11 @@ type WorkflowVersion struct { autorest.Response `json:"-"` // WorkflowVersionProperties - The workflow version properties. *WorkflowVersionProperties `json:"properties,omitempty"` - // ID - The resource id. + // ID - READ-ONLY; The resource id. ID *string `json:"id,omitempty"` - // Name - Gets the resource name. + // Name - READ-ONLY; Gets the resource name. Name *string `json:"name,omitempty"` - // Type - Gets the resource type. + // Type - READ-ONLY; Gets the resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -5784,15 +5583,6 @@ func (wv WorkflowVersion) MarshalJSON() ([]byte, error) { if wv.WorkflowVersionProperties != nil { objectMap["properties"] = wv.WorkflowVersionProperties } - if wv.ID != nil { - objectMap["id"] = wv.ID - } - if wv.Name != nil { - objectMap["name"] = wv.Name - } - if wv.Type != nil { - objectMap["type"] = wv.Type - } if wv.Location != nil { objectMap["location"] = wv.Location } @@ -6019,15 +5809,15 @@ func NewWorkflowVersionListResultPage(getNextPage func(context.Context, Workflow // WorkflowVersionProperties the workflow version properties. type WorkflowVersionProperties struct { - // CreatedTime - Gets the created time. + // CreatedTime - READ-ONLY; Gets the created time. CreatedTime *date.Time `json:"createdTime,omitempty"` - // ChangedTime - Gets the changed time. + // ChangedTime - READ-ONLY; Gets the changed time. ChangedTime *date.Time `json:"changedTime,omitempty"` // State - The state. Possible values include: 'WorkflowStateNotSpecified', 'WorkflowStateCompleted', 'WorkflowStateEnabled', 'WorkflowStateDisabled', 'WorkflowStateDeleted', 'WorkflowStateSuspended' State WorkflowState `json:"state,omitempty"` - // Version - Gets the version. + // Version - READ-ONLY; Gets the version. Version *string `json:"version,omitempty"` - // AccessEndpoint - Gets the access endpoint. + // AccessEndpoint - READ-ONLY; Gets the access endpoint. AccessEndpoint *string `json:"accessEndpoint,omitempty"` // Sku - The sku. Sku *Sku `json:"sku,omitempty"` @@ -6042,21 +5832,9 @@ type WorkflowVersionProperties struct { // MarshalJSON is the custom marshaler for WorkflowVersionProperties. func (wvp WorkflowVersionProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if wvp.CreatedTime != nil { - objectMap["createdTime"] = wvp.CreatedTime - } - if wvp.ChangedTime != nil { - objectMap["changedTime"] = wvp.ChangedTime - } if wvp.State != "" { objectMap["state"] = wvp.State } - if wvp.Version != nil { - objectMap["version"] = wvp.Version - } - if wvp.AccessEndpoint != nil { - objectMap["accessEndpoint"] = wvp.AccessEndpoint - } if wvp.Sku != nil { objectMap["sku"] = wvp.Sku } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/checknameavailability.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/checknameavailability.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/checknameavailability.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/checknameavailability.go index b702f071a05b..eb2c9f67c3ad 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/checknameavailability.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/checknameavailability.go @@ -88,7 +88,7 @@ func (client CheckNameAvailabilityClient) ExecutePreparer(ctx context.Context, n "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/client.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/client.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/client.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/client.go index 0e3c999fb492..f478c10e5835 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/client.go @@ -1,4 +1,4 @@ -// Package mariadb implements the Azure ARM Mariadb service API version 2018-06-01-preview. +// Package mariadb implements the Azure ARM Mariadb service API version 2018-06-01. // // MariaDB Client package mariadb diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/configurations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/configurations.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/configurations.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/configurations.go index dadde12d2a3f..d01236731a4b 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/configurations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/configurations.go @@ -82,7 +82,7 @@ func (client ConfigurationsClient) CreateOrUpdatePreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -170,7 +170,7 @@ func (client ConfigurationsClient) GetPreparer(ctx context.Context, resourceGrou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -248,7 +248,7 @@ func (client ConfigurationsClient) ListByServerPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/databases.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/databases.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/databases.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/databases.go index 7bf54614e6fc..74b317e95af3 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/databases.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/databases.go @@ -82,7 +82,7 @@ func (client DatabasesClient) CreateOrUpdatePreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -164,7 +164,7 @@ func (client DatabasesClient) DeletePreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -249,7 +249,7 @@ func (client DatabasesClient) GetPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -327,7 +327,7 @@ func (client DatabasesClient) ListByServerPreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/firewallrules.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/firewallrules.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/firewallrules.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/firewallrules.go index 1fe726922211..c114568c4bb6 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/firewallrules.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/firewallrules.go @@ -94,7 +94,7 @@ func (client FirewallRulesClient) CreateOrUpdatePreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -176,7 +176,7 @@ func (client FirewallRulesClient) DeletePreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -261,7 +261,7 @@ func (client FirewallRulesClient) GetPreparer(ctx context.Context, resourceGroup "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -339,7 +339,7 @@ func (client FirewallRulesClient) ListByServerPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/locationbasedperformancetier.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/locationbasedperformancetier.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/locationbasedperformancetier.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/locationbasedperformancetier.go index 10012199d373..27fceb04e9d5 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/locationbasedperformancetier.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/locationbasedperformancetier.go @@ -83,7 +83,7 @@ func (client LocationBasedPerformanceTierClient) ListPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/logfiles.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/logfiles.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/logfiles.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/logfiles.go index 2f14b1aa9ac7..8fdc12dfd992 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/logfiles.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/logfiles.go @@ -85,7 +85,7 @@ func (client LogFilesClient) ListByServerPreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/models.go similarity index 86% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/models.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/models.go index 5187214567f5..369f5142e3a7 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/models.go @@ -29,7 +29,7 @@ import ( ) // The package's fully qualified name. -const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb" +const fqdn = "github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb" // CreateMode enumerates the values for create mode. type CreateMode string @@ -41,13 +41,15 @@ const ( CreateModeGeoRestore CreateMode = "GeoRestore" // CreateModePointInTimeRestore ... CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" + // CreateModeReplica ... + CreateModeReplica CreateMode = "Replica" // CreateModeServerPropertiesForCreate ... CreateModeServerPropertiesForCreate CreateMode = "ServerPropertiesForCreate" ) // PossibleCreateModeValues returns an array of possible values for the CreateMode const type. func PossibleCreateModeValues() []CreateMode { - return []CreateMode{CreateModeDefault, CreateModeGeoRestore, CreateModePointInTimeRestore, CreateModeServerPropertiesForCreate} + return []CreateMode{CreateModeDefault, CreateModeGeoRestore, CreateModePointInTimeRestore, CreateModeReplica, CreateModeServerPropertiesForCreate} } // GeoRedundantBackup enumerates the values for geo redundant backup. @@ -182,16 +184,33 @@ func PossibleVirtualNetworkRuleStateValues() []VirtualNetworkRuleState { return []VirtualNetworkRuleState{Deleting, Initializing, InProgress, Ready, Unknown} } +// CloudError an error response from the Batch service. +type CloudError struct { + Error *CloudErrorBody `json:"error,omitempty"` +} + +// CloudErrorBody an error response from the Batch service. +type CloudErrorBody struct { + // Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + Code *string `json:"code,omitempty"` + // Message - A message describing the error, intended to be suitable for display in a user interface. + Message *string `json:"message,omitempty"` + // Target - The target of the particular error. For example, the name of the property in error. + Target *string `json:"target,omitempty"` + // Details - A list of additional details about the error. + Details *[]CloudErrorBody `json:"details,omitempty"` +} + // Configuration represents a Configuration. type Configuration struct { autorest.Response `json:"-"` // ConfigurationProperties - The properties of a configuration. *ConfigurationProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -201,15 +220,6 @@ func (c Configuration) MarshalJSON() ([]byte, error) { if c.ConfigurationProperties != nil { objectMap["properties"] = c.ConfigurationProperties } - if c.ID != nil { - objectMap["id"] = c.ID - } - if c.Name != nil { - objectMap["name"] = c.Name - } - if c.Type != nil { - objectMap["type"] = c.Type - } return json.Marshal(objectMap) } @@ -275,13 +285,13 @@ type ConfigurationListResult struct { type ConfigurationProperties struct { // Value - Value of the configuration. Value *string `json:"value,omitempty"` - // Description - Description of the configuration. + // Description - READ-ONLY; Description of the configuration. Description *string `json:"description,omitempty"` - // DefaultValue - Default value of the configuration. + // DefaultValue - READ-ONLY; Default value of the configuration. DefaultValue *string `json:"defaultValue,omitempty"` - // DataType - Data type of the configuration. + // DataType - READ-ONLY; Data type of the configuration. DataType *string `json:"dataType,omitempty"` - // AllowedValues - Allowed values of the configuration. + // AllowedValues - READ-ONLY; Allowed values of the configuration. AllowedValues *string `json:"allowedValues,omitempty"` // Source - Source of the configuration. Source *string `json:"source,omitempty"` @@ -297,7 +307,7 @@ type ConfigurationsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ConfigurationsCreateOrUpdateFuture) Result(client ConfigurationsClient) (c Configuration, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ConfigurationsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -321,11 +331,11 @@ type Database struct { autorest.Response `json:"-"` // DatabaseProperties - The properties of a database. *DatabaseProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -335,15 +345,6 @@ func (d Database) MarshalJSON() ([]byte, error) { if d.DatabaseProperties != nil { objectMap["properties"] = d.DatabaseProperties } - if d.ID != nil { - objectMap["id"] = d.ID - } - if d.Name != nil { - objectMap["name"] = d.Name - } - if d.Type != nil { - objectMap["type"] = d.Type - } return json.Marshal(objectMap) } @@ -423,7 +424,7 @@ type DatabasesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesCreateOrUpdateFuture) Result(client DatabasesClient) (d Database, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.DatabasesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -452,7 +453,7 @@ type DatabasesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesDeleteFuture) Result(client DatabasesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.DatabasesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -470,11 +471,11 @@ type FirewallRule struct { autorest.Response `json:"-"` // FirewallRuleProperties - The properties of a firewall rule. *FirewallRuleProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -484,15 +485,6 @@ func (fr FirewallRule) MarshalJSON() ([]byte, error) { if fr.FirewallRuleProperties != nil { objectMap["properties"] = fr.FirewallRuleProperties } - if fr.ID != nil { - objectMap["id"] = fr.ID - } - if fr.Name != nil { - objectMap["name"] = fr.Name - } - if fr.Type != nil { - objectMap["type"] = fr.Type - } return json.Marshal(objectMap) } @@ -572,7 +564,7 @@ type FirewallRulesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *FirewallRulesCreateOrUpdateFuture) Result(client FirewallRulesClient) (fr FirewallRule, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.FirewallRulesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -601,7 +593,7 @@ type FirewallRulesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *FirewallRulesDeleteFuture) Result(client FirewallRulesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.FirewallRulesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -618,11 +610,11 @@ func (future *FirewallRulesDeleteFuture) Result(client FirewallRulesClient) (ar type LogFile struct { // LogFileProperties - The properties of the log file. *LogFileProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -632,15 +624,6 @@ func (lf LogFile) MarshalJSON() ([]byte, error) { if lf.LogFileProperties != nil { objectMap["properties"] = lf.LogFileProperties } - if lf.ID != nil { - objectMap["id"] = lf.ID - } - if lf.Name != nil { - objectMap["name"] = lf.Name - } - if lf.Type != nil { - objectMap["type"] = lf.Type - } return json.Marshal(objectMap) } @@ -706,13 +689,13 @@ type LogFileListResult struct { type LogFileProperties struct { // SizeInKB - Size of the log file. SizeInKB *int64 `json:"sizeInKB,omitempty"` - // CreatedTime - Creation timestamp of the log file. + // CreatedTime - READ-ONLY; Creation timestamp of the log file. CreatedTime *date.Time `json:"createdTime,omitempty"` - // LastModifiedTime - Last modified timestamp of the log file. + // LastModifiedTime - READ-ONLY; Last modified timestamp of the log file. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // Type - Type of the log file. Type *string `json:"type,omitempty"` - // URL - The url to download the log file from. + // URL - READ-ONLY; The url to download the log file from. URL *string `json:"url,omitempty"` } @@ -737,43 +720,31 @@ type NameAvailabilityRequest struct { // Operation REST API operation definition. type Operation struct { - // Name - The name of the operation being performed on this particular object. + // Name - READ-ONLY; The name of the operation being performed on this particular object. Name *string `json:"name,omitempty"` - // Display - The localized display information for this particular operation or action. + // Display - READ-ONLY; The localized display information for this particular operation or action. Display *OperationDisplay `json:"display,omitempty"` - // Origin - The intended executor of the operation. Possible values include: 'NotSpecified', 'User', 'System' + // Origin - READ-ONLY; The intended executor of the operation. Possible values include: 'NotSpecified', 'User', 'System' Origin OperationOrigin `json:"origin,omitempty"` - // Properties - Additional descriptions for the operation. + // Properties - READ-ONLY; Additional descriptions for the operation. Properties map[string]interface{} `json:"properties"` } // MarshalJSON is the custom marshaler for Operation. func (o Operation) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if o.Name != nil { - objectMap["name"] = o.Name - } - if o.Display != nil { - objectMap["display"] = o.Display - } - if o.Origin != "" { - objectMap["origin"] = o.Origin - } - if o.Properties != nil { - objectMap["properties"] = o.Properties - } return json.Marshal(objectMap) } // OperationDisplay display metadata associated with the operation. type OperationDisplay struct { - // Provider - Operation resource provider name. + // Provider - READ-ONLY; Operation resource provider name. Provider *string `json:"provider,omitempty"` - // Resource - Resource on which the operation is performed. + // Resource - READ-ONLY; Resource on which the operation is performed. Resource *string `json:"resource,omitempty"` - // Operation - Localized friendly name for the operation. + // Operation - READ-ONLY; Localized friendly name for the operation. Operation *string `json:"operation,omitempty"` - // Description - Operation description. + // Description - READ-ONLY; Operation description. Description *string `json:"description,omitempty"` } @@ -821,11 +792,11 @@ type PerformanceTierServiceLevelObjectives struct { // ProxyResource resource properties. type ProxyResource struct { - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -858,11 +829,11 @@ type Server struct { Location *string `json:"location,omitempty"` // Tags - Application-specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -881,15 +852,6 @@ func (s Server) MarshalJSON() ([]byte, error) { if s.Tags != nil { objectMap["tags"] = s.Tags } - if s.ID != nil { - objectMap["id"] = s.ID - } - if s.Name != nil { - objectMap["name"] = s.Name - } - if s.Type != nil { - objectMap["type"] = s.Type - } return json.Marshal(objectMap) } @@ -1072,6 +1034,12 @@ type ServerProperties struct { EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` // StorageProfile - Storage profile of a server. StorageProfile *StorageProfile `json:"storageProfile,omitempty"` + // ReplicationRole - The replication role of the server. + ReplicationRole *string `json:"replicationRole,omitempty"` + // MasterServerID - The master server id of a replica server. + MasterServerID *string `json:"masterServerId,omitempty"` + // ReplicaCapacity - The maximum number of replicas that a master server can have. + ReplicaCapacity *int32 `json:"replicaCapacity,omitempty"` } // BasicServerPropertiesForCreate the properties used to create a new server. @@ -1079,6 +1047,7 @@ type BasicServerPropertiesForCreate interface { AsServerPropertiesForDefaultCreate() (*ServerPropertiesForDefaultCreate, bool) AsServerPropertiesForRestore() (*ServerPropertiesForRestore, bool) AsServerPropertiesForGeoRestore() (*ServerPropertiesForGeoRestore, bool) + AsServerPropertiesForReplica() (*ServerPropertiesForReplica, bool) AsServerPropertiesForCreate() (*ServerPropertiesForCreate, bool) } @@ -1090,7 +1059,7 @@ type ServerPropertiesForCreate struct { SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` // StorageProfile - Storage profile of a server. StorageProfile *StorageProfile `json:"storageProfile,omitempty"` - // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore' + // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore', 'CreateModeReplica' CreateMode CreateMode `json:"createMode,omitempty"` } @@ -1114,6 +1083,10 @@ func unmarshalBasicServerPropertiesForCreate(body []byte) (BasicServerProperties var spfgr ServerPropertiesForGeoRestore err := json.Unmarshal(body, &spfgr) return spfgr, err + case string(CreateModeReplica): + var spfr ServerPropertiesForReplica + err := json.Unmarshal(body, &spfr) + return spfr, err default: var spfc ServerPropertiesForCreate err := json.Unmarshal(body, &spfc) @@ -1173,6 +1146,11 @@ func (spfc ServerPropertiesForCreate) AsServerPropertiesForGeoRestore() (*Server return nil, false } +// AsServerPropertiesForReplica is the BasicServerPropertiesForCreate implementation for ServerPropertiesForCreate. +func (spfc ServerPropertiesForCreate) AsServerPropertiesForReplica() (*ServerPropertiesForReplica, bool) { + return nil, false +} + // AsServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForCreate. func (spfc ServerPropertiesForCreate) AsServerPropertiesForCreate() (*ServerPropertiesForCreate, bool) { return &spfc, true @@ -1195,7 +1173,7 @@ type ServerPropertiesForDefaultCreate struct { SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` // StorageProfile - Storage profile of a server. StorageProfile *StorageProfile `json:"storageProfile,omitempty"` - // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore' + // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore', 'CreateModeReplica' CreateMode CreateMode `json:"createMode,omitempty"` } @@ -1239,6 +1217,11 @@ func (spfdc ServerPropertiesForDefaultCreate) AsServerPropertiesForGeoRestore() return nil, false } +// AsServerPropertiesForReplica is the BasicServerPropertiesForCreate implementation for ServerPropertiesForDefaultCreate. +func (spfdc ServerPropertiesForDefaultCreate) AsServerPropertiesForReplica() (*ServerPropertiesForReplica, bool) { + return nil, false +} + // AsServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForDefaultCreate. func (spfdc ServerPropertiesForDefaultCreate) AsServerPropertiesForCreate() (*ServerPropertiesForCreate, bool) { return nil, false @@ -1260,7 +1243,7 @@ type ServerPropertiesForGeoRestore struct { SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` // StorageProfile - Storage profile of a server. StorageProfile *StorageProfile `json:"storageProfile,omitempty"` - // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore' + // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore', 'CreateModeReplica' CreateMode CreateMode `json:"createMode,omitempty"` } @@ -1301,6 +1284,11 @@ func (spfgr ServerPropertiesForGeoRestore) AsServerPropertiesForGeoRestore() (*S return &spfgr, true } +// AsServerPropertiesForReplica is the BasicServerPropertiesForCreate implementation for ServerPropertiesForGeoRestore. +func (spfgr ServerPropertiesForGeoRestore) AsServerPropertiesForReplica() (*ServerPropertiesForReplica, bool) { + return nil, false +} + // AsServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForGeoRestore. func (spfgr ServerPropertiesForGeoRestore) AsServerPropertiesForCreate() (*ServerPropertiesForCreate, bool) { return nil, false @@ -1311,6 +1299,72 @@ func (spfgr ServerPropertiesForGeoRestore) AsBasicServerPropertiesForCreate() (B return &spfgr, true } +// ServerPropertiesForReplica the properties to create a new replica. +type ServerPropertiesForReplica struct { + // SourceServerID - The master server id to create replica from. + SourceServerID *string `json:"sourceServerId,omitempty"` + // Version - Server version. Possible values include: 'FiveFullStopSix', 'FiveFullStopSeven' + Version ServerVersion `json:"version,omitempty"` + // SslEnforcement - Enable ssl enforcement or not when connect to server. Possible values include: 'SslEnforcementEnumEnabled', 'SslEnforcementEnumDisabled' + SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` + // StorageProfile - Storage profile of a server. + StorageProfile *StorageProfile `json:"storageProfile,omitempty"` + // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore', 'CreateModeReplica' + CreateMode CreateMode `json:"createMode,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServerPropertiesForReplica. +func (spfr ServerPropertiesForReplica) MarshalJSON() ([]byte, error) { + spfr.CreateMode = CreateModeReplica + objectMap := make(map[string]interface{}) + if spfr.SourceServerID != nil { + objectMap["sourceServerId"] = spfr.SourceServerID + } + if spfr.Version != "" { + objectMap["version"] = spfr.Version + } + if spfr.SslEnforcement != "" { + objectMap["sslEnforcement"] = spfr.SslEnforcement + } + if spfr.StorageProfile != nil { + objectMap["storageProfile"] = spfr.StorageProfile + } + if spfr.CreateMode != "" { + objectMap["createMode"] = spfr.CreateMode + } + return json.Marshal(objectMap) +} + +// AsServerPropertiesForDefaultCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForReplica. +func (spfr ServerPropertiesForReplica) AsServerPropertiesForDefaultCreate() (*ServerPropertiesForDefaultCreate, bool) { + return nil, false +} + +// AsServerPropertiesForRestore is the BasicServerPropertiesForCreate implementation for ServerPropertiesForReplica. +func (spfr ServerPropertiesForReplica) AsServerPropertiesForRestore() (*ServerPropertiesForRestore, bool) { + return nil, false +} + +// AsServerPropertiesForGeoRestore is the BasicServerPropertiesForCreate implementation for ServerPropertiesForReplica. +func (spfr ServerPropertiesForReplica) AsServerPropertiesForGeoRestore() (*ServerPropertiesForGeoRestore, bool) { + return nil, false +} + +// AsServerPropertiesForReplica is the BasicServerPropertiesForCreate implementation for ServerPropertiesForReplica. +func (spfr ServerPropertiesForReplica) AsServerPropertiesForReplica() (*ServerPropertiesForReplica, bool) { + return &spfr, true +} + +// AsServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForReplica. +func (spfr ServerPropertiesForReplica) AsServerPropertiesForCreate() (*ServerPropertiesForCreate, bool) { + return nil, false +} + +// AsBasicServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForReplica. +func (spfr ServerPropertiesForReplica) AsBasicServerPropertiesForCreate() (BasicServerPropertiesForCreate, bool) { + return &spfr, true +} + // ServerPropertiesForRestore the properties used to create a new server by restoring from a backup. type ServerPropertiesForRestore struct { // SourceServerID - The source server id to restore from. @@ -1323,7 +1377,7 @@ type ServerPropertiesForRestore struct { SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` // StorageProfile - Storage profile of a server. StorageProfile *StorageProfile `json:"storageProfile,omitempty"` - // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore' + // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore', 'CreateModeReplica' CreateMode CreateMode `json:"createMode,omitempty"` } @@ -1367,6 +1421,11 @@ func (spfr ServerPropertiesForRestore) AsServerPropertiesForGeoRestore() (*Serve return nil, false } +// AsServerPropertiesForReplica is the BasicServerPropertiesForCreate implementation for ServerPropertiesForRestore. +func (spfr ServerPropertiesForRestore) AsServerPropertiesForReplica() (*ServerPropertiesForReplica, bool) { + return nil, false +} + // AsServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForRestore. func (spfr ServerPropertiesForRestore) AsServerPropertiesForCreate() (*ServerPropertiesForCreate, bool) { return nil, false @@ -1387,7 +1446,7 @@ type ServersCreateFuture struct { // If the operation has not completed it will return an error. func (future *ServersCreateFuture) Result(client ServersClient) (s Server, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ServersCreateFuture", "Result", future.Response(), "Polling failure") return @@ -1416,7 +1475,7 @@ type ServersDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ServersDeleteFuture) Result(client ServersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ServersDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1439,7 +1498,7 @@ type ServerSecurityAlertPoliciesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServerSecurityAlertPoliciesCreateOrUpdateFuture) Result(client ServerSecurityAlertPoliciesClient) (ssap ServerSecurityAlertPolicy, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ServerSecurityAlertPoliciesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1463,11 +1522,11 @@ type ServerSecurityAlertPolicy struct { autorest.Response `json:"-"` // SecurityAlertPolicyProperties - Resource properties. *SecurityAlertPolicyProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1477,15 +1536,6 @@ func (ssap ServerSecurityAlertPolicy) MarshalJSON() ([]byte, error) { if ssap.SecurityAlertPolicyProperties != nil { objectMap["properties"] = ssap.SecurityAlertPolicyProperties } - if ssap.ID != nil { - objectMap["id"] = ssap.ID - } - if ssap.Name != nil { - objectMap["name"] = ssap.Name - } - if ssap.Type != nil { - objectMap["type"] = ssap.Type - } return json.Marshal(objectMap) } @@ -1540,6 +1590,29 @@ func (ssap *ServerSecurityAlertPolicy) UnmarshalJSON(body []byte) error { return nil } +// ServersRestartFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type ServersRestartFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ServersRestartFuture) Result(client ServersClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "mariadb.ServersRestartFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("mariadb.ServersRestartFuture") + return + } + ar.Response = future.Response() + return +} + // ServersUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServersUpdateFuture struct { @@ -1550,7 +1623,7 @@ type ServersUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServersUpdateFuture) Result(client ServersClient) (s Server, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.ServersUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1646,6 +1719,8 @@ type ServerUpdateParametersProperties struct { Version ServerVersion `json:"version,omitempty"` // SslEnforcement - Enable ssl enforcement or not when connect to server. Possible values include: 'SslEnforcementEnumEnabled', 'SslEnforcementEnumDisabled' SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` + // ReplicationRole - The replication role of the server. + ReplicationRole *string `json:"replicationRole,omitempty"` } // Sku billing information related properties of a server. @@ -1678,11 +1753,11 @@ type TrackedResource struct { Location *string `json:"location,omitempty"` // Tags - Application-specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1695,15 +1770,6 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Tags != nil { objectMap["tags"] = tr.Tags } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } @@ -1712,11 +1778,11 @@ type VirtualNetworkRule struct { autorest.Response `json:"-"` // VirtualNetworkRuleProperties - Resource properties. *VirtualNetworkRuleProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1726,15 +1792,6 @@ func (vnr VirtualNetworkRule) MarshalJSON() ([]byte, error) { if vnr.VirtualNetworkRuleProperties != nil { objectMap["properties"] = vnr.VirtualNetworkRuleProperties } - if vnr.ID != nil { - objectMap["id"] = vnr.ID - } - if vnr.Name != nil { - objectMap["name"] = vnr.Name - } - if vnr.Type != nil { - objectMap["type"] = vnr.Type - } return json.Marshal(objectMap) } @@ -1792,9 +1849,9 @@ func (vnr *VirtualNetworkRule) UnmarshalJSON(body []byte) error { // VirtualNetworkRuleListResult a list of virtual network rules. type VirtualNetworkRuleListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]VirtualNetworkRule `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1941,7 +1998,7 @@ type VirtualNetworkRuleProperties struct { VirtualNetworkSubnetID *string `json:"virtualNetworkSubnetId,omitempty"` // IgnoreMissingVnetServiceEndpoint - Create firewall rule before the virtual network has vnet service endpoint enabled. IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty"` - // State - Virtual Network Rule State. Possible values include: 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' + // State - READ-ONLY; Virtual Network Rule State. Possible values include: 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' State VirtualNetworkRuleState `json:"state,omitempty"` } @@ -1955,7 +2012,7 @@ type VirtualNetworkRulesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkRulesCreateOrUpdateFuture) Result(client VirtualNetworkRulesClient) (vnr VirtualNetworkRule, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.VirtualNetworkRulesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1984,7 +2041,7 @@ type VirtualNetworkRulesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkRulesDeleteFuture) Result(client VirtualNetworkRulesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mariadb.VirtualNetworkRulesDeleteFuture", "Result", future.Response(), "Polling failure") return diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/operations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/operations.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/operations.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/operations.go index d51379331e30..12f1099c7f4c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/operations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/operations.go @@ -75,7 +75,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe // ListPreparer prepares the List request. func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/replicas.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/replicas.go new file mode 100644 index 000000000000..351adc53c1b6 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/replicas.go @@ -0,0 +1,119 @@ +package mariadb + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// ReplicasClient is the mariaDB Client +type ReplicasClient struct { + BaseClient +} + +// NewReplicasClient creates an instance of the ReplicasClient client. +func NewReplicasClient(subscriptionID string) ReplicasClient { + return NewReplicasClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewReplicasClientWithBaseURI creates an instance of the ReplicasClient client. +func NewReplicasClientWithBaseURI(baseURI string, subscriptionID string) ReplicasClient { + return ReplicasClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// ListByServer list all the replicas for a given server. +// Parameters: +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// serverName - the name of the server. +func (client ReplicasClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerListResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ReplicasClient.ListByServer") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListByServerPreparer(ctx, resourceGroupName, serverName) + if err != nil { + err = autorest.NewErrorWithError(err, "mariadb.ReplicasClient", "ListByServer", nil, "Failure preparing request") + return + } + + resp, err := client.ListByServerSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "mariadb.ReplicasClient", "ListByServer", resp, "Failure sending request") + return + } + + result, err = client.ListByServerResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "mariadb.ReplicasClient", "ListByServer", resp, "Failure responding to request") + } + + return +} + +// ListByServerPreparer prepares the ListByServer request. +func (client ReplicasClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serverName": autorest.Encode("path", serverName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/replicas", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByServerSender sends the ListByServer request. The method will close the +// http.Response Body if it receives an error. +func (client ReplicasClient) ListByServerSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByServerResponder handles the response to the ListByServer request. The method always +// closes the http.Response Body. +func (client ReplicasClient) ListByServerResponder(resp *http.Response) (result ServerListResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/servers.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/servers.go similarity index 86% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/servers.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/servers.go index 6f8716ed09b9..e53dc786e7f6 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/servers.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/servers.go @@ -92,7 +92,7 @@ func (client ServersClient) CreatePreparer(ctx context.Context, resourceGroupNam "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -172,7 +172,7 @@ func (client ServersClient) DeletePreparer(ctx context.Context, resourceGroupNam "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -255,7 +255,7 @@ func (client ServersClient) GetPreparer(ctx context.Context, resourceGroupName s "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -327,7 +327,7 @@ func (client ServersClient) ListPreparer(ctx context.Context) (*http.Request, er "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -403,7 +403,7 @@ func (client ServersClient) ListByResourceGroupPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -436,6 +436,83 @@ func (client ServersClient) ListByResourceGroupResponder(resp *http.Response) (r return } +// Restart restarts a server. +// Parameters: +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// serverName - the name of the server. +func (client ServersClient) Restart(ctx context.Context, resourceGroupName string, serverName string) (result ServersRestartFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServersClient.Restart") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.RestartPreparer(ctx, resourceGroupName, serverName) + if err != nil { + err = autorest.NewErrorWithError(err, "mariadb.ServersClient", "Restart", nil, "Failure preparing request") + return + } + + result, err = client.RestartSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "mariadb.ServersClient", "Restart", result.Response(), "Failure sending request") + return + } + + return +} + +// RestartPreparer prepares the Restart request. +func (client ServersClient) RestartPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serverName": autorest.Encode("path", serverName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/restart", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// RestartSender sends the Restart request. The method will close the +// http.Response Body if it receives an error. +func (client ServersClient) RestartSender(req *http.Request) (future ServersRestartFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// RestartResponder handles the response to the Restart request. The method always +// closes the http.Response Body. +func (client ServersClient) RestartResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + // Update updates an existing server. The request body can contain one to many of the properties present in the normal // server definition. // Parameters: @@ -477,7 +554,7 @@ func (client ServersClient) UpdatePreparer(ctx context.Context, resourceGroupNam "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/serversecurityalertpolicies.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/serversecurityalertpolicies.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/serversecurityalertpolicies.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/serversecurityalertpolicies.go index 41da23b765ed..65b1266e7f7f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/serversecurityalertpolicies.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/serversecurityalertpolicies.go @@ -81,7 +81,7 @@ func (client ServerSecurityAlertPoliciesClient) CreateOrUpdatePreparer(ctx conte "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -168,7 +168,7 @@ func (client ServerSecurityAlertPoliciesClient) GetPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/version.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/version.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/version.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/version.go index cb78fc2676bb..c7d36cb429ee 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/version.go @@ -21,7 +21,7 @@ import "github.com/Azure/azure-sdk-for-go/version" // UserAgent returns the UserAgent string to use when sending http.Requests. func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " mariadb/2018-06-01-preview" + return "Azure-SDK-For-Go/" + version.Number + " mariadb/2018-06-01" } // Version returns the semantic version (see http://semver.org) of the client. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/virtualnetworkrules.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/virtualnetworkrules.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/virtualnetworkrules.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/virtualnetworkrules.go index b477b0fb012a..455b0c8d3c04 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb/virtualnetworkrules.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb/virtualnetworkrules.go @@ -90,7 +90,7 @@ func (client VirtualNetworkRulesClient) CreateOrUpdatePreparer(ctx context.Conte "virtualNetworkRuleName": autorest.Encode("path", virtualNetworkRuleName), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -172,7 +172,7 @@ func (client VirtualNetworkRulesClient) DeletePreparer(ctx context.Context, reso "virtualNetworkRuleName": autorest.Encode("path", virtualNetworkRuleName), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -257,7 +257,7 @@ func (client VirtualNetworkRulesClient) GetPreparer(ctx context.Context, resourc "virtualNetworkRuleName": autorest.Encode("path", virtualNetworkRuleName), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -336,7 +336,7 @@ func (client VirtualNetworkRulesClient) ListByServerPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-06-01-preview" + const APIVersion = "2018-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2018-07-01/media/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2018-07-01/media/models.go index b534cf310ec8..7c291558bc08 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2018-07-01/media/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2018-07-01/media/models.go @@ -1161,11 +1161,11 @@ func (aa AacAudio) AsBasicCodec() (BasicCodec, bool) { type AccountFilter struct { autorest.Response `json:"-"` *FilterProperties `json:"properties,omitempty"` - // ID - Fully qualified resource ID for the resource. + // ID - READ-ONLY; Fully qualified resource ID for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -1175,15 +1175,6 @@ func (af AccountFilter) MarshalJSON() ([]byte, error) { if af.FilterProperties != nil { objectMap["properties"] = af.FilterProperties } - if af.ID != nil { - objectMap["id"] = af.ID - } - if af.Name != nil { - objectMap["name"] = af.Name - } - if af.Type != nil { - objectMap["type"] = af.Type - } return json.Marshal(objectMap) } @@ -1411,11 +1402,11 @@ type Asset struct { autorest.Response `json:"-"` // AssetProperties - The resource properties. *AssetProperties `json:"properties,omitempty"` - // ID - Fully qualified resource ID for the resource. + // ID - READ-ONLY; Fully qualified resource ID for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -1425,15 +1416,6 @@ func (a Asset) MarshalJSON() ([]byte, error) { if a.AssetProperties != nil { objectMap["properties"] = a.AssetProperties } - if a.ID != nil { - objectMap["id"] = a.ID - } - if a.Name != nil { - objectMap["name"] = a.Name - } - if a.Type != nil { - objectMap["type"] = a.Type - } return json.Marshal(objectMap) } @@ -1655,11 +1637,11 @@ type AssetFileEncryptionMetadata struct { type AssetFilter struct { autorest.Response `json:"-"` *FilterProperties `json:"properties,omitempty"` - // ID - Fully qualified resource ID for the resource. + // ID - READ-ONLY; Fully qualified resource ID for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -1669,15 +1651,6 @@ func (af AssetFilter) MarshalJSON() ([]byte, error) { if af.FilterProperties != nil { objectMap["properties"] = af.FilterProperties } - if af.ID != nil { - objectMap["id"] = af.ID - } - if af.Name != nil { - objectMap["name"] = af.Name - } - if af.Type != nil { - objectMap["type"] = af.Type - } return json.Marshal(objectMap) } @@ -1880,11 +1853,11 @@ func NewAssetFilterCollectionPage(getNextPage func(context.Context, AssetFilterC // AssetProperties the Asset properties. type AssetProperties struct { - // AssetID - The Asset ID. + // AssetID - READ-ONLY; The Asset ID. AssetID *uuid.UUID `json:"assetId,omitempty"` - // Created - The creation date of the Asset. + // Created - READ-ONLY; The creation date of the Asset. Created *date.Time `json:"created,omitempty"` - // LastModified - The last modified date of the Asset. + // LastModified - READ-ONLY; The last modified date of the Asset. LastModified *date.Time `json:"lastModified,omitempty"` // AlternateID - The alternate ID of the Asset. AlternateID *string `json:"alternateId,omitempty"` @@ -1894,27 +1867,27 @@ type AssetProperties struct { Container *string `json:"container,omitempty"` // StorageAccountName - The name of the storage account. StorageAccountName *string `json:"storageAccountName,omitempty"` - // StorageEncryptionFormat - The Asset encryption format. One of None or MediaStorageEncryption. Possible values include: 'None', 'MediaStorageClientEncryption' + // StorageEncryptionFormat - READ-ONLY; The Asset encryption format. One of None or MediaStorageEncryption. Possible values include: 'None', 'MediaStorageClientEncryption' StorageEncryptionFormat AssetStorageEncryptionFormat `json:"storageEncryptionFormat,omitempty"` } // AssetStreamingLocator properties of the Streaming Locator. type AssetStreamingLocator struct { - // Name - Streaming Locator name. + // Name - READ-ONLY; Streaming Locator name. Name *string `json:"name,omitempty"` - // AssetName - Asset Name. + // AssetName - READ-ONLY; Asset Name. AssetName *string `json:"assetName,omitempty"` - // Created - The creation time of the Streaming Locator. + // Created - READ-ONLY; The creation time of the Streaming Locator. Created *date.Time `json:"created,omitempty"` - // StartTime - The start time of the Streaming Locator. + // StartTime - READ-ONLY; The start time of the Streaming Locator. StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - The end time of the Streaming Locator. + // EndTime - READ-ONLY; The end time of the Streaming Locator. EndTime *date.Time `json:"endTime,omitempty"` - // StreamingLocatorID - StreamingLocatorId of the Streaming Locator. + // StreamingLocatorID - READ-ONLY; StreamingLocatorId of the Streaming Locator. StreamingLocatorID *uuid.UUID `json:"streamingLocatorId,omitempty"` - // StreamingPolicyName - Name of the Streaming Policy used by this Streaming Locator. + // StreamingPolicyName - READ-ONLY; Name of the Streaming Policy used by this Streaming Locator. StreamingPolicyName *string `json:"streamingPolicyName,omitempty"` - // DefaultContentKeyPolicyName - Name of the default ContentKeyPolicy used by this Streaming Locator. + // DefaultContentKeyPolicyName - READ-ONLY; Name of the default ContentKeyPolicy used by this Streaming Locator. DefaultContentKeyPolicyName *string `json:"defaultContentKeyPolicyName,omitempty"` } @@ -2535,11 +2508,11 @@ type CommonEncryptionCenc struct { type ContentKeyPolicy struct { autorest.Response `json:"-"` *ContentKeyPolicyProperties `json:"properties,omitempty"` - // ID - Fully qualified resource ID for the resource. + // ID - READ-ONLY; Fully qualified resource ID for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -2549,15 +2522,6 @@ func (ckp ContentKeyPolicy) MarshalJSON() ([]byte, error) { if ckp.ContentKeyPolicyProperties != nil { objectMap["properties"] = ckp.ContentKeyPolicyProperties } - if ckp.ID != nil { - objectMap["id"] = ckp.ID - } - if ckp.Name != nil { - objectMap["name"] = ckp.Name - } - if ckp.Type != nil { - objectMap["type"] = ckp.Type - } return json.Marshal(objectMap) } @@ -3045,7 +3009,7 @@ func (ckpor ContentKeyPolicyOpenRestriction) AsBasicContentKeyPolicyRestriction( // ContentKeyPolicyOption represents a policy option. type ContentKeyPolicyOption struct { - // PolicyOptionID - The legacy Policy Option ID. + // PolicyOptionID - READ-ONLY; The legacy Policy Option ID. PolicyOptionID *uuid.UUID `json:"policyOptionId,omitempty"` // Name - The Policy Option description. Name *string `json:"name,omitempty"` @@ -3500,11 +3464,11 @@ type ContentKeyPolicyPlayReadyPlayRight struct { // ContentKeyPolicyProperties the properties of the Content Key Policy. type ContentKeyPolicyProperties struct { autorest.Response `json:"-"` - // PolicyID - The legacy Policy ID. + // PolicyID - READ-ONLY; The legacy Policy ID. PolicyID *uuid.UUID `json:"policyId,omitempty"` - // Created - The creation date of the Policy + // Created - READ-ONLY; The creation date of the Policy Created *date.Time `json:"created,omitempty"` - // LastModified - The last modified date of the Policy + // LastModified - READ-ONLY; The last modified date of the Policy LastModified *date.Time `json:"lastModified,omitempty"` // Description - A description for the Policy. Description *string `json:"description,omitempty"` @@ -5254,11 +5218,11 @@ type Job struct { autorest.Response `json:"-"` // JobProperties - The resource properties. *JobProperties `json:"properties,omitempty"` - // ID - Fully qualified resource ID for the resource. + // ID - READ-ONLY; Fully qualified resource ID for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -5268,15 +5232,6 @@ func (j Job) MarshalJSON() ([]byte, error) { if j.JobProperties != nil { objectMap["properties"] = j.JobProperties } - if j.ID != nil { - objectMap["id"] = j.ID - } - if j.Name != nil { - objectMap["name"] = j.Name - } - if j.Type != nil { - objectMap["type"] = j.Type - } return json.Marshal(objectMap) } @@ -5479,23 +5434,23 @@ func NewJobCollectionPage(getNextPage func(context.Context, JobCollection) (JobC // JobError details of JobOutput errors. type JobError struct { - // Code - Error code describing the error. Possible values include: 'ServiceError', 'ServiceTransientError', 'DownloadNotAccessible', 'DownloadTransientError', 'UploadNotAccessible', 'UploadTransientError', 'ConfigurationUnsupported', 'ContentMalformed', 'ContentUnsupported' + // Code - READ-ONLY; Error code describing the error. Possible values include: 'ServiceError', 'ServiceTransientError', 'DownloadNotAccessible', 'DownloadTransientError', 'UploadNotAccessible', 'UploadTransientError', 'ConfigurationUnsupported', 'ContentMalformed', 'ContentUnsupported' Code JobErrorCode `json:"code,omitempty"` - // Message - A human-readable language-dependent representation of the error. + // Message - READ-ONLY; A human-readable language-dependent representation of the error. Message *string `json:"message,omitempty"` - // Category - Helps with categorization of errors. Possible values include: 'JobErrorCategoryService', 'JobErrorCategoryDownload', 'JobErrorCategoryUpload', 'JobErrorCategoryConfiguration', 'JobErrorCategoryContent' + // Category - READ-ONLY; Helps with categorization of errors. Possible values include: 'JobErrorCategoryService', 'JobErrorCategoryDownload', 'JobErrorCategoryUpload', 'JobErrorCategoryConfiguration', 'JobErrorCategoryContent' Category JobErrorCategory `json:"category,omitempty"` - // Retry - Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. Possible values include: 'DoNotRetry', 'MayRetry' + // Retry - READ-ONLY; Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. Possible values include: 'DoNotRetry', 'MayRetry' Retry JobRetry `json:"retry,omitempty"` - // Details - An array of details about specific errors that led to this reported error. + // Details - READ-ONLY; An array of details about specific errors that led to this reported error. Details *[]JobErrorDetail `json:"details,omitempty"` } // JobErrorDetail details of JobOutput errors. type JobErrorDetail struct { - // Code - Code describing the error detail. + // Code - READ-ONLY; Code describing the error detail. Code *string `json:"code,omitempty"` - // Message - A human-readable representation of the error. + // Message - READ-ONLY; A human-readable representation of the error. Message *string `json:"message,omitempty"` } @@ -5946,11 +5901,11 @@ type BasicJobOutput interface { // JobOutput describes all the properties of a JobOutput. type JobOutput struct { - // Error - If the JobOutput is in the Error state, it contains the details of the error. + // Error - READ-ONLY; If the JobOutput is in the Error state, it contains the details of the error. Error *JobError `json:"error,omitempty"` - // State - Describes the state of the JobOutput. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled' + // State - READ-ONLY; Describes the state of the JobOutput. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled' State JobState `json:"state,omitempty"` - // Progress - If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the State property. + // Progress - READ-ONLY; If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the State property. Progress *int32 `json:"progress,omitempty"` // Label - A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform. Label *string `json:"label,omitempty"` @@ -5999,15 +5954,6 @@ func unmarshalBasicJobOutputArray(body []byte) ([]BasicJobOutput, error) { func (jo JobOutput) MarshalJSON() ([]byte, error) { jo.OdataType = OdataTypeJobOutput objectMap := make(map[string]interface{}) - if jo.Error != nil { - objectMap["error"] = jo.Error - } - if jo.State != "" { - objectMap["state"] = jo.State - } - if jo.Progress != nil { - objectMap["progress"] = jo.Progress - } if jo.Label != nil { objectMap["label"] = jo.Label } @@ -6036,11 +5982,11 @@ func (jo JobOutput) AsBasicJobOutput() (BasicJobOutput, bool) { type JobOutputAsset struct { // AssetName - The name of the output Asset. AssetName *string `json:"assetName,omitempty"` - // Error - If the JobOutput is in the Error state, it contains the details of the error. + // Error - READ-ONLY; If the JobOutput is in the Error state, it contains the details of the error. Error *JobError `json:"error,omitempty"` - // State - Describes the state of the JobOutput. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled' + // State - READ-ONLY; Describes the state of the JobOutput. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled' State JobState `json:"state,omitempty"` - // Progress - If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the State property. + // Progress - READ-ONLY; If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the State property. Progress *int32 `json:"progress,omitempty"` // Label - A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform. Label *string `json:"label,omitempty"` @@ -6055,15 +6001,6 @@ func (joa JobOutputAsset) MarshalJSON() ([]byte, error) { if joa.AssetName != nil { objectMap["assetName"] = joa.AssetName } - if joa.Error != nil { - objectMap["error"] = joa.Error - } - if joa.State != "" { - objectMap["state"] = joa.State - } - if joa.Progress != nil { - objectMap["progress"] = joa.Progress - } if joa.Label != nil { objectMap["label"] = joa.Label } @@ -6090,15 +6027,15 @@ func (joa JobOutputAsset) AsBasicJobOutput() (BasicJobOutput, bool) { // JobProperties properties of the Job. type JobProperties struct { - // Created - The UTC date and time when the Job was created, in 'YYYY-MM-DDThh:mm:ssZ' format. + // Created - READ-ONLY; The UTC date and time when the Job was created, in 'YYYY-MM-DDThh:mm:ssZ' format. Created *date.Time `json:"created,omitempty"` - // State - The current state of the job. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled' + // State - READ-ONLY; The current state of the job. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled' State JobState `json:"state,omitempty"` // Description - Optional customer supplied description of the Job. Description *string `json:"description,omitempty"` // Input - The inputs for the Job. Input BasicJobInput `json:"input,omitempty"` - // LastModified - The UTC date and time when the Job was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format. + // LastModified - READ-ONLY; The UTC date and time when the Job was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format. LastModified *date.Time `json:"lastModified,omitempty"` // Outputs - The outputs for the Job. Outputs *[]BasicJobOutput `json:"outputs,omitempty"` @@ -6111,19 +6048,10 @@ type JobProperties struct { // MarshalJSON is the custom marshaler for JobProperties. func (jp JobProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if jp.Created != nil { - objectMap["created"] = jp.Created - } - if jp.State != "" { - objectMap["state"] = jp.State - } if jp.Description != nil { objectMap["description"] = jp.Description } objectMap["input"] = jp.Input - if jp.LastModified != nil { - objectMap["lastModified"] = jp.LastModified - } if jp.Outputs != nil { objectMap["outputs"] = jp.Outputs } @@ -6640,7 +6568,7 @@ type ListPathsResponse struct { // ListStreamingLocatorsResponse the Streaming Locators associated with this Asset. type ListStreamingLocatorsResponse struct { autorest.Response `json:"-"` - // StreamingLocators - The list of Streaming Locators. + // StreamingLocators - READ-ONLY; The list of Streaming Locators. StreamingLocators *[]AssetStreamingLocator `json:"streamingLocators,omitempty"` } @@ -6653,11 +6581,11 @@ type LiveEvent struct { Tags map[string]*string `json:"tags"` // Location - The Azure Region of the resource. Location *string `json:"location,omitempty"` - // ID - Fully qualified resource ID for the resource. + // ID - READ-ONLY; Fully qualified resource ID for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -6673,15 +6601,6 @@ func (le LiveEvent) MarshalJSON() ([]byte, error) { if le.Location != nil { objectMap["location"] = le.Location } - if le.ID != nil { - objectMap["id"] = le.ID - } - if le.Name != nil { - objectMap["name"] = le.Name - } - if le.Type != nil { - objectMap["type"] = le.Type - } return json.Marshal(objectMap) } @@ -6974,9 +6893,9 @@ type LiveEventProperties struct { Preview *LiveEventPreview `json:"preview,omitempty"` // Encoding - The Live Event encoding. Encoding *LiveEventEncoding `json:"encoding,omitempty"` - // ProvisioningState - The provisioning state of the Live Event. + // ProvisioningState - READ-ONLY; The provisioning state of the Live Event. ProvisioningState *string `json:"provisioningState,omitempty"` - // ResourceState - The resource state of the Live Event. Possible values include: 'Stopped', 'Starting', 'Running', 'Stopping', 'Deleting' + // ResourceState - READ-ONLY; The resource state of the Live Event. Possible values include: 'Stopped', 'Starting', 'Running', 'Stopping', 'Deleting' ResourceState LiveEventResourceState `json:"resourceState,omitempty"` // CrossSiteAccessPolicies - The Live Event access policies. CrossSiteAccessPolicies *CrossSiteAccessPolicies `json:"crossSiteAccessPolicies,omitempty"` @@ -6984,9 +6903,9 @@ type LiveEventProperties struct { VanityURL *bool `json:"vanityUrl,omitempty"` // StreamOptions - The options to use for the LiveEvent. This value is specified at creation time and cannot be updated. StreamOptions *[]StreamOptionsFlag `json:"streamOptions,omitempty"` - // Created - The exact time the Live Event was created. + // Created - READ-ONLY; The exact time the Live Event was created. Created *date.Time `json:"created,omitempty"` - // LastModified - The exact time the Live Event was last modified. + // LastModified - READ-ONLY; The exact time the Live Event was last modified. LastModified *date.Time `json:"lastModified,omitempty"` } @@ -7000,7 +6919,7 @@ type LiveEventsCreateFuture struct { // If the operation has not completed it will return an error. func (future *LiveEventsCreateFuture) Result(client LiveEventsClient) (le LiveEvent, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsCreateFuture", "Result", future.Response(), "Polling failure") return @@ -7029,7 +6948,7 @@ type LiveEventsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *LiveEventsDeleteFuture) Result(client LiveEventsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -7052,7 +6971,7 @@ type LiveEventsResetFuture struct { // If the operation has not completed it will return an error. func (future *LiveEventsResetFuture) Result(client LiveEventsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsResetFuture", "Result", future.Response(), "Polling failure") return @@ -7075,7 +6994,7 @@ type LiveEventsStartFuture struct { // If the operation has not completed it will return an error. func (future *LiveEventsStartFuture) Result(client LiveEventsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsStartFuture", "Result", future.Response(), "Polling failure") return @@ -7098,7 +7017,7 @@ type LiveEventsStopFuture struct { // If the operation has not completed it will return an error. func (future *LiveEventsStopFuture) Result(client LiveEventsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsStopFuture", "Result", future.Response(), "Polling failure") return @@ -7121,7 +7040,7 @@ type LiveEventsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *LiveEventsUpdateFuture) Result(client LiveEventsClient) (le LiveEvent, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveEventsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -7145,11 +7064,11 @@ type LiveOutput struct { autorest.Response `json:"-"` // LiveOutputProperties - The Live Output properties. *LiveOutputProperties `json:"properties,omitempty"` - // ID - Fully qualified resource ID for the resource. + // ID - READ-ONLY; Fully qualified resource ID for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -7159,15 +7078,6 @@ func (lo LiveOutput) MarshalJSON() ([]byte, error) { if lo.LiveOutputProperties != nil { objectMap["properties"] = lo.LiveOutputProperties } - if lo.ID != nil { - objectMap["id"] = lo.ID - } - if lo.Name != nil { - objectMap["name"] = lo.Name - } - if lo.Type != nil { - objectMap["type"] = lo.Type - } return json.Marshal(objectMap) } @@ -7384,13 +7294,13 @@ type LiveOutputProperties struct { Hls *Hls `json:"hls,omitempty"` // OutputSnapTime - The output snapshot time. OutputSnapTime *int64 `json:"outputSnapTime,omitempty"` - // Created - The exact time the Live Output was created. + // Created - READ-ONLY; The exact time the Live Output was created. Created *date.Time `json:"created,omitempty"` - // LastModified - The exact time the Live Output was last modified. + // LastModified - READ-ONLY; The exact time the Live Output was last modified. LastModified *date.Time `json:"lastModified,omitempty"` - // ProvisioningState - The provisioning state of the Live Output. + // ProvisioningState - READ-ONLY; The provisioning state of the Live Output. ProvisioningState *string `json:"provisioningState,omitempty"` - // ResourceState - The resource state of the Live Output. Possible values include: 'LiveOutputResourceStateCreating', 'LiveOutputResourceStateRunning', 'LiveOutputResourceStateDeleting' + // ResourceState - READ-ONLY; The resource state of the Live Output. Possible values include: 'LiveOutputResourceStateCreating', 'LiveOutputResourceStateRunning', 'LiveOutputResourceStateDeleting' ResourceState LiveOutputResourceState `json:"resourceState,omitempty"` } @@ -7404,7 +7314,7 @@ type LiveOutputsCreateFuture struct { // If the operation has not completed it will return an error. func (future *LiveOutputsCreateFuture) Result(client LiveOutputsClient) (lo LiveOutput, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveOutputsCreateFuture", "Result", future.Response(), "Polling failure") return @@ -7433,7 +7343,7 @@ type LiveOutputsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *LiveOutputsDeleteFuture) Result(client LiveOutputsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "media.LiveOutputsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -7453,33 +7363,33 @@ type Location struct { // Metric a metric emitted by service. type Metric struct { - // Name - The metric name. + // Name - READ-ONLY; The metric name. Name *string `json:"name,omitempty"` - // DisplayName - The metric display name. + // DisplayName - READ-ONLY; The metric display name. DisplayName *string `json:"displayName,omitempty"` - // DisplayDescription - The metric display description. + // DisplayDescription - READ-ONLY; The metric display description. DisplayDescription *string `json:"displayDescription,omitempty"` - // Unit - The metric unit. Possible values include: 'MetricUnitBytes', 'MetricUnitCount', 'MetricUnitMilliseconds' + // Unit - READ-ONLY; The metric unit. Possible values include: 'MetricUnitBytes', 'MetricUnitCount', 'MetricUnitMilliseconds' Unit MetricUnit `json:"unit,omitempty"` - // AggregationType - The metric aggregation type. Possible values include: 'Average', 'Count', 'Total' + // AggregationType - READ-ONLY; The metric aggregation type. Possible values include: 'Average', 'Count', 'Total' AggregationType MetricAggregationType `json:"aggregationType,omitempty"` - // Dimensions - The metric dimensions. + // Dimensions - READ-ONLY; The metric dimensions. Dimensions *[]MetricDimension `json:"dimensions,omitempty"` } // MetricDimension a metric dimension. type MetricDimension struct { - // Name - The metric dimension name. + // Name - READ-ONLY; The metric dimension name. Name *string `json:"name,omitempty"` - // DisplayName - The display name for the dimension. + // DisplayName - READ-ONLY; The display name for the dimension. DisplayName *string `json:"displayName,omitempty"` - // ToBeExportedForShoebox - Whether to export metric to shoebox. + // ToBeExportedForShoebox - READ-ONLY; Whether to export metric to shoebox. ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` } // MetricProperties metric properties. type MetricProperties struct { - // ServiceSpecification - The service specifications. + // ServiceSpecification - READ-ONLY; The service specifications. ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` } @@ -8400,11 +8310,11 @@ type Provider struct { // ProxyResource the resource model definition for a ARM proxy resource. type ProxyResource struct { - // ID - Fully qualified resource ID for the resource. + // ID - READ-ONLY; Fully qualified resource ID for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -8423,11 +8333,11 @@ type Rectangle struct { // Resource the core properties of ARM resources. type Resource struct { - // ID - Fully qualified resource ID for the resource. + // ID - READ-ONLY; Fully qualified resource ID for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -8440,11 +8350,11 @@ type Service struct { Tags map[string]*string `json:"tags"` // Location - The Azure Region of the resource. Location *string `json:"location,omitempty"` - // ID - Fully qualified resource ID for the resource. + // ID - READ-ONLY; Fully qualified resource ID for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -8460,15 +8370,6 @@ func (s Service) MarshalJSON() ([]byte, error) { if s.Location != nil { objectMap["location"] = s.Location } - if s.ID != nil { - objectMap["id"] = s.ID - } - if s.Name != nil { - objectMap["name"] = s.Name - } - if s.Type != nil { - objectMap["type"] = s.Type - } return json.Marshal(objectMap) } @@ -8689,7 +8590,7 @@ func NewServiceCollectionPage(getNextPage func(context.Context, ServiceCollectio // ServiceProperties properties of the Media Services account. type ServiceProperties struct { - // MediaServiceID - The Media Services account ID. + // MediaServiceID - READ-ONLY; The Media Services account ID. MediaServiceID *uuid.UUID `json:"mediaServiceId,omitempty"` // StorageAccounts - The storage accounts for this resource. StorageAccounts *[]StorageAccount `json:"storageAccounts,omitempty"` @@ -8697,7 +8598,7 @@ type ServiceProperties struct { // ServiceSpecification the service metric specifications. type ServiceSpecification struct { - // MetricSpecifications - List of metric specifications. + // MetricSpecifications - READ-ONLY; List of metric specifications. MetricSpecifications *[]Metric `json:"metricSpecifications,omitempty"` } @@ -8849,11 +8750,11 @@ type StreamingEndpoint struct { Tags map[string]*string `json:"tags"` // Location - The Azure Region of the resource. Location *string `json:"location,omitempty"` - // ID - Fully qualified resource ID for the resource. + // ID - READ-ONLY; Fully qualified resource ID for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -8869,15 +8770,6 @@ func (se StreamingEndpoint) MarshalJSON() ([]byte, error) { if se.Location != nil { objectMap["location"] = se.Location } - if se.ID != nil { - objectMap["id"] = se.ID - } - if se.Name != nil { - objectMap["name"] = se.Name - } - if se.Type != nil { - objectMap["type"] = se.Type - } return json.Marshal(objectMap) } @@ -9120,7 +9012,7 @@ type StreamingEndpointProperties struct { MaxCacheAge *int64 `json:"maxCacheAge,omitempty"` // CustomHostNames - The custom host names of the StreamingEndpoint CustomHostNames *[]string `json:"customHostNames,omitempty"` - // HostName - The StreamingEndpoint host name. + // HostName - READ-ONLY; The StreamingEndpoint host name. HostName *string `json:"hostName,omitempty"` // CdnEnabled - The CDN enabled flag. CdnEnabled *bool `json:"cdnEnabled,omitempty"` @@ -9128,17 +9020,17 @@ type StreamingEndpointProperties struct { CdnProvider *string `json:"cdnProvider,omitempty"` // CdnProfile - The CDN profile name. CdnProfile *string `json:"cdnProfile,omitempty"` - // ProvisioningState - The provisioning state of the StreamingEndpoint. + // ProvisioningState - READ-ONLY; The provisioning state of the StreamingEndpoint. ProvisioningState *string `json:"provisioningState,omitempty"` - // ResourceState - The resource state of the StreamingEndpoint. Possible values include: 'StreamingEndpointResourceStateStopped', 'StreamingEndpointResourceStateStarting', 'StreamingEndpointResourceStateRunning', 'StreamingEndpointResourceStateStopping', 'StreamingEndpointResourceStateDeleting', 'StreamingEndpointResourceStateScaling' + // ResourceState - READ-ONLY; The resource state of the StreamingEndpoint. Possible values include: 'StreamingEndpointResourceStateStopped', 'StreamingEndpointResourceStateStarting', 'StreamingEndpointResourceStateRunning', 'StreamingEndpointResourceStateStopping', 'StreamingEndpointResourceStateDeleting', 'StreamingEndpointResourceStateScaling' ResourceState StreamingEndpointResourceState `json:"resourceState,omitempty"` // CrossSiteAccessPolicies - The StreamingEndpoint access policies. CrossSiteAccessPolicies *CrossSiteAccessPolicies `json:"crossSiteAccessPolicies,omitempty"` - // FreeTrialEndTime - The free trial expiration time. + // FreeTrialEndTime - READ-ONLY; The free trial expiration time. FreeTrialEndTime *date.Time `json:"freeTrialEndTime,omitempty"` - // Created - The exact time the StreamingEndpoint was created. + // Created - READ-ONLY; The exact time the StreamingEndpoint was created. Created *date.Time `json:"created,omitempty"` - // LastModified - The exact time the StreamingEndpoint was last modified. + // LastModified - READ-ONLY; The exact time the StreamingEndpoint was last modified. LastModified *date.Time `json:"lastModified,omitempty"` } @@ -9152,7 +9044,7 @@ type StreamingEndpointsCreateFuture struct { // If the operation has not completed it will return an error. func (future *StreamingEndpointsCreateFuture) Result(client StreamingEndpointsClient) (se StreamingEndpoint, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsCreateFuture", "Result", future.Response(), "Polling failure") return @@ -9181,7 +9073,7 @@ type StreamingEndpointsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *StreamingEndpointsDeleteFuture) Result(client StreamingEndpointsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -9204,7 +9096,7 @@ type StreamingEndpointsScaleFuture struct { // If the operation has not completed it will return an error. func (future *StreamingEndpointsScaleFuture) Result(client StreamingEndpointsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsScaleFuture", "Result", future.Response(), "Polling failure") return @@ -9227,7 +9119,7 @@ type StreamingEndpointsStartFuture struct { // If the operation has not completed it will return an error. func (future *StreamingEndpointsStartFuture) Result(client StreamingEndpointsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsStartFuture", "Result", future.Response(), "Polling failure") return @@ -9250,7 +9142,7 @@ type StreamingEndpointsStopFuture struct { // If the operation has not completed it will return an error. func (future *StreamingEndpointsStopFuture) Result(client StreamingEndpointsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsStopFuture", "Result", future.Response(), "Polling failure") return @@ -9273,7 +9165,7 @@ type StreamingEndpointsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *StreamingEndpointsUpdateFuture) Result(client StreamingEndpointsClient) (se StreamingEndpoint, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "media.StreamingEndpointsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -9302,11 +9194,11 @@ type StreamingEntityScaleUnit struct { type StreamingLocator struct { autorest.Response `json:"-"` *StreamingLocatorProperties `json:"properties,omitempty"` - // ID - Fully qualified resource ID for the resource. + // ID - READ-ONLY; Fully qualified resource ID for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -9316,15 +9208,6 @@ func (sl StreamingLocator) MarshalJSON() ([]byte, error) { if sl.StreamingLocatorProperties != nil { objectMap["properties"] = sl.StreamingLocatorProperties } - if sl.ID != nil { - objectMap["id"] = sl.ID - } - if sl.Name != nil { - objectMap["name"] = sl.Name - } - if sl.Type != nil { - objectMap["type"] = sl.Type - } return json.Marshal(objectMap) } @@ -9529,15 +9412,15 @@ func NewStreamingLocatorCollectionPage(getNextPage func(context.Context, Streami type StreamingLocatorContentKey struct { // ID - ID of Content Key ID *uuid.UUID `json:"id,omitempty"` - // Type - Encryption type of Content Key. Possible values include: 'StreamingLocatorContentKeyTypeCommonEncryptionCenc', 'StreamingLocatorContentKeyTypeCommonEncryptionCbcs', 'StreamingLocatorContentKeyTypeEnvelopeEncryption' + // Type - READ-ONLY; Encryption type of Content Key. Possible values include: 'StreamingLocatorContentKeyTypeCommonEncryptionCenc', 'StreamingLocatorContentKeyTypeCommonEncryptionCbcs', 'StreamingLocatorContentKeyTypeEnvelopeEncryption' Type StreamingLocatorContentKeyType `json:"type,omitempty"` // LabelReferenceInStreamingPolicy - Label of Content Key as specified in the Streaming Policy LabelReferenceInStreamingPolicy *string `json:"labelReferenceInStreamingPolicy,omitempty"` // Value - Value of Content Key Value *string `json:"value,omitempty"` - // PolicyName - ContentKeyPolicy used by Content Key + // PolicyName - READ-ONLY; ContentKeyPolicy used by Content Key PolicyName *string `json:"policyName,omitempty"` - // Tracks - Tracks which use this Content Key + // Tracks - READ-ONLY; Tracks which use this Content Key Tracks *[]TrackSelection `json:"tracks,omitempty"` } @@ -9545,7 +9428,7 @@ type StreamingLocatorContentKey struct { type StreamingLocatorProperties struct { // AssetName - Asset Name AssetName *string `json:"assetName,omitempty"` - // Created - The creation time of the Streaming Locator. + // Created - READ-ONLY; The creation time of the Streaming Locator. Created *date.Time `json:"created,omitempty"` // StartTime - The start time of the Streaming Locator. StartTime *date.Time `json:"startTime,omitempty"` @@ -9579,11 +9462,11 @@ type StreamingPath struct { type StreamingPolicy struct { autorest.Response `json:"-"` *StreamingPolicyProperties `json:"properties,omitempty"` - // ID - Fully qualified resource ID for the resource. + // ID - READ-ONLY; Fully qualified resource ID for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -9593,15 +9476,6 @@ func (sp StreamingPolicy) MarshalJSON() ([]byte, error) { if sp.StreamingPolicyProperties != nil { objectMap["properties"] = sp.StreamingPolicyProperties } - if sp.ID != nil { - objectMap["id"] = sp.ID - } - if sp.Name != nil { - objectMap["name"] = sp.Name - } - if sp.Type != nil { - objectMap["type"] = sp.Type - } return json.Marshal(objectMap) } @@ -9838,7 +9712,7 @@ type StreamingPolicyPlayReadyConfiguration struct { // StreamingPolicyProperties class to specify properties of Streaming Policy type StreamingPolicyProperties struct { - // Created - Creation time of Streaming Policy + // Created - READ-ONLY; Creation time of Streaming Policy Created *date.Time `json:"created,omitempty"` // DefaultContentKeyPolicyName - Default ContentKey used by current Streaming Policy DefaultContentKeyPolicyName *string `json:"defaultContentKeyPolicyName,omitempty"` @@ -9867,11 +9741,11 @@ type SubscriptionMediaService struct { Tags map[string]*string `json:"tags"` // Location - The Azure Region of the resource. Location *string `json:"location,omitempty"` - // ID - Fully qualified resource ID for the resource. + // ID - READ-ONLY; Fully qualified resource ID for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -9887,15 +9761,6 @@ func (sms SubscriptionMediaService) MarshalJSON() ([]byte, error) { if sms.Location != nil { objectMap["location"] = sms.Location } - if sms.ID != nil { - objectMap["id"] = sms.ID - } - if sms.Name != nil { - objectMap["name"] = sms.Name - } - if sms.Type != nil { - objectMap["type"] = sms.Type - } return json.Marshal(objectMap) } @@ -10127,11 +9992,11 @@ type TrackedResource struct { Tags map[string]*string `json:"tags"` // Location - The Azure Region of the resource. Location *string `json:"location,omitempty"` - // ID - Fully qualified resource ID for the resource. + // ID - READ-ONLY; Fully qualified resource ID for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -10144,15 +10009,6 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Location != nil { objectMap["location"] = tr.Location } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } @@ -10179,11 +10035,11 @@ type Transform struct { autorest.Response `json:"-"` // TransformProperties - The resource properties. *TransformProperties `json:"properties,omitempty"` - // ID - Fully qualified resource ID for the resource. + // ID - READ-ONLY; Fully qualified resource ID for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -10193,15 +10049,6 @@ func (t Transform) MarshalJSON() ([]byte, error) { if t.TransformProperties != nil { objectMap["properties"] = t.TransformProperties } - if t.ID != nil { - objectMap["id"] = t.ID - } - if t.Name != nil { - objectMap["name"] = t.Name - } - if t.Type != nil { - objectMap["type"] = t.Type - } return json.Marshal(objectMap) } @@ -10456,11 +10303,11 @@ func (toVar *TransformOutput) UnmarshalJSON(body []byte) error { // TransformProperties a Transform. type TransformProperties struct { - // Created - The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format. + // Created - READ-ONLY; The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format. Created *date.Time `json:"created,omitempty"` // Description - An optional verbose description of the Transform. Description *string `json:"description,omitempty"` - // LastModified - The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format. + // LastModified - READ-ONLY; The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format. LastModified *date.Time `json:"lastModified,omitempty"` // Outputs - An array of one or more TransformOutputs that the Transform should generate. Outputs *[]TransformOutput `json:"outputs,omitempty"` diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2017-12-01/mysql/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2017-12-01/mysql/models.go index 23d360fecaca..17eaecd66de9 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2017-12-01/mysql/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2017-12-01/mysql/models.go @@ -184,16 +184,33 @@ func PossibleVirtualNetworkRuleStateValues() []VirtualNetworkRuleState { return []VirtualNetworkRuleState{Deleting, Initializing, InProgress, Ready, Unknown} } +// CloudError an error response from the Batch service. +type CloudError struct { + Error *CloudErrorBody `json:"error,omitempty"` +} + +// CloudErrorBody an error response from the Batch service. +type CloudErrorBody struct { + // Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + Code *string `json:"code,omitempty"` + // Message - A message describing the error, intended to be suitable for display in a user interface. + Message *string `json:"message,omitempty"` + // Target - The target of the particular error. For example, the name of the property in error. + Target *string `json:"target,omitempty"` + // Details - A list of additional details about the error. + Details *[]CloudErrorBody `json:"details,omitempty"` +} + // Configuration represents a Configuration. type Configuration struct { autorest.Response `json:"-"` // ConfigurationProperties - The properties of a configuration. *ConfigurationProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -203,15 +220,6 @@ func (c Configuration) MarshalJSON() ([]byte, error) { if c.ConfigurationProperties != nil { objectMap["properties"] = c.ConfigurationProperties } - if c.ID != nil { - objectMap["id"] = c.ID - } - if c.Name != nil { - objectMap["name"] = c.Name - } - if c.Type != nil { - objectMap["type"] = c.Type - } return json.Marshal(objectMap) } @@ -277,13 +285,13 @@ type ConfigurationListResult struct { type ConfigurationProperties struct { // Value - Value of the configuration. Value *string `json:"value,omitempty"` - // Description - Description of the configuration. + // Description - READ-ONLY; Description of the configuration. Description *string `json:"description,omitempty"` - // DefaultValue - Default value of the configuration. + // DefaultValue - READ-ONLY; Default value of the configuration. DefaultValue *string `json:"defaultValue,omitempty"` - // DataType - Data type of the configuration. + // DataType - READ-ONLY; Data type of the configuration. DataType *string `json:"dataType,omitempty"` - // AllowedValues - Allowed values of the configuration. + // AllowedValues - READ-ONLY; Allowed values of the configuration. AllowedValues *string `json:"allowedValues,omitempty"` // Source - Source of the configuration. Source *string `json:"source,omitempty"` @@ -299,7 +307,7 @@ type ConfigurationsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ConfigurationsCreateOrUpdateFuture) Result(client ConfigurationsClient) (c Configuration, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ConfigurationsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -323,11 +331,11 @@ type Database struct { autorest.Response `json:"-"` // DatabaseProperties - The properties of a database. *DatabaseProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -337,15 +345,6 @@ func (d Database) MarshalJSON() ([]byte, error) { if d.DatabaseProperties != nil { objectMap["properties"] = d.DatabaseProperties } - if d.ID != nil { - objectMap["id"] = d.ID - } - if d.Name != nil { - objectMap["name"] = d.Name - } - if d.Type != nil { - objectMap["type"] = d.Type - } return json.Marshal(objectMap) } @@ -425,7 +424,7 @@ type DatabasesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesCreateOrUpdateFuture) Result(client DatabasesClient) (d Database, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mysql.DatabasesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -454,7 +453,7 @@ type DatabasesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesDeleteFuture) Result(client DatabasesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mysql.DatabasesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -472,11 +471,11 @@ type FirewallRule struct { autorest.Response `json:"-"` // FirewallRuleProperties - The properties of a firewall rule. *FirewallRuleProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -486,15 +485,6 @@ func (fr FirewallRule) MarshalJSON() ([]byte, error) { if fr.FirewallRuleProperties != nil { objectMap["properties"] = fr.FirewallRuleProperties } - if fr.ID != nil { - objectMap["id"] = fr.ID - } - if fr.Name != nil { - objectMap["name"] = fr.Name - } - if fr.Type != nil { - objectMap["type"] = fr.Type - } return json.Marshal(objectMap) } @@ -574,7 +564,7 @@ type FirewallRulesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *FirewallRulesCreateOrUpdateFuture) Result(client FirewallRulesClient) (fr FirewallRule, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mysql.FirewallRulesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -603,7 +593,7 @@ type FirewallRulesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *FirewallRulesDeleteFuture) Result(client FirewallRulesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mysql.FirewallRulesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -620,11 +610,11 @@ func (future *FirewallRulesDeleteFuture) Result(client FirewallRulesClient) (ar type LogFile struct { // LogFileProperties - The properties of the log file. *LogFileProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -634,15 +624,6 @@ func (lf LogFile) MarshalJSON() ([]byte, error) { if lf.LogFileProperties != nil { objectMap["properties"] = lf.LogFileProperties } - if lf.ID != nil { - objectMap["id"] = lf.ID - } - if lf.Name != nil { - objectMap["name"] = lf.Name - } - if lf.Type != nil { - objectMap["type"] = lf.Type - } return json.Marshal(objectMap) } @@ -708,9 +689,9 @@ type LogFileListResult struct { type LogFileProperties struct { // SizeInKB - Size of the log file. SizeInKB *int64 `json:"sizeInKB,omitempty"` - // CreatedTime - Creation timestamp of the log file. + // CreatedTime - READ-ONLY; Creation timestamp of the log file. CreatedTime *date.Time `json:"createdTime,omitempty"` - // LastModifiedTime - Last modified timestamp of the log file. + // LastModifiedTime - READ-ONLY; Last modified timestamp of the log file. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // Type - Type of the log file. Type *string `json:"type,omitempty"` @@ -739,43 +720,31 @@ type NameAvailabilityRequest struct { // Operation REST API operation definition. type Operation struct { - // Name - The name of the operation being performed on this particular object. + // Name - READ-ONLY; The name of the operation being performed on this particular object. Name *string `json:"name,omitempty"` - // Display - The localized display information for this particular operation or action. + // Display - READ-ONLY; The localized display information for this particular operation or action. Display *OperationDisplay `json:"display,omitempty"` - // Origin - The intended executor of the operation. Possible values include: 'NotSpecified', 'User', 'System' + // Origin - READ-ONLY; The intended executor of the operation. Possible values include: 'NotSpecified', 'User', 'System' Origin OperationOrigin `json:"origin,omitempty"` - // Properties - Additional descriptions for the operation. + // Properties - READ-ONLY; Additional descriptions for the operation. Properties map[string]interface{} `json:"properties"` } // MarshalJSON is the custom marshaler for Operation. func (o Operation) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if o.Name != nil { - objectMap["name"] = o.Name - } - if o.Display != nil { - objectMap["display"] = o.Display - } - if o.Origin != "" { - objectMap["origin"] = o.Origin - } - if o.Properties != nil { - objectMap["properties"] = o.Properties - } return json.Marshal(objectMap) } // OperationDisplay display metadata associated with the operation. type OperationDisplay struct { - // Provider - Operation resource provider name. + // Provider - READ-ONLY; Operation resource provider name. Provider *string `json:"provider,omitempty"` - // Resource - Resource on which the operation is performed. + // Resource - READ-ONLY; Resource on which the operation is performed. Resource *string `json:"resource,omitempty"` - // Operation - Localized friendly name for the operation. + // Operation - READ-ONLY; Localized friendly name for the operation. Operation *string `json:"operation,omitempty"` - // Description - Operation description. + // Description - READ-ONLY; Operation description. Description *string `json:"description,omitempty"` } @@ -823,11 +792,11 @@ type PerformanceTierServiceLevelObjectives struct { // ProxyResource resource properties. type ProxyResource struct { - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -860,11 +829,11 @@ type Server struct { Location *string `json:"location,omitempty"` // Tags - Application-specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -883,15 +852,6 @@ func (s Server) MarshalJSON() ([]byte, error) { if s.Tags != nil { objectMap["tags"] = s.Tags } - if s.ID != nil { - objectMap["id"] = s.ID - } - if s.Name != nil { - objectMap["name"] = s.Name - } - if s.Type != nil { - objectMap["type"] = s.Type - } return json.Marshal(objectMap) } @@ -1476,29 +1436,6 @@ func (spfr ServerPropertiesForRestore) AsBasicServerPropertiesForCreate() (Basic return &spfr, true } -// ServerRestartFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type ServerRestartFuture struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *ServerRestartFuture) Result(client ServerClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "mysql.ServerRestartFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("mysql.ServerRestartFuture") - return - } - ar.Response = future.Response() - return -} - // ServersCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServersCreateFuture struct { @@ -1509,7 +1446,7 @@ type ServersCreateFuture struct { // If the operation has not completed it will return an error. func (future *ServersCreateFuture) Result(client ServersClient) (s Server, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServersCreateFuture", "Result", future.Response(), "Polling failure") return @@ -1538,7 +1475,7 @@ type ServersDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ServersDeleteFuture) Result(client ServersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServersDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1561,7 +1498,7 @@ type ServerSecurityAlertPoliciesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServerSecurityAlertPoliciesCreateOrUpdateFuture) Result(client ServerSecurityAlertPoliciesClient) (ssap ServerSecurityAlertPolicy, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServerSecurityAlertPoliciesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1585,11 +1522,11 @@ type ServerSecurityAlertPolicy struct { autorest.Response `json:"-"` // SecurityAlertPolicyProperties - Resource properties. *SecurityAlertPolicyProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1599,15 +1536,6 @@ func (ssap ServerSecurityAlertPolicy) MarshalJSON() ([]byte, error) { if ssap.SecurityAlertPolicyProperties != nil { objectMap["properties"] = ssap.SecurityAlertPolicyProperties } - if ssap.ID != nil { - objectMap["id"] = ssap.ID - } - if ssap.Name != nil { - objectMap["name"] = ssap.Name - } - if ssap.Type != nil { - objectMap["type"] = ssap.Type - } return json.Marshal(objectMap) } @@ -1662,6 +1590,29 @@ func (ssap *ServerSecurityAlertPolicy) UnmarshalJSON(body []byte) error { return nil } +// ServersRestartFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type ServersRestartFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ServersRestartFuture) Result(client ServersClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "mysql.ServersRestartFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("mysql.ServersRestartFuture") + return + } + ar.Response = future.Response() + return +} + // ServersUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServersUpdateFuture struct { @@ -1672,7 +1623,7 @@ type ServersUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServersUpdateFuture) Result(client ServersClient) (s Server, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mysql.ServersUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1802,11 +1753,11 @@ type TrackedResource struct { Location *string `json:"location,omitempty"` // Tags - Application-specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1819,15 +1770,6 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Tags != nil { objectMap["tags"] = tr.Tags } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } @@ -1836,11 +1778,11 @@ type VirtualNetworkRule struct { autorest.Response `json:"-"` // VirtualNetworkRuleProperties - Resource properties. *VirtualNetworkRuleProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1850,15 +1792,6 @@ func (vnr VirtualNetworkRule) MarshalJSON() ([]byte, error) { if vnr.VirtualNetworkRuleProperties != nil { objectMap["properties"] = vnr.VirtualNetworkRuleProperties } - if vnr.ID != nil { - objectMap["id"] = vnr.ID - } - if vnr.Name != nil { - objectMap["name"] = vnr.Name - } - if vnr.Type != nil { - objectMap["type"] = vnr.Type - } return json.Marshal(objectMap) } @@ -1916,9 +1849,9 @@ func (vnr *VirtualNetworkRule) UnmarshalJSON(body []byte) error { // VirtualNetworkRuleListResult a list of virtual network rules. type VirtualNetworkRuleListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]VirtualNetworkRule `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -2065,7 +1998,7 @@ type VirtualNetworkRuleProperties struct { VirtualNetworkSubnetID *string `json:"virtualNetworkSubnetId,omitempty"` // IgnoreMissingVnetServiceEndpoint - Create firewall rule before the virtual network has vnet service endpoint enabled. IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty"` - // State - Virtual Network Rule State. Possible values include: 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' + // State - READ-ONLY; Virtual Network Rule State. Possible values include: 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' State VirtualNetworkRuleState `json:"state,omitempty"` } @@ -2079,7 +2012,7 @@ type VirtualNetworkRulesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkRulesCreateOrUpdateFuture) Result(client VirtualNetworkRulesClient) (vnr VirtualNetworkRule, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mysql.VirtualNetworkRulesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -2108,7 +2041,7 @@ type VirtualNetworkRulesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkRulesDeleteFuture) Result(client VirtualNetworkRulesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "mysql.VirtualNetworkRulesDeleteFuture", "Result", future.Response(), "Polling failure") return diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2017-12-01/mysql/server.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2017-12-01/mysql/server.go deleted file mode 100644 index 04dfee8c525c..000000000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2017-12-01/mysql/server.go +++ /dev/null @@ -1,120 +0,0 @@ -package mysql - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// ServerClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for -// Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with -// new business model. -type ServerClient struct { - BaseClient -} - -// NewServerClient creates an instance of the ServerClient client. -func NewServerClient(subscriptionID string) ServerClient { - return NewServerClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// NewServerClientWithBaseURI creates an instance of the ServerClient client. -func NewServerClientWithBaseURI(baseURI string, subscriptionID string) ServerClient { - return ServerClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Restart restarts a server. -// Parameters: -// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value -// from the Azure Resource Manager API or the portal. -// serverName - the name of the server. -func (client ServerClient) Restart(ctx context.Context, resourceGroupName string, serverName string) (result ServerRestartFuture, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServerClient.Restart") - defer func() { - sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - req, err := client.RestartPreparer(ctx, resourceGroupName, serverName) - if err != nil { - err = autorest.NewErrorWithError(err, "mysql.ServerClient", "Restart", nil, "Failure preparing request") - return - } - - result, err = client.RestartSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "mysql.ServerClient", "Restart", result.Response(), "Failure sending request") - return - } - - return -} - -// RestartPreparer prepares the Restart request. -func (client ServerClient) RestartPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serverName": autorest.Encode("path", serverName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-12-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/restart", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// RestartSender sends the Restart request. The method will close the -// http.Response Body if it receives an error. -func (client ServerClient) RestartSender(req *http.Request) (future ServerRestartFuture, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return -} - -// RestartResponder handles the response to the Restart request. The method always -// closes the http.Response Body. -func (client ServerClient) RestartResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2017-12-01/mysql/servers.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2017-12-01/mysql/servers.go index fa51290fe446..bbaf0cd58de5 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2017-12-01/mysql/servers.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2017-12-01/mysql/servers.go @@ -438,6 +438,83 @@ func (client ServersClient) ListByResourceGroupResponder(resp *http.Response) (r return } +// Restart restarts a server. +// Parameters: +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// serverName - the name of the server. +func (client ServersClient) Restart(ctx context.Context, resourceGroupName string, serverName string) (result ServersRestartFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServersClient.Restart") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.RestartPreparer(ctx, resourceGroupName, serverName) + if err != nil { + err = autorest.NewErrorWithError(err, "mysql.ServersClient", "Restart", nil, "Failure preparing request") + return + } + + result, err = client.RestartSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "mysql.ServersClient", "Restart", result.Response(), "Failure sending request") + return + } + + return +} + +// RestartPreparer prepares the Restart request. +func (client ServersClient) RestartPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serverName": autorest.Encode("path", serverName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2017-12-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/restart", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// RestartSender sends the Restart request. The method will close the +// http.Response Body if it receives an error. +func (client ServersClient) RestartSender(req *http.Request) (future ServersRestartFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// RestartResponder handles the response to the Restart request. The method always +// closes the http.Response Body. +func (client ServersClient) RestartResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + // Update updates an existing server. The request body can contain one to many of the properties present in the normal // server definition. // Parameters: diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/applicationsecuritygroups.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/applicationsecuritygroups.go index cd030b90e2a2..f5bc951be339 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/applicationsecuritygroups.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/applicationsecuritygroups.go @@ -84,6 +84,7 @@ func (client ApplicationSecurityGroupsClient) CreateOrUpdatePreparer(ctx context "api-version": APIVersion, } + parameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/azurefirewalls.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/azurefirewalls.go index e4f2960b4b67..b09246ea6a8c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/azurefirewalls.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/azurefirewalls.go @@ -84,6 +84,7 @@ func (client AzureFirewallsClient) CreateOrUpdatePreparer(ctx context.Context, r "api-version": APIVersion, } + parameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/ddoscustompolicies.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/ddoscustompolicies.go index 5524a3b12f28..c783029e3951 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/ddoscustompolicies.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/ddoscustompolicies.go @@ -84,6 +84,7 @@ func (client DdosCustomPoliciesClient) CreateOrUpdatePreparer(ctx context.Contex "api-version": APIVersion, } + parameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/ddosprotectionplans.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/ddosprotectionplans.go index 148f6d4c0a85..9cd121c72883 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/ddosprotectionplans.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/ddosprotectionplans.go @@ -84,6 +84,10 @@ func (client DdosProtectionPlansClient) CreateOrUpdatePreparer(ctx context.Conte "api-version": APIVersion, } + parameters.ID = nil + parameters.Name = nil + parameters.Type = nil + parameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -495,3 +499,83 @@ func (client DdosProtectionPlansClient) ListByResourceGroupComplete(ctx context. result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) return } + +// UpdateTags update a DDoS protection plan tags +// Parameters: +// resourceGroupName - the name of the resource group. +// ddosProtectionPlanName - the name of the DDoS protection plan. +// parameters - parameters supplied to the update DDoS protection plan resource tags. +func (client DdosProtectionPlansClient) UpdateTags(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters TagsObject) (result DdosProtectionPlansUpdateTagsFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DdosProtectionPlansClient.UpdateTags") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, ddosProtectionPlanName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "UpdateTags", nil, "Failure preparing request") + return + } + + result, err = client.UpdateTagsSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansClient", "UpdateTags", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdateTagsPreparer prepares the UpdateTags request. +func (client DdosProtectionPlansClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, ddosProtectionPlanName string, parameters TagsObject) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "ddosProtectionPlanName": autorest.Encode("path", ddosProtectionPlanName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-12-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateTagsSender sends the UpdateTags request. The method will close the +// http.Response Body if it receives an error. +func (client DdosProtectionPlansClient) UpdateTagsSender(req *http.Request) (future DdosProtectionPlansUpdateTagsFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateTagsResponder handles the response to the UpdateTags request. The method always +// closes the http.Response Body. +func (client DdosProtectionPlansClient) UpdateTagsResponder(resp *http.Response) (result DdosProtectionPlan, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecircuitauthorizations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecircuitauthorizations.go index a299efe3f986..a142050a3a9e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecircuitauthorizations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecircuitauthorizations.go @@ -89,6 +89,7 @@ func (client ExpressRouteCircuitAuthorizationsClient) CreateOrUpdatePreparer(ctx "api-version": APIVersion, } + authorizationParameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecircuitconnections.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecircuitconnections.go index 07bc1a335cad..77f7f80b375c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecircuitconnections.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecircuitconnections.go @@ -90,6 +90,7 @@ func (client ExpressRouteCircuitConnectionsClient) CreateOrUpdatePreparer(ctx co "api-version": APIVersion, } + expressRouteCircuitConnectionParameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecircuitpeerings.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecircuitpeerings.go index 2ef872b0264a..d5e20e078acd 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecircuitpeerings.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecircuitpeerings.go @@ -98,6 +98,7 @@ func (client ExpressRouteCircuitPeeringsClient) CreateOrUpdatePreparer(ctx conte "api-version": APIVersion, } + peeringParameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecircuits.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecircuits.go index 1817fe0416d9..eb252e0df6bb 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecircuits.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecircuits.go @@ -84,6 +84,7 @@ func (client ExpressRouteCircuitsClient) CreateOrUpdatePreparer(ctx context.Cont "api-version": APIVersion, } + parameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecrossconnectionpeerings.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecrossconnectionpeerings.go index e0f10d8af16e..d2b4371bb750 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecrossconnectionpeerings.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecrossconnectionpeerings.go @@ -101,6 +101,7 @@ func (client ExpressRouteCrossConnectionPeeringsClient) CreateOrUpdatePreparer(c "api-version": APIVersion, } + peeringParameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecrossconnections.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecrossconnections.go index cb99ea62db21..988cdd205ece 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecrossconnections.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutecrossconnections.go @@ -85,6 +85,7 @@ func (client ExpressRouteCrossConnectionsClient) CreateOrUpdatePreparer(ctx cont "api-version": APIVersion, } + parameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutegateways.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutegateways.go index 60f12ffaa62a..126df3b36370 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutegateways.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressroutegateways.go @@ -92,6 +92,7 @@ func (client ExpressRouteGatewaysClient) CreateOrUpdatePreparer(ctx context.Cont "api-version": APIVersion, } + putExpressRouteGatewayParameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressrouteports.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressrouteports.go index a28ed7521a19..d77c533a2ee9 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressrouteports.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/expressrouteports.go @@ -84,6 +84,7 @@ func (client ExpressRoutePortsClient) CreateOrUpdatePreparer(ctx context.Context "api-version": APIVersion, } + parameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/interfacetapconfigurations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/interfacetapconfigurations.go index 294b33855b95..d969b4b0c63b 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/interfacetapconfigurations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/interfacetapconfigurations.go @@ -122,6 +122,7 @@ func (client InterfaceTapConfigurationsClient) CreateOrUpdatePreparer(ctx contex "api-version": APIVersion, } + tapConfigurationParameters.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/models.go index 57e0bfd75296..4abe3c5f25ad 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/models.go @@ -1996,9 +1996,9 @@ type ApplicationGateway struct { Identity *ManagedServiceIdentity `json:"identity,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -2024,12 +2024,6 @@ func (ag ApplicationGateway) MarshalJSON() ([]byte, error) { if ag.ID != nil { objectMap["id"] = ag.ID } - if ag.Name != nil { - objectMap["name"] = ag.Name - } - if ag.Type != nil { - objectMap["type"] = ag.Type - } if ag.Location != nil { objectMap["location"] = ag.Location } @@ -2253,9 +2247,9 @@ type ApplicationGatewayAvailableSslOptions struct { *ApplicationGatewayAvailableSslOptionsPropertiesFormat `json:"properties,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -2272,12 +2266,6 @@ func (agaso ApplicationGatewayAvailableSslOptions) MarshalJSON() ([]byte, error) if agaso.ID != nil { objectMap["id"] = agaso.ID } - if agaso.Name != nil { - objectMap["name"] = agaso.Name - } - if agaso.Type != nil { - objectMap["type"] = agaso.Type - } if agaso.Location != nil { objectMap["location"] = agaso.Location } @@ -2860,9 +2848,9 @@ type ApplicationGatewayFirewallRuleSet struct { *ApplicationGatewayFirewallRuleSetPropertiesFormat `json:"properties,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -2879,12 +2867,6 @@ func (agfrs ApplicationGatewayFirewallRuleSet) MarshalJSON() ([]byte, error) { if agfrs.ID != nil { objectMap["id"] = agfrs.ID } - if agfrs.Name != nil { - objectMap["name"] = agfrs.Name - } - if agfrs.Type != nil { - objectMap["type"] = agfrs.Type - } if agfrs.Location != nil { objectMap["location"] = agfrs.Location } @@ -3800,7 +3782,7 @@ type ApplicationGatewayPropertiesFormat struct { Sku *ApplicationGatewaySku `json:"sku,omitempty"` // SslPolicy - SSL policy of the application gateway resource. SslPolicy *ApplicationGatewaySslPolicy `json:"sslPolicy,omitempty"` - // OperationalState - Operational state of the application gateway resource. Possible values include: 'Stopped', 'Starting', 'Running', 'Stopping' + // OperationalState - READ-ONLY; Operational state of the application gateway resource. Possible values include: 'Stopped', 'Starting', 'Running', 'Stopping' OperationalState ApplicationGatewayOperationalState `json:"operationalState,omitempty"` // GatewayIPConfigurations - Subnets of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). GatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"gatewayIPConfigurations,omitempty"` @@ -4115,7 +4097,7 @@ type ApplicationGatewayRewriteRuleSet struct { *ApplicationGatewayRewriteRuleSetPropertiesFormat `json:"properties,omitempty"` // Name - Name of the rewrite rule set that is unique within an Application Gateway. Name *string `json:"name,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -4130,9 +4112,6 @@ func (agrrs ApplicationGatewayRewriteRuleSet) MarshalJSON() ([]byte, error) { if agrrs.Name != nil { objectMap["name"] = agrrs.Name } - if agrrs.Etag != nil { - objectMap["etag"] = agrrs.Etag - } if agrrs.ID != nil { objectMap["id"] = agrrs.ID } @@ -4195,7 +4174,7 @@ func (agrrs *ApplicationGatewayRewriteRuleSet) UnmarshalJSON(body []byte) error type ApplicationGatewayRewriteRuleSetPropertiesFormat struct { // RewriteRules - Rewrite rules in the rewrite rule set. RewriteRules *[]ApplicationGatewayRewriteRule `json:"rewriteRules,omitempty"` - // ProvisioningState - Provisioning state of the rewrite rule set resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; Provisioning state of the rewrite rule set resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -4209,7 +4188,7 @@ type ApplicationGatewaysBackendHealthFuture struct { // If the operation has not completed it will return an error. func (future *ApplicationGatewaysBackendHealthFuture) Result(client ApplicationGatewaysClient) (agbh ApplicationGatewayBackendHealth, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysBackendHealthFuture", "Result", future.Response(), "Polling failure") return @@ -4238,7 +4217,7 @@ type ApplicationGatewaysCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ApplicationGatewaysCreateOrUpdateFuture) Result(client ApplicationGatewaysClient) (ag ApplicationGateway, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -4267,7 +4246,7 @@ type ApplicationGatewaysDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ApplicationGatewaysDeleteFuture) Result(client ApplicationGatewaysClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -4499,7 +4478,7 @@ type ApplicationGatewaysStartFuture struct { // If the operation has not completed it will return an error. func (future *ApplicationGatewaysStartFuture) Result(client ApplicationGatewaysClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysStartFuture", "Result", future.Response(), "Polling failure") return @@ -4522,7 +4501,7 @@ type ApplicationGatewaysStopFuture struct { // If the operation has not completed it will return an error. func (future *ApplicationGatewaysStopFuture) Result(client ApplicationGatewaysClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysStopFuture", "Result", future.Response(), "Polling failure") return @@ -4545,7 +4524,7 @@ type ApplicationGatewaysUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *ApplicationGatewaysUpdateTagsFuture) Result(client ApplicationGatewaysClient) (ag ApplicationGateway, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationGatewaysUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -4810,13 +4789,13 @@ type ApplicationSecurityGroup struct { autorest.Response `json:"-"` // ApplicationSecurityGroupPropertiesFormat - Properties of the application security group. *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -4830,18 +4809,9 @@ func (asg ApplicationSecurityGroup) MarshalJSON() ([]byte, error) { if asg.ApplicationSecurityGroupPropertiesFormat != nil { objectMap["properties"] = asg.ApplicationSecurityGroupPropertiesFormat } - if asg.Etag != nil { - objectMap["etag"] = asg.Etag - } if asg.ID != nil { objectMap["id"] = asg.ID } - if asg.Name != nil { - objectMap["name"] = asg.Name - } - if asg.Type != nil { - objectMap["type"] = asg.Type - } if asg.Location != nil { objectMap["location"] = asg.Location } @@ -4934,7 +4904,7 @@ type ApplicationSecurityGroupListResult struct { autorest.Response `json:"-"` // Value - A list of application security groups. Value *[]ApplicationSecurityGroup `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -5078,9 +5048,9 @@ func NewApplicationSecurityGroupListResultPage(getNextPage func(context.Context, // ApplicationSecurityGroupPropertiesFormat application security group properties. type ApplicationSecurityGroupPropertiesFormat struct { - // ResourceGUID - The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups. + // ResourceGUID - READ-ONLY; The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups. ResourceGUID *string `json:"resourceGuid,omitempty"` - // ProvisioningState - The provisioning state of the application security group resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the application security group resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -5094,7 +5064,7 @@ type ApplicationSecurityGroupsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ApplicationSecurityGroupsCreateOrUpdateFuture) Result(client ApplicationSecurityGroupsClient) (asg ApplicationSecurityGroup, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -5123,7 +5093,7 @@ type ApplicationSecurityGroupsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ApplicationSecurityGroupsDeleteFuture) Result(client ApplicationSecurityGroupsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -5146,7 +5116,7 @@ type ApplicationSecurityGroupsUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *ApplicationSecurityGroupsUpdateTagsFuture) Result(client ApplicationSecurityGroupsClient) (asg ApplicationSecurityGroup, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ApplicationSecurityGroupsUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -5353,7 +5323,7 @@ type AvailableDelegationsResult struct { autorest.Response `json:"-"` // Value - An array of available delegations. Value *[]AvailableDelegation `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -5558,13 +5528,13 @@ type AzureAsyncOperationResult struct { type AzureFirewall struct { autorest.Response `json:"-"` *AzureFirewallPropertiesFormat `json:"properties,omitempty"` - // Etag - Gets a unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; Gets a unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -5578,18 +5548,9 @@ func (af AzureFirewall) MarshalJSON() ([]byte, error) { if af.AzureFirewallPropertiesFormat != nil { objectMap["properties"] = af.AzureFirewallPropertiesFormat } - if af.Etag != nil { - objectMap["etag"] = af.Etag - } if af.ID != nil { objectMap["id"] = af.ID } - if af.Name != nil { - objectMap["name"] = af.Name - } - if af.Type != nil { - objectMap["type"] = af.Type - } if af.Location != nil { objectMap["location"] = af.Location } @@ -5698,7 +5659,7 @@ type AzureFirewallApplicationRuleCollection struct { *AzureFirewallApplicationRuleCollectionPropertiesFormat `json:"properties,omitempty"` // Name - Gets name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Etag - Gets a unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; Gets a unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -5713,9 +5674,6 @@ func (afarc AzureFirewallApplicationRuleCollection) MarshalJSON() ([]byte, error if afarc.Name != nil { objectMap["name"] = afarc.Name } - if afarc.Etag != nil { - objectMap["etag"] = afarc.Etag - } if afarc.ID != nil { objectMap["id"] = afarc.ID } @@ -5796,13 +5754,13 @@ type AzureFirewallApplicationRuleProtocol struct { // AzureFirewallFqdnTag azure Firewall FQDN Tag Resource type AzureFirewallFqdnTag struct { *AzureFirewallFqdnTagPropertiesFormat `json:"properties,omitempty"` - // Etag - Gets a unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; Gets a unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -5816,18 +5774,9 @@ func (afft AzureFirewallFqdnTag) MarshalJSON() ([]byte, error) { if afft.AzureFirewallFqdnTagPropertiesFormat != nil { objectMap["properties"] = afft.AzureFirewallFqdnTagPropertiesFormat } - if afft.Etag != nil { - objectMap["etag"] = afft.Etag - } if afft.ID != nil { objectMap["id"] = afft.ID } - if afft.Name != nil { - objectMap["name"] = afft.Name - } - if afft.Type != nil { - objectMap["type"] = afft.Type - } if afft.Location != nil { objectMap["location"] = afft.Location } @@ -6064,9 +6013,9 @@ func NewAzureFirewallFqdnTagListResultPage(getNextPage func(context.Context, Azu // AzureFirewallFqdnTagPropertiesFormat azure Firewall FQDN Tag Properties type AzureFirewallFqdnTagPropertiesFormat struct { - // ProvisioningState - The provisioning state of the resource. + // ProvisioningState - READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` - // FqdnTagName - The name of this FQDN Tag. + // FqdnTagName - READ-ONLY; The name of this FQDN Tag. FqdnTagName *string `json:"fqdnTagName,omitempty"` } @@ -6075,7 +6024,7 @@ type AzureFirewallIPConfiguration struct { *AzureFirewallIPConfigurationPropertiesFormat `json:"properties,omitempty"` // Name - Name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -6090,9 +6039,6 @@ func (afic AzureFirewallIPConfiguration) MarshalJSON() ([]byte, error) { if afic.Name != nil { objectMap["name"] = afic.Name } - if afic.Etag != nil { - objectMap["etag"] = afic.Etag - } if afic.ID != nil { objectMap["id"] = afic.ID } @@ -6152,7 +6098,7 @@ func (afic *AzureFirewallIPConfiguration) UnmarshalJSON(body []byte) error { // AzureFirewallIPConfigurationPropertiesFormat properties of IP configuration of an Azure Firewall. type AzureFirewallIPConfigurationPropertiesFormat struct { - // PrivateIPAddress - The Firewall Internal Load Balancer IP to be used as the next hop in User Defined Routes. + // PrivateIPAddress - READ-ONLY; The Firewall Internal Load Balancer IP to be used as the next hop in User Defined Routes. PrivateIPAddress *string `json:"privateIPAddress,omitempty"` // Subnet - Reference of the subnet resource. This resource must be named 'AzureFirewallSubnet'. Subnet *SubResource `json:"subnet,omitempty"` @@ -6339,7 +6285,7 @@ type AzureFirewallNatRuleCollection struct { *AzureFirewallNatRuleCollectionProperties `json:"properties,omitempty"` // Name - Gets name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Etag - Gets a unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; Gets a unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -6354,9 +6300,6 @@ func (afnrc AzureFirewallNatRuleCollection) MarshalJSON() ([]byte, error) { if afnrc.Name != nil { objectMap["name"] = afnrc.Name } - if afnrc.Etag != nil { - objectMap["etag"] = afnrc.Etag - } if afnrc.ID != nil { objectMap["id"] = afnrc.ID } @@ -6447,7 +6390,7 @@ type AzureFirewallNetworkRuleCollection struct { *AzureFirewallNetworkRuleCollectionPropertiesFormat `json:"properties,omitempty"` // Name - Gets name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Etag - Gets a unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; Gets a unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -6462,9 +6405,6 @@ func (afnrc AzureFirewallNetworkRuleCollection) MarshalJSON() ([]byte, error) { if afnrc.Name != nil { objectMap["name"] = afnrc.Name } - if afnrc.Etag != nil { - objectMap["etag"] = afnrc.Etag - } if afnrc.ID != nil { objectMap["id"] = afnrc.ID } @@ -6566,7 +6506,7 @@ type AzureFirewallsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *AzureFirewallsCreateOrUpdateFuture) Result(client AzureFirewallsClient) (af AzureFirewall, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -6595,7 +6535,7 @@ type AzureFirewallsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *AzureFirewallsDeleteFuture) Result(client AzureFirewallsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.AzureFirewallsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -6743,11 +6683,11 @@ func (bap *BackendAddressPool) UnmarshalJSON(body []byte) error { // BackendAddressPoolPropertiesFormat properties of the backend address pool. type BackendAddressPoolPropertiesFormat struct { - // BackendIPConfigurations - Gets collection of references to IP addresses defined in network interfaces. + // BackendIPConfigurations - READ-ONLY; Gets collection of references to IP addresses defined in network interfaces. BackendIPConfigurations *[]InterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` - // LoadBalancingRules - Gets load balancing rules that use this backend address pool. + // LoadBalancingRules - READ-ONLY; Gets load balancing rules that use this backend address pool. LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` - // OutboundRule - Gets outbound rules that use this backend address pool. + // OutboundRule - READ-ONLY; Gets outbound rules that use this backend address pool. OutboundRule *SubResource `json:"outboundRule,omitempty"` // ProvisioningState - Get provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` @@ -6771,21 +6711,21 @@ type BGPCommunity struct { // BgpPeerStatus BGP peer status details type BgpPeerStatus struct { - // LocalAddress - The virtual network gateway's local address + // LocalAddress - READ-ONLY; The virtual network gateway's local address LocalAddress *string `json:"localAddress,omitempty"` - // Neighbor - The remote BGP peer + // Neighbor - READ-ONLY; The remote BGP peer Neighbor *string `json:"neighbor,omitempty"` - // Asn - The autonomous system number of the remote BGP peer + // Asn - READ-ONLY; The autonomous system number of the remote BGP peer Asn *int32 `json:"asn,omitempty"` - // State - The BGP peer state. Possible values include: 'BgpPeerStateUnknown', 'BgpPeerStateStopped', 'BgpPeerStateIdle', 'BgpPeerStateConnecting', 'BgpPeerStateConnected' + // State - READ-ONLY; The BGP peer state. Possible values include: 'BgpPeerStateUnknown', 'BgpPeerStateStopped', 'BgpPeerStateIdle', 'BgpPeerStateConnecting', 'BgpPeerStateConnected' State BgpPeerState `json:"state,omitempty"` - // ConnectedDuration - For how long the peering has been up + // ConnectedDuration - READ-ONLY; For how long the peering has been up ConnectedDuration *string `json:"connectedDuration,omitempty"` - // RoutesReceived - The number of routes learned from this peer + // RoutesReceived - READ-ONLY; The number of routes learned from this peer RoutesReceived *int64 `json:"routesReceived,omitempty"` - // MessagesSent - The number of BGP messages sent + // MessagesSent - READ-ONLY; The number of BGP messages sent MessagesSent *int64 `json:"messagesSent,omitempty"` - // MessagesReceived - The number of BGP messages received + // MessagesReceived - READ-ONLY; The number of BGP messages received MessagesReceived *int64 `json:"messagesReceived,omitempty"` } @@ -6801,9 +6741,9 @@ type BgpServiceCommunity struct { *BgpServiceCommunityPropertiesFormat `json:"properties,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -6820,12 +6760,6 @@ func (bsc BgpServiceCommunity) MarshalJSON() ([]byte, error) { if bsc.ID != nil { objectMap["id"] = bsc.ID } - if bsc.Name != nil { - objectMap["name"] = bsc.Name - } - if bsc.Type != nil { - objectMap["type"] = bsc.Type - } if bsc.Location != nil { objectMap["location"] = bsc.Location } @@ -7114,7 +7048,7 @@ type ConfigurationDiagnosticProfile struct { // ConfigurationDiagnosticResponse results of network configuration diagnostic on the target resource. type ConfigurationDiagnosticResponse struct { autorest.Response `json:"-"` - // Results - List of network configuration diagnostic results. + // Results - READ-ONLY; List of network configuration diagnostic results. Results *[]ConfigurationDiagnosticResult `json:"results,omitempty"` } @@ -7230,12 +7164,12 @@ type ConnectionMonitorQueryResult struct { // ConnectionMonitorResult information about the connection monitor. type ConnectionMonitorResult struct { autorest.Response `json:"-"` - // Name - Name of the connection monitor. + // Name - READ-ONLY; Name of the connection monitor. Name *string `json:"name,omitempty"` - // ID - ID of the connection monitor. + // ID - READ-ONLY; ID of the connection monitor. ID *string `json:"id,omitempty"` Etag *string `json:"etag,omitempty"` - // Type - Connection monitor type. + // Type - READ-ONLY; Connection monitor type. Type *string `json:"type,omitempty"` // Location - Connection monitor location. Location *string `json:"location,omitempty"` @@ -7247,18 +7181,9 @@ type ConnectionMonitorResult struct { // MarshalJSON is the custom marshaler for ConnectionMonitorResult. func (cmr ConnectionMonitorResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if cmr.Name != nil { - objectMap["name"] = cmr.Name - } - if cmr.ID != nil { - objectMap["id"] = cmr.ID - } if cmr.Etag != nil { objectMap["etag"] = cmr.Etag } - if cmr.Type != nil { - objectMap["type"] = cmr.Type - } if cmr.Location != nil { objectMap["location"] = cmr.Location } @@ -7375,7 +7300,7 @@ type ConnectionMonitorsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ConnectionMonitorsCreateOrUpdateFuture) Result(client ConnectionMonitorsClient) (cmr ConnectionMonitorResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -7404,7 +7329,7 @@ type ConnectionMonitorsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ConnectionMonitorsDeleteFuture) Result(client ConnectionMonitorsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -7435,7 +7360,7 @@ type ConnectionMonitorsQueryFuture struct { // If the operation has not completed it will return an error. func (future *ConnectionMonitorsQueryFuture) Result(client ConnectionMonitorsClient) (cmqr ConnectionMonitorQueryResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsQueryFuture", "Result", future.Response(), "Polling failure") return @@ -7464,7 +7389,7 @@ type ConnectionMonitorsStartFuture struct { // If the operation has not completed it will return an error. func (future *ConnectionMonitorsStartFuture) Result(client ConnectionMonitorsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsStartFuture", "Result", future.Response(), "Polling failure") return @@ -7487,7 +7412,7 @@ type ConnectionMonitorsStopFuture struct { // If the operation has not completed it will return an error. func (future *ConnectionMonitorsStopFuture) Result(client ConnectionMonitorsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ConnectionMonitorsStopFuture", "Result", future.Response(), "Polling failure") return @@ -7536,7 +7461,7 @@ type ConnectionStateSnapshot struct { ProbesSent *int32 `json:"probesSent,omitempty"` // ProbesFailed - The number of failed probes. ProbesFailed *int32 `json:"probesFailed,omitempty"` - // Hops - List of hops between the source and the destination. + // Hops - READ-ONLY; List of hops between the source and the destination. Hops *[]ConnectivityHop `json:"hops,omitempty"` } @@ -7552,48 +7477,48 @@ type ConnectivityDestination struct { // ConnectivityHop information about a hop between the source and the destination. type ConnectivityHop struct { - // Type - The type of the hop. + // Type - READ-ONLY; The type of the hop. Type *string `json:"type,omitempty"` - // ID - The ID of the hop. + // ID - READ-ONLY; The ID of the hop. ID *string `json:"id,omitempty"` - // Address - The IP address of the hop. + // Address - READ-ONLY; The IP address of the hop. Address *string `json:"address,omitempty"` - // ResourceID - The ID of the resource corresponding to this hop. + // ResourceID - READ-ONLY; The ID of the resource corresponding to this hop. ResourceID *string `json:"resourceId,omitempty"` - // NextHopIds - List of next hop identifiers. + // NextHopIds - READ-ONLY; List of next hop identifiers. NextHopIds *[]string `json:"nextHopIds,omitempty"` - // Issues - List of issues. + // Issues - READ-ONLY; List of issues. Issues *[]ConnectivityIssue `json:"issues,omitempty"` } // ConnectivityInformation information on the connectivity status. type ConnectivityInformation struct { autorest.Response `json:"-"` - // Hops - List of hops between the source and the destination. + // Hops - READ-ONLY; List of hops between the source and the destination. Hops *[]ConnectivityHop `json:"hops,omitempty"` - // ConnectionStatus - The connection status. Possible values include: 'ConnectionStatusUnknown', 'ConnectionStatusConnected', 'ConnectionStatusDisconnected', 'ConnectionStatusDegraded' + // ConnectionStatus - READ-ONLY; The connection status. Possible values include: 'ConnectionStatusUnknown', 'ConnectionStatusConnected', 'ConnectionStatusDisconnected', 'ConnectionStatusDegraded' ConnectionStatus ConnectionStatus `json:"connectionStatus,omitempty"` - // AvgLatencyInMs - Average latency in milliseconds. + // AvgLatencyInMs - READ-ONLY; Average latency in milliseconds. AvgLatencyInMs *int32 `json:"avgLatencyInMs,omitempty"` - // MinLatencyInMs - Minimum latency in milliseconds. + // MinLatencyInMs - READ-ONLY; Minimum latency in milliseconds. MinLatencyInMs *int32 `json:"minLatencyInMs,omitempty"` - // MaxLatencyInMs - Maximum latency in milliseconds. + // MaxLatencyInMs - READ-ONLY; Maximum latency in milliseconds. MaxLatencyInMs *int32 `json:"maxLatencyInMs,omitempty"` - // ProbesSent - Total number of probes sent. + // ProbesSent - READ-ONLY; Total number of probes sent. ProbesSent *int32 `json:"probesSent,omitempty"` - // ProbesFailed - Number of failed probes. + // ProbesFailed - READ-ONLY; Number of failed probes. ProbesFailed *int32 `json:"probesFailed,omitempty"` } // ConnectivityIssue information about an issue encountered in the process of checking for connectivity. type ConnectivityIssue struct { - // Origin - The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' + // Origin - READ-ONLY; The origin of the issue. Possible values include: 'OriginLocal', 'OriginInbound', 'OriginOutbound' Origin Origin `json:"origin,omitempty"` - // Severity - The severity of the issue. Possible values include: 'SeverityError', 'SeverityWarning' + // Severity - READ-ONLY; The severity of the issue. Possible values include: 'SeverityError', 'SeverityWarning' Severity Severity `json:"severity,omitempty"` - // Type - The type of issue. Possible values include: 'IssueTypeUnknown', 'IssueTypeAgentStopped', 'IssueTypeGuestFirewall', 'IssueTypeDNSResolution', 'IssueTypeSocketBind', 'IssueTypeNetworkSecurityRule', 'IssueTypeUserDefinedRoute', 'IssueTypePortThrottled', 'IssueTypePlatform' + // Type - READ-ONLY; The type of issue. Possible values include: 'IssueTypeUnknown', 'IssueTypeAgentStopped', 'IssueTypeGuestFirewall', 'IssueTypeDNSResolution', 'IssueTypeSocketBind', 'IssueTypeNetworkSecurityRule', 'IssueTypeUserDefinedRoute', 'IssueTypePortThrottled', 'IssueTypePlatform' Type IssueType `json:"type,omitempty"` - // Context - Provides additional context on the issue. + // Context - READ-ONLY; Provides additional context on the issue. Context *[]map[string]*string `json:"context,omitempty"` } @@ -7626,7 +7551,7 @@ type ContainerNetworkInterface struct { *ContainerNetworkInterfacePropertiesFormat `json:"properties,omitempty"` // Name - The name of the resource. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Type - Sub Resource type. + // Type - READ-ONLY; Sub Resource type. Type *string `json:"type,omitempty"` // Etag - A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` @@ -7643,9 +7568,6 @@ func (cni ContainerNetworkInterface) MarshalJSON() ([]byte, error) { if cni.Name != nil { objectMap["name"] = cni.Name } - if cni.Type != nil { - objectMap["type"] = cni.Type - } if cni.Etag != nil { objectMap["etag"] = cni.Etag } @@ -7721,7 +7643,7 @@ type ContainerNetworkInterfaceConfiguration struct { *ContainerNetworkInterfaceConfigurationPropertiesFormat `json:"properties,omitempty"` // Name - The name of the resource. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Type - Sub Resource type. + // Type - READ-ONLY; Sub Resource type. Type *string `json:"type,omitempty"` // Etag - A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` @@ -7738,9 +7660,6 @@ func (cnic ContainerNetworkInterfaceConfiguration) MarshalJSON() ([]byte, error) if cnic.Name != nil { objectMap["name"] = cnic.Name } - if cnic.Type != nil { - objectMap["type"] = cnic.Type - } if cnic.Etag != nil { objectMap["etag"] = cnic.Etag } @@ -7817,7 +7736,7 @@ type ContainerNetworkInterfaceConfigurationPropertiesFormat struct { IPConfigurations *[]IPConfigurationProfile `json:"ipConfigurations,omitempty"` // ContainerNetworkInterfaces - A list of container network interfaces created from this container network interface configuration. ContainerNetworkInterfaces *[]SubResource `json:"containerNetworkInterfaces,omitempty"` - // ProvisioningState - The provisioning state of the resource. + // ProvisioningState - READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -7827,7 +7746,7 @@ type ContainerNetworkInterfaceIPConfiguration struct { *ContainerNetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` // Name - The name of the resource. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Type - Sub Resource type. + // Type - READ-ONLY; Sub Resource type. Type *string `json:"type,omitempty"` // Etag - A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` @@ -7842,9 +7761,6 @@ func (cniic ContainerNetworkInterfaceIPConfiguration) MarshalJSON() ([]byte, err if cniic.Name != nil { objectMap["name"] = cniic.Name } - if cniic.Type != nil { - objectMap["type"] = cniic.Type - } if cniic.Etag != nil { objectMap["etag"] = cniic.Etag } @@ -7905,7 +7821,7 @@ func (cniic *ContainerNetworkInterfaceIPConfiguration) UnmarshalJSON(body []byte // ContainerNetworkInterfaceIPConfigurationPropertiesFormat properties of the container network interface // IP configuration. type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { - // ProvisioningState - The provisioning state of the resource. + // ProvisioningState - READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -7917,7 +7833,7 @@ type ContainerNetworkInterfacePropertiesFormat struct { Container *Container `json:"container,omitempty"` // IPConfigurations - Reference to the ip configuration on this container nic. IPConfigurations *[]ContainerNetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` - // ProvisioningState - The provisioning state of the resource. + // ProvisioningState - READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -7931,7 +7847,7 @@ type DdosCustomPoliciesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *DdosCustomPoliciesCreateOrUpdateFuture) Result(client DdosCustomPoliciesClient) (dcp DdosCustomPolicy, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -7960,7 +7876,7 @@ type DdosCustomPoliciesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *DdosCustomPoliciesDeleteFuture) Result(client DdosCustomPoliciesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -7983,7 +7899,7 @@ type DdosCustomPoliciesUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *DdosCustomPoliciesUpdateTagsFuture) Result(client DdosCustomPoliciesClient) (dcp DdosCustomPolicy, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosCustomPoliciesUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -8007,13 +7923,13 @@ type DdosCustomPolicy struct { autorest.Response `json:"-"` // DdosCustomPolicyPropertiesFormat - Properties of the DDoS custom policy. *DdosCustomPolicyPropertiesFormat `json:"properties,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -8027,18 +7943,9 @@ func (dcp DdosCustomPolicy) MarshalJSON() ([]byte, error) { if dcp.DdosCustomPolicyPropertiesFormat != nil { objectMap["properties"] = dcp.DdosCustomPolicyPropertiesFormat } - if dcp.Etag != nil { - objectMap["etag"] = dcp.Etag - } if dcp.ID != nil { objectMap["id"] = dcp.ID } - if dcp.Name != nil { - objectMap["name"] = dcp.Name - } - if dcp.Type != nil { - objectMap["type"] = dcp.Type - } if dcp.Location != nil { objectMap["location"] = dcp.Location } @@ -8128,11 +8035,11 @@ func (dcp *DdosCustomPolicy) UnmarshalJSON(body []byte) error { // DdosCustomPolicyPropertiesFormat dDoS custom policy properties. type DdosCustomPolicyPropertiesFormat struct { - // ResourceGUID - The resource GUID property of the DDoS custom policy resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups. + // ResourceGUID - READ-ONLY; The resource GUID property of the DDoS custom policy resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups. ResourceGUID *string `json:"resourceGuid,omitempty"` - // ProvisioningState - The provisioning state of the DDoS custom policy resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the DDoS custom policy resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` - // PublicIPAddresses - The list of public IPs associated with the DDoS custom policy resource. This list is read-only. + // PublicIPAddresses - READ-ONLY; The list of public IPs associated with the DDoS custom policy resource. This list is read-only. PublicIPAddresses *[]SubResource `json:"publicIPAddresses,omitempty"` // ProtocolCustomSettings - The protocol-specific DDoS policy customization parameters. ProtocolCustomSettings *[]ProtocolCustomSettingsFormat `json:"protocolCustomSettings,omitempty"` @@ -8141,11 +8048,11 @@ type DdosCustomPolicyPropertiesFormat struct { // DdosProtectionPlan a DDoS protection plan in a resource group. type DdosProtectionPlan struct { autorest.Response `json:"-"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -8153,22 +8060,13 @@ type DdosProtectionPlan struct { Tags map[string]*string `json:"tags"` // DdosProtectionPlanPropertiesFormat - Properties of the DDoS protection plan. *DdosProtectionPlanPropertiesFormat `json:"properties,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` } // MarshalJSON is the custom marshaler for DdosProtectionPlan. func (dpp DdosProtectionPlan) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if dpp.ID != nil { - objectMap["id"] = dpp.ID - } - if dpp.Name != nil { - objectMap["name"] = dpp.Name - } - if dpp.Type != nil { - objectMap["type"] = dpp.Type - } if dpp.Location != nil { objectMap["location"] = dpp.Location } @@ -8178,9 +8076,6 @@ func (dpp DdosProtectionPlan) MarshalJSON() ([]byte, error) { if dpp.DdosProtectionPlanPropertiesFormat != nil { objectMap["properties"] = dpp.DdosProtectionPlanPropertiesFormat } - if dpp.Etag != nil { - objectMap["etag"] = dpp.Etag - } return json.Marshal(objectMap) } @@ -8267,7 +8162,7 @@ type DdosProtectionPlanListResult struct { autorest.Response `json:"-"` // Value - A list of DDoS protection plans. Value *[]DdosProtectionPlan `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -8410,11 +8305,11 @@ func NewDdosProtectionPlanListResultPage(getNextPage func(context.Context, DdosP // DdosProtectionPlanPropertiesFormat dDoS protection plan properties. type DdosProtectionPlanPropertiesFormat struct { - // ResourceGUID - The resource GUID property of the DDoS protection plan resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups. + // ResourceGUID - READ-ONLY; The resource GUID property of the DDoS protection plan resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups. ResourceGUID *string `json:"resourceGuid,omitempty"` - // ProvisioningState - The provisioning state of the DDoS protection plan resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the DDoS protection plan resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` - // VirtualNetworks - The list of virtual networks associated with the DDoS protection plan resource. This list is read-only. + // VirtualNetworks - READ-ONLY; The list of virtual networks associated with the DDoS protection plan resource. This list is read-only. VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` } @@ -8428,7 +8323,7 @@ type DdosProtectionPlansCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *DdosProtectionPlansCreateOrUpdateFuture) Result(client DdosProtectionPlansClient) (dpp DdosProtectionPlan, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -8457,7 +8352,7 @@ type DdosProtectionPlansDeleteFuture struct { // If the operation has not completed it will return an error. func (future *DdosProtectionPlansDeleteFuture) Result(client DdosProtectionPlansClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -8470,6 +8365,35 @@ func (future *DdosProtectionPlansDeleteFuture) Result(client DdosProtectionPlans return } +// DdosProtectionPlansUpdateTagsFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DdosProtectionPlansUpdateTagsFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *DdosProtectionPlansUpdateTagsFuture) Result(client DdosProtectionPlansClient) (dpp DdosProtectionPlan, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansUpdateTagsFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("network.DdosProtectionPlansUpdateTagsFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if dpp.Response.Response, err = future.GetResult(sender); err == nil && dpp.Response.Response.StatusCode != http.StatusNoContent { + dpp, err = client.UpdateTagsResponder(dpp.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "network.DdosProtectionPlansUpdateTagsFuture", "Result", dpp.Response.Response, "Failure responding to request") + } + } + return +} + // DdosSettings contains the DDoS protection settings of the public IP. type DdosSettings struct { // DdosCustomPolicy - The DDoS custom policy associated with the public IP. @@ -8637,7 +8561,7 @@ type EffectiveNetworkSecurityGroupListResult struct { autorest.Response `json:"-"` // Value - A list of effective network security groups. Value *[]EffectiveNetworkSecurityGroup `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -8696,7 +8620,7 @@ type EffectiveRouteListResult struct { autorest.Response `json:"-"` // Value - A list of effective routes. Value *[]EffectiveRoute `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -8708,9 +8632,9 @@ type EndpointService struct { // EndpointServiceResult endpoint service. type EndpointServiceResult struct { - // Name - Name of the endpoint service. + // Name - READ-ONLY; Name of the endpoint service. Name *string `json:"name,omitempty"` - // Type - Type of the endpoint service. + // Type - READ-ONLY; Type of the endpoint service. Type *string `json:"type,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -8891,7 +8815,7 @@ type EvaluatedNetworkSecurityGroup struct { // AppliedTo - Resource ID of nic or subnet to which network security group is applied. AppliedTo *string `json:"appliedTo,omitempty"` MatchedRule *MatchedRule `json:"matchedRule,omitempty"` - // RulesEvaluationResult - List of network security rules evaluation results. + // RulesEvaluationResult - READ-ONLY; List of network security rules evaluation results. RulesEvaluationResult *[]SecurityRulesEvaluationResult `json:"rulesEvaluationResult,omitempty"` } @@ -8901,13 +8825,13 @@ type ExpressRouteCircuit struct { // Sku - The SKU. Sku *ExpressRouteCircuitSku `json:"sku,omitempty"` *ExpressRouteCircuitPropertiesFormat `json:"properties,omitempty"` - // Etag - Gets a unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; Gets a unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -8924,18 +8848,9 @@ func (erc ExpressRouteCircuit) MarshalJSON() ([]byte, error) { if erc.ExpressRouteCircuitPropertiesFormat != nil { objectMap["properties"] = erc.ExpressRouteCircuitPropertiesFormat } - if erc.Etag != nil { - objectMap["etag"] = erc.Etag - } if erc.ID != nil { objectMap["id"] = erc.ID } - if erc.Name != nil { - objectMap["name"] = erc.Name - } - if erc.Type != nil { - objectMap["type"] = erc.Type - } if erc.Location != nil { objectMap["location"] = erc.Location } @@ -9050,7 +8965,7 @@ type ExpressRouteCircuitAuthorization struct { *AuthorizationPropertiesFormat `json:"properties,omitempty"` // Name - Gets name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -9065,9 +8980,6 @@ func (erca ExpressRouteCircuitAuthorization) MarshalJSON() ([]byte, error) { if erca.Name != nil { objectMap["name"] = erca.Name } - if erca.Etag != nil { - objectMap["etag"] = erca.Etag - } if erca.ID != nil { objectMap["id"] = erca.ID } @@ -9135,7 +9047,7 @@ type ExpressRouteCircuitAuthorizationsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCircuitAuthorizationsCreateOrUpdateFuture) Result(client ExpressRouteCircuitAuthorizationsClient) (erca ExpressRouteCircuitAuthorization, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -9164,7 +9076,7 @@ type ExpressRouteCircuitAuthorizationsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCircuitAuthorizationsDeleteFuture) Result(client ExpressRouteCircuitAuthorizationsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitAuthorizationsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -9184,7 +9096,7 @@ type ExpressRouteCircuitConnection struct { *ExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` // Name - Gets name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -9199,9 +9111,6 @@ func (ercc ExpressRouteCircuitConnection) MarshalJSON() ([]byte, error) { if ercc.Name != nil { objectMap["name"] = ercc.Name } - if ercc.Etag != nil { - objectMap["etag"] = ercc.Etag - } if ercc.ID != nil { objectMap["id"] = ercc.ID } @@ -9417,9 +9326,9 @@ type ExpressRouteCircuitConnectionPropertiesFormat struct { AddressPrefix *string `json:"addressPrefix,omitempty"` // AuthorizationKey - The authorization key. AuthorizationKey *string `json:"authorizationKey,omitempty"` - // CircuitConnectionStatus - Express Route Circuit Connection State. Possible values are: 'Connected' and 'Disconnected'. Possible values include: 'Connected', 'Connecting', 'Disconnected' + // CircuitConnectionStatus - READ-ONLY; Express Route Circuit Connection State. Possible values are: 'Connected' and 'Disconnected'. Possible values include: 'Connected', 'Connecting', 'Disconnected' CircuitConnectionStatus CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` - // ProvisioningState - Provisioning state of the circuit connection resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; Provisioning state of the circuit connection resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -9433,7 +9342,7 @@ type ExpressRouteCircuitConnectionsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCircuitConnectionsCreateOrUpdateFuture) Result(client ExpressRouteCircuitConnectionsClient) (ercc ExpressRouteCircuitConnection, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -9462,7 +9371,7 @@ type ExpressRouteCircuitConnectionsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCircuitConnectionsDeleteFuture) Result(client ExpressRouteCircuitConnectionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitConnectionsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -9628,7 +9537,7 @@ type ExpressRouteCircuitPeering struct { *ExpressRouteCircuitPeeringPropertiesFormat `json:"properties,omitempty"` // Name - Gets name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -9643,9 +9552,6 @@ func (ercp ExpressRouteCircuitPeering) MarshalJSON() ([]byte, error) { if ercp.Name != nil { objectMap["name"] = ercp.Name } - if ercp.Etag != nil { - objectMap["etag"] = ercp.Etag - } if ercp.ID != nil { objectMap["id"] = ercp.ID } @@ -9913,7 +9819,7 @@ type ExpressRouteCircuitPeeringPropertiesFormat struct { ExpressRouteConnection *ExpressRouteConnectionID `json:"expressRouteConnection,omitempty"` // Connections - The list of circuit connections associated with Azure Private Peering for this circuit. Connections *[]ExpressRouteCircuitConnection `json:"connections,omitempty"` - // PeeredConnections - The list of peered circuit connections associated with Azure Private Peering for this circuit. + // PeeredConnections - READ-ONLY; The list of peered circuit connections associated with Azure Private Peering for this circuit. PeeredConnections *[]PeerExpressRouteCircuitConnection `json:"peeredConnections,omitempty"` } @@ -9927,7 +9833,7 @@ type ExpressRouteCircuitPeeringsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCircuitPeeringsCreateOrUpdateFuture) Result(client ExpressRouteCircuitPeeringsClient) (ercp ExpressRouteCircuitPeering, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -9956,7 +9862,7 @@ type ExpressRouteCircuitPeeringsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCircuitPeeringsDeleteFuture) Result(client ExpressRouteCircuitPeeringsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitPeeringsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -9991,7 +9897,7 @@ type ExpressRouteCircuitPropertiesFormat struct { ExpressRoutePort *SubResource `json:"expressRoutePort,omitempty"` // BandwidthInGbps - The bandwidth of the circuit when the circuit is provisioned on an ExpressRoutePort resource. BandwidthInGbps *float64 `json:"bandwidthInGbps,omitempty"` - // Stag - The identifier of the circuit traffic. Outer tag for QinQ encapsulation. + // Stag - READ-ONLY; The identifier of the circuit traffic. Outer tag for QinQ encapsulation. Stag *int32 `json:"stag,omitempty"` // ProvisioningState - Gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` @@ -10057,7 +9963,7 @@ type ExpressRouteCircuitsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCircuitsCreateOrUpdateFuture) Result(client ExpressRouteCircuitsClient) (erc ExpressRouteCircuit, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -10086,7 +9992,7 @@ type ExpressRouteCircuitsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCircuitsDeleteFuture) Result(client ExpressRouteCircuitsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -10130,7 +10036,7 @@ type ExpressRouteCircuitsListArpTableFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCircuitsListArpTableFuture) Result(client ExpressRouteCircuitsClient) (ercatlr ExpressRouteCircuitsArpTableListResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsListArpTableFuture", "Result", future.Response(), "Polling failure") return @@ -10159,7 +10065,7 @@ type ExpressRouteCircuitsListRoutesTableFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCircuitsListRoutesTableFuture) Result(client ExpressRouteCircuitsClient) (ercrtlr ExpressRouteCircuitsRoutesTableListResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsListRoutesTableFuture", "Result", future.Response(), "Polling failure") return @@ -10188,7 +10094,7 @@ type ExpressRouteCircuitsListRoutesTableSummaryFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCircuitsListRoutesTableSummaryFuture) Result(client ExpressRouteCircuitsClient) (ercrtslr ExpressRouteCircuitsRoutesTableSummaryListResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsListRoutesTableSummaryFuture", "Result", future.Response(), "Polling failure") return @@ -10250,7 +10156,7 @@ type ExpressRouteCircuitsUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCircuitsUpdateTagsFuture) Result(client ExpressRouteCircuitsClient) (erc ExpressRouteCircuit, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCircuitsUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -10338,7 +10244,7 @@ func (erc *ExpressRouteConnection) UnmarshalJSON(body []byte) error { // ExpressRouteConnectionID the ID of the ExpressRouteConnection. type ExpressRouteConnectionID struct { - // ID - The ID of the ExpressRouteConnection. + // ID - READ-ONLY; The ID of the ExpressRouteConnection. ID *string `json:"id,omitempty"` } @@ -10351,7 +10257,7 @@ type ExpressRouteConnectionList struct { // ExpressRouteConnectionProperties properties of the ExpressRouteConnection subresource. type ExpressRouteConnectionProperties struct { - // ProvisioningState - The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + // ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // ExpressRouteCircuitPeering - The ExpressRoute circuit peering. ExpressRouteCircuitPeering *ExpressRouteCircuitPeeringID `json:"expressRouteCircuitPeering,omitempty"` @@ -10371,7 +10277,7 @@ type ExpressRouteConnectionsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteConnectionsCreateOrUpdateFuture) Result(client ExpressRouteConnectionsClient) (erc ExpressRouteConnection, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -10400,7 +10306,7 @@ type ExpressRouteConnectionsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteConnectionsDeleteFuture) Result(client ExpressRouteConnectionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteConnectionsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -10417,13 +10323,13 @@ func (future *ExpressRouteConnectionsDeleteFuture) Result(client ExpressRouteCon type ExpressRouteCrossConnection struct { autorest.Response `json:"-"` *ExpressRouteCrossConnectionProperties `json:"properties,omitempty"` - // Etag - Gets a unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; Gets a unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -10437,18 +10343,9 @@ func (ercc ExpressRouteCrossConnection) MarshalJSON() ([]byte, error) { if ercc.ExpressRouteCrossConnectionProperties != nil { objectMap["properties"] = ercc.ExpressRouteCrossConnectionProperties } - if ercc.Etag != nil { - objectMap["etag"] = ercc.Etag - } if ercc.ID != nil { objectMap["id"] = ercc.ID } - if ercc.Name != nil { - objectMap["name"] = ercc.Name - } - if ercc.Type != nil { - objectMap["type"] = ercc.Type - } if ercc.Location != nil { objectMap["location"] = ercc.Location } @@ -10541,7 +10438,7 @@ type ExpressRouteCrossConnectionListResult struct { autorest.Response `json:"-"` // Value - A list of ExpressRouteCrossConnection resources. Value *[]ExpressRouteCrossConnection `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -10689,7 +10586,7 @@ type ExpressRouteCrossConnectionPeering struct { *ExpressRouteCrossConnectionPeeringProperties `json:"properties,omitempty"` // Name - Gets name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -10704,9 +10601,6 @@ func (erccp ExpressRouteCrossConnectionPeering) MarshalJSON() ([]byte, error) { if erccp.Name != nil { objectMap["name"] = erccp.Name } - if erccp.Etag != nil { - objectMap["etag"] = erccp.Etag - } if erccp.ID != nil { objectMap["id"] = erccp.ID } @@ -10770,7 +10664,7 @@ type ExpressRouteCrossConnectionPeeringList struct { autorest.Response `json:"-"` // Value - The peerings in an express route cross connection. Value *[]ExpressRouteCrossConnectionPeering `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -10918,7 +10812,7 @@ type ExpressRouteCrossConnectionPeeringProperties struct { PeeringType ExpressRoutePeeringType `json:"peeringType,omitempty"` // State - The peering state. Possible values include: 'ExpressRoutePeeringStateDisabled', 'ExpressRoutePeeringStateEnabled' State ExpressRoutePeeringState `json:"state,omitempty"` - // AzureASN - The Azure ASN. + // AzureASN - READ-ONLY; The Azure ASN. AzureASN *int32 `json:"azureASN,omitempty"` // PeerASN - The peer ASN. PeerASN *int64 `json:"peerASN,omitempty"` @@ -10926,9 +10820,9 @@ type ExpressRouteCrossConnectionPeeringProperties struct { PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` // SecondaryPeerAddressPrefix - The secondary address prefix. SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` - // PrimaryAzurePort - The primary port. + // PrimaryAzurePort - READ-ONLY; The primary port. PrimaryAzurePort *string `json:"primaryAzurePort,omitempty"` - // SecondaryAzurePort - The secondary port. + // SecondaryAzurePort - READ-ONLY; The secondary port. SecondaryAzurePort *string `json:"secondaryAzurePort,omitempty"` // SharedKey - The shared key. SharedKey *string `json:"sharedKey,omitempty"` @@ -10936,7 +10830,7 @@ type ExpressRouteCrossConnectionPeeringProperties struct { VlanID *int32 `json:"vlanId,omitempty"` // MicrosoftPeeringConfig - The Microsoft peering configuration. MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` - // ProvisioningState - Gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; Gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` // GatewayManagerEtag - The GatewayManager Etag. GatewayManagerEtag *string `json:"gatewayManagerEtag,omitempty"` @@ -10956,7 +10850,7 @@ type ExpressRouteCrossConnectionPeeringsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCrossConnectionPeeringsCreateOrUpdateFuture) Result(client ExpressRouteCrossConnectionPeeringsClient) (erccp ExpressRouteCrossConnectionPeering, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -10985,7 +10879,7 @@ type ExpressRouteCrossConnectionPeeringsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCrossConnectionPeeringsDeleteFuture) Result(client ExpressRouteCrossConnectionPeeringsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionPeeringsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -11000,11 +10894,11 @@ func (future *ExpressRouteCrossConnectionPeeringsDeleteFuture) Result(client Exp // ExpressRouteCrossConnectionProperties properties of ExpressRouteCrossConnection. type ExpressRouteCrossConnectionProperties struct { - // PrimaryAzurePort - The name of the primary port. + // PrimaryAzurePort - READ-ONLY; The name of the primary port. PrimaryAzurePort *string `json:"primaryAzurePort,omitempty"` - // SecondaryAzurePort - The name of the secondary port. + // SecondaryAzurePort - READ-ONLY; The name of the secondary port. SecondaryAzurePort *string `json:"secondaryAzurePort,omitempty"` - // STag - The identifier of the circuit traffic. + // STag - READ-ONLY; The identifier of the circuit traffic. STag *int32 `json:"sTag,omitempty"` // PeeringLocation - The peering location of the ExpressRoute circuit. PeeringLocation *string `json:"peeringLocation,omitempty"` @@ -11016,7 +10910,7 @@ type ExpressRouteCrossConnectionProperties struct { ServiceProviderProvisioningState ServiceProviderProvisioningState `json:"serviceProviderProvisioningState,omitempty"` // ServiceProviderNotes - Additional read only notes set by the connectivity provider. ServiceProviderNotes *string `json:"serviceProviderNotes,omitempty"` - // ProvisioningState - Gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; Gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` // Peerings - The list of peerings. Peerings *[]ExpressRouteCrossConnectionPeering `json:"peerings,omitempty"` @@ -11044,7 +10938,7 @@ type ExpressRouteCrossConnectionsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCrossConnectionsCreateOrUpdateFuture) Result(client ExpressRouteCrossConnectionsClient) (ercc ExpressRouteCrossConnection, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -11073,7 +10967,7 @@ type ExpressRouteCrossConnectionsListArpTableFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCrossConnectionsListArpTableFuture) Result(client ExpressRouteCrossConnectionsClient) (ercatlr ExpressRouteCircuitsArpTableListResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsListArpTableFuture", "Result", future.Response(), "Polling failure") return @@ -11102,7 +10996,7 @@ type ExpressRouteCrossConnectionsListRoutesTableFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCrossConnectionsListRoutesTableFuture) Result(client ExpressRouteCrossConnectionsClient) (ercrtlr ExpressRouteCircuitsRoutesTableListResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsListRoutesTableFuture", "Result", future.Response(), "Polling failure") return @@ -11131,7 +11025,7 @@ type ExpressRouteCrossConnectionsListRoutesTableSummaryFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCrossConnectionsListRoutesTableSummaryFuture) Result(client ExpressRouteCrossConnectionsClient) (erccrtslr ExpressRouteCrossConnectionsRoutesTableSummaryListResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsListRoutesTableSummaryFuture", "Result", future.Response(), "Polling failure") return @@ -11156,7 +11050,7 @@ type ExpressRouteCrossConnectionsRoutesTableSummaryListResult struct { autorest.Response `json:"-"` // Value - A list of the routes table. Value *[]ExpressRouteCrossConnectionRoutesTableSummary `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -11170,7 +11064,7 @@ type ExpressRouteCrossConnectionsUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteCrossConnectionsUpdateTagsFuture) Result(client ExpressRouteCrossConnectionsClient) (ercc ExpressRouteCrossConnection, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteCrossConnectionsUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -11193,13 +11087,13 @@ func (future *ExpressRouteCrossConnectionsUpdateTagsFuture) Result(client Expres type ExpressRouteGateway struct { autorest.Response `json:"-"` *ExpressRouteGatewayProperties `json:"properties,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -11213,18 +11107,9 @@ func (erg ExpressRouteGateway) MarshalJSON() ([]byte, error) { if erg.ExpressRouteGatewayProperties != nil { objectMap["properties"] = erg.ExpressRouteGatewayProperties } - if erg.Etag != nil { - objectMap["etag"] = erg.Etag - } if erg.ID != nil { objectMap["id"] = erg.ID } - if erg.Name != nil { - objectMap["name"] = erg.Name - } - if erg.Type != nil { - objectMap["type"] = erg.Type - } if erg.Location != nil { objectMap["location"] = erg.Location } @@ -11323,9 +11208,9 @@ type ExpressRouteGatewayList struct { type ExpressRouteGatewayProperties struct { // AutoScaleConfiguration - Configuration for auto scaling. AutoScaleConfiguration *ExpressRouteGatewayPropertiesAutoScaleConfiguration `json:"autoScaleConfiguration,omitempty"` - // ExpressRouteConnections - List of ExpressRoute connections to the ExpressRoute gateway. + // ExpressRouteConnections - READ-ONLY; List of ExpressRoute connections to the ExpressRoute gateway. ExpressRouteConnections *[]ExpressRouteConnection `json:"expressRouteConnections,omitempty"` - // ProvisioningState - The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + // ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // VirtualHub - The Virtual Hub where the ExpressRoute gateway is or will be deployed. VirtualHub *VirtualHubID `json:"virtualHub,omitempty"` @@ -11356,7 +11241,7 @@ type ExpressRouteGatewaysCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteGatewaysCreateOrUpdateFuture) Result(client ExpressRouteGatewaysClient) (erg ExpressRouteGateway, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -11385,7 +11270,7 @@ type ExpressRouteGatewaysDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRouteGatewaysDeleteFuture) Result(client ExpressRouteGatewaysClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRouteGatewaysDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -11405,7 +11290,7 @@ type ExpressRouteLink struct { *ExpressRouteLinkPropertiesFormat `json:"properties,omitempty"` // Name - Name of child port resource that is unique among child port resources of the parent. Name *string `json:"name,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -11420,9 +11305,6 @@ func (erl ExpressRouteLink) MarshalJSON() ([]byte, error) { if erl.Name != nil { objectMap["name"] = erl.Name } - if erl.Etag != nil { - objectMap["etag"] = erl.Etag - } if erl.ID != nil { objectMap["id"] = erl.ID } @@ -11628,19 +11510,19 @@ func NewExpressRouteLinkListResultPage(getNextPage func(context.Context, Express // ExpressRouteLinkPropertiesFormat properties specific to ExpressRouteLink resources. type ExpressRouteLinkPropertiesFormat struct { - // RouterName - Name of Azure router associated with physical port. + // RouterName - READ-ONLY; Name of Azure router associated with physical port. RouterName *string `json:"routerName,omitempty"` - // InterfaceName - Name of Azure router interface. + // InterfaceName - READ-ONLY; Name of Azure router interface. InterfaceName *string `json:"interfaceName,omitempty"` - // PatchPanelID - Mapping between physical port to patch panel port. + // PatchPanelID - READ-ONLY; Mapping between physical port to patch panel port. PatchPanelID *string `json:"patchPanelId,omitempty"` - // RackID - Mapping of physical patch panel to rack. + // RackID - READ-ONLY; Mapping of physical patch panel to rack. RackID *string `json:"rackId,omitempty"` - // ConnectorType - Physical fiber port type. Possible values include: 'LC', 'SC' + // ConnectorType - READ-ONLY; Physical fiber port type. Possible values include: 'LC', 'SC' ConnectorType ExpressRouteLinkConnectorType `json:"connectorType,omitempty"` // AdminState - Administrative state of the physical port. Possible values include: 'ExpressRouteLinkAdminStateEnabled', 'ExpressRouteLinkAdminStateDisabled' AdminState ExpressRouteLinkAdminState `json:"adminState,omitempty"` - // ProvisioningState - The provisioning state of the ExpressRouteLink resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the ExpressRouteLink resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -11649,13 +11531,13 @@ type ExpressRoutePort struct { autorest.Response `json:"-"` // ExpressRoutePortPropertiesFormat - ExpressRoutePort properties *ExpressRoutePortPropertiesFormat `json:"properties,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -11669,18 +11551,9 @@ func (erp ExpressRoutePort) MarshalJSON() ([]byte, error) { if erp.ExpressRoutePortPropertiesFormat != nil { objectMap["properties"] = erp.ExpressRoutePortPropertiesFormat } - if erp.Etag != nil { - objectMap["etag"] = erp.Etag - } if erp.ID != nil { objectMap["id"] = erp.ID } - if erp.Name != nil { - objectMap["name"] = erp.Name - } - if erp.Type != nil { - objectMap["type"] = erp.Type - } if erp.Location != nil { objectMap["location"] = erp.Location } @@ -11920,21 +11793,21 @@ type ExpressRoutePortPropertiesFormat struct { PeeringLocation *string `json:"peeringLocation,omitempty"` // BandwidthInGbps - Bandwidth of procured ports in Gbps BandwidthInGbps *int32 `json:"bandwidthInGbps,omitempty"` - // ProvisionedBandwidthInGbps - Aggregate Gbps of associated circuit bandwidths. + // ProvisionedBandwidthInGbps - READ-ONLY; Aggregate Gbps of associated circuit bandwidths. ProvisionedBandwidthInGbps *float64 `json:"provisionedBandwidthInGbps,omitempty"` - // Mtu - Maximum transmission unit of the physical port pair(s) + // Mtu - READ-ONLY; Maximum transmission unit of the physical port pair(s) Mtu *string `json:"mtu,omitempty"` // Encapsulation - Encapsulation method on physical ports. Possible values include: 'Dot1Q', 'QinQ' Encapsulation ExpressRoutePortsEncapsulation `json:"encapsulation,omitempty"` - // EtherType - Ether type of the physical port. + // EtherType - READ-ONLY; Ether type of the physical port. EtherType *string `json:"etherType,omitempty"` - // AllocationDate - Date of the physical port allocation to be used in Letter of Authorization. + // AllocationDate - READ-ONLY; Date of the physical port allocation to be used in Letter of Authorization. AllocationDate *string `json:"allocationDate,omitempty"` // Links - The set of physical links of the ExpressRoutePort resource Links *[]ExpressRouteLink `json:"links,omitempty"` - // Circuits - Reference the ExpressRoute circuit(s) that are provisioned on this ExpressRoutePort resource. + // Circuits - READ-ONLY; Reference the ExpressRoute circuit(s) that are provisioned on this ExpressRoutePort resource. Circuits *[]SubResource `json:"circuits,omitempty"` - // ProvisioningState - The provisioning state of the ExpressRoutePort resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the ExpressRoutePort resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` // ResourceGUID - The resource GUID property of the ExpressRoutePort resource. ResourceGUID *string `json:"resourceGuid,omitempty"` @@ -11950,7 +11823,7 @@ type ExpressRoutePortsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRoutePortsCreateOrUpdateFuture) Result(client ExpressRoutePortsClient) (erp ExpressRoutePort, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -11979,7 +11852,7 @@ type ExpressRoutePortsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRoutePortsDeleteFuture) Result(client ExpressRoutePortsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -11999,9 +11872,9 @@ type ExpressRoutePortsLocation struct { *ExpressRoutePortsLocationPropertiesFormat `json:"properties,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -12018,12 +11891,6 @@ func (erpl ExpressRoutePortsLocation) MarshalJSON() ([]byte, error) { if erpl.ID != nil { objectMap["id"] = erpl.ID } - if erpl.Name != nil { - objectMap["name"] = erpl.Name - } - if erpl.Type != nil { - objectMap["type"] = erpl.Type - } if erpl.Location != nil { objectMap["location"] = erpl.Location } @@ -12104,9 +11971,9 @@ func (erpl *ExpressRoutePortsLocation) UnmarshalJSON(body []byte) error { // ExpressRoutePortsLocationBandwidths real-time inventory of available ExpressRoute port bandwidths. type ExpressRoutePortsLocationBandwidths struct { - // OfferName - Bandwidth descriptive name + // OfferName - READ-ONLY; Bandwidth descriptive name OfferName *string `json:"offerName,omitempty"` - // ValueInGbps - Bandwidth value in Gbps + // ValueInGbps - READ-ONLY; Bandwidth value in Gbps ValueInGbps *int32 `json:"valueInGbps,omitempty"` } @@ -12260,13 +12127,13 @@ func NewExpressRoutePortsLocationListResultPage(getNextPage func(context.Context // ExpressRoutePortsLocationPropertiesFormat properties specific to ExpressRoutePorts peering location // resources. type ExpressRoutePortsLocationPropertiesFormat struct { - // Address - Address of peering location. + // Address - READ-ONLY; Address of peering location. Address *string `json:"address,omitempty"` - // Contact - Contact details of peering locations. + // Contact - READ-ONLY; Contact details of peering locations. Contact *string `json:"contact,omitempty"` // AvailableBandwidths - The inventory of available ExpressRoutePort bandwidths. AvailableBandwidths *[]ExpressRoutePortsLocationBandwidths `json:"availableBandwidths,omitempty"` - // ProvisioningState - The provisioning state of the ExpressRoutePortLocation resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the ExpressRoutePortLocation resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -12280,7 +12147,7 @@ type ExpressRoutePortsUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *ExpressRoutePortsUpdateTagsFuture) Result(client ExpressRoutePortsClient) (erp ExpressRoutePort, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ExpressRoutePortsUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -12304,9 +12171,9 @@ type ExpressRouteServiceProvider struct { *ExpressRouteServiceProviderPropertiesFormat `json:"properties,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -12323,12 +12190,6 @@ func (ersp ExpressRouteServiceProvider) MarshalJSON() ([]byte, error) { if ersp.ID != nil { objectMap["id"] = ersp.ID } - if ersp.Name != nil { - objectMap["name"] = ersp.Name - } - if ersp.Type != nil { - objectMap["type"] = ersp.Type - } if ersp.Location != nil { objectMap["location"] = ersp.Location } @@ -12762,13 +12623,13 @@ func (fic *FrontendIPConfiguration) UnmarshalJSON(body []byte) error { // FrontendIPConfigurationPropertiesFormat properties of Frontend IP Configuration of the load balancer. type FrontendIPConfigurationPropertiesFormat struct { - // InboundNatRules - Read only. Inbound rules URIs that use this frontend IP. + // InboundNatRules - READ-ONLY; Read only. Inbound rules URIs that use this frontend IP. InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` - // InboundNatPools - Read only. Inbound pools URIs that use this frontend IP. + // InboundNatPools - READ-ONLY; Read only. Inbound pools URIs that use this frontend IP. InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` - // OutboundRules - Read only. Outbound rules URIs that use this frontend IP. + // OutboundRules - READ-ONLY; Read only. Outbound rules URIs that use this frontend IP. OutboundRules *[]SubResource `json:"outboundRules,omitempty"` - // LoadBalancingRules - Gets load balancing rules URIs that use this frontend IP. + // LoadBalancingRules - READ-ONLY; Gets load balancing rules URIs that use this frontend IP. LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` // PrivateIPAddress - The private IP address of the IP configuration. PrivateIPAddress *string `json:"privateIPAddress,omitempty"` @@ -12786,19 +12647,19 @@ type FrontendIPConfigurationPropertiesFormat struct { // GatewayRoute gateway routing details type GatewayRoute struct { - // LocalAddress - The gateway's local address + // LocalAddress - READ-ONLY; The gateway's local address LocalAddress *string `json:"localAddress,omitempty"` - // NetworkProperty - The route's network prefix + // NetworkProperty - READ-ONLY; The route's network prefix NetworkProperty *string `json:"network,omitempty"` - // NextHop - The route's next hop + // NextHop - READ-ONLY; The route's next hop NextHop *string `json:"nextHop,omitempty"` - // SourcePeer - The peer this route was learned from + // SourcePeer - READ-ONLY; The peer this route was learned from SourcePeer *string `json:"sourcePeer,omitempty"` - // Origin - The source this route was learned from + // Origin - READ-ONLY; The source this route was learned from Origin *string `json:"origin,omitempty"` - // AsPath - The route's AS path sequence + // AsPath - READ-ONLY; The route's AS path sequence AsPath *string `json:"asPath,omitempty"` - // Weight - The route's weight + // Weight - READ-ONLY; The route's weight Weight *int32 `json:"weight,omitempty"` } @@ -12841,7 +12702,7 @@ type HubVirtualNetworkConnection struct { *HubVirtualNetworkConnectionProperties `json:"properties,omitempty"` // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Etag - Gets a unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; Gets a unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -12856,9 +12717,6 @@ func (hvnc HubVirtualNetworkConnection) MarshalJSON() ([]byte, error) { if hvnc.Name != nil { objectMap["name"] = hvnc.Name } - if hvnc.Etag != nil { - objectMap["etag"] = hvnc.Etag - } if hvnc.ID != nil { objectMap["id"] = hvnc.ID } @@ -13120,7 +12978,7 @@ type InboundNatRuleListResult struct { autorest.Response `json:"-"` // Value - A list of inbound nat rules in a load balancer. Value *[]InboundNatRule `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -13265,7 +13123,7 @@ func NewInboundNatRuleListResultPage(getNextPage func(context.Context, InboundNa type InboundNatRulePropertiesFormat struct { // FrontendIPConfiguration - A reference to frontend IP addresses. FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` - // BackendIPConfiguration - A reference to a private IP address defined on a network interface of a VM. Traffic sent to the frontend port of each of the frontend IP configurations is forwarded to the backend IP. + // BackendIPConfiguration - READ-ONLY; A reference to a private IP address defined on a network interface of a VM. Traffic sent to the frontend port of each of the frontend IP configurations is forwarded to the backend IP. BackendIPConfiguration *InterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` // Protocol - Possible values include: 'TransportProtocolUDP', 'TransportProtocolTCP', 'TransportProtocolAll' Protocol TransportProtocol `json:"protocol,omitempty"` @@ -13293,7 +13151,7 @@ type InboundNatRulesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *InboundNatRulesCreateOrUpdateFuture) Result(client InboundNatRulesClient) (inr InboundNatRule, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -13322,7 +13180,7 @@ type InboundNatRulesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *InboundNatRulesDeleteFuture) Result(client InboundNatRulesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.InboundNatRulesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -13341,9 +13199,9 @@ type IntentPolicy struct { Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -13360,12 +13218,6 @@ func (IP IntentPolicy) MarshalJSON() ([]byte, error) { if IP.ID != nil { objectMap["id"] = IP.ID } - if IP.Name != nil { - objectMap["name"] = IP.Name - } - if IP.Type != nil { - objectMap["type"] = IP.Type - } if IP.Location != nil { objectMap["location"] = IP.Location } @@ -13391,9 +13243,9 @@ type Interface struct { Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -13413,12 +13265,6 @@ func (i Interface) MarshalJSON() ([]byte, error) { if i.ID != nil { objectMap["id"] = i.ID } - if i.Name != nil { - objectMap["name"] = i.Name - } - if i.Type != nil { - objectMap["type"] = i.Type - } if i.Location != nil { objectMap["location"] = i.Location } @@ -13508,7 +13354,7 @@ func (i *Interface) UnmarshalJSON(body []byte) error { // InterfaceAssociation network interface and its custom security rules. type InterfaceAssociation struct { - // ID - Network interface ID. + // ID - READ-ONLY; Network interface ID. ID *string `json:"id,omitempty"` // SecurityRules - Collection of custom security rules. SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` @@ -13537,9 +13383,9 @@ type InterfaceEndpoint struct { Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -13559,12 +13405,6 @@ func (ie InterfaceEndpoint) MarshalJSON() ([]byte, error) { if ie.ID != nil { objectMap["id"] = ie.ID } - if ie.Name != nil { - objectMap["name"] = ie.Name - } - if ie.Type != nil { - objectMap["type"] = ie.Type - } if ie.Location != nil { objectMap["location"] = ie.Location } @@ -13657,7 +13497,7 @@ type InterfaceEndpointListResult struct { autorest.Response `json:"-"` // Value - Gets a list of InterfaceEndpoint resources in a resource group. Value *[]InterfaceEndpoint `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -13806,11 +13646,11 @@ type InterfaceEndpointProperties struct { EndpointService *EndpointService `json:"endpointService,omitempty"` // Subnet - The ID of the subnet from which the private IP will be allocated. Subnet *Subnet `json:"subnet,omitempty"` - // NetworkInterfaces - Gets an array of references to the network interfaces created for this interface endpoint. + // NetworkInterfaces - READ-ONLY; Gets an array of references to the network interfaces created for this interface endpoint. NetworkInterfaces *[]Interface `json:"networkInterfaces,omitempty"` - // Owner - A read-only property that identifies who created this interface endpoint. + // Owner - READ-ONLY; A read-only property that identifies who created this interface endpoint. Owner *string `json:"owner,omitempty"` - // ProvisioningState - The provisioning state of the interface endpoint. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the interface endpoint. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -13824,7 +13664,7 @@ type InterfaceEndpointsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *InterfaceEndpointsCreateOrUpdateFuture) Result(client InterfaceEndpointsClient) (ie InterfaceEndpoint, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -13853,7 +13693,7 @@ type InterfaceEndpointsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *InterfaceEndpointsDeleteFuture) Result(client InterfaceEndpointsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceEndpointsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -13953,7 +13793,7 @@ type InterfaceIPConfigurationListResult struct { autorest.Response `json:"-"` // Value - A list of ip configurations. Value *[]InterfaceIPConfiguration `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -14128,7 +13968,7 @@ type InterfaceListResult struct { autorest.Response `json:"-"` // Value - A list of network interfaces in a resource group. Value *[]Interface `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -14274,7 +14114,7 @@ type InterfaceLoadBalancerListResult struct { autorest.Response `json:"-"` // Value - A list of load balancers. Value *[]LoadBalancer `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -14417,11 +14257,11 @@ func NewInterfaceLoadBalancerListResultPage(getNextPage func(context.Context, In // InterfacePropertiesFormat networkInterface properties. type InterfacePropertiesFormat struct { - // VirtualMachine - The reference of a virtual machine. + // VirtualMachine - READ-ONLY; The reference of a virtual machine. VirtualMachine *SubResource `json:"virtualMachine,omitempty"` // NetworkSecurityGroup - The reference of the NetworkSecurityGroup resource. NetworkSecurityGroup *SecurityGroup `json:"networkSecurityGroup,omitempty"` - // InterfaceEndpoint - A reference to the interface endpoint to which the network interface is linked. + // InterfaceEndpoint - READ-ONLY; A reference to the interface endpoint to which the network interface is linked. InterfaceEndpoint *InterfaceEndpoint `json:"interfaceEndpoint,omitempty"` // IPConfigurations - A list of IPConfigurations of the network interface. IPConfigurations *[]InterfaceIPConfiguration `json:"ipConfigurations,omitempty"` @@ -14437,7 +14277,7 @@ type InterfacePropertiesFormat struct { EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` // EnableIPForwarding - Indicates whether IP forwarding is enabled on this network interface. EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` - // HostedWorkloads - A list of references to linked BareMetal resources + // HostedWorkloads - READ-ONLY; A list of references to linked BareMetal resources HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` // ResourceGUID - The resource GUID property of the network interface resource. ResourceGUID *string `json:"resourceGuid,omitempty"` @@ -14455,7 +14295,7 @@ type InterfacesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *InterfacesCreateOrUpdateFuture) Result(client InterfacesClient) (i Interface, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -14484,7 +14324,7 @@ type InterfacesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *InterfacesDeleteFuture) Result(client InterfacesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -14507,7 +14347,7 @@ type InterfacesGetEffectiveRouteTableFuture struct { // If the operation has not completed it will return an error. func (future *InterfacesGetEffectiveRouteTableFuture) Result(client InterfacesClient) (erlr EffectiveRouteListResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesGetEffectiveRouteTableFuture", "Result", future.Response(), "Polling failure") return @@ -14536,7 +14376,7 @@ type InterfacesListEffectiveNetworkSecurityGroupsFuture struct { // If the operation has not completed it will return an error. func (future *InterfacesListEffectiveNetworkSecurityGroupsFuture) Result(client InterfacesClient) (ensglr EffectiveNetworkSecurityGroupListResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesListEffectiveNetworkSecurityGroupsFuture", "Result", future.Response(), "Polling failure") return @@ -14565,7 +14405,7 @@ type InterfacesUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *InterfacesUpdateTagsFuture) Result(client InterfacesClient) (i Interface, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfacesUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -14593,7 +14433,7 @@ type InterfaceTapConfiguration struct { Name *string `json:"name,omitempty"` // Etag - A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` - // Type - Sub Resource type. + // Type - READ-ONLY; Sub Resource type. Type *string `json:"type,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -14611,9 +14451,6 @@ func (itc InterfaceTapConfiguration) MarshalJSON() ([]byte, error) { if itc.Etag != nil { objectMap["etag"] = itc.Etag } - if itc.Type != nil { - objectMap["type"] = itc.Type - } if itc.ID != nil { objectMap["id"] = itc.ID } @@ -14685,7 +14522,7 @@ type InterfaceTapConfigurationListResult struct { autorest.Response `json:"-"` // Value - A list of tap configurations. Value *[]InterfaceTapConfiguration `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -14831,7 +14668,7 @@ func NewInterfaceTapConfigurationListResultPage(getNextPage func(context.Context type InterfaceTapConfigurationPropertiesFormat struct { // VirtualNetworkTap - The reference of the Virtual Network Tap resource. VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` - // ProvisioningState - The provisioning state of the network interface tap configuration. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the network interface tap configuration. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -14845,7 +14682,7 @@ type InterfaceTapConfigurationsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *InterfaceTapConfigurationsCreateOrUpdateFuture) Result(client InterfaceTapConfigurationsClient) (itc InterfaceTapConfiguration, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -14874,7 +14711,7 @@ type InterfaceTapConfigurationsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *InterfaceTapConfigurationsDeleteFuture) Result(client InterfaceTapConfigurationsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.InterfaceTapConfigurationsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -14983,7 +14820,7 @@ type IPConfigurationProfile struct { *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` // Name - The name of the resource. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Type - Sub Resource type. + // Type - READ-ONLY; Sub Resource type. Type *string `json:"type,omitempty"` // Etag - A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` @@ -15000,9 +14837,6 @@ func (icp IPConfigurationProfile) MarshalJSON() ([]byte, error) { if icp.Name != nil { objectMap["name"] = icp.Name } - if icp.Type != nil { - objectMap["type"] = icp.Type - } if icp.Etag != nil { objectMap["etag"] = icp.Etag } @@ -15076,7 +14910,7 @@ func (icp *IPConfigurationProfile) UnmarshalJSON(body []byte) error { type IPConfigurationProfilePropertiesFormat struct { // Subnet - The reference of the subnet resource to create a container network interface ip configuration. Subnet *Subnet `json:"subnet,omitempty"` - // ProvisioningState - The provisioning state of the resource. + // ProvisioningState - READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -16332,9 +16166,9 @@ type LoadBalancer struct { Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -16357,12 +16191,6 @@ func (lb LoadBalancer) MarshalJSON() ([]byte, error) { if lb.ID != nil { objectMap["id"] = lb.ID } - if lb.Name != nil { - objectMap["name"] = lb.Name - } - if lb.Type != nil { - objectMap["type"] = lb.Type - } if lb.Location != nil { objectMap["location"] = lb.Location } @@ -16464,7 +16292,7 @@ type LoadBalancerBackendAddressPoolListResult struct { autorest.Response `json:"-"` // Value - A list of backend address pools in a load balancer. Value *[]BackendAddressPool `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -16611,7 +16439,7 @@ type LoadBalancerFrontendIPConfigurationListResult struct { autorest.Response `json:"-"` // Value - A list of frontend IP configurations in a load balancer. Value *[]FrontendIPConfiguration `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -16758,7 +16586,7 @@ type LoadBalancerListResult struct { autorest.Response `json:"-"` // Value - A list of load balancers in a resource group. Value *[]LoadBalancer `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -16904,7 +16732,7 @@ type LoadBalancerLoadBalancingRuleListResult struct { autorest.Response `json:"-"` // Value - A list of load balancing rules in a load balancer. Value *[]LoadBalancingRule `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -17051,7 +16879,7 @@ type LoadBalancerOutboundRuleListResult struct { autorest.Response `json:"-"` // Value - A list of outbound rules in a load balancer. Value *[]OutboundRule `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -17197,7 +17025,7 @@ type LoadBalancerProbeListResult struct { autorest.Response `json:"-"` // Value - A list of probes in a load balancer. Value *[]Probe `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -17370,7 +17198,7 @@ type LoadBalancersCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *LoadBalancersCreateOrUpdateFuture) Result(client LoadBalancersClient) (lb LoadBalancer, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -17399,7 +17227,7 @@ type LoadBalancersDeleteFuture struct { // If the operation has not completed it will return an error. func (future *LoadBalancersDeleteFuture) Result(client LoadBalancersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -17428,7 +17256,7 @@ type LoadBalancersUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *LoadBalancersUpdateTagsFuture) Result(client LoadBalancersClient) (lb LoadBalancer, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.LoadBalancersUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -17566,9 +17394,9 @@ type LocalNetworkGateway struct { Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -17588,12 +17416,6 @@ func (lng LocalNetworkGateway) MarshalJSON() ([]byte, error) { if lng.ID != nil { objectMap["id"] = lng.ID } - if lng.Name != nil { - objectMap["name"] = lng.Name - } - if lng.Type != nil { - objectMap["type"] = lng.Type - } if lng.Location != nil { objectMap["location"] = lng.Location } @@ -17686,7 +17508,7 @@ type LocalNetworkGatewayListResult struct { autorest.Response `json:"-"` // Value - A list of local network gateways that exists in a resource group. Value *[]LocalNetworkGateway `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -17838,7 +17660,7 @@ type LocalNetworkGatewayPropertiesFormat struct { BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` // ResourceGUID - The resource GUID property of the LocalNetworkGateway resource. ResourceGUID *string `json:"resourceGuid,omitempty"` - // ProvisioningState - The provisioning state of the LocalNetworkGateway resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the LocalNetworkGateway resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -17852,7 +17674,7 @@ type LocalNetworkGatewaysCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *LocalNetworkGatewaysCreateOrUpdateFuture) Result(client LocalNetworkGatewaysClient) (lng LocalNetworkGateway, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -17881,7 +17703,7 @@ type LocalNetworkGatewaysDeleteFuture struct { // If the operation has not completed it will return an error. func (future *LocalNetworkGatewaysDeleteFuture) Result(client LocalNetworkGatewaysClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -17904,7 +17726,7 @@ type LocalNetworkGatewaysUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *LocalNetworkGatewaysUpdateTagsFuture) Result(client LocalNetworkGatewaysClient) (lng LocalNetworkGateway, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.LocalNetworkGatewaysUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -17935,9 +17757,9 @@ type LogSpecification struct { // ManagedServiceIdentity identity for the resource. type ManagedServiceIdentity struct { - // PrincipalID - The principal id of the system assigned identity. This property will only be provided for a system assigned identity. + // PrincipalID - READ-ONLY; The principal id of the system assigned identity. This property will only be provided for a system assigned identity. PrincipalID *string `json:"principalId,omitempty"` - // TenantID - The tenant id of the system assigned identity. This property will only be provided for a system assigned identity. + // TenantID - READ-ONLY; The tenant id of the system assigned identity. This property will only be provided for a system assigned identity. TenantID *string `json:"tenantId,omitempty"` // Type - The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine. Possible values include: 'ResourceIdentityTypeSystemAssigned', 'ResourceIdentityTypeUserAssigned', 'ResourceIdentityTypeSystemAssignedUserAssigned', 'ResourceIdentityTypeNone' Type ResourceIdentityType `json:"type,omitempty"` @@ -17948,12 +17770,6 @@ type ManagedServiceIdentity struct { // MarshalJSON is the custom marshaler for ManagedServiceIdentity. func (msi ManagedServiceIdentity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if msi.PrincipalID != nil { - objectMap["principalId"] = msi.PrincipalID - } - if msi.TenantID != nil { - objectMap["tenantId"] = msi.TenantID - } if msi.Type != "" { objectMap["type"] = msi.Type } @@ -17965,9 +17781,9 @@ func (msi ManagedServiceIdentity) MarshalJSON() ([]byte, error) { // ManagedServiceIdentityUserAssignedIdentitiesValue ... type ManagedServiceIdentityUserAssignedIdentitiesValue struct { - // PrincipalID - The principal id of user assigned identity. + // PrincipalID - READ-ONLY; The principal id of user assigned identity. PrincipalID *string `json:"principalId,omitempty"` - // ClientID - The client id of user assigned identity. + // ClientID - READ-ONLY; The client id of user assigned identity. ClientID *string `json:"clientId,omitempty"` } @@ -18414,13 +18230,13 @@ type OutboundRulePropertiesFormat struct { type P2SVpnGateway struct { autorest.Response `json:"-"` *P2SVpnGatewayProperties `json:"properties,omitempty"` - // Etag - Gets a unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; Gets a unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -18434,18 +18250,9 @@ func (pvg P2SVpnGateway) MarshalJSON() ([]byte, error) { if pvg.P2SVpnGatewayProperties != nil { objectMap["properties"] = pvg.P2SVpnGatewayProperties } - if pvg.Etag != nil { - objectMap["etag"] = pvg.Etag - } if pvg.ID != nil { objectMap["id"] = pvg.ID } - if pvg.Name != nil { - objectMap["name"] = pvg.Name - } - if pvg.Type != nil { - objectMap["type"] = pvg.Type - } if pvg.Location != nil { objectMap["location"] = pvg.Location } @@ -18545,7 +18352,7 @@ type P2SVpnGatewayProperties struct { P2SVpnServerConfiguration *SubResource `json:"p2SVpnServerConfiguration,omitempty"` // VpnClientAddressPool - The reference of the address space resource which represents Address space for P2S VpnClient. VpnClientAddressPool *AddressSpace `json:"vpnClientAddressPool,omitempty"` - // VpnClientConnectionHealth - All P2S VPN clients' connection health status. + // VpnClientConnectionHealth - READ-ONLY; All P2S VPN clients' connection health status. VpnClientConnectionHealth *VpnClientConnectionHealth `json:"vpnClientConnectionHealth,omitempty"` } @@ -18559,7 +18366,7 @@ type P2sVpnGatewaysCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *P2sVpnGatewaysCreateOrUpdateFuture) Result(client P2sVpnGatewaysClient) (pvg P2SVpnGateway, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -18588,7 +18395,7 @@ type P2sVpnGatewaysDeleteFuture struct { // If the operation has not completed it will return an error. func (future *P2sVpnGatewaysDeleteFuture) Result(client P2sVpnGatewaysClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -18611,7 +18418,7 @@ type P2sVpnGatewaysGenerateVpnProfileFuture struct { // If the operation has not completed it will return an error. func (future *P2sVpnGatewaysGenerateVpnProfileFuture) Result(client P2sVpnGatewaysClient) (vpr VpnProfileResponse, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysGenerateVpnProfileFuture", "Result", future.Response(), "Polling failure") return @@ -18640,7 +18447,7 @@ type P2sVpnGatewaysUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *P2sVpnGatewaysUpdateTagsFuture) Result(client P2sVpnGatewaysClient) (pvg P2SVpnGateway, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnGatewaysUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -18752,7 +18559,7 @@ func (pvscrcrc *P2SVpnServerConfigRadiusClientRootCertificate) UnmarshalJSON(bod type P2SVpnServerConfigRadiusClientRootCertificatePropertiesFormat struct { // Thumbprint - The Radius client root certificate thumbprint. Thumbprint *string `json:"thumbprint,omitempty"` - // ProvisioningState - The provisioning state of the Radius client root certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the Radius client root certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -18843,7 +18650,7 @@ func (pvscrsrc *P2SVpnServerConfigRadiusServerRootCertificate) UnmarshalJSON(bod type P2SVpnServerConfigRadiusServerRootCertificatePropertiesFormat struct { // PublicCertData - The certificate public data. PublicCertData *string `json:"publicCertData,omitempty"` - // ProvisioningState - The provisioning state of the P2SVpnServerConfiguration Radius Server root certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the P2SVpnServerConfiguration Radius Server root certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -18853,7 +18660,7 @@ type P2SVpnServerConfiguration struct { *P2SVpnServerConfigurationProperties `json:"properties,omitempty"` // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Etag - Gets a unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; Gets a unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -18868,9 +18675,6 @@ func (pvsc P2SVpnServerConfiguration) MarshalJSON() ([]byte, error) { if pvsc.Name != nil { objectMap["name"] = pvsc.Name } - if pvsc.Etag != nil { - objectMap["etag"] = pvsc.Etag - } if pvsc.ID != nil { objectMap["id"] = pvsc.ID } @@ -18948,9 +18752,10 @@ type P2SVpnServerConfigurationProperties struct { RadiusServerAddress *string `json:"radiusServerAddress,omitempty"` // RadiusServerSecret - The radius secret property of the P2SVpnServerConfiguration resource for point to site client connection. RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` - // ProvisioningState - The provisioning state of the P2SVpnServerConfiguration resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - ProvisioningState *string `json:"provisioningState,omitempty"` - P2SVpnGateways *[]SubResource `json:"p2SVpnGateways,omitempty"` + // ProvisioningState - READ-ONLY; The provisioning state of the P2SVpnServerConfiguration resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + ProvisioningState *string `json:"provisioningState,omitempty"` + // P2SVpnGateways - READ-ONLY + P2SVpnGateways *[]SubResource `json:"p2SVpnGateways,omitempty"` // Etag - A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` } @@ -18965,7 +18770,7 @@ type P2sVpnServerConfigurationsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *P2sVpnServerConfigurationsCreateOrUpdateFuture) Result(client P2sVpnServerConfigurationsClient) (pvsc P2SVpnServerConfiguration, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -18994,7 +18799,7 @@ type P2sVpnServerConfigurationsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *P2sVpnServerConfigurationsDeleteFuture) Result(client P2sVpnServerConfigurationsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.P2sVpnServerConfigurationsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -19094,7 +18899,7 @@ func (pvscvcrc *P2SVpnServerConfigVpnClientRevokedCertificate) UnmarshalJSON(bod type P2SVpnServerConfigVpnClientRevokedCertificatePropertiesFormat struct { // Thumbprint - The revoked VPN client certificate thumbprint. Thumbprint *string `json:"thumbprint,omitempty"` - // ProvisioningState - The provisioning state of the VPN client revoked certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the VPN client revoked certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -19184,7 +18989,7 @@ func (pvscvcrc *P2SVpnServerConfigVpnClientRootCertificate) UnmarshalJSON(body [ type P2SVpnServerConfigVpnClientRootCertificatePropertiesFormat struct { // PublicCertData - The certificate public data. PublicCertData *string `json:"publicCertData,omitempty"` - // ProvisioningState - The provisioning state of the P2SVpnServerConfiguration VPN client root certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the P2SVpnServerConfiguration VPN client root certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -19281,9 +19086,9 @@ type PacketCaptureQueryStatusResult struct { // PacketCaptureResult information about packet capture session. type PacketCaptureResult struct { autorest.Response `json:"-"` - // Name - Name of the packet capture session. + // Name - READ-ONLY; Name of the packet capture session. Name *string `json:"name,omitempty"` - // ID - ID of the packet capture operation. + // ID - READ-ONLY; ID of the packet capture operation. ID *string `json:"id,omitempty"` Etag *string `json:"etag,omitempty"` *PacketCaptureResultProperties `json:"properties,omitempty"` @@ -19292,12 +19097,6 @@ type PacketCaptureResult struct { // MarshalJSON is the custom marshaler for PacketCaptureResult. func (pcr PacketCaptureResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if pcr.Name != nil { - objectMap["name"] = pcr.Name - } - if pcr.ID != nil { - objectMap["id"] = pcr.ID - } if pcr.Etag != nil { objectMap["etag"] = pcr.Etag } @@ -19384,7 +19183,7 @@ type PacketCapturesCreateFuture struct { // If the operation has not completed it will return an error. func (future *PacketCapturesCreateFuture) Result(client PacketCapturesClient) (pcr PacketCaptureResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesCreateFuture", "Result", future.Response(), "Polling failure") return @@ -19413,7 +19212,7 @@ type PacketCapturesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *PacketCapturesDeleteFuture) Result(client PacketCapturesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -19436,7 +19235,7 @@ type PacketCapturesGetStatusFuture struct { // If the operation has not completed it will return an error. func (future *PacketCapturesGetStatusFuture) Result(client PacketCapturesClient) (pcqsr PacketCaptureQueryStatusResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesGetStatusFuture", "Result", future.Response(), "Polling failure") return @@ -19465,7 +19264,7 @@ type PacketCapturesStopFuture struct { // If the operation has not completed it will return an error. func (future *PacketCapturesStopFuture) Result(client PacketCapturesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.PacketCapturesStopFuture", "Result", future.Response(), "Polling failure") return @@ -19491,11 +19290,11 @@ type PacketCaptureStorageLocation struct { // PatchRouteFilter route Filter Resource. type PatchRouteFilter struct { *RouteFilterPropertiesFormat `json:"properties,omitempty"` - // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + // Name - READ-ONLY; The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` @@ -19509,15 +19308,6 @@ func (prf PatchRouteFilter) MarshalJSON() ([]byte, error) { if prf.RouteFilterPropertiesFormat != nil { objectMap["properties"] = prf.RouteFilterPropertiesFormat } - if prf.Name != nil { - objectMap["name"] = prf.Name - } - if prf.Etag != nil { - objectMap["etag"] = prf.Etag - } - if prf.Type != nil { - objectMap["type"] = prf.Type - } if prf.Tags != nil { objectMap["tags"] = prf.Tags } @@ -19599,9 +19389,9 @@ func (prf *PatchRouteFilter) UnmarshalJSON(body []byte) error { // PatchRouteFilterRule route Filter Rule Resource type PatchRouteFilterRule struct { *RouteFilterRulePropertiesFormat `json:"properties,omitempty"` - // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. + // Name - READ-ONLY; The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -19613,12 +19403,6 @@ func (prfr PatchRouteFilterRule) MarshalJSON() ([]byte, error) { if prfr.RouteFilterRulePropertiesFormat != nil { objectMap["properties"] = prfr.RouteFilterRulePropertiesFormat } - if prfr.Name != nil { - objectMap["name"] = prfr.Name - } - if prfr.Etag != nil { - objectMap["etag"] = prfr.Etag - } if prfr.ID != nil { objectMap["id"] = prfr.ID } @@ -19683,7 +19467,7 @@ type PeerExpressRouteCircuitConnection struct { *PeerExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` // Name - Gets name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -19698,9 +19482,6 @@ func (percc PeerExpressRouteCircuitConnection) MarshalJSON() ([]byte, error) { if percc.Name != nil { objectMap["name"] = percc.Name } - if percc.Etag != nil { - objectMap["etag"] = percc.Etag - } if percc.ID != nil { objectMap["id"] = percc.ID } @@ -19916,13 +19697,13 @@ type PeerExpressRouteCircuitConnectionPropertiesFormat struct { PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` // AddressPrefix - /29 IP address space to carve out Customer addresses for tunnels. AddressPrefix *string `json:"addressPrefix,omitempty"` - // CircuitConnectionStatus - Express Route Circuit Connection State. Possible values are: 'Connected' and 'Disconnected'. Possible values include: 'Connected', 'Connecting', 'Disconnected' + // CircuitConnectionStatus - READ-ONLY; Express Route Circuit Connection State. Possible values are: 'Connected' and 'Disconnected'. Possible values include: 'Connected', 'Connecting', 'Disconnected' CircuitConnectionStatus CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` // ConnectionName - The name of the express route circuit connection resource. ConnectionName *string `json:"connectionName,omitempty"` // AuthResourceGUID - The resource guid of the authorization used for the express route circuit connection. AuthResourceGUID *string `json:"authResourceGuid,omitempty"` - // ProvisioningState - Provisioning state of the peer express route circuit connection resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; Provisioning state of the peer express route circuit connection resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -20028,7 +19809,7 @@ func (p *Probe) UnmarshalJSON(body []byte) error { // ProbePropertiesFormat load balancer probe resource. type ProbePropertiesFormat struct { - // LoadBalancingRules - The load balancer rules that use this probe. + // LoadBalancingRules - READ-ONLY; The load balancer rules that use this probe. LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` // Protocol - The protocol of the end point. Possible values are: 'Http', 'Tcp', or 'Https'. If 'Tcp' is specified, a received ACK is required for the probe to be successful. If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI is required for the probe to be successful. Possible values include: 'ProbeProtocolHTTP', 'ProbeProtocolTCP', 'ProbeProtocolHTTPS' Protocol ProbeProtocol `json:"protocol,omitempty"` @@ -20053,9 +19834,9 @@ type Profile struct { Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -20075,12 +19856,6 @@ func (p Profile) MarshalJSON() ([]byte, error) { if p.ID != nil { objectMap["id"] = p.ID } - if p.Name != nil { - objectMap["name"] = p.Name - } - if p.Type != nil { - objectMap["type"] = p.Type - } if p.Location != nil { objectMap["location"] = p.Location } @@ -20320,9 +20095,9 @@ type ProfilePropertiesFormat struct { ContainerNetworkInterfaces *[]ContainerNetworkInterface `json:"containerNetworkInterfaces,omitempty"` // ContainerNetworkInterfaceConfigurations - List of chid container network interface configurations. ContainerNetworkInterfaceConfigurations *[]ContainerNetworkInterfaceConfiguration `json:"containerNetworkInterfaceConfigurations,omitempty"` - // ResourceGUID - The resource GUID property of the network interface resource. + // ResourceGUID - READ-ONLY; The resource GUID property of the network interface resource. ResourceGUID *string `json:"resourceGuid,omitempty"` - // ProvisioningState - The provisioning state of the resource. + // ProvisioningState - READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -20356,9 +20131,9 @@ type PublicIPAddress struct { Zones *[]string `json:"zones,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -20384,12 +20159,6 @@ func (pia PublicIPAddress) MarshalJSON() ([]byte, error) { if pia.ID != nil { objectMap["id"] = pia.ID } - if pia.Name != nil { - objectMap["name"] = pia.Name - } - if pia.Type != nil { - objectMap["type"] = pia.Type - } if pia.Location != nil { objectMap["location"] = pia.Location } @@ -20515,7 +20284,7 @@ type PublicIPAddressesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *PublicIPAddressesCreateOrUpdateFuture) Result(client PublicIPAddressesClient) (pia PublicIPAddress, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -20544,7 +20313,7 @@ type PublicIPAddressesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *PublicIPAddressesDeleteFuture) Result(client PublicIPAddressesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -20567,7 +20336,7 @@ type PublicIPAddressesUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *PublicIPAddressesUpdateTagsFuture) Result(client PublicIPAddressesClient) (pia PublicIPAddress, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPAddressesUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -20738,7 +20507,7 @@ type PublicIPAddressPropertiesFormat struct { PublicIPAllocationMethod IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` // PublicIPAddressVersion - The public IP address version. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6' PublicIPAddressVersion IPVersion `json:"publicIPAddressVersion,omitempty"` - // IPConfiguration - The IP configuration associated with the public IP address. + // IPConfiguration - READ-ONLY; The IP configuration associated with the public IP address. IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` // DNSSettings - The FQDN of the DNS record associated with the public IP address. DNSSettings *PublicIPAddressDNSSettings `json:"dnsSettings,omitempty"` @@ -20777,9 +20546,9 @@ type PublicIPPrefix struct { Zones *[]string `json:"zones,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -20805,12 +20574,6 @@ func (pip PublicIPPrefix) MarshalJSON() ([]byte, error) { if pip.ID != nil { objectMap["id"] = pip.ID } - if pip.Name != nil { - objectMap["name"] = pip.Name - } - if pip.Type != nil { - objectMap["type"] = pip.Type - } if pip.Location != nil { objectMap["location"] = pip.Location } @@ -20926,7 +20689,7 @@ type PublicIPPrefixesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *PublicIPPrefixesCreateOrUpdateFuture) Result(client PublicIPPrefixesClient) (pip PublicIPPrefix, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -20955,7 +20718,7 @@ type PublicIPPrefixesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *PublicIPPrefixesDeleteFuture) Result(client PublicIPPrefixesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -20978,7 +20741,7 @@ type PublicIPPrefixesUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *PublicIPPrefixesUpdateTagsFuture) Result(client PublicIPPrefixesClient) (pip PublicIPPrefix, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.PublicIPPrefixesUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -21183,9 +20946,9 @@ type ReferencedPublicIPAddress struct { type Resource struct { // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -21199,12 +20962,6 @@ func (r Resource) MarshalJSON() ([]byte, error) { if r.ID != nil { objectMap["id"] = r.ID } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -21220,7 +20977,7 @@ type ResourceNavigationLink struct { *ResourceNavigationLinkFormat `json:"properties,omitempty"` // Name - Name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -21235,9 +20992,6 @@ func (rnl ResourceNavigationLink) MarshalJSON() ([]byte, error) { if rnl.Name != nil { objectMap["name"] = rnl.Name } - if rnl.Etag != nil { - objectMap["etag"] = rnl.Etag - } if rnl.ID != nil { objectMap["id"] = rnl.ID } @@ -21301,7 +21055,7 @@ type ResourceNavigationLinkFormat struct { LinkedResourceType *string `json:"linkedResourceType,omitempty"` // Link - Link to the external resource Link *string `json:"link,omitempty"` - // ProvisioningState - Provisioning state of the ResourceNavigationLink resource. + // ProvisioningState - READ-ONLY; Provisioning state of the ResourceNavigationLink resource. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -21399,13 +21153,13 @@ func (r *Route) UnmarshalJSON(body []byte) error { type RouteFilter struct { autorest.Response `json:"-"` *RouteFilterPropertiesFormat `json:"properties,omitempty"` - // Etag - Gets a unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; Gets a unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -21419,18 +21173,9 @@ func (rf RouteFilter) MarshalJSON() ([]byte, error) { if rf.RouteFilterPropertiesFormat != nil { objectMap["properties"] = rf.RouteFilterPropertiesFormat } - if rf.Etag != nil { - objectMap["etag"] = rf.Etag - } if rf.ID != nil { objectMap["id"] = rf.ID } - if rf.Name != nil { - objectMap["name"] = rf.Name - } - if rf.Type != nil { - objectMap["type"] = rf.Type - } if rf.Location != nil { objectMap["location"] = rf.Location } @@ -21670,7 +21415,7 @@ type RouteFilterPropertiesFormat struct { Rules *[]RouteFilterRule `json:"rules,omitempty"` // Peerings - A collection of references to express route circuit peerings. Peerings *[]ExpressRouteCircuitPeering `json:"peerings,omitempty"` - // ProvisioningState - The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -21682,7 +21427,7 @@ type RouteFilterRule struct { Name *string `json:"name,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -21700,9 +21445,6 @@ func (rfr RouteFilterRule) MarshalJSON() ([]byte, error) { if rfr.Location != nil { objectMap["location"] = rfr.Location } - if rfr.Etag != nil { - objectMap["etag"] = rfr.Etag - } if rfr.ID != nil { objectMap["id"] = rfr.ID } @@ -21923,7 +21665,7 @@ type RouteFilterRulePropertiesFormat struct { RouteFilterRuleType *string `json:"routeFilterRuleType,omitempty"` // Communities - The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'] Communities *[]string `json:"communities,omitempty"` - // ProvisioningState - The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -21937,7 +21679,7 @@ type RouteFilterRulesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *RouteFilterRulesCreateOrUpdateFuture) Result(client RouteFilterRulesClient) (rfr RouteFilterRule, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -21966,7 +21708,7 @@ type RouteFilterRulesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *RouteFilterRulesDeleteFuture) Result(client RouteFilterRulesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -21989,7 +21731,7 @@ type RouteFilterRulesUpdateFuture struct { // If the operation has not completed it will return an error. func (future *RouteFilterRulesUpdateFuture) Result(client RouteFilterRulesClient) (rfr RouteFilterRule, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFilterRulesUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -22018,7 +21760,7 @@ type RouteFiltersCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *RouteFiltersCreateOrUpdateFuture) Result(client RouteFiltersClient) (rf RouteFilter, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -22047,7 +21789,7 @@ type RouteFiltersDeleteFuture struct { // If the operation has not completed it will return an error. func (future *RouteFiltersDeleteFuture) Result(client RouteFiltersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -22070,7 +21812,7 @@ type RouteFiltersUpdateFuture struct { // If the operation has not completed it will return an error. func (future *RouteFiltersUpdateFuture) Result(client RouteFiltersClient) (rf RouteFilter, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteFiltersUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -22257,7 +21999,7 @@ type RoutesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *RoutesCreateOrUpdateFuture) Result(client RoutesClient) (r Route, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -22285,7 +22027,7 @@ type RoutesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *RoutesDeleteFuture) Result(client RoutesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.RoutesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -22307,9 +22049,9 @@ type RouteTable struct { Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -22329,12 +22071,6 @@ func (rt RouteTable) MarshalJSON() ([]byte, error) { if rt.ID != nil { objectMap["id"] = rt.ID } - if rt.Name != nil { - objectMap["name"] = rt.Name - } - if rt.Type != nil { - objectMap["type"] = rt.Type - } if rt.Location != nil { objectMap["location"] = rt.Location } @@ -22572,7 +22308,7 @@ func NewRouteTableListResultPage(getNextPage func(context.Context, RouteTableLis type RouteTablePropertiesFormat struct { // Routes - Collection of routes contained within a route table. Routes *[]Route `json:"routes,omitempty"` - // Subnets - A collection of references to subnets. + // Subnets - READ-ONLY; A collection of references to subnets. Subnets *[]Subnet `json:"subnets,omitempty"` // DisableBgpRoutePropagation - Gets or sets whether to disable the routes learned by BGP on that route table. True means disable. DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` @@ -22590,7 +22326,7 @@ type RouteTablesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *RouteTablesCreateOrUpdateFuture) Result(client RouteTablesClient) (rt RouteTable, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -22619,7 +22355,7 @@ type RouteTablesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *RouteTablesDeleteFuture) Result(client RouteTablesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -22642,7 +22378,7 @@ type RouteTablesUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *RouteTablesUpdateTagsFuture) Result(client RouteTablesClient) (rt RouteTable, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.RouteTablesUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -22670,9 +22406,9 @@ type SecurityGroup struct { Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -22692,12 +22428,6 @@ func (sg SecurityGroup) MarshalJSON() ([]byte, error) { if sg.ID != nil { objectMap["id"] = sg.ID } - if sg.Name != nil { - objectMap["name"] = sg.Name - } - if sg.Type != nil { - objectMap["type"] = sg.Type - } if sg.Location != nil { objectMap["location"] = sg.Location } @@ -22944,9 +22674,9 @@ type SecurityGroupPropertiesFormat struct { SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` // DefaultSecurityRules - The default security rules of network security group. DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` - // NetworkInterfaces - A collection of references to network interfaces. + // NetworkInterfaces - READ-ONLY; A collection of references to network interfaces. NetworkInterfaces *[]Interface `json:"networkInterfaces,omitempty"` - // Subnets - A collection of references to subnets. + // Subnets - READ-ONLY; A collection of references to subnets. Subnets *[]Subnet `json:"subnets,omitempty"` // ResourceGUID - The resource GUID property of the network security group resource. ResourceGUID *string `json:"resourceGuid,omitempty"` @@ -22958,7 +22688,7 @@ type SecurityGroupPropertiesFormat struct { type SecurityGroupResult struct { // SecurityRuleAccessResult - The network traffic is allowed or denied. Possible values are 'Allow' and 'Deny'. Possible values include: 'SecurityRuleAccessAllow', 'SecurityRuleAccessDeny' SecurityRuleAccessResult SecurityRuleAccess `json:"securityRuleAccessResult,omitempty"` - // EvaluatedNetworkSecurityGroups - List of results network security groups diagnostic. + // EvaluatedNetworkSecurityGroups - READ-ONLY; List of results network security groups diagnostic. EvaluatedNetworkSecurityGroups *[]EvaluatedNetworkSecurityGroup `json:"evaluatedNetworkSecurityGroups,omitempty"` } @@ -22972,7 +22702,7 @@ type SecurityGroupsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *SecurityGroupsCreateOrUpdateFuture) Result(client SecurityGroupsClient) (sg SecurityGroup, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -23001,7 +22731,7 @@ type SecurityGroupsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *SecurityGroupsDeleteFuture) Result(client SecurityGroupsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -23024,7 +22754,7 @@ type SecurityGroupsUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *SecurityGroupsUpdateTagsFuture) Result(client SecurityGroupsClient) (sg SecurityGroup, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityGroupsUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -23341,7 +23071,7 @@ type SecurityRulesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *SecurityRulesCreateOrUpdateFuture) Result(client SecurityRulesClient) (sr SecurityRule, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -23370,7 +23100,7 @@ type SecurityRulesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *SecurityRulesDeleteFuture) Result(client SecurityRulesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.SecurityRulesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -23405,7 +23135,7 @@ type ServiceAssociationLink struct { *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` // Name - Name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Etag - A unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -23420,9 +23150,6 @@ func (sal ServiceAssociationLink) MarshalJSON() ([]byte, error) { if sal.Name != nil { objectMap["name"] = sal.Name } - if sal.Etag != nil { - objectMap["etag"] = sal.Etag - } if sal.ID != nil { objectMap["id"] = sal.ID } @@ -23486,7 +23213,7 @@ type ServiceAssociationLinkPropertiesFormat struct { LinkedResourceType *string `json:"linkedResourceType,omitempty"` // Link - Link to the external resource. Link *string `json:"link,omitempty"` - // ProvisioningState - Provisioning state of the ServiceAssociationLink resource. + // ProvisioningState - READ-ONLY; Provisioning state of the ServiceAssociationLink resource. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -23496,7 +23223,7 @@ type ServiceDelegationPropertiesFormat struct { ServiceName *string `json:"serviceName,omitempty"` // Actions - Describes the actions permitted to the service upon delegation Actions *[]string `json:"actions,omitempty"` - // ProvisioningState - The provisioning state of the resource. + // ProvisioningState - READ-ONLY; The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -23510,7 +23237,7 @@ type ServiceEndpointPoliciesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServiceEndpointPoliciesCreateOrUpdateFuture) Result(client ServiceEndpointPoliciesClient) (sep ServiceEndpointPolicy, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -23539,7 +23266,7 @@ type ServiceEndpointPoliciesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ServiceEndpointPoliciesDeleteFuture) Result(client ServiceEndpointPoliciesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -23562,7 +23289,7 @@ type ServiceEndpointPoliciesUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServiceEndpointPoliciesUpdateFuture) Result(client ServiceEndpointPoliciesClient) (sep ServiceEndpointPolicy, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPoliciesUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -23590,9 +23317,9 @@ type ServiceEndpointPolicy struct { Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -23612,12 +23339,6 @@ func (sep ServiceEndpointPolicy) MarshalJSON() ([]byte, error) { if sep.ID != nil { objectMap["id"] = sep.ID } - if sep.Name != nil { - objectMap["name"] = sep.Name - } - if sep.Type != nil { - objectMap["type"] = sep.Type - } if sep.Location != nil { objectMap["location"] = sep.Location } @@ -23943,7 +23664,7 @@ type ServiceEndpointPolicyDefinitionPropertiesFormat struct { Service *string `json:"service,omitempty"` // ServiceResources - A list of service resources. ServiceResources *[]string `json:"serviceResources,omitempty"` - // ProvisioningState - The provisioning state of the service end point policy definition. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the service end point policy definition. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -23957,7 +23678,7 @@ type ServiceEndpointPolicyDefinitionsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServiceEndpointPolicyDefinitionsCreateOrUpdateFuture) Result(client ServiceEndpointPolicyDefinitionsClient) (sepd ServiceEndpointPolicyDefinition, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -23986,7 +23707,7 @@ type ServiceEndpointPolicyDefinitionsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ServiceEndpointPolicyDefinitionsDeleteFuture) Result(client ServiceEndpointPolicyDefinitionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.ServiceEndpointPolicyDefinitionsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -24004,7 +23725,7 @@ type ServiceEndpointPolicyListResult struct { autorest.Response `json:"-"` // Value - A list of ServiceEndpointPolicy resources. Value *[]ServiceEndpointPolicy `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -24150,11 +23871,11 @@ func NewServiceEndpointPolicyListResultPage(getNextPage func(context.Context, Se type ServiceEndpointPolicyPropertiesFormat struct { // ServiceEndpointPolicyDefinitions - A collection of service endpoint policy definitions of the service endpoint policy. ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` - // Subnets - A collection of references to subnets. + // Subnets - READ-ONLY; A collection of references to subnets. Subnets *[]Subnet `json:"subnets,omitempty"` - // ResourceGUID - The resource GUID property of the service endpoint policy resource. + // ResourceGUID - READ-ONLY; The resource GUID property of the service endpoint policy resource. ResourceGUID *string `json:"resourceGuid,omitempty"` - // ProvisioningState - The provisioning state of the service endpoint policy. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the service endpoint policy. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -24258,7 +23979,7 @@ func (s *Subnet) UnmarshalJSON(body []byte) error { // SubnetAssociation network interface and its custom security rules. type SubnetAssociation struct { - // ID - Subnet ID. + // ID - READ-ONLY; Subnet ID. ID *string `json:"id,omitempty"` // SecurityRules - Collection of custom security rules. SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` @@ -24425,11 +24146,11 @@ type SubnetPropertiesFormat struct { ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` // ServiceEndpointPolicies - An array of service endpoint policies. ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` - // InterfaceEndpoints - An array of references to interface endpoints + // InterfaceEndpoints - READ-ONLY; An array of references to interface endpoints InterfaceEndpoints *[]InterfaceEndpoint `json:"interfaceEndpoints,omitempty"` - // IPConfigurations - Gets an array of references to the network interface IP configurations using subnet. + // IPConfigurations - READ-ONLY; Gets an array of references to the network interface IP configurations using subnet. IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` - // IPConfigurationProfiles - Array of IP configuration profiles which reference this subnet. + // IPConfigurationProfiles - READ-ONLY; Array of IP configuration profiles which reference this subnet. IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` // ResourceNavigationLinks - Gets an array of references to the external resources using subnet. ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` @@ -24437,7 +24158,7 @@ type SubnetPropertiesFormat struct { ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` // Delegations - Gets an array of references to the delegations on the subnet. Delegations *[]Delegation `json:"delegations,omitempty"` - // Purpose - A read-only string identifying the intention of use for this subnet based on delegations and other user-defined properties. + // Purpose - READ-ONLY; A read-only string identifying the intention of use for this subnet based on delegations and other user-defined properties. Purpose *string `json:"purpose,omitempty"` // ProvisioningState - The provisioning state of the resource. ProvisioningState *string `json:"provisioningState,omitempty"` @@ -24453,7 +24174,7 @@ type SubnetsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *SubnetsCreateOrUpdateFuture) Result(client SubnetsClient) (s Subnet, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -24482,7 +24203,7 @@ type SubnetsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *SubnetsDeleteFuture) Result(client SubnetsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -24505,7 +24226,7 @@ type SubnetsPrepareNetworkPoliciesFuture struct { // If the operation has not completed it will return an error. func (future *SubnetsPrepareNetworkPoliciesFuture) Result(client SubnetsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.SubnetsPrepareNetworkPoliciesFuture", "Result", future.Response(), "Polling failure") return @@ -24542,11 +24263,11 @@ func (toVar TagsObject) MarshalJSON() ([]byte, error) { // Topology topology of the specified resource group. type Topology struct { autorest.Response `json:"-"` - // ID - GUID representing the operation id. + // ID - READ-ONLY; GUID representing the operation id. ID *string `json:"id,omitempty"` - // CreatedDateTime - The datetime when the topology was initially created for the resource group. + // CreatedDateTime - READ-ONLY; The datetime when the topology was initially created for the resource group. CreatedDateTime *date.Time `json:"createdDateTime,omitempty"` - // LastModified - The datetime when the topology was last modified. + // LastModified - READ-ONLY; The datetime when the topology was last modified. LastModified *date.Time `json:"lastModified,omitempty"` Resources *[]TopologyResource `json:"resources,omitempty"` } @@ -24703,21 +24424,21 @@ type TroubleshootingResult struct { // TunnelConnectionHealth virtualNetworkGatewayConnection properties type TunnelConnectionHealth struct { - // Tunnel - Tunnel name. + // Tunnel - READ-ONLY; Tunnel name. Tunnel *string `json:"tunnel,omitempty"` - // ConnectionStatus - Virtual network Gateway connection status. Possible values include: 'VirtualNetworkGatewayConnectionStatusUnknown', 'VirtualNetworkGatewayConnectionStatusConnecting', 'VirtualNetworkGatewayConnectionStatusConnected', 'VirtualNetworkGatewayConnectionStatusNotConnected' + // ConnectionStatus - READ-ONLY; Virtual network Gateway connection status. Possible values include: 'VirtualNetworkGatewayConnectionStatusUnknown', 'VirtualNetworkGatewayConnectionStatusConnecting', 'VirtualNetworkGatewayConnectionStatusConnected', 'VirtualNetworkGatewayConnectionStatusNotConnected' ConnectionStatus VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty"` - // IngressBytesTransferred - The Ingress Bytes Transferred in this connection + // IngressBytesTransferred - READ-ONLY; The Ingress Bytes Transferred in this connection IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` - // EgressBytesTransferred - The Egress Bytes Transferred in this connection + // EgressBytesTransferred - READ-ONLY; The Egress Bytes Transferred in this connection EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` - // LastConnectionEstablishedUtcTime - The time at which connection was established in Utc format. + // LastConnectionEstablishedUtcTime - READ-ONLY; The time at which connection was established in Utc format. LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` } // Usage describes network resource usage. type Usage struct { - // ID - Resource identifier. + // ID - READ-ONLY; Resource identifier. ID *string `json:"id,omitempty"` // Unit - An enum describing the unit of measurement. Unit *string `json:"unit,omitempty"` @@ -24916,13 +24637,13 @@ type VerificationIPFlowResult struct { type VirtualHub struct { autorest.Response `json:"-"` *VirtualHubProperties `json:"properties,omitempty"` - // Etag - Gets a unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; Gets a unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -24936,18 +24657,9 @@ func (vh VirtualHub) MarshalJSON() ([]byte, error) { if vh.VirtualHubProperties != nil { objectMap["properties"] = vh.VirtualHubProperties } - if vh.Etag != nil { - objectMap["etag"] = vh.Etag - } if vh.ID != nil { objectMap["id"] = vh.ID } - if vh.Name != nil { - objectMap["name"] = vh.Name - } - if vh.Type != nil { - objectMap["type"] = vh.Type - } if vh.Location != nil { objectMap["location"] = vh.Location } @@ -25085,7 +24797,7 @@ type VirtualHubsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualHubsCreateOrUpdateFuture) Result(client VirtualHubsClient) (vh VirtualHub, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -25114,7 +24826,7 @@ type VirtualHubsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualHubsDeleteFuture) Result(client VirtualHubsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -25137,7 +24849,7 @@ type VirtualHubsUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *VirtualHubsUpdateTagsFuture) Result(client VirtualHubsClient) (vh VirtualHub, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualHubsUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -25165,9 +24877,9 @@ type VirtualNetwork struct { Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -25187,12 +24899,6 @@ func (vn VirtualNetwork) MarshalJSON() ([]byte, error) { if vn.ID != nil { objectMap["id"] = vn.ID } - if vn.Name != nil { - objectMap["name"] = vn.Name - } - if vn.Type != nil { - objectMap["type"] = vn.Type - } if vn.Location != nil { objectMap["location"] = vn.Location } @@ -25296,9 +25002,9 @@ type VirtualNetworkGateway struct { Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -25318,12 +25024,6 @@ func (vng VirtualNetworkGateway) MarshalJSON() ([]byte, error) { if vng.ID != nil { objectMap["id"] = vng.ID } - if vng.Name != nil { - objectMap["name"] = vng.Name - } - if vng.Type != nil { - objectMap["type"] = vng.Type - } if vng.Location != nil { objectMap["location"] = vng.Location } @@ -25420,9 +25120,9 @@ type VirtualNetworkGatewayConnection struct { Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -25442,12 +25142,6 @@ func (vngc VirtualNetworkGatewayConnection) MarshalJSON() ([]byte, error) { if vngc.ID != nil { objectMap["id"] = vngc.ID } - if vngc.Name != nil { - objectMap["name"] = vngc.Name - } - if vngc.Type != nil { - objectMap["type"] = vngc.Type - } if vngc.Location != nil { objectMap["location"] = vngc.Location } @@ -25543,9 +25237,9 @@ type VirtualNetworkGatewayConnectionListEntity struct { Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -25565,12 +25259,6 @@ func (vngcle VirtualNetworkGatewayConnectionListEntity) MarshalJSON() ([]byte, e if vngcle.ID != nil { objectMap["id"] = vngcle.ID } - if vngcle.Name != nil { - objectMap["name"] = vngcle.Name - } - if vngcle.Type != nil { - objectMap["type"] = vngcle.Type - } if vngcle.Location != nil { objectMap["location"] = vngcle.Location } @@ -25676,13 +25364,13 @@ type VirtualNetworkGatewayConnectionListEntityPropertiesFormat struct { RoutingWeight *int32 `json:"routingWeight,omitempty"` // SharedKey - The IPSec shared key. SharedKey *string `json:"sharedKey,omitempty"` - // ConnectionStatus - Virtual network Gateway connection status. Possible values are 'Unknown', 'Connecting', 'Connected' and 'NotConnected'. Possible values include: 'VirtualNetworkGatewayConnectionStatusUnknown', 'VirtualNetworkGatewayConnectionStatusConnecting', 'VirtualNetworkGatewayConnectionStatusConnected', 'VirtualNetworkGatewayConnectionStatusNotConnected' + // ConnectionStatus - READ-ONLY; Virtual network Gateway connection status. Possible values are 'Unknown', 'Connecting', 'Connected' and 'NotConnected'. Possible values include: 'VirtualNetworkGatewayConnectionStatusUnknown', 'VirtualNetworkGatewayConnectionStatusConnecting', 'VirtualNetworkGatewayConnectionStatusConnected', 'VirtualNetworkGatewayConnectionStatusNotConnected' ConnectionStatus VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty"` - // TunnelConnectionStatus - Collection of all tunnels' connection health status. + // TunnelConnectionStatus - READ-ONLY; Collection of all tunnels' connection health status. TunnelConnectionStatus *[]TunnelConnectionHealth `json:"tunnelConnectionStatus,omitempty"` - // EgressBytesTransferred - The egress bytes transferred in this connection. + // EgressBytesTransferred - READ-ONLY; The egress bytes transferred in this connection. EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` - // IngressBytesTransferred - The ingress bytes transferred in this connection. + // IngressBytesTransferred - READ-ONLY; The ingress bytes transferred in this connection. IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` // Peer - The reference to peerings resource. Peer *SubResource `json:"peer,omitempty"` @@ -25694,7 +25382,7 @@ type VirtualNetworkGatewayConnectionListEntityPropertiesFormat struct { IpsecPolicies *[]IpsecPolicy `json:"ipsecPolicies,omitempty"` // ResourceGUID - The resource GUID property of the VirtualNetworkGatewayConnection resource. ResourceGUID *string `json:"resourceGuid,omitempty"` - // ProvisioningState - The provisioning state of the VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` // ExpressRouteGatewayBypass - Bypass ExpressRoute Gateway for data forwarding ExpressRouteGatewayBypass *bool `json:"expressRouteGatewayBypass,omitempty"` @@ -25706,7 +25394,7 @@ type VirtualNetworkGatewayConnectionListResult struct { autorest.Response `json:"-"` // Value - Gets a list of VirtualNetworkGatewayConnection resources that exists in a resource group. Value *[]VirtualNetworkGatewayConnection `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -25866,13 +25554,13 @@ type VirtualNetworkGatewayConnectionPropertiesFormat struct { RoutingWeight *int32 `json:"routingWeight,omitempty"` // SharedKey - The IPSec shared key. SharedKey *string `json:"sharedKey,omitempty"` - // ConnectionStatus - Virtual network Gateway connection status. Possible values are 'Unknown', 'Connecting', 'Connected' and 'NotConnected'. Possible values include: 'VirtualNetworkGatewayConnectionStatusUnknown', 'VirtualNetworkGatewayConnectionStatusConnecting', 'VirtualNetworkGatewayConnectionStatusConnected', 'VirtualNetworkGatewayConnectionStatusNotConnected' + // ConnectionStatus - READ-ONLY; Virtual network Gateway connection status. Possible values are 'Unknown', 'Connecting', 'Connected' and 'NotConnected'. Possible values include: 'VirtualNetworkGatewayConnectionStatusUnknown', 'VirtualNetworkGatewayConnectionStatusConnecting', 'VirtualNetworkGatewayConnectionStatusConnected', 'VirtualNetworkGatewayConnectionStatusNotConnected' ConnectionStatus VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty"` - // TunnelConnectionStatus - Collection of all tunnels' connection health status. + // TunnelConnectionStatus - READ-ONLY; Collection of all tunnels' connection health status. TunnelConnectionStatus *[]TunnelConnectionHealth `json:"tunnelConnectionStatus,omitempty"` - // EgressBytesTransferred - The egress bytes transferred in this connection. + // EgressBytesTransferred - READ-ONLY; The egress bytes transferred in this connection. EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` - // IngressBytesTransferred - The ingress bytes transferred in this connection. + // IngressBytesTransferred - READ-ONLY; The ingress bytes transferred in this connection. IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` // Peer - The reference to peerings resource. Peer *SubResource `json:"peer,omitempty"` @@ -25884,7 +25572,7 @@ type VirtualNetworkGatewayConnectionPropertiesFormat struct { IpsecPolicies *[]IpsecPolicy `json:"ipsecPolicies,omitempty"` // ResourceGUID - The resource GUID property of the VirtualNetworkGatewayConnection resource. ResourceGUID *string `json:"resourceGuid,omitempty"` - // ProvisioningState - The provisioning state of the VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` // ExpressRouteGatewayBypass - Bypass ExpressRoute Gateway for data forwarding ExpressRouteGatewayBypass *bool `json:"expressRouteGatewayBypass,omitempty"` @@ -25900,7 +25588,7 @@ type VirtualNetworkGatewayConnectionsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkGatewayConnectionsCreateOrUpdateFuture) Result(client VirtualNetworkGatewayConnectionsClient) (vngc VirtualNetworkGatewayConnection, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -25929,7 +25617,7 @@ type VirtualNetworkGatewayConnectionsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkGatewayConnectionsDeleteFuture) Result(client VirtualNetworkGatewayConnectionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -25952,7 +25640,7 @@ type VirtualNetworkGatewayConnectionsResetSharedKeyFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkGatewayConnectionsResetSharedKeyFuture) Result(client VirtualNetworkGatewayConnectionsClient) (crsk ConnectionResetSharedKey, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsResetSharedKeyFuture", "Result", future.Response(), "Polling failure") return @@ -25981,7 +25669,7 @@ type VirtualNetworkGatewayConnectionsSetSharedKeyFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkGatewayConnectionsSetSharedKeyFuture) Result(client VirtualNetworkGatewayConnectionsClient) (csk ConnectionSharedKey, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsSetSharedKeyFuture", "Result", future.Response(), "Polling failure") return @@ -26010,7 +25698,7 @@ type VirtualNetworkGatewayConnectionsUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkGatewayConnectionsUpdateTagsFuture) Result(client VirtualNetworkGatewayConnectionsClient) (vngc VirtualNetworkGatewayConnection, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewayConnectionsUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -26118,7 +25806,7 @@ type VirtualNetworkGatewayIPConfigurationPropertiesFormat struct { Subnet *SubResource `json:"subnet,omitempty"` // PublicIPAddress - The reference of the public IP resource. PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` - // ProvisioningState - The provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -26128,7 +25816,7 @@ type VirtualNetworkGatewayListConnectionsResult struct { autorest.Response `json:"-"` // Value - Gets a list of VirtualNetworkGatewayConnection resources that exists in a resource group. Value *[]VirtualNetworkGatewayConnectionListEntity `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -26276,7 +25964,7 @@ type VirtualNetworkGatewayListResult struct { autorest.Response `json:"-"` // Value - Gets a list of VirtualNetworkGateway resources that exists in a resource group. Value *[]VirtualNetworkGateway `json:"value,omitempty"` - // NextLink - The URL to get the next set of results. + // NextLink - READ-ONLY; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -26440,7 +26128,7 @@ type VirtualNetworkGatewayPropertiesFormat struct { BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` // ResourceGUID - The resource GUID property of the VirtualNetworkGateway resource. ResourceGUID *string `json:"resourceGuid,omitempty"` - // ProvisioningState - The provisioning state of the VirtualNetworkGateway resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the VirtualNetworkGateway resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -26454,7 +26142,7 @@ type VirtualNetworkGatewaysCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkGatewaysCreateOrUpdateFuture) Result(client VirtualNetworkGatewaysClient) (vng VirtualNetworkGateway, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -26483,7 +26171,7 @@ type VirtualNetworkGatewaysDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkGatewaysDeleteFuture) Result(client VirtualNetworkGatewaysClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -26506,7 +26194,7 @@ type VirtualNetworkGatewaysGeneratevpnclientpackageFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkGatewaysGeneratevpnclientpackageFuture) Result(client VirtualNetworkGatewaysClient) (s String, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGeneratevpnclientpackageFuture", "Result", future.Response(), "Polling failure") return @@ -26525,35 +26213,6 @@ func (future *VirtualNetworkGatewaysGeneratevpnclientpackageFuture) Result(clien return } -// VirtualNetworkGatewaysGenerateVpnProfileFuture an abstraction for monitoring and retrieving the results -// of a long-running operation. -type VirtualNetworkGatewaysGenerateVpnProfileFuture struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *VirtualNetworkGatewaysGenerateVpnProfileFuture) Result(client VirtualNetworkGatewaysClient) (s String, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGenerateVpnProfileFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("network.VirtualNetworkGatewaysGenerateVpnProfileFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if s.Response.Response, err = future.GetResult(sender); err == nil && s.Response.Response.StatusCode != http.StatusNoContent { - s, err = client.GenerateVpnProfileResponder(s.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGenerateVpnProfileFuture", "Result", s.Response.Response, "Failure responding to request") - } - } - return -} - // VirtualNetworkGatewaysGetAdvertisedRoutesFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type VirtualNetworkGatewaysGetAdvertisedRoutesFuture struct { @@ -26564,7 +26223,7 @@ type VirtualNetworkGatewaysGetAdvertisedRoutesFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkGatewaysGetAdvertisedRoutesFuture) Result(client VirtualNetworkGatewaysClient) (grlr GatewayRouteListResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGetAdvertisedRoutesFuture", "Result", future.Response(), "Polling failure") return @@ -26593,7 +26252,7 @@ type VirtualNetworkGatewaysGetBgpPeerStatusFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkGatewaysGetBgpPeerStatusFuture) Result(client VirtualNetworkGatewaysClient) (bpslr BgpPeerStatusListResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGetBgpPeerStatusFuture", "Result", future.Response(), "Polling failure") return @@ -26622,7 +26281,7 @@ type VirtualNetworkGatewaysGetLearnedRoutesFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkGatewaysGetLearnedRoutesFuture) Result(client VirtualNetworkGatewaysClient) (grlr GatewayRouteListResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGetLearnedRoutesFuture", "Result", future.Response(), "Polling failure") return @@ -26651,7 +26310,7 @@ type VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture) Result(client VirtualNetworkGatewaysClient) (vcipp VpnClientIPsecParameters, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGetVpnclientIpsecParametersFuture", "Result", future.Response(), "Polling failure") return @@ -26680,7 +26339,7 @@ type VirtualNetworkGatewaysGetVpnProfilePackageURLFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkGatewaysGetVpnProfilePackageURLFuture) Result(client VirtualNetworkGatewaysClient) (s String, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysGetVpnProfilePackageURLFuture", "Result", future.Response(), "Polling failure") return @@ -26719,7 +26378,7 @@ type VirtualNetworkGatewaysResetFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkGatewaysResetFuture) Result(client VirtualNetworkGatewaysClient) (vng VirtualNetworkGateway, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysResetFuture", "Result", future.Response(), "Polling failure") return @@ -26748,7 +26407,7 @@ type VirtualNetworkGatewaysResetVpnClientSharedKeyFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkGatewaysResetVpnClientSharedKeyFuture) Result(client VirtualNetworkGatewaysClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysResetVpnClientSharedKeyFuture", "Result", future.Response(), "Polling failure") return @@ -26771,7 +26430,7 @@ type VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture) Result(client VirtualNetworkGatewaysClient) (vcipp VpnClientIPsecParameters, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysSetVpnclientIpsecParametersFuture", "Result", future.Response(), "Polling failure") return @@ -26800,7 +26459,7 @@ type VirtualNetworkGatewaysUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkGatewaysUpdateTagsFuture) Result(client VirtualNetworkGatewaysClient) (vng VirtualNetworkGateway, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -26968,7 +26627,7 @@ func NewVirtualNetworkListResultPage(getNextPage func(context.Context, VirtualNe // VirtualNetworkListUsageResult response for the virtual networks GetUsage API service call. type VirtualNetworkListUsageResult struct { autorest.Response `json:"-"` - // Value - VirtualNetwork usage stats. + // Value - READ-ONLY; VirtualNetwork usage stats. Value *[]VirtualNetworkUsage `json:"value,omitempty"` // NextLink - The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` @@ -27372,7 +27031,7 @@ type VirtualNetworkPeeringsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkPeeringsCreateOrUpdateFuture) Result(client VirtualNetworkPeeringsClient) (vnp VirtualNetworkPeering, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -27401,7 +27060,7 @@ type VirtualNetworkPeeringsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkPeeringsDeleteFuture) Result(client VirtualNetworkPeeringsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkPeeringsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -27446,7 +27105,7 @@ type VirtualNetworksCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworksCreateOrUpdateFuture) Result(client VirtualNetworksClient) (vn VirtualNetwork, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -27475,7 +27134,7 @@ type VirtualNetworksDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworksDeleteFuture) Result(client VirtualNetworksClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -27498,7 +27157,7 @@ type VirtualNetworksUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworksUpdateTagsFuture) Result(client VirtualNetworksClient) (vn VirtualNetwork, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworksUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -27526,9 +27185,9 @@ type VirtualNetworkTap struct { Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -27548,12 +27207,6 @@ func (vnt VirtualNetworkTap) MarshalJSON() ([]byte, error) { if vnt.ID != nil { objectMap["id"] = vnt.ID } - if vnt.Name != nil { - objectMap["name"] = vnt.Name - } - if vnt.Type != nil { - objectMap["type"] = vnt.Type - } if vnt.Location != nil { objectMap["location"] = vnt.Location } @@ -27789,11 +27442,11 @@ func NewVirtualNetworkTapListResultPage(getNextPage func(context.Context, Virtua // VirtualNetworkTapPropertiesFormat virtual Network Tap properties. type VirtualNetworkTapPropertiesFormat struct { - // NetworkInterfaceTapConfigurations - Specifies the list of resource IDs for the network interface IP configuration that needs to be tapped. + // NetworkInterfaceTapConfigurations - READ-ONLY; Specifies the list of resource IDs for the network interface IP configuration that needs to be tapped. NetworkInterfaceTapConfigurations *[]InterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` - // ResourceGUID - The resourceGuid property of the virtual network tap. + // ResourceGUID - READ-ONLY; The resourceGuid property of the virtual network tap. ResourceGUID *string `json:"resourceGuid,omitempty"` - // ProvisioningState - The provisioning state of the virtual network tap. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the virtual network tap. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` // DestinationNetworkInterfaceIPConfiguration - The reference to the private IP Address of the collector nic that will receive the tap DestinationNetworkInterfaceIPConfiguration *InterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` @@ -27813,7 +27466,7 @@ type VirtualNetworkTapsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkTapsCreateOrUpdateFuture) Result(client VirtualNetworkTapsClient) (vnt VirtualNetworkTap, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -27842,7 +27495,7 @@ type VirtualNetworkTapsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkTapsDeleteFuture) Result(client VirtualNetworkTapsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -27865,7 +27518,7 @@ type VirtualNetworkTapsUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkTapsUpdateTagsFuture) Result(client VirtualNetworkTapsClient) (vnt VirtualNetworkTap, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualNetworkTapsUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -27886,23 +27539,23 @@ func (future *VirtualNetworkTapsUpdateTagsFuture) Result(client VirtualNetworkTa // VirtualNetworkUsage usage details for subnet. type VirtualNetworkUsage struct { - // CurrentValue - Indicates number of IPs used from the Subnet. + // CurrentValue - READ-ONLY; Indicates number of IPs used from the Subnet. CurrentValue *float64 `json:"currentValue,omitempty"` - // ID - Subnet identifier. + // ID - READ-ONLY; Subnet identifier. ID *string `json:"id,omitempty"` - // Limit - Indicates the size of the subnet. + // Limit - READ-ONLY; Indicates the size of the subnet. Limit *float64 `json:"limit,omitempty"` - // Name - The name containing common and localized value for usage. + // Name - READ-ONLY; The name containing common and localized value for usage. Name *VirtualNetworkUsageName `json:"name,omitempty"` - // Unit - Usage units. Returns 'Count' + // Unit - READ-ONLY; Usage units. Returns 'Count' Unit *string `json:"unit,omitempty"` } // VirtualNetworkUsageName usage strings container. type VirtualNetworkUsageName struct { - // LocalizedValue - Localized subnet size and usage string. + // LocalizedValue - READ-ONLY; Localized subnet size and usage string. LocalizedValue *string `json:"localizedValue,omitempty"` - // Value - Subnet size and usage string. + // Value - READ-ONLY; Subnet size and usage string. Value *string `json:"value,omitempty"` } @@ -27910,13 +27563,13 @@ type VirtualNetworkUsageName struct { type VirtualWAN struct { autorest.Response `json:"-"` *VirtualWanProperties `json:"properties,omitempty"` - // Etag - Gets a unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; Gets a unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -27930,18 +27583,9 @@ func (vw VirtualWAN) MarshalJSON() ([]byte, error) { if vw.VirtualWanProperties != nil { objectMap["properties"] = vw.VirtualWanProperties } - if vw.Etag != nil { - objectMap["etag"] = vw.Etag - } if vw.ID != nil { objectMap["id"] = vw.ID } - if vw.Name != nil { - objectMap["name"] = vw.Name - } - if vw.Type != nil { - objectMap["type"] = vw.Type - } if vw.Location != nil { objectMap["location"] = vw.Location } @@ -28033,9 +27677,10 @@ func (vw *VirtualWAN) UnmarshalJSON(body []byte) error { type VirtualWanProperties struct { // DisableVpnEncryption - Vpn encryption to be disabled or not. DisableVpnEncryption *bool `json:"disableVpnEncryption,omitempty"` - // VirtualHubs - List of VirtualHubs in the VirtualWAN. + // VirtualHubs - READ-ONLY; List of VirtualHubs in the VirtualWAN. VirtualHubs *[]SubResource `json:"virtualHubs,omitempty"` - VpnSites *[]SubResource `json:"vpnSites,omitempty"` + // VpnSites - READ-ONLY + VpnSites *[]SubResource `json:"vpnSites,omitempty"` // SecurityProviderName - The Security Provider name. SecurityProviderName *string `json:"securityProviderName,omitempty"` // AllowBranchToBranchTraffic - True if branch to branch traffic is allowed. @@ -28060,7 +27705,7 @@ type VirtualWansCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualWansCreateOrUpdateFuture) Result(client VirtualWansClient) (vw VirtualWAN, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -28089,7 +27734,7 @@ type VirtualWansDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualWansDeleteFuture) Result(client VirtualWansClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -28128,7 +27773,7 @@ type VirtualWansUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *VirtualWansUpdateTagsFuture) Result(client VirtualWansClient) (vw VirtualWAN, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VirtualWansUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -28167,9 +27812,9 @@ type VpnClientConfiguration struct { // VpnClientConnectionHealth vpnClientConnectionHealth properties type VpnClientConnectionHealth struct { - // TotalIngressBytesTransferred - Total of the Ingress Bytes Transferred in this P2S Vpn connection + // TotalIngressBytesTransferred - READ-ONLY; Total of the Ingress Bytes Transferred in this P2S Vpn connection TotalIngressBytesTransferred *int64 `json:"totalIngressBytesTransferred,omitempty"` - // TotalEgressBytesTransferred - Total of the Egress Bytes Transferred in this connection + // TotalEgressBytesTransferred - READ-ONLY; Total of the Egress Bytes Transferred in this connection TotalEgressBytesTransferred *int64 `json:"totalEgressBytesTransferred,omitempty"` // VpnClientConnectionsCount - The total of p2s vpn clients connected at this time to this P2SVpnGateway. VpnClientConnectionsCount *int32 `json:"vpnClientConnectionsCount,omitempty"` @@ -28296,7 +27941,7 @@ func (vcrc *VpnClientRevokedCertificate) UnmarshalJSON(body []byte) error { type VpnClientRevokedCertificatePropertiesFormat struct { // Thumbprint - The revoked VPN client certificate thumbprint. Thumbprint *string `json:"thumbprint,omitempty"` - // ProvisioningState - The provisioning state of the VPN client revoked certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the VPN client revoked certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -28385,7 +28030,7 @@ func (vcrc *VpnClientRootCertificate) UnmarshalJSON(body []byte) error { type VpnClientRootCertificatePropertiesFormat struct { // PublicCertData - The certificate public data. PublicCertData *string `json:"publicCertData,omitempty"` - // ProvisioningState - The provisioning state of the VPN client root certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + // ProvisioningState - READ-ONLY; The provisioning state of the VPN client root certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -28395,7 +28040,7 @@ type VpnConnection struct { *VpnConnectionProperties `json:"properties,omitempty"` // Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Etag - Gets a unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; Gets a unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` @@ -28410,9 +28055,6 @@ func (vc VpnConnection) MarshalJSON() ([]byte, error) { if vc.Name != nil { objectMap["name"] = vc.Name } - if vc.Etag != nil { - objectMap["etag"] = vc.Etag - } if vc.ID != nil { objectMap["id"] = vc.ID } @@ -28480,9 +28122,9 @@ type VpnConnectionProperties struct { ConnectionStatus VpnConnectionStatus `json:"connectionStatus,omitempty"` // VpnConnectionProtocolType - Connection protocol used for this connection. Possible values include: 'IKEv2', 'IKEv1' VpnConnectionProtocolType VirtualNetworkGatewayConnectionProtocol `json:"vpnConnectionProtocolType,omitempty"` - // IngressBytesTransferred - Ingress bytes transferred. + // IngressBytesTransferred - READ-ONLY; Ingress bytes transferred. IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` - // EgressBytesTransferred - Egress bytes transferred. + // EgressBytesTransferred - READ-ONLY; Egress bytes transferred. EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` // ConnectionBandwidth - Expected bandwidth in MBPS. ConnectionBandwidth *int32 `json:"connectionBandwidth,omitempty"` @@ -28510,7 +28152,7 @@ type VpnConnectionsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VpnConnectionsCreateOrUpdateFuture) Result(client VpnConnectionsClient) (vc VpnConnection, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -28539,7 +28181,7 @@ type VpnConnectionsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VpnConnectionsDeleteFuture) Result(client VpnConnectionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -28566,13 +28208,13 @@ type VpnDeviceScriptParameters struct { type VpnGateway struct { autorest.Response `json:"-"` *VpnGatewayProperties `json:"properties,omitempty"` - // Etag - Gets a unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; Gets a unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -28586,18 +28228,9 @@ func (vg VpnGateway) MarshalJSON() ([]byte, error) { if vg.VpnGatewayProperties != nil { objectMap["properties"] = vg.VpnGatewayProperties } - if vg.Etag != nil { - objectMap["etag"] = vg.Etag - } if vg.ID != nil { objectMap["id"] = vg.ID } - if vg.Name != nil { - objectMap["name"] = vg.Name - } - if vg.Type != nil { - objectMap["type"] = vg.Type - } if vg.Location != nil { objectMap["location"] = vg.Location } @@ -28709,7 +28342,7 @@ type VpnGatewaysCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VpnGatewaysCreateOrUpdateFuture) Result(client VpnGatewaysClient) (vg VpnGateway, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -28738,7 +28371,7 @@ type VpnGatewaysDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VpnGatewaysDeleteFuture) Result(client VpnGatewaysClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -28761,7 +28394,7 @@ type VpnGatewaysUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *VpnGatewaysUpdateTagsFuture) Result(client VpnGatewaysClient) (vg VpnGateway, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnGatewaysUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -28791,13 +28424,13 @@ type VpnProfileResponse struct { type VpnSite struct { autorest.Response `json:"-"` *VpnSiteProperties `json:"properties,omitempty"` - // Etag - Gets a unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; Gets a unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -28811,18 +28444,9 @@ func (vs VpnSite) MarshalJSON() ([]byte, error) { if vs.VpnSiteProperties != nil { objectMap["properties"] = vs.VpnSiteProperties } - if vs.Etag != nil { - objectMap["etag"] = vs.Etag - } if vs.ID != nil { objectMap["id"] = vs.ID } - if vs.Name != nil { - objectMap["name"] = vs.Name - } - if vs.Type != nil { - objectMap["type"] = vs.Type - } if vs.Location != nil { objectMap["location"] = vs.Location } @@ -28912,7 +28536,7 @@ func (vs *VpnSite) UnmarshalJSON(body []byte) error { // VpnSiteID vpnSite Resource. type VpnSiteID struct { - // VpnSite - The resource-uri of the vpn-site for which config is to be fetched. + // VpnSite - READ-ONLY; The resource-uri of the vpn-site for which config is to be fetched. VpnSite *string `json:"vpnSite,omitempty"` } @@ -28946,7 +28570,7 @@ type VpnSitesConfigurationDownloadFuture struct { // If the operation has not completed it will return an error. func (future *VpnSitesConfigurationDownloadFuture) Result(client VpnSitesConfigurationClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesConfigurationDownloadFuture", "Result", future.Response(), "Polling failure") return @@ -28969,7 +28593,7 @@ type VpnSitesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VpnSitesCreateOrUpdateFuture) Result(client VpnSitesClient) (vs VpnSite, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -28998,7 +28622,7 @@ type VpnSitesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VpnSitesDeleteFuture) Result(client VpnSitesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -29021,7 +28645,7 @@ type VpnSitesUpdateTagsFuture struct { // If the operation has not completed it will return an error. func (future *VpnSitesUpdateTagsFuture) Result(client VpnSitesClient) (vs VpnSite, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnSitesUpdateTagsFuture", "Result", future.Response(), "Polling failure") return @@ -29048,9 +28672,9 @@ type Watcher struct { *WatcherPropertiesFormat `json:"properties,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -29070,12 +28694,6 @@ func (w Watcher) MarshalJSON() ([]byte, error) { if w.ID != nil { objectMap["id"] = w.ID } - if w.Name != nil { - objectMap["name"] = w.Name - } - if w.Type != nil { - objectMap["type"] = w.Type - } if w.Location != nil { objectMap["location"] = w.Location } @@ -29171,7 +28789,7 @@ type WatcherListResult struct { // WatcherPropertiesFormat the network watcher properties. type WatcherPropertiesFormat struct { - // ProvisioningState - The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + // ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } @@ -29185,7 +28803,7 @@ type WatchersCheckConnectivityFuture struct { // If the operation has not completed it will return an error. func (future *WatchersCheckConnectivityFuture) Result(client WatchersClient) (ci ConnectivityInformation, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersCheckConnectivityFuture", "Result", future.Response(), "Polling failure") return @@ -29214,7 +28832,7 @@ type WatchersDeleteFuture struct { // If the operation has not completed it will return an error. func (future *WatchersDeleteFuture) Result(client WatchersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -29237,7 +28855,7 @@ type WatchersGetAzureReachabilityReportFuture struct { // If the operation has not completed it will return an error. func (future *WatchersGetAzureReachabilityReportFuture) Result(client WatchersClient) (arr AzureReachabilityReport, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersGetAzureReachabilityReportFuture", "Result", future.Response(), "Polling failure") return @@ -29266,7 +28884,7 @@ type WatchersGetFlowLogStatusFuture struct { // If the operation has not completed it will return an error. func (future *WatchersGetFlowLogStatusFuture) Result(client WatchersClient) (fli FlowLogInformation, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersGetFlowLogStatusFuture", "Result", future.Response(), "Polling failure") return @@ -29295,7 +28913,7 @@ type WatchersGetNetworkConfigurationDiagnosticFuture struct { // If the operation has not completed it will return an error. func (future *WatchersGetNetworkConfigurationDiagnosticFuture) Result(client WatchersClient) (cdr ConfigurationDiagnosticResponse, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersGetNetworkConfigurationDiagnosticFuture", "Result", future.Response(), "Polling failure") return @@ -29324,7 +28942,7 @@ type WatchersGetNextHopFuture struct { // If the operation has not completed it will return an error. func (future *WatchersGetNextHopFuture) Result(client WatchersClient) (nhr NextHopResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersGetNextHopFuture", "Result", future.Response(), "Polling failure") return @@ -29353,7 +28971,7 @@ type WatchersGetTroubleshootingFuture struct { // If the operation has not completed it will return an error. func (future *WatchersGetTroubleshootingFuture) Result(client WatchersClient) (tr TroubleshootingResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersGetTroubleshootingFuture", "Result", future.Response(), "Polling failure") return @@ -29382,7 +29000,7 @@ type WatchersGetTroubleshootingResultFuture struct { // If the operation has not completed it will return an error. func (future *WatchersGetTroubleshootingResultFuture) Result(client WatchersClient) (tr TroubleshootingResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersGetTroubleshootingResultFuture", "Result", future.Response(), "Polling failure") return @@ -29411,7 +29029,7 @@ type WatchersGetVMSecurityRulesFuture struct { // If the operation has not completed it will return an error. func (future *WatchersGetVMSecurityRulesFuture) Result(client WatchersClient) (sgvr SecurityGroupViewResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersGetVMSecurityRulesFuture", "Result", future.Response(), "Polling failure") return @@ -29440,7 +29058,7 @@ type WatchersListAvailableProvidersFuture struct { // If the operation has not completed it will return an error. func (future *WatchersListAvailableProvidersFuture) Result(client WatchersClient) (apl AvailableProvidersList, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersListAvailableProvidersFuture", "Result", future.Response(), "Polling failure") return @@ -29469,7 +29087,7 @@ type WatchersSetFlowLogConfigurationFuture struct { // If the operation has not completed it will return an error. func (future *WatchersSetFlowLogConfigurationFuture) Result(client WatchersClient) (fli FlowLogInformation, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersSetFlowLogConfigurationFuture", "Result", future.Response(), "Polling failure") return @@ -29498,7 +29116,7 @@ type WatchersVerifyIPFlowFuture struct { // If the operation has not completed it will return an error. func (future *WatchersVerifyIPFlowFuture) Result(client WatchersClient) (vifr VerificationIPFlowResult, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.WatchersVerifyIPFlowFuture", "Result", future.Response(), "Polling failure") return @@ -29521,7 +29139,7 @@ func (future *WatchersVerifyIPFlowFuture) Result(client WatchersClient) (vifr Ve type WebApplicationFirewallCustomRule struct { // Name - Gets name of the resource that is unique within a policy. This name can be used to access the resource. Name *string `json:"name,omitempty"` - // Etag - Gets a unique read-only string that changes whenever the resource is updated. + // Etag - READ-ONLY; Gets a unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` // Priority - Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value Priority *int32 `json:"priority,omitempty"` @@ -29543,7 +29161,7 @@ type WebApplicationFirewallPoliciesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *WebApplicationFirewallPoliciesDeleteFuture) Result(client WebApplicationFirewallPoliciesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "network.WebApplicationFirewallPoliciesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -29565,9 +29183,9 @@ type WebApplicationFirewallPolicy struct { Etag *string `json:"etag,omitempty"` // ID - Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -29587,12 +29205,6 @@ func (wafp WebApplicationFirewallPolicy) MarshalJSON() ([]byte, error) { if wafp.ID != nil { objectMap["id"] = wafp.ID } - if wafp.Name != nil { - objectMap["name"] = wafp.Name - } - if wafp.Type != nil { - objectMap["type"] = wafp.Type - } if wafp.Location != nil { objectMap["location"] = wafp.Location } @@ -29681,13 +29293,12 @@ func (wafp *WebApplicationFirewallPolicy) UnmarshalJSON(body []byte) error { } // WebApplicationFirewallPolicyListResult result of the request to list WebApplicationFirewallPolicies. It -// contains a list of WebApplicationFirewallPolicy objects and a URL link to get the the next set of -// results. +// contains a list of WebApplicationFirewallPolicy objects and a URL link to get the next set of results. type WebApplicationFirewallPolicyListResult struct { autorest.Response `json:"-"` - // Value - List of WebApplicationFirewallPolicies within a resource group. + // Value - READ-ONLY; List of WebApplicationFirewallPolicies within a resource group. Value *[]WebApplicationFirewallPolicy `json:"value,omitempty"` - // NextLink - URL to get the next set of WebApplicationFirewallPolicy objects if there are any. + // NextLink - READ-ONLY; URL to get the next set of WebApplicationFirewallPolicy objects if there are any. NextLink *string `json:"nextLink,omitempty"` } @@ -29835,10 +29446,10 @@ type WebApplicationFirewallPolicyPropertiesFormat struct { PolicySettings *PolicySettings `json:"policySettings,omitempty"` // CustomRules - Describes custom rules inside the policy CustomRules *[]WebApplicationFirewallCustomRule `json:"customRules,omitempty"` - // ApplicationGateways - A collection of references to application gateways. + // ApplicationGateways - READ-ONLY; A collection of references to application gateways. ApplicationGateways *[]ApplicationGateway `json:"applicationGateways,omitempty"` - // ProvisioningState - Provisioning state of the WebApplicationFirewallPolicy. + // ProvisioningState - READ-ONLY; Provisioning state of the WebApplicationFirewallPolicy. ProvisioningState *string `json:"provisioningState,omitempty"` - // ResourceState - Possible values include: 'WebApplicationFirewallPolicyResourceStateCreating', 'WebApplicationFirewallPolicyResourceStateEnabling', 'WebApplicationFirewallPolicyResourceStateEnabled', 'WebApplicationFirewallPolicyResourceStateDisabling', 'WebApplicationFirewallPolicyResourceStateDisabled', 'WebApplicationFirewallPolicyResourceStateDeleting' + // ResourceState - READ-ONLY; Possible values include: 'WebApplicationFirewallPolicyResourceStateCreating', 'WebApplicationFirewallPolicyResourceStateEnabling', 'WebApplicationFirewallPolicyResourceStateEnabled', 'WebApplicationFirewallPolicyResourceStateDisabling', 'WebApplicationFirewallPolicyResourceStateDisabled', 'WebApplicationFirewallPolicyResourceStateDeleting' ResourceState WebApplicationFirewallPolicyResourceState `json:"resourceState,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/p2svpngateways.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/p2svpngateways.go index 4a6bd046aa7a..2207730624e9 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/p2svpngateways.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/p2svpngateways.go @@ -84,6 +84,7 @@ func (client P2sVpnGatewaysClient) CreateOrUpdatePreparer(ctx context.Context, r "api-version": APIVersion, } + p2SVpnGatewayParameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/p2svpnserverconfigurations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/p2svpnserverconfigurations.go index 7ed2d57bcd2b..5883dd60225a 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/p2svpnserverconfigurations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/p2svpnserverconfigurations.go @@ -87,6 +87,7 @@ func (client P2sVpnServerConfigurationsClient) CreateOrUpdatePreparer(ctx contex "api-version": APIVersion, } + p2SVpnServerConfigurationParameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/routefilterrules.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/routefilterrules.go index 10fd2b1d3147..a27a033c2a0f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/routefilterrules.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/routefilterrules.go @@ -96,6 +96,7 @@ func (client RouteFilterRulesClient) CreateOrUpdatePreparer(ctx context.Context, "api-version": APIVersion, } + routeFilterRuleParameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -450,6 +451,8 @@ func (client RouteFilterRulesClient) UpdatePreparer(ctx context.Context, resourc "api-version": APIVersion, } + routeFilterRuleParameters.Name = nil + routeFilterRuleParameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPatch(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/routefilters.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/routefilters.go index 256304434470..5878216f7303 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/routefilters.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/routefilters.go @@ -84,6 +84,7 @@ func (client RouteFiltersClient) CreateOrUpdatePreparer(ctx context.Context, res "api-version": APIVersion, } + routeFilterParameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -544,6 +545,9 @@ func (client RouteFiltersClient) UpdatePreparer(ctx context.Context, resourceGro "api-version": APIVersion, } + routeFilterParameters.Name = nil + routeFilterParameters.Etag = nil + routeFilterParameters.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPatch(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/virtualhubs.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/virtualhubs.go index 6bca5a8c613a..b784bb1b2d14 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/virtualhubs.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/virtualhubs.go @@ -84,6 +84,7 @@ func (client VirtualHubsClient) CreateOrUpdatePreparer(ctx context.Context, reso "api-version": APIVersion, } + virtualHubParameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/virtualnetworkgateways.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/virtualnetworkgateways.go index 8d20d1dbdd21..5f565d4f5fcc 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/virtualnetworkgateways.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/virtualnetworkgateways.go @@ -277,7 +277,7 @@ func (client VirtualNetworkGatewaysClient) GeneratevpnclientpackageResponder(res err = autorest.Respond( resp, client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} @@ -290,13 +290,13 @@ func (client VirtualNetworkGatewaysClient) GeneratevpnclientpackageResponder(res // resourceGroupName - the name of the resource group. // virtualNetworkGatewayName - the name of the virtual network gateway. // parameters - parameters supplied to the generate virtual network gateway VPN client package operation. -func (client VirtualNetworkGatewaysClient) GenerateVpnProfile(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters VpnClientParameters) (result VirtualNetworkGatewaysGenerateVpnProfileFuture, err error) { +func (client VirtualNetworkGatewaysClient) GenerateVpnProfile(ctx context.Context, resourceGroupName string, virtualNetworkGatewayName string, parameters VpnClientParameters) (result String, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/VirtualNetworkGatewaysClient.GenerateVpnProfile") defer func() { sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() @@ -307,12 +307,18 @@ func (client VirtualNetworkGatewaysClient) GenerateVpnProfile(ctx context.Contex return } - result, err = client.GenerateVpnProfileSender(req) + resp, err := client.GenerateVpnProfileSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "GenerateVpnProfile", result.Response(), "Failure sending request") + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "GenerateVpnProfile", resp, "Failure sending request") return } + result, err = client.GenerateVpnProfileResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "network.VirtualNetworkGatewaysClient", "GenerateVpnProfile", resp, "Failure responding to request") + } + return } @@ -341,15 +347,9 @@ func (client VirtualNetworkGatewaysClient) GenerateVpnProfilePreparer(ctx contex // GenerateVpnProfileSender sends the GenerateVpnProfile request. The method will close the // http.Response Body if it receives an error. -func (client VirtualNetworkGatewaysClient) GenerateVpnProfileSender(req *http.Request) (future VirtualNetworkGatewaysGenerateVpnProfileFuture, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, +func (client VirtualNetworkGatewaysClient) GenerateVpnProfileSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return } // GenerateVpnProfileResponder handles the response to the GenerateVpnProfile request. The method always @@ -359,7 +359,7 @@ func (client VirtualNetworkGatewaysClient) GenerateVpnProfileResponder(resp *htt resp, client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result), + autorest.ByUnmarshallingJSON(&result.Value), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/virtualwans.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/virtualwans.go index 9b142b0944fa..f50108945ca2 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/virtualwans.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/virtualwans.go @@ -84,6 +84,7 @@ func (client VirtualWansClient) CreateOrUpdatePreparer(ctx context.Context, reso "api-version": APIVersion, } + wANParameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/vpnconnections.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/vpnconnections.go index 9d2c793fa2c8..9d981791e3f9 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/vpnconnections.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/vpnconnections.go @@ -87,6 +87,7 @@ func (client VpnConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, r "api-version": APIVersion, } + vpnConnectionParameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/vpngateways.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/vpngateways.go index 5e33932f0905..9256518e06ad 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/vpngateways.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/vpngateways.go @@ -84,6 +84,7 @@ func (client VpnGatewaysClient) CreateOrUpdatePreparer(ctx context.Context, reso "api-version": APIVersion, } + vpnGatewayParameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/vpnsites.go b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/vpnsites.go index f702e1ec80df..f78cc0003a5d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/vpnsites.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network/vpnsites.go @@ -84,6 +84,7 @@ func (client VpnSitesClient) CreateOrUpdatePreparer(ctx context.Context, resourc "api-version": APIVersion, } + vpnSiteParameters.Etag = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/notificationhubs/mgmt/2017-04-01/notificationhubs/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/notificationhubs/mgmt/2017-04-01/notificationhubs/models.go index fcd9ddfa85be..5e6d075d4d14 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/notificationhubs/mgmt/2017-04-01/notificationhubs/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/notificationhubs/mgmt/2017-04-01/notificationhubs/models.go @@ -240,11 +240,11 @@ type BaiduCredentialProperties struct { // CheckAvailabilityParameters parameters supplied to the Check Name Availability for Namespace and // NotificationHubs. type CheckAvailabilityParameters struct { - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -259,15 +259,9 @@ type CheckAvailabilityParameters struct { // MarshalJSON is the custom marshaler for CheckAvailabilityParameters. func (capVar CheckAvailabilityParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if capVar.ID != nil { - objectMap["id"] = capVar.ID - } if capVar.Name != nil { objectMap["name"] = capVar.Name } - if capVar.Type != nil { - objectMap["type"] = capVar.Type - } if capVar.Location != nil { objectMap["location"] = capVar.Location } @@ -288,11 +282,11 @@ type CheckAvailabilityResult struct { autorest.Response `json:"-"` // IsAvailiable - True if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. IsAvailiable *bool `json:"isAvailiable,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -308,15 +302,6 @@ func (car CheckAvailabilityResult) MarshalJSON() ([]byte, error) { if car.IsAvailiable != nil { objectMap["isAvailiable"] = car.IsAvailiable } - if car.ID != nil { - objectMap["id"] = car.ID - } - if car.Name != nil { - objectMap["name"] = car.Name - } - if car.Type != nil { - objectMap["type"] = car.Type - } if car.Location != nil { objectMap["location"] = car.Location } @@ -333,11 +318,11 @@ func (car CheckAvailabilityResult) MarshalJSON() ([]byte, error) { type CreateOrUpdateParameters struct { // Properties - Properties of the NotificationHub. *Properties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -353,15 +338,6 @@ func (coup CreateOrUpdateParameters) MarshalJSON() ([]byte, error) { if coup.Properties != nil { objectMap["properties"] = coup.Properties } - if coup.ID != nil { - objectMap["id"] = coup.ID - } - if coup.Name != nil { - objectMap["name"] = coup.Name - } - if coup.Type != nil { - objectMap["type"] = coup.Type - } if coup.Location != nil { objectMap["location"] = coup.Location } @@ -457,11 +433,11 @@ type DebugSendResponse struct { autorest.Response `json:"-"` // DebugSendResult - Properties of the NotificationHub. *DebugSendResult `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -477,15 +453,6 @@ func (dsr DebugSendResponse) MarshalJSON() ([]byte, error) { if dsr.DebugSendResult != nil { objectMap["properties"] = dsr.DebugSendResult } - if dsr.ID != nil { - objectMap["id"] = dsr.ID - } - if dsr.Name != nil { - objectMap["name"] = dsr.Name - } - if dsr.Type != nil { - objectMap["type"] = dsr.Type - } if dsr.Location != nil { objectMap["location"] = dsr.Location } @@ -841,11 +808,11 @@ type MpnsCredentialProperties struct { type NamespaceCreateOrUpdateParameters struct { // NamespaceProperties - Properties of the Namespace. *NamespaceProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -861,15 +828,6 @@ func (ncoup NamespaceCreateOrUpdateParameters) MarshalJSON() ([]byte, error) { if ncoup.NamespaceProperties != nil { objectMap["properties"] = ncoup.NamespaceProperties } - if ncoup.ID != nil { - objectMap["id"] = ncoup.ID - } - if ncoup.Name != nil { - objectMap["name"] = ncoup.Name - } - if ncoup.Type != nil { - objectMap["type"] = ncoup.Type - } if ncoup.Location != nil { objectMap["location"] = ncoup.Location } @@ -1134,7 +1092,7 @@ type NamespaceProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` // Region - Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth EuropeWest Europe Region *string `json:"region,omitempty"` - // MetricID - Identifier for Azure Insights metrics + // MetricID - READ-ONLY; Identifier for Azure Insights metrics MetricID *string `json:"metricId,omitempty"` // Status - Status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting Status *string `json:"status,omitempty"` @@ -1163,11 +1121,11 @@ type NamespaceResource struct { autorest.Response `json:"-"` // NamespaceProperties - Properties of the Namespace. *NamespaceProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -1183,15 +1141,6 @@ func (nr NamespaceResource) MarshalJSON() ([]byte, error) { if nr.NamespaceProperties != nil { objectMap["properties"] = nr.NamespaceProperties } - if nr.ID != nil { - objectMap["id"] = nr.ID - } - if nr.Name != nil { - objectMap["name"] = nr.Name - } - if nr.Type != nil { - objectMap["type"] = nr.Type - } if nr.Location != nil { objectMap["location"] = nr.Location } @@ -1292,7 +1241,7 @@ type NamespacesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *NamespacesDeleteFuture) Result(client NamespacesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "notificationhubs.NamespacesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1307,7 +1256,7 @@ func (future *NamespacesDeleteFuture) Result(client NamespacesClient) (ar autore // Operation a NotificationHubs REST API operation type Operation struct { - // Name - Operation name: {provider}/{resource}/{operation} + // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // Display - The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` @@ -1315,11 +1264,11 @@ type Operation struct { // OperationDisplay the object that represents the operation. type OperationDisplay struct { - // Provider - Service provider: Microsoft.NotificationHubs + // Provider - READ-ONLY; Service provider: Microsoft.NotificationHubs Provider *string `json:"provider,omitempty"` - // Resource - Resource on which the operation is performed: Invoice, etc. + // Resource - READ-ONLY; Resource on which the operation is performed: Invoice, etc. Resource *string `json:"resource,omitempty"` - // Operation - Operation type: Read, write, delete, etc. + // Operation - READ-ONLY; Operation type: Read, write, delete, etc. Operation *string `json:"operation,omitempty"` } @@ -1327,9 +1276,9 @@ type OperationDisplay struct { // operations and a URL link to get the next set of results. type OperationListResult struct { autorest.Response `json:"-"` - // Value - List of NotificationHubs operations supported by the Microsoft.NotificationHubs resource provider. + // Value - READ-ONLY; List of NotificationHubs operations supported by the Microsoft.NotificationHubs resource provider. Value *[]Operation `json:"value,omitempty"` - // NextLink - URL to get the next set of operation list results if there are any. + // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` } @@ -1474,11 +1423,11 @@ func NewOperationListResultPage(getNextPage func(context.Context, OperationListR type PatchParameters struct { // Properties - Properties of the NotificationHub. *Properties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -1494,15 +1443,6 @@ func (pp PatchParameters) MarshalJSON() ([]byte, error) { if pp.Properties != nil { objectMap["properties"] = pp.Properties } - if pp.ID != nil { - objectMap["id"] = pp.ID - } - if pp.Name != nil { - objectMap["name"] = pp.Name - } - if pp.Type != nil { - objectMap["type"] = pp.Type - } if pp.Location != nil { objectMap["location"] = pp.Location } @@ -1614,11 +1554,11 @@ type PnsCredentialsResource struct { autorest.Response `json:"-"` // PnsCredentialsProperties - NotificationHub PNS Credentials. *PnsCredentialsProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -1634,15 +1574,6 @@ func (pcr PnsCredentialsResource) MarshalJSON() ([]byte, error) { if pcr.PnsCredentialsProperties != nil { objectMap["properties"] = pcr.PnsCredentialsProperties } - if pcr.ID != nil { - objectMap["id"] = pcr.ID - } - if pcr.Name != nil { - objectMap["name"] = pcr.Name - } - if pcr.Type != nil { - objectMap["type"] = pcr.Type - } if pcr.Location != nil { objectMap["location"] = pcr.Location } @@ -1763,11 +1694,11 @@ type Properties struct { // Resource ... type Resource struct { - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -1780,15 +1711,6 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -1821,11 +1743,11 @@ type ResourceType struct { autorest.Response `json:"-"` // Properties - Properties of the NotificationHub. *Properties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -1841,15 +1763,6 @@ func (rt ResourceType) MarshalJSON() ([]byte, error) { if rt.Properties != nil { objectMap["properties"] = rt.Properties } - if rt.ID != nil { - objectMap["id"] = rt.ID - } - if rt.Name != nil { - objectMap["name"] = rt.Name - } - if rt.Type != nil { - objectMap["type"] = rt.Type - } if rt.Location != nil { objectMap["location"] = rt.Location } @@ -2099,21 +2012,21 @@ func NewSharedAccessAuthorizationRuleListResultPage(getNextPage func(context.Con type SharedAccessAuthorizationRuleProperties struct { // Rights - The rights associated with the rule. Rights *[]AccessRights `json:"rights,omitempty"` - // PrimaryKey - A base64-encoded 256-bit primary key for signing and validating the SAS token. + // PrimaryKey - READ-ONLY; A base64-encoded 256-bit primary key for signing and validating the SAS token. PrimaryKey *string `json:"primaryKey,omitempty"` - // SecondaryKey - A base64-encoded 256-bit primary key for signing and validating the SAS token. + // SecondaryKey - READ-ONLY; A base64-encoded 256-bit primary key for signing and validating the SAS token. SecondaryKey *string `json:"secondaryKey,omitempty"` - // KeyName - A string that describes the authorization rule. + // KeyName - READ-ONLY; A string that describes the authorization rule. KeyName *string `json:"keyName,omitempty"` - // ClaimType - A string that describes the claim type + // ClaimType - READ-ONLY; A string that describes the claim type ClaimType *string `json:"claimType,omitempty"` - // ClaimValue - A string that describes the claim value + // ClaimValue - READ-ONLY; A string that describes the claim value ClaimValue *string `json:"claimValue,omitempty"` - // ModifiedTime - The last modified time for this rule + // ModifiedTime - READ-ONLY; The last modified time for this rule ModifiedTime *string `json:"modifiedTime,omitempty"` - // CreatedTime - The created time for this rule + // CreatedTime - READ-ONLY; The created time for this rule CreatedTime *string `json:"createdTime,omitempty"` - // Revision - The revision number for the rule + // Revision - READ-ONLY; The revision number for the rule Revision *int32 `json:"revision,omitempty"` } @@ -2122,11 +2035,11 @@ type SharedAccessAuthorizationRuleResource struct { autorest.Response `json:"-"` // SharedAccessAuthorizationRuleProperties - Properties of the Namespace AuthorizationRule. *SharedAccessAuthorizationRuleProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -2142,15 +2055,6 @@ func (saarr SharedAccessAuthorizationRuleResource) MarshalJSON() ([]byte, error) if saarr.SharedAccessAuthorizationRuleProperties != nil { objectMap["properties"] = saarr.SharedAccessAuthorizationRuleProperties } - if saarr.ID != nil { - objectMap["id"] = saarr.ID - } - if saarr.Name != nil { - objectMap["name"] = saarr.Name - } - if saarr.Type != nil { - objectMap["type"] = saarr.Type - } if saarr.Location != nil { objectMap["location"] = saarr.Location } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/notificationhubs/mgmt/2017-04-01/notificationhubs/namespaces.go b/vendor/github.com/Azure/azure-sdk-for-go/services/notificationhubs/mgmt/2017-04-01/notificationhubs/namespaces.go index 8429cad1b654..f0c9550080d7 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/notificationhubs/mgmt/2017-04-01/notificationhubs/namespaces.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/notificationhubs/mgmt/2017-04-01/notificationhubs/namespaces.go @@ -94,6 +94,8 @@ func (client NamespacesClient) CheckAvailabilityPreparer(ctx context.Context, pa "api-version": APIVersion, } + parameters.ID = nil + parameters.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPost(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/notificationhubs/mgmt/2017-04-01/notificationhubs/notificationhubs.go b/vendor/github.com/Azure/azure-sdk-for-go/services/notificationhubs/mgmt/2017-04-01/notificationhubs/notificationhubs.go index e6ea8675eaa4..1d3258b27c2f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/notificationhubs/mgmt/2017-04-01/notificationhubs/notificationhubs.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/notificationhubs/mgmt/2017-04-01/notificationhubs/notificationhubs.go @@ -97,6 +97,8 @@ func (client Client) CheckNotificationHubAvailabilityPreparer(ctx context.Contex "api-version": APIVersion, } + parameters.ID = nil + parameters.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPost(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql/models.go index e858385c1d9f..5ed2a356380c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql/models.go @@ -41,13 +41,15 @@ const ( CreateModeGeoRestore CreateMode = "GeoRestore" // CreateModePointInTimeRestore ... CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" + // CreateModeReplica ... + CreateModeReplica CreateMode = "Replica" // CreateModeServerPropertiesForCreate ... CreateModeServerPropertiesForCreate CreateMode = "ServerPropertiesForCreate" ) // PossibleCreateModeValues returns an array of possible values for the CreateMode const type. func PossibleCreateModeValues() []CreateMode { - return []CreateMode{CreateModeDefault, CreateModeGeoRestore, CreateModePointInTimeRestore, CreateModeServerPropertiesForCreate} + return []CreateMode{CreateModeDefault, CreateModeGeoRestore, CreateModePointInTimeRestore, CreateModeReplica, CreateModeServerPropertiesForCreate} } // GeoRedundantBackup enumerates the values for geo redundant backup. @@ -188,16 +190,33 @@ func PossibleVirtualNetworkRuleStateValues() []VirtualNetworkRuleState { return []VirtualNetworkRuleState{Deleting, Initializing, InProgress, Ready, Unknown} } +// CloudError an error response from the Batch service. +type CloudError struct { + Error *CloudErrorBody `json:"error,omitempty"` +} + +// CloudErrorBody an error response from the Batch service. +type CloudErrorBody struct { + // Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + Code *string `json:"code,omitempty"` + // Message - A message describing the error, intended to be suitable for display in a user interface. + Message *string `json:"message,omitempty"` + // Target - The target of the particular error. For example, the name of the property in error. + Target *string `json:"target,omitempty"` + // Details - A list of additional details about the error. + Details *[]CloudErrorBody `json:"details,omitempty"` +} + // Configuration represents a Configuration. type Configuration struct { autorest.Response `json:"-"` // ConfigurationProperties - The properties of a configuration. *ConfigurationProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -207,15 +226,6 @@ func (c Configuration) MarshalJSON() ([]byte, error) { if c.ConfigurationProperties != nil { objectMap["properties"] = c.ConfigurationProperties } - if c.ID != nil { - objectMap["id"] = c.ID - } - if c.Name != nil { - objectMap["name"] = c.Name - } - if c.Type != nil { - objectMap["type"] = c.Type - } return json.Marshal(objectMap) } @@ -281,13 +291,13 @@ type ConfigurationListResult struct { type ConfigurationProperties struct { // Value - Value of the configuration. Value *string `json:"value,omitempty"` - // Description - Description of the configuration. + // Description - READ-ONLY; Description of the configuration. Description *string `json:"description,omitempty"` - // DefaultValue - Default value of the configuration. + // DefaultValue - READ-ONLY; Default value of the configuration. DefaultValue *string `json:"defaultValue,omitempty"` - // DataType - Data type of the configuration. + // DataType - READ-ONLY; Data type of the configuration. DataType *string `json:"dataType,omitempty"` - // AllowedValues - Allowed values of the configuration. + // AllowedValues - READ-ONLY; Allowed values of the configuration. AllowedValues *string `json:"allowedValues,omitempty"` // Source - Source of the configuration. Source *string `json:"source,omitempty"` @@ -303,7 +313,7 @@ type ConfigurationsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ConfigurationsCreateOrUpdateFuture) Result(client ConfigurationsClient) (c Configuration, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ConfigurationsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -327,11 +337,11 @@ type Database struct { autorest.Response `json:"-"` // DatabaseProperties - The properties of a database. *DatabaseProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -341,15 +351,6 @@ func (d Database) MarshalJSON() ([]byte, error) { if d.DatabaseProperties != nil { objectMap["properties"] = d.DatabaseProperties } - if d.ID != nil { - objectMap["id"] = d.ID - } - if d.Name != nil { - objectMap["name"] = d.Name - } - if d.Type != nil { - objectMap["type"] = d.Type - } return json.Marshal(objectMap) } @@ -429,7 +430,7 @@ type DatabasesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesCreateOrUpdateFuture) Result(client DatabasesClient) (d Database, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.DatabasesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -458,7 +459,7 @@ type DatabasesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesDeleteFuture) Result(client DatabasesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.DatabasesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -476,11 +477,11 @@ type FirewallRule struct { autorest.Response `json:"-"` // FirewallRuleProperties - The properties of a firewall rule. *FirewallRuleProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -490,15 +491,6 @@ func (fr FirewallRule) MarshalJSON() ([]byte, error) { if fr.FirewallRuleProperties != nil { objectMap["properties"] = fr.FirewallRuleProperties } - if fr.ID != nil { - objectMap["id"] = fr.ID - } - if fr.Name != nil { - objectMap["name"] = fr.Name - } - if fr.Type != nil { - objectMap["type"] = fr.Type - } return json.Marshal(objectMap) } @@ -578,7 +570,7 @@ type FirewallRulesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *FirewallRulesCreateOrUpdateFuture) Result(client FirewallRulesClient) (fr FirewallRule, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.FirewallRulesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -607,7 +599,7 @@ type FirewallRulesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *FirewallRulesDeleteFuture) Result(client FirewallRulesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.FirewallRulesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -624,11 +616,11 @@ func (future *FirewallRulesDeleteFuture) Result(client FirewallRulesClient) (ar type LogFile struct { // LogFileProperties - The properties of the log file. *LogFileProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -638,15 +630,6 @@ func (lf LogFile) MarshalJSON() ([]byte, error) { if lf.LogFileProperties != nil { objectMap["properties"] = lf.LogFileProperties } - if lf.ID != nil { - objectMap["id"] = lf.ID - } - if lf.Name != nil { - objectMap["name"] = lf.Name - } - if lf.Type != nil { - objectMap["type"] = lf.Type - } return json.Marshal(objectMap) } @@ -712,9 +695,9 @@ type LogFileListResult struct { type LogFileProperties struct { // SizeInKB - Size of the log file. SizeInKB *int64 `json:"sizeInKB,omitempty"` - // CreatedTime - Creation timestamp of the log file. + // CreatedTime - READ-ONLY; Creation timestamp of the log file. CreatedTime *date.Time `json:"createdTime,omitempty"` - // LastModifiedTime - Last modified timestamp of the log file. + // LastModifiedTime - READ-ONLY; Last modified timestamp of the log file. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // Type - Type of the log file. Type *string `json:"type,omitempty"` @@ -743,43 +726,31 @@ type NameAvailabilityRequest struct { // Operation REST API operation definition. type Operation struct { - // Name - The name of the operation being performed on this particular object. + // Name - READ-ONLY; The name of the operation being performed on this particular object. Name *string `json:"name,omitempty"` - // Display - The localized display information for this particular operation or action. + // Display - READ-ONLY; The localized display information for this particular operation or action. Display *OperationDisplay `json:"display,omitempty"` - // Origin - The intended executor of the operation. Possible values include: 'NotSpecified', 'User', 'System' + // Origin - READ-ONLY; The intended executor of the operation. Possible values include: 'NotSpecified', 'User', 'System' Origin OperationOrigin `json:"origin,omitempty"` - // Properties - Additional descriptions for the operation. + // Properties - READ-ONLY; Additional descriptions for the operation. Properties map[string]interface{} `json:"properties"` } // MarshalJSON is the custom marshaler for Operation. func (o Operation) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if o.Name != nil { - objectMap["name"] = o.Name - } - if o.Display != nil { - objectMap["display"] = o.Display - } - if o.Origin != "" { - objectMap["origin"] = o.Origin - } - if o.Properties != nil { - objectMap["properties"] = o.Properties - } return json.Marshal(objectMap) } // OperationDisplay display metadata associated with the operation. type OperationDisplay struct { - // Provider - Operation resource provider name. + // Provider - READ-ONLY; Operation resource provider name. Provider *string `json:"provider,omitempty"` - // Resource - Resource on which the operation is performed. + // Resource - READ-ONLY; Resource on which the operation is performed. Resource *string `json:"resource,omitempty"` - // Operation - Localized friendly name for the operation. + // Operation - READ-ONLY; Localized friendly name for the operation. Operation *string `json:"operation,omitempty"` - // Description - Operation description. + // Description - READ-ONLY; Operation description. Description *string `json:"description,omitempty"` } @@ -827,11 +798,11 @@ type PerformanceTierServiceLevelObjectives struct { // ProxyResource resource properties. type ProxyResource struct { - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -864,11 +835,11 @@ type Server struct { Location *string `json:"location,omitempty"` // Tags - Application-specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -887,15 +858,6 @@ func (s Server) MarshalJSON() ([]byte, error) { if s.Tags != nil { objectMap["tags"] = s.Tags } - if s.ID != nil { - objectMap["id"] = s.ID - } - if s.Name != nil { - objectMap["name"] = s.Name - } - if s.Type != nil { - objectMap["type"] = s.Type - } return json.Marshal(objectMap) } @@ -1078,6 +1040,12 @@ type ServerProperties struct { EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` // StorageProfile - Storage profile of a server. StorageProfile *StorageProfile `json:"storageProfile,omitempty"` + // ReplicationRole - The replication role of the server. + ReplicationRole *string `json:"replicationRole,omitempty"` + // MasterServerID - The master server id of a replica server. + MasterServerID *string `json:"masterServerId,omitempty"` + // ReplicaCapacity - The maximum number of replicas that a master server can have. + ReplicaCapacity *int32 `json:"replicaCapacity,omitempty"` } // BasicServerPropertiesForCreate the properties used to create a new server. @@ -1085,6 +1053,7 @@ type BasicServerPropertiesForCreate interface { AsServerPropertiesForDefaultCreate() (*ServerPropertiesForDefaultCreate, bool) AsServerPropertiesForRestore() (*ServerPropertiesForRestore, bool) AsServerPropertiesForGeoRestore() (*ServerPropertiesForGeoRestore, bool) + AsServerPropertiesForReplica() (*ServerPropertiesForReplica, bool) AsServerPropertiesForCreate() (*ServerPropertiesForCreate, bool) } @@ -1096,7 +1065,7 @@ type ServerPropertiesForCreate struct { SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` // StorageProfile - Storage profile of a server. StorageProfile *StorageProfile `json:"storageProfile,omitempty"` - // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore' + // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore', 'CreateModeReplica' CreateMode CreateMode `json:"createMode,omitempty"` } @@ -1120,6 +1089,10 @@ func unmarshalBasicServerPropertiesForCreate(body []byte) (BasicServerProperties var spfgr ServerPropertiesForGeoRestore err := json.Unmarshal(body, &spfgr) return spfgr, err + case string(CreateModeReplica): + var spfr ServerPropertiesForReplica + err := json.Unmarshal(body, &spfr) + return spfr, err default: var spfc ServerPropertiesForCreate err := json.Unmarshal(body, &spfc) @@ -1179,6 +1152,11 @@ func (spfc ServerPropertiesForCreate) AsServerPropertiesForGeoRestore() (*Server return nil, false } +// AsServerPropertiesForReplica is the BasicServerPropertiesForCreate implementation for ServerPropertiesForCreate. +func (spfc ServerPropertiesForCreate) AsServerPropertiesForReplica() (*ServerPropertiesForReplica, bool) { + return nil, false +} + // AsServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForCreate. func (spfc ServerPropertiesForCreate) AsServerPropertiesForCreate() (*ServerPropertiesForCreate, bool) { return &spfc, true @@ -1201,7 +1179,7 @@ type ServerPropertiesForDefaultCreate struct { SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` // StorageProfile - Storage profile of a server. StorageProfile *StorageProfile `json:"storageProfile,omitempty"` - // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore' + // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore', 'CreateModeReplica' CreateMode CreateMode `json:"createMode,omitempty"` } @@ -1245,6 +1223,11 @@ func (spfdc ServerPropertiesForDefaultCreate) AsServerPropertiesForGeoRestore() return nil, false } +// AsServerPropertiesForReplica is the BasicServerPropertiesForCreate implementation for ServerPropertiesForDefaultCreate. +func (spfdc ServerPropertiesForDefaultCreate) AsServerPropertiesForReplica() (*ServerPropertiesForReplica, bool) { + return nil, false +} + // AsServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForDefaultCreate. func (spfdc ServerPropertiesForDefaultCreate) AsServerPropertiesForCreate() (*ServerPropertiesForCreate, bool) { return nil, false @@ -1266,7 +1249,7 @@ type ServerPropertiesForGeoRestore struct { SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` // StorageProfile - Storage profile of a server. StorageProfile *StorageProfile `json:"storageProfile,omitempty"` - // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore' + // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore', 'CreateModeReplica' CreateMode CreateMode `json:"createMode,omitempty"` } @@ -1307,6 +1290,11 @@ func (spfgr ServerPropertiesForGeoRestore) AsServerPropertiesForGeoRestore() (*S return &spfgr, true } +// AsServerPropertiesForReplica is the BasicServerPropertiesForCreate implementation for ServerPropertiesForGeoRestore. +func (spfgr ServerPropertiesForGeoRestore) AsServerPropertiesForReplica() (*ServerPropertiesForReplica, bool) { + return nil, false +} + // AsServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForGeoRestore. func (spfgr ServerPropertiesForGeoRestore) AsServerPropertiesForCreate() (*ServerPropertiesForCreate, bool) { return nil, false @@ -1317,6 +1305,72 @@ func (spfgr ServerPropertiesForGeoRestore) AsBasicServerPropertiesForCreate() (B return &spfgr, true } +// ServerPropertiesForReplica the properties to create a new replica. +type ServerPropertiesForReplica struct { + // SourceServerID - The master server id to create replica from. + SourceServerID *string `json:"sourceServerId,omitempty"` + // Version - Server version. Possible values include: 'NineFullStopFive', 'NineFullStopSix', 'OneZero', 'OneZeroFullStopZero', 'OneZeroFullStopTwo' + Version ServerVersion `json:"version,omitempty"` + // SslEnforcement - Enable ssl enforcement or not when connect to server. Possible values include: 'SslEnforcementEnumEnabled', 'SslEnforcementEnumDisabled' + SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` + // StorageProfile - Storage profile of a server. + StorageProfile *StorageProfile `json:"storageProfile,omitempty"` + // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore', 'CreateModeReplica' + CreateMode CreateMode `json:"createMode,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServerPropertiesForReplica. +func (spfr ServerPropertiesForReplica) MarshalJSON() ([]byte, error) { + spfr.CreateMode = CreateModeReplica + objectMap := make(map[string]interface{}) + if spfr.SourceServerID != nil { + objectMap["sourceServerId"] = spfr.SourceServerID + } + if spfr.Version != "" { + objectMap["version"] = spfr.Version + } + if spfr.SslEnforcement != "" { + objectMap["sslEnforcement"] = spfr.SslEnforcement + } + if spfr.StorageProfile != nil { + objectMap["storageProfile"] = spfr.StorageProfile + } + if spfr.CreateMode != "" { + objectMap["createMode"] = spfr.CreateMode + } + return json.Marshal(objectMap) +} + +// AsServerPropertiesForDefaultCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForReplica. +func (spfr ServerPropertiesForReplica) AsServerPropertiesForDefaultCreate() (*ServerPropertiesForDefaultCreate, bool) { + return nil, false +} + +// AsServerPropertiesForRestore is the BasicServerPropertiesForCreate implementation for ServerPropertiesForReplica. +func (spfr ServerPropertiesForReplica) AsServerPropertiesForRestore() (*ServerPropertiesForRestore, bool) { + return nil, false +} + +// AsServerPropertiesForGeoRestore is the BasicServerPropertiesForCreate implementation for ServerPropertiesForReplica. +func (spfr ServerPropertiesForReplica) AsServerPropertiesForGeoRestore() (*ServerPropertiesForGeoRestore, bool) { + return nil, false +} + +// AsServerPropertiesForReplica is the BasicServerPropertiesForCreate implementation for ServerPropertiesForReplica. +func (spfr ServerPropertiesForReplica) AsServerPropertiesForReplica() (*ServerPropertiesForReplica, bool) { + return &spfr, true +} + +// AsServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForReplica. +func (spfr ServerPropertiesForReplica) AsServerPropertiesForCreate() (*ServerPropertiesForCreate, bool) { + return nil, false +} + +// AsBasicServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForReplica. +func (spfr ServerPropertiesForReplica) AsBasicServerPropertiesForCreate() (BasicServerPropertiesForCreate, bool) { + return &spfr, true +} + // ServerPropertiesForRestore the properties used to create a new server by restoring from a backup. type ServerPropertiesForRestore struct { // SourceServerID - The source server id to restore from. @@ -1329,7 +1383,7 @@ type ServerPropertiesForRestore struct { SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` // StorageProfile - Storage profile of a server. StorageProfile *StorageProfile `json:"storageProfile,omitempty"` - // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore' + // CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeGeoRestore', 'CreateModeReplica' CreateMode CreateMode `json:"createMode,omitempty"` } @@ -1373,6 +1427,11 @@ func (spfr ServerPropertiesForRestore) AsServerPropertiesForGeoRestore() (*Serve return nil, false } +// AsServerPropertiesForReplica is the BasicServerPropertiesForCreate implementation for ServerPropertiesForRestore. +func (spfr ServerPropertiesForRestore) AsServerPropertiesForReplica() (*ServerPropertiesForReplica, bool) { + return nil, false +} + // AsServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForRestore. func (spfr ServerPropertiesForRestore) AsServerPropertiesForCreate() (*ServerPropertiesForCreate, bool) { return nil, false @@ -1383,29 +1442,6 @@ func (spfr ServerPropertiesForRestore) AsBasicServerPropertiesForCreate() (Basic return &spfr, true } -// ServerRestartFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type ServerRestartFuture struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *ServerRestartFuture) Result(client ServerClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "postgresql.ServerRestartFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("postgresql.ServerRestartFuture") - return - } - ar.Response = future.Response() - return -} - // ServersCreateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServersCreateFuture struct { @@ -1416,7 +1452,7 @@ type ServersCreateFuture struct { // If the operation has not completed it will return an error. func (future *ServersCreateFuture) Result(client ServersClient) (s Server, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServersCreateFuture", "Result", future.Response(), "Polling failure") return @@ -1445,7 +1481,7 @@ type ServersDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ServersDeleteFuture) Result(client ServersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServersDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1468,7 +1504,7 @@ type ServerSecurityAlertPoliciesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServerSecurityAlertPoliciesCreateOrUpdateFuture) Result(client ServerSecurityAlertPoliciesClient) (ssap ServerSecurityAlertPolicy, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServerSecurityAlertPoliciesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1492,11 +1528,11 @@ type ServerSecurityAlertPolicy struct { autorest.Response `json:"-"` // SecurityAlertPolicyProperties - Resource properties. *SecurityAlertPolicyProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1506,15 +1542,6 @@ func (ssap ServerSecurityAlertPolicy) MarshalJSON() ([]byte, error) { if ssap.SecurityAlertPolicyProperties != nil { objectMap["properties"] = ssap.SecurityAlertPolicyProperties } - if ssap.ID != nil { - objectMap["id"] = ssap.ID - } - if ssap.Name != nil { - objectMap["name"] = ssap.Name - } - if ssap.Type != nil { - objectMap["type"] = ssap.Type - } return json.Marshal(objectMap) } @@ -1569,6 +1596,29 @@ func (ssap *ServerSecurityAlertPolicy) UnmarshalJSON(body []byte) error { return nil } +// ServersRestartFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type ServersRestartFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ServersRestartFuture) Result(client ServersClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "postgresql.ServersRestartFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("postgresql.ServersRestartFuture") + return + } + ar.Response = future.Response() + return +} + // ServersUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServersUpdateFuture struct { @@ -1579,7 +1629,7 @@ type ServersUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServersUpdateFuture) Result(client ServersClient) (s Server, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.ServersUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1675,6 +1725,8 @@ type ServerUpdateParametersProperties struct { Version ServerVersion `json:"version,omitempty"` // SslEnforcement - Enable ssl enforcement or not when connect to server. Possible values include: 'SslEnforcementEnumEnabled', 'SslEnforcementEnumDisabled' SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` + // ReplicationRole - The replication role of the server. + ReplicationRole *string `json:"replicationRole,omitempty"` } // Sku billing information related properties of a server. @@ -1707,11 +1759,11 @@ type TrackedResource struct { Location *string `json:"location,omitempty"` // Tags - Application-specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1724,15 +1776,6 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Tags != nil { objectMap["tags"] = tr.Tags } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } @@ -1741,11 +1784,11 @@ type VirtualNetworkRule struct { autorest.Response `json:"-"` // VirtualNetworkRuleProperties - Resource properties. *VirtualNetworkRuleProperties `json:"properties,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1755,15 +1798,6 @@ func (vnr VirtualNetworkRule) MarshalJSON() ([]byte, error) { if vnr.VirtualNetworkRuleProperties != nil { objectMap["properties"] = vnr.VirtualNetworkRuleProperties } - if vnr.ID != nil { - objectMap["id"] = vnr.ID - } - if vnr.Name != nil { - objectMap["name"] = vnr.Name - } - if vnr.Type != nil { - objectMap["type"] = vnr.Type - } return json.Marshal(objectMap) } @@ -1821,9 +1855,9 @@ func (vnr *VirtualNetworkRule) UnmarshalJSON(body []byte) error { // VirtualNetworkRuleListResult a list of virtual network rules. type VirtualNetworkRuleListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]VirtualNetworkRule `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1970,7 +2004,7 @@ type VirtualNetworkRuleProperties struct { VirtualNetworkSubnetID *string `json:"virtualNetworkSubnetId,omitempty"` // IgnoreMissingVnetServiceEndpoint - Create firewall rule before the virtual network has vnet service endpoint enabled. IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty"` - // State - Virtual Network Rule State. Possible values include: 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' + // State - READ-ONLY; Virtual Network Rule State. Possible values include: 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' State VirtualNetworkRuleState `json:"state,omitempty"` } @@ -1984,7 +2018,7 @@ type VirtualNetworkRulesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkRulesCreateOrUpdateFuture) Result(client VirtualNetworkRulesClient) (vnr VirtualNetworkRule, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.VirtualNetworkRulesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -2013,7 +2047,7 @@ type VirtualNetworkRulesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkRulesDeleteFuture) Result(client VirtualNetworkRulesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "postgresql.VirtualNetworkRulesDeleteFuture", "Result", future.Response(), "Polling failure") return diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql/server.go b/vendor/github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql/replicas.go similarity index 50% rename from vendor/github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql/server.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql/replicas.go index c06241a683f9..ef08a731ba05 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql/server.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql/replicas.go @@ -25,56 +25,62 @@ import ( "net/http" ) -// ServerClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for +// ReplicasClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for // Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log // files and configurations with new business model. -type ServerClient struct { +type ReplicasClient struct { BaseClient } -// NewServerClient creates an instance of the ServerClient client. -func NewServerClient(subscriptionID string) ServerClient { - return NewServerClientWithBaseURI(DefaultBaseURI, subscriptionID) +// NewReplicasClient creates an instance of the ReplicasClient client. +func NewReplicasClient(subscriptionID string) ReplicasClient { + return NewReplicasClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewServerClientWithBaseURI creates an instance of the ServerClient client. -func NewServerClientWithBaseURI(baseURI string, subscriptionID string) ServerClient { - return ServerClient{NewWithBaseURI(baseURI, subscriptionID)} +// NewReplicasClientWithBaseURI creates an instance of the ReplicasClient client. +func NewReplicasClientWithBaseURI(baseURI string, subscriptionID string) ReplicasClient { + return ReplicasClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Restart restarts a server. +// ListByServer list all the replicas for a given server. // Parameters: // resourceGroupName - the name of the resource group that contains the resource. You can obtain this value // from the Azure Resource Manager API or the portal. // serverName - the name of the server. -func (client ServerClient) Restart(ctx context.Context, resourceGroupName string, serverName string) (result ServerRestartFuture, err error) { +func (client ReplicasClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerListResult, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServerClient.Restart") + ctx = tracing.StartSpan(ctx, fqdn+"/ReplicasClient.ListByServer") defer func() { sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() } - req, err := client.RestartPreparer(ctx, resourceGroupName, serverName) + req, err := client.ListByServerPreparer(ctx, resourceGroupName, serverName) if err != nil { - err = autorest.NewErrorWithError(err, "postgresql.ServerClient", "Restart", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "postgresql.ReplicasClient", "ListByServer", nil, "Failure preparing request") return } - result, err = client.RestartSender(req) + resp, err := client.ListByServerSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "postgresql.ServerClient", "Restart", result.Response(), "Failure sending request") + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "postgresql.ReplicasClient", "ListByServer", resp, "Failure sending request") return } + result, err = client.ListByServerResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "postgresql.ReplicasClient", "ListByServer", resp, "Failure responding to request") + } + return } -// RestartPreparer prepares the Restart request. -func (client ServerClient) RestartPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) { +// ListByServerPreparer prepares the ListByServer request. +func (client ReplicasClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "serverName": autorest.Encode("path", serverName), @@ -87,34 +93,29 @@ func (client ServerClient) RestartPreparer(ctx context.Context, resourceGroupNam } preparer := autorest.CreatePreparer( - autorest.AsPost(), + autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/restart", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/Replicas", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// RestartSender sends the Restart request. The method will close the +// ListByServerSender sends the ListByServer request. The method will close the // http.Response Body if it receives an error. -func (client ServerClient) RestartSender(req *http.Request) (future ServerRestartFuture, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, +func (client ReplicasClient) ListByServerSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return } -// RestartResponder handles the response to the Restart request. The method always +// ListByServerResponder handles the response to the ListByServer request. The method always // closes the http.Response Body. -func (client ServerClient) RestartResponder(resp *http.Response) (result autorest.Response, err error) { +func (client ReplicasClient) ListByServerResponder(resp *http.Response) (result ServerListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) - result.Response = resp + result.Response = autorest.Response{Response: resp} return } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql/servers.go b/vendor/github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql/servers.go index 35e9bb4cd26e..b9570ccb834c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql/servers.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql/servers.go @@ -438,6 +438,83 @@ func (client ServersClient) ListByResourceGroupResponder(resp *http.Response) (r return } +// Restart restarts a server. +// Parameters: +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// serverName - the name of the server. +func (client ServersClient) Restart(ctx context.Context, resourceGroupName string, serverName string) (result ServersRestartFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ServersClient.Restart") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.RestartPreparer(ctx, resourceGroupName, serverName) + if err != nil { + err = autorest.NewErrorWithError(err, "postgresql.ServersClient", "Restart", nil, "Failure preparing request") + return + } + + result, err = client.RestartSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "postgresql.ServersClient", "Restart", result.Response(), "Failure sending request") + return + } + + return +} + +// RestartPreparer prepares the Restart request. +func (client ServersClient) RestartPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serverName": autorest.Encode("path", serverName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2017-12-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/restart", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// RestartSender sends the Restart request. The method will close the +// http.Response Body if it receives an error. +func (client ServersClient) RestartSender(req *http.Request) (future ServersRestartFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// RestartResponder handles the response to the Restart request. The method always +// closes the http.Response Body. +func (client ServersClient) RestartResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + // Update updates an existing server. The request body can contain one to many of the properties present in the normal // server definition. // Parameters: diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-01-01-preview/authorization/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-01-01-preview/authorization/models.go index 41fe00970ec1..0a03dbb03294 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-01-01-preview/authorization/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-01-01-preview/authorization/models.go @@ -616,11 +616,11 @@ type ResourceType struct { // RoleAssignment role Assignments type RoleAssignment struct { autorest.Response `json:"-"` - // ID - The role assignment ID. + // ID - READ-ONLY; The role assignment ID. ID *string `json:"id,omitempty"` - // Name - The role assignment name. + // Name - READ-ONLY; The role assignment name. Name *string `json:"name,omitempty"` - // Type - The role assignment type. + // Type - READ-ONLY; The role assignment type. Type *string `json:"type,omitempty"` // RoleAssignmentPropertiesWithScope - Role assignment properties. *RoleAssignmentPropertiesWithScope `json:"properties,omitempty"` @@ -629,15 +629,6 @@ type RoleAssignment struct { // MarshalJSON is the custom marshaler for RoleAssignment. func (ra RoleAssignment) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if ra.ID != nil { - objectMap["id"] = ra.ID - } - if ra.Name != nil { - objectMap["name"] = ra.Name - } - if ra.Type != nil { - objectMap["type"] = ra.Type - } if ra.RoleAssignmentPropertiesWithScope != nil { objectMap["properties"] = ra.RoleAssignmentPropertiesWithScope } @@ -913,11 +904,11 @@ type RoleAssignmentPropertiesWithScope struct { // RoleDefinition role definition. type RoleDefinition struct { autorest.Response `json:"-"` - // ID - The role definition ID. + // ID - READ-ONLY; The role definition ID. ID *string `json:"id,omitempty"` - // Name - The role definition name. + // Name - READ-ONLY; The role definition name. Name *string `json:"name,omitempty"` - // Type - The role definition type. + // Type - READ-ONLY; The role definition type. Type *string `json:"type,omitempty"` // RoleDefinitionProperties - Role definition properties. *RoleDefinitionProperties `json:"properties,omitempty"` @@ -926,15 +917,6 @@ type RoleDefinition struct { // MarshalJSON is the custom marshaler for RoleDefinition. func (rd RoleDefinition) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if rd.ID != nil { - objectMap["id"] = rd.ID - } - if rd.Name != nil { - objectMap["name"] = rd.Name - } - if rd.Type != nil { - objectMap["type"] = rd.Type - } if rd.RoleDefinitionProperties != nil { objectMap["properties"] = rd.RoleDefinitionProperties } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-01-01-preview/authorization/roledefinitions.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-01-01-preview/authorization/roledefinitions.go index 893f6d054448..8156456638c3 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-01-01-preview/authorization/roledefinitions.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-01-01-preview/authorization/roledefinitions.go @@ -89,6 +89,9 @@ func (client RoleDefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, "api-version": APIVersion, } + roleDefinition.ID = nil + roleDefinition.Name = nil + roleDefinition.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/devspaces/mgmt/2018-06-01-preview/devspaces/containerhostmappings.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/devspaces/mgmt/2018-06-01-preview/devspaces/containerhostmappings.go index 583a73d7db76..66ea116b045f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/devspaces/mgmt/2018-06-01-preview/devspaces/containerhostmappings.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/devspaces/mgmt/2018-06-01-preview/devspaces/containerhostmappings.go @@ -86,6 +86,7 @@ func (client ContainerHostMappingsClient) GetContainerHostMappingPreparer(ctx co "api-version": APIVersion, } + containerHostMapping.MappedControllerResourceID = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPost(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/devspaces/mgmt/2018-06-01-preview/devspaces/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/devspaces/mgmt/2018-06-01-preview/devspaces/models.go index 88aa6edf7dcd..f097aca4b00c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/devspaces/mgmt/2018-06-01-preview/devspaces/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/devspaces/mgmt/2018-06-01-preview/devspaces/models.go @@ -88,7 +88,7 @@ func PossibleSkuTierValues() []SkuTier { type ContainerHostMapping struct { // ContainerHostResourceID - ARM ID of the Container Host resource ContainerHostResourceID *string `json:"containerHostResourceId,omitempty"` - // MappedControllerResourceID - ARM ID of the mapped Controller resource + // MappedControllerResourceID - READ-ONLY; ARM ID of the mapped Controller resource MappedControllerResourceID *string `json:"mappedControllerResourceId,omitempty"` } @@ -101,11 +101,11 @@ type Controller struct { Tags map[string]*string `json:"tags"` // Location - Region where the Azure resource is located. Location *string `json:"location,omitempty"` - // ID - Fully qualified resource Id for the resource. + // ID - READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -124,15 +124,6 @@ func (c Controller) MarshalJSON() ([]byte, error) { if c.Location != nil { objectMap["location"] = c.Location } - if c.ID != nil { - objectMap["id"] = c.ID - } - if c.Name != nil { - objectMap["name"] = c.Name - } - if c.Type != nil { - objectMap["type"] = c.Type - } return json.Marshal(objectMap) } @@ -216,11 +207,11 @@ func (c *Controller) UnmarshalJSON(body []byte) error { // ControllerConnectionDetails ... type ControllerConnectionDetails struct { - // AuthKey - Authentication key for communicating with services. + // AuthKey - READ-ONLY; Authentication key for communicating with services. AuthKey *string `json:"authKey,omitempty"` - // WorkspaceStorageAccountName - Workspace storage account name. + // WorkspaceStorageAccountName - READ-ONLY; Workspace storage account name. WorkspaceStorageAccountName *string `json:"workspaceStorageAccountName,omitempty"` - // WorkspaceStorageSasToken - Workspace storage account SAS token. + // WorkspaceStorageSasToken - READ-ONLY; Workspace storage account SAS token. WorkspaceStorageSasToken *string `json:"workspaceStorageSasToken,omitempty"` OrchestratorSpecificConnectionDetails BasicOrchestratorSpecificConnectionDetails `json:"orchestratorSpecificConnectionDetails,omitempty"` } @@ -287,7 +278,7 @@ type ControllerList struct { autorest.Response `json:"-"` // Value - List of Azure Dev Spaces Controllers. Value *[]Controller `json:"value,omitempty"` - // NextLink - The URI that can be used to request the next page for list of Azure Dev Spaces Controllers. + // NextLink - READ-ONLY; The URI that can be used to request the next page for list of Azure Dev Spaces Controllers. NextLink *string `json:"nextLink,omitempty"` } @@ -430,11 +421,11 @@ func NewControllerListPage(getNextPage func(context.Context, ControllerList) (Co // ControllerProperties ... type ControllerProperties struct { - // ProvisioningState - Provisioning state of the Azure Dev Spaces Controller. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Updating', 'Creating', 'Deleting', 'Deleted' + // ProvisioningState - READ-ONLY; Provisioning state of the Azure Dev Spaces Controller. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Updating', 'Creating', 'Deleting', 'Deleted' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // HostSuffix - DNS suffix for public endpoints running in the Azure Dev Spaces Controller. HostSuffix *string `json:"hostSuffix,omitempty"` - // DataPlaneFqdn - DNS name for accessing DataPlane services + // DataPlaneFqdn - READ-ONLY; DNS name for accessing DataPlane services DataPlaneFqdn *string `json:"dataPlaneFqdn,omitempty"` // TargetContainerHostResourceID - Resource ID of the target container host TargetContainerHostResourceID *string `json:"targetContainerHostResourceId,omitempty"` @@ -452,7 +443,7 @@ type ControllersCreateFuture struct { // If the operation has not completed it will return an error. func (future *ControllersCreateFuture) Result(client ControllersClient) (c Controller, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "devspaces.ControllersCreateFuture", "Result", future.Response(), "Polling failure") return @@ -481,7 +472,7 @@ type ControllersDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ControllersDeleteFuture) Result(client ControllersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "devspaces.ControllersDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -511,11 +502,11 @@ func (cup ControllerUpdateParameters) MarshalJSON() ([]byte, error) { // ErrorDetails ... type ErrorDetails struct { - // Code - Status code for the error. + // Code - READ-ONLY; Status code for the error. Code *string `json:"code,omitempty"` - // Message - Error message describing the error in detail. + // Message - READ-ONLY; Error message describing the error in detail. Message *string `json:"message,omitempty"` - // Target - The target of the particular error. + // Target - READ-ONLY; The target of the particular error. Target *string `json:"target,omitempty"` } @@ -640,11 +631,11 @@ func (oscd OrchestratorSpecificConnectionDetails) AsBasicOrchestratorSpecificCon // Resource an Azure resource. type Resource struct { - // ID - Fully qualified resource Id for the resource. + // ID - READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -672,7 +663,7 @@ type ResourceProviderOperationList struct { autorest.Response `json:"-"` // Value - Resource provider operations list. Value *[]ResourceProviderOperationDefinition `json:"value,omitempty"` - // NextLink - The URI that can be used to request the next page for list of Azure operations. + // NextLink - READ-ONLY; The URI that can be used to request the next page for list of Azure operations. NextLink *string `json:"nextLink,omitempty"` } @@ -834,11 +825,11 @@ type TrackedResource struct { Tags map[string]*string `json:"tags"` // Location - Region where the Azure resource is located. Location *string `json:"location,omitempty"` - // ID - Fully qualified resource Id for the resource. + // ID - READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -851,14 +842,5 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Location != nil { objectMap["location"] = tr.Location } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns/models.go index 8f09a059de32..538db27d647f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns/models.go @@ -90,13 +90,13 @@ type ARecord struct { // AzureEntityResource the resource model definition for a Azure Resource Manager resource with an etag. type AzureEntityResource struct { - // Etag - Resource Etag. + // Etag - READ-ONLY; Resource Etag. Etag *string `json:"etag,omitempty"` - // ID - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` } @@ -151,11 +151,11 @@ type NsRecord struct { // ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than // required location and tags type ProxyResource struct { - // ID - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` } @@ -168,11 +168,11 @@ type PtrRecord struct { // RecordSet describes a DNS record set (a collection of DNS records with the same name and type). type RecordSet struct { autorest.Response `json:"-"` - // ID - The ID of the record set. + // ID - READ-ONLY; The ID of the record set. ID *string `json:"id,omitempty"` - // Name - The name of the record set. + // Name - READ-ONLY; The name of the record set. Name *string `json:"name,omitempty"` - // Type - The type of the record set. + // Type - READ-ONLY; The type of the record set. Type *string `json:"type,omitempty"` // Etag - The etag of the record set. Etag *string `json:"etag,omitempty"` @@ -183,15 +183,6 @@ type RecordSet struct { // MarshalJSON is the custom marshaler for RecordSet. func (rs RecordSet) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if rs.ID != nil { - objectMap["id"] = rs.ID - } - if rs.Name != nil { - objectMap["name"] = rs.Name - } - if rs.Type != nil { - objectMap["type"] = rs.Type - } if rs.Etag != nil { objectMap["etag"] = rs.Etag } @@ -266,7 +257,7 @@ type RecordSetListResult struct { autorest.Response `json:"-"` // Value - Information about the record sets in the response. Value *[]RecordSet `json:"value,omitempty"` - // NextLink - The continuation token for the next page of results. + // NextLink - READ-ONLY; The continuation token for the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -413,7 +404,7 @@ type RecordSetProperties struct { Metadata map[string]*string `json:"metadata"` // TTL - The TTL (time-to-live) of the records in the record set. TTL *int64 `json:"TTL,omitempty"` - // Fqdn - Fully qualified domain name of the record set. + // Fqdn - READ-ONLY; Fully qualified domain name of the record set. Fqdn *string `json:"fqdn,omitempty"` // ARecords - The list of A records in the record set. ARecords *[]ARecord `json:"ARecords,omitempty"` @@ -446,9 +437,6 @@ func (rsp RecordSetProperties) MarshalJSON() ([]byte, error) { if rsp.TTL != nil { objectMap["TTL"] = rsp.TTL } - if rsp.Fqdn != nil { - objectMap["fqdn"] = rsp.Fqdn - } if rsp.ARecords != nil { objectMap["ARecords"] = rsp.ARecords } @@ -490,11 +478,11 @@ type RecordSetUpdateParameters struct { // Resource ... type Resource struct { - // ID - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` } @@ -540,11 +528,11 @@ type TrackedResource struct { Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` - // ID - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` } @@ -557,15 +545,6 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Location != nil { objectMap["location"] = tr.Location } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } @@ -586,11 +565,11 @@ type Zone struct { Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` - // ID - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` } @@ -609,15 +588,6 @@ func (z Zone) MarshalJSON() ([]byte, error) { if z.Location != nil { objectMap["location"] = z.Location } - if z.ID != nil { - objectMap["id"] = z.ID - } - if z.Name != nil { - objectMap["name"] = z.Name - } - if z.Type != nil { - objectMap["type"] = z.Type - } return json.Marshal(objectMap) } @@ -704,7 +674,7 @@ type ZoneListResult struct { autorest.Response `json:"-"` // Value - Information about the DNS zones. Value *[]Zone `json:"value,omitempty"` - // NextLink - The continuation token for the next page of results. + // NextLink - READ-ONLY; The continuation token for the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -847,11 +817,11 @@ func NewZoneListResultPage(getNextPage func(context.Context, ZoneListResult) (Zo // ZoneProperties represents the properties of the zone. type ZoneProperties struct { - // MaxNumberOfRecordSets - The maximum number of record sets that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. + // MaxNumberOfRecordSets - READ-ONLY; The maximum number of record sets that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. MaxNumberOfRecordSets *int64 `json:"maxNumberOfRecordSets,omitempty"` - // NumberOfRecordSets - The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. + // NumberOfRecordSets - READ-ONLY; The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. NumberOfRecordSets *int64 `json:"numberOfRecordSets,omitempty"` - // NameServers - The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored. + // NameServers - READ-ONLY; The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored. NameServers *[]string `json:"nameServers,omitempty"` // ZoneType - The type of this DNS zone (Public or Private). Possible values include: 'Public', 'Private' ZoneType ZoneType `json:"zoneType,omitempty"` @@ -870,7 +840,7 @@ type ZonesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ZonesDeleteFuture) Result(client ZonesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "dns.ZonesDeleteFuture", "Result", future.Response(), "Polling failure") return diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns/recordsets.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns/recordsets.go index 93423b76bb65..412e485f3ec2 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns/recordsets.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns/recordsets.go @@ -110,6 +110,9 @@ func (client RecordSetsClient) CreateOrUpdatePreparer(ctx context.Context, resou "api-version": APIVersion, } + parameters.ID = nil + parameters.Name = nil + parameters.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -809,6 +812,9 @@ func (client RecordSetsClient) UpdatePreparer(ctx context.Context, resourceGroup "api-version": APIVersion, } + parameters.ID = nil + parameters.Name = nil + parameters.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPatch(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/models.go index 6ad697f4b940..53c8b1cb83ea 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid/models.go @@ -18,6 +18,7 @@ package eventgrid // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( + "context" "encoding/json" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" @@ -635,11 +636,11 @@ type Domain struct { Location *string `json:"location,omitempty"` // Tags - Tags of the resource Tags map[string]*string `json:"tags"` - // ID - Fully qualified identifier of the resource + // ID - READ-ONLY; Fully qualified identifier of the resource ID *string `json:"id,omitempty"` - // Name - Name of the resource + // Name - READ-ONLY; Name of the resource Name *string `json:"name,omitempty"` - // Type - Type of the resource + // Type - READ-ONLY; Type of the resource Type *string `json:"type,omitempty"` } @@ -655,15 +656,6 @@ func (d Domain) MarshalJSON() ([]byte, error) { if d.Tags != nil { objectMap["tags"] = d.Tags } - if d.ID != nil { - objectMap["id"] = d.ID - } - if d.Name != nil { - objectMap["name"] = d.Name - } - if d.Type != nil { - objectMap["type"] = d.Type - } return json.Marshal(objectMap) } @@ -738,9 +730,9 @@ func (d *Domain) UnmarshalJSON(body []byte) error { // DomainProperties properties of the Domain type DomainProperties struct { - // ProvisioningState - Provisioning state of the domain. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' + // ProvisioningState - READ-ONLY; Provisioning state of the domain. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' ProvisioningState DomainProvisioningState `json:"provisioningState,omitempty"` - // Endpoint - Endpoint for the domain. + // Endpoint - READ-ONLY; Endpoint for the domain. Endpoint *string `json:"endpoint,omitempty"` // InputSchema - This determines the format that Event Grid should expect for incoming events published to the domain. Possible values include: 'InputSchemaEventGridSchema', 'InputSchemaCustomEventSchema', 'InputSchemaCloudEventV01Schema' InputSchema InputSchema `json:"inputSchema,omitempty"` @@ -814,7 +806,7 @@ type DomainsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *DomainsCreateOrUpdateFuture) Result(client DomainsClient) (d Domain, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -843,7 +835,7 @@ type DomainsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *DomainsDeleteFuture) Result(client DomainsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -882,7 +874,7 @@ type DomainsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *DomainsUpdateFuture) Result(client DomainsClient) (d Domain, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.DomainsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -904,11 +896,11 @@ func (future *DomainsUpdateFuture) Result(client DomainsClient) (d Domain, err e // DomainTopic domain Topic type DomainTopic struct { autorest.Response `json:"-"` - // ID - Fully qualified identifier of the resource + // ID - READ-ONLY; Fully qualified identifier of the resource ID *string `json:"id,omitempty"` - // Name - Name of the resource + // Name - READ-ONLY; Name of the resource Name *string `json:"name,omitempty"` - // Type - Type of the resource + // Type - READ-ONLY; Type of the resource Type *string `json:"type,omitempty"` } @@ -1030,11 +1022,11 @@ type EventSubscription struct { autorest.Response `json:"-"` // EventSubscriptionProperties - Properties of the event subscription *EventSubscriptionProperties `json:"properties,omitempty"` - // ID - Fully qualified identifier of the resource + // ID - READ-ONLY; Fully qualified identifier of the resource ID *string `json:"id,omitempty"` - // Name - Name of the resource + // Name - READ-ONLY; Name of the resource Name *string `json:"name,omitempty"` - // Type - Type of the resource + // Type - READ-ONLY; Type of the resource Type *string `json:"type,omitempty"` } @@ -1044,15 +1036,6 @@ func (es EventSubscription) MarshalJSON() ([]byte, error) { if es.EventSubscriptionProperties != nil { objectMap["properties"] = es.EventSubscriptionProperties } - if es.ID != nil { - objectMap["id"] = es.ID - } - if es.Name != nil { - objectMap["name"] = es.Name - } - if es.Type != nil { - objectMap["type"] = es.Type - } return json.Marshal(objectMap) } @@ -1298,9 +1281,9 @@ type EventSubscriptionFullURL struct { // EventSubscriptionProperties properties of the Event Subscription type EventSubscriptionProperties struct { - // Topic - Name of the topic of the event subscription. + // Topic - READ-ONLY; Name of the topic of the event subscription. Topic *string `json:"topic,omitempty"` - // ProvisioningState - Provisioning state of the event subscription. Possible values include: 'EventSubscriptionProvisioningStateCreating', 'EventSubscriptionProvisioningStateUpdating', 'EventSubscriptionProvisioningStateDeleting', 'EventSubscriptionProvisioningStateSucceeded', 'EventSubscriptionProvisioningStateCanceled', 'EventSubscriptionProvisioningStateFailed', 'EventSubscriptionProvisioningStateAwaitingManualAction' + // ProvisioningState - READ-ONLY; Provisioning state of the event subscription. Possible values include: 'EventSubscriptionProvisioningStateCreating', 'EventSubscriptionProvisioningStateUpdating', 'EventSubscriptionProvisioningStateDeleting', 'EventSubscriptionProvisioningStateSucceeded', 'EventSubscriptionProvisioningStateCanceled', 'EventSubscriptionProvisioningStateFailed', 'EventSubscriptionProvisioningStateAwaitingManualAction' ProvisioningState EventSubscriptionProvisioningState `json:"provisioningState,omitempty"` // Destination - Information about the destination where events have to be delivered for the event subscription. Destination BasicEventSubscriptionDestination `json:"destination,omitempty"` @@ -1422,7 +1405,7 @@ type EventSubscriptionsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *EventSubscriptionsCreateOrUpdateFuture) Result(client EventSubscriptionsClient) (es EventSubscription, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1451,7 +1434,7 @@ type EventSubscriptionsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *EventSubscriptionsDeleteFuture) Result(client EventSubscriptionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1481,7 +1464,7 @@ type EventSubscriptionsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *EventSubscriptionsUpdateFuture) Result(client EventSubscriptionsClient) (es EventSubscription, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.EventSubscriptionsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1598,11 +1581,11 @@ func (esup *EventSubscriptionUpdateParameters) UnmarshalJSON(body []byte) error type EventType struct { // EventTypeProperties - Properties of the event type. *EventTypeProperties `json:"properties,omitempty"` - // ID - Fully qualified identifier of the resource + // ID - READ-ONLY; Fully qualified identifier of the resource ID *string `json:"id,omitempty"` - // Name - Name of the resource + // Name - READ-ONLY; Name of the resource Name *string `json:"name,omitempty"` - // Type - Type of the resource + // Type - READ-ONLY; Type of the resource Type *string `json:"type,omitempty"` } @@ -1612,15 +1595,6 @@ func (et EventType) MarshalJSON() ([]byte, error) { if et.EventTypeProperties != nil { objectMap["properties"] = et.EventTypeProperties } - if et.ID != nil { - objectMap["id"] = et.ID - } - if et.Name != nil { - objectMap["name"] = et.Name - } - if et.Type != nil { - objectMap["type"] = et.Type - } return json.Marshal(objectMap) } @@ -2577,11 +2551,11 @@ type OperationsListResult struct { // Resource definition of a Resource type Resource struct { - // ID - Fully qualified identifier of the resource + // ID - READ-ONLY; Fully qualified identifier of the resource ID *string `json:"id,omitempty"` - // Name - Name of the resource + // Name - READ-ONLY; Name of the resource Name *string `json:"name,omitempty"` - // Type - Type of the resource + // Type - READ-ONLY; Type of the resource Type *string `json:"type,omitempty"` } @@ -3252,11 +3226,11 @@ type Topic struct { Location *string `json:"location,omitempty"` // Tags - Tags of the resource Tags map[string]*string `json:"tags"` - // ID - Fully qualified identifier of the resource + // ID - READ-ONLY; Fully qualified identifier of the resource ID *string `json:"id,omitempty"` - // Name - Name of the resource + // Name - READ-ONLY; Name of the resource Name *string `json:"name,omitempty"` - // Type - Type of the resource + // Type - READ-ONLY; Type of the resource Type *string `json:"type,omitempty"` } @@ -3272,15 +3246,6 @@ func (t Topic) MarshalJSON() ([]byte, error) { if t.Tags != nil { objectMap["tags"] = t.Tags } - if t.ID != nil { - objectMap["id"] = t.ID - } - if t.Name != nil { - objectMap["name"] = t.Name - } - if t.Type != nil { - objectMap["type"] = t.Type - } return json.Marshal(objectMap) } @@ -3355,9 +3320,9 @@ func (t *Topic) UnmarshalJSON(body []byte) error { // TopicProperties properties of the Topic type TopicProperties struct { - // ProvisioningState - Provisioning state of the topic. Possible values include: 'TopicProvisioningStateCreating', 'TopicProvisioningStateUpdating', 'TopicProvisioningStateDeleting', 'TopicProvisioningStateSucceeded', 'TopicProvisioningStateCanceled', 'TopicProvisioningStateFailed' + // ProvisioningState - READ-ONLY; Provisioning state of the topic. Possible values include: 'TopicProvisioningStateCreating', 'TopicProvisioningStateUpdating', 'TopicProvisioningStateDeleting', 'TopicProvisioningStateSucceeded', 'TopicProvisioningStateCanceled', 'TopicProvisioningStateFailed' ProvisioningState TopicProvisioningState `json:"provisioningState,omitempty"` - // Endpoint - Endpoint for the topic. + // Endpoint - READ-ONLY; Endpoint for the topic. Endpoint *string `json:"endpoint,omitempty"` // InputSchema - This determines the format that Event Grid should expect for incoming events published to the topic. Possible values include: 'InputSchemaEventGridSchema', 'InputSchemaCustomEventSchema', 'InputSchemaCloudEventV01Schema' InputSchema InputSchema `json:"inputSchema,omitempty"` @@ -3431,7 +3396,7 @@ type TopicsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *TopicsCreateOrUpdateFuture) Result(client TopicsClient) (t Topic, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -3459,7 +3424,7 @@ type TopicsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *TopicsDeleteFuture) Result(client TopicsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -3497,7 +3462,7 @@ type TopicsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *TopicsUpdateFuture) Result(client TopicsClient) (t Topic, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "eventgrid.TopicsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -3521,11 +3486,11 @@ type TopicTypeInfo struct { autorest.Response `json:"-"` // TopicTypeProperties - Properties of the topic type info *TopicTypeProperties `json:"properties,omitempty"` - // ID - Fully qualified identifier of the resource + // ID - READ-ONLY; Fully qualified identifier of the resource ID *string `json:"id,omitempty"` - // Name - Name of the resource + // Name - READ-ONLY; Name of the resource Name *string `json:"name,omitempty"` - // Type - Type of the resource + // Type - READ-ONLY; Type of the resource Type *string `json:"type,omitempty"` } @@ -3535,15 +3500,6 @@ func (tti TopicTypeInfo) MarshalJSON() ([]byte, error) { if tti.TopicTypeProperties != nil { objectMap["properties"] = tti.TopicTypeProperties } - if tti.ID != nil { - objectMap["id"] = tti.ID - } - if tti.Name != nil { - objectMap["name"] = tti.Name - } - if tti.Type != nil { - objectMap["type"] = tti.Type - } return json.Marshal(objectMap) } @@ -3642,11 +3598,11 @@ type TrackedResource struct { Location *string `json:"location,omitempty"` // Tags - Tags of the resource Tags map[string]*string `json:"tags"` - // ID - Fully qualified identifier of the resource + // ID - READ-ONLY; Fully qualified identifier of the resource ID *string `json:"id,omitempty"` - // Name - Name of the resource + // Name - READ-ONLY; Name of the resource Name *string `json:"name,omitempty"` - // Type - Type of the resource + // Type - READ-ONLY; Type of the resource Type *string `json:"type,omitempty"` } @@ -3659,15 +3615,6 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Tags != nil { objectMap["tags"] = tr.Tags } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } @@ -3760,6 +3707,6 @@ func (whesd *WebHookEventSubscriptionDestination) UnmarshalJSON(body []byte) err type WebHookEventSubscriptionDestinationProperties struct { // EndpointURL - The URL that represents the endpoint of the destination of an event subscription. EndpointURL *string `json:"endpointUrl,omitempty"` - // EndpointBaseURL - The base URL that represents the endpoint of the destination of an event subscription. + // EndpointBaseURL - READ-ONLY; The base URL that represents the endpoint of the destination of an event subscription. EndpointBaseURL *string `json:"endpointBaseUrl,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight/clusters.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight/clusters.go index c3f244287d7a..e6adf44a9c73 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight/clusters.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight/clusters.go @@ -359,6 +359,83 @@ func (client ClustersClient) GetResponder(resp *http.Response) (result Cluster, return } +// GetGatewaySettings gets the gateway settings for the specified cluster. +// Parameters: +// resourceGroupName - the name of the resource group. +// clusterName - the name of the cluster. +func (client ClustersClient) GetGatewaySettings(ctx context.Context, resourceGroupName string, clusterName string) (result GatewaySettings, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ClustersClient.GetGatewaySettings") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetGatewaySettingsPreparer(ctx, resourceGroupName, clusterName) + if err != nil { + err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "GetGatewaySettings", nil, "Failure preparing request") + return + } + + resp, err := client.GetGatewaySettingsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "GetGatewaySettings", resp, "Failure sending request") + return + } + + result, err = client.GetGatewaySettingsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "GetGatewaySettings", resp, "Failure responding to request") + } + + return +} + +// GetGatewaySettingsPreparer prepares the GetGatewaySettings request. +func (client ClustersClient) GetGatewaySettingsPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "clusterName": autorest.Encode("path", clusterName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-06-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/getGatewaySettings", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetGatewaySettingsSender sends the GetGatewaySettings request. The method will close the +// http.Response Body if it receives an error. +func (client ClustersClient) GetGatewaySettingsSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetGatewaySettingsResponder handles the response to the GetGatewaySettings request. The method always +// closes the http.Response Body. +func (client ClustersClient) GetGatewaySettingsResponder(resp *http.Response) (result GatewaySettings, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + // List lists all the HDInsight clusters under the subscription. func (client ClustersClient) List(ctx context.Context) (result ClusterListResultPage, err error) { if tracing.IsEnabled() { @@ -820,3 +897,82 @@ func (client ClustersClient) UpdateResponder(resp *http.Response) (result Cluste result.Response = autorest.Response{Response: resp} return } + +// UpdateGatewaySettings configures the gateway settings on the specified cluster. +// Parameters: +// resourceGroupName - the name of the resource group. +// clusterName - the name of the cluster. +// parameters - the cluster configurations. +func (client ClustersClient) UpdateGatewaySettings(ctx context.Context, resourceGroupName string, clusterName string, parameters UpdateGatewaySettingsParameters) (result ClustersUpdateGatewaySettingsFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ClustersClient.UpdateGatewaySettings") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.UpdateGatewaySettingsPreparer(ctx, resourceGroupName, clusterName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "UpdateGatewaySettings", nil, "Failure preparing request") + return + } + + result, err = client.UpdateGatewaySettingsSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "hdinsight.ClustersClient", "UpdateGatewaySettings", result.Response(), "Failure sending request") + return + } + + return +} + +// UpdateGatewaySettingsPreparer prepares the UpdateGatewaySettings request. +func (client ClustersClient) UpdateGatewaySettingsPreparer(ctx context.Context, resourceGroupName string, clusterName string, parameters UpdateGatewaySettingsParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "clusterName": autorest.Encode("path", clusterName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-06-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateGatewaySettings", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateGatewaySettingsSender sends the UpdateGatewaySettings request. The method will close the +// http.Response Body if it receives an error. +func (client ClustersClient) UpdateGatewaySettingsSender(req *http.Request) (future ClustersUpdateGatewaySettingsFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// UpdateGatewaySettingsResponder handles the response to the UpdateGatewaySettings request. The method always +// closes the http.Response Body. +func (client ClustersClient) UpdateGatewaySettingsResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight/configurations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight/configurations.go index db8b2d91c198..ad0389668067 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight/configurations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight/configurations.go @@ -41,7 +41,8 @@ func NewConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) C return ConfigurationsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Get the configuration object for the specified cluster. +// Get the configuration object for the specified cluster. This API is not recommended and might be removed in the +// future. Please consider using List configurations API instead. // Parameters: // resourceGroupName - the name of the resource group. // clusterName - the name of the cluster. @@ -120,7 +121,85 @@ func (client ConfigurationsClient) GetResponder(resp *http.Response) (result Set return } -// Update configures the configuration on the specified cluster. +// List gets all configuration information for an HDI cluster. +// Parameters: +// resourceGroupName - the name of the resource group. +// clusterName - the name of the cluster. +func (client ConfigurationsClient) List(ctx context.Context, resourceGroupName string, clusterName string) (result ClusterConfigurations, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ConfigurationsClient.List") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.ListPreparer(ctx, resourceGroupName, clusterName) + if err != nil { + err = autorest.NewErrorWithError(err, "hdinsight.ConfigurationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "hdinsight.ConfigurationsClient", "List", resp, "Failure sending request") + return + } + + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "hdinsight.ConfigurationsClient", "List", resp, "Failure responding to request") + } + + return +} + +// ListPreparer prepares the List request. +func (client ConfigurationsClient) ListPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "clusterName": autorest.Encode("path", clusterName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-06-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client ConfigurationsClient) ListSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client ConfigurationsClient) ListResponder(resp *http.Response) (result ClusterConfigurations, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Update configures the HTTP settings on the specified cluster. This API is deprecated, please use +// UpdateGatewaySettings in cluster endpoint instead. // Parameters: // resourceGroupName - the name of the resource group. // clusterName - the name of the cluster. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight/models.go index 9ccaaaa063d5..2cfefc8b3081 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight/models.go @@ -156,11 +156,11 @@ type Application struct { Tags map[string]*string `json:"tags"` // Properties - The properties of the application. Properties *ApplicationProperties `json:"properties,omitempty"` - // ID - Fully qualified resource Id for the resource. + // ID - READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -176,15 +176,6 @@ func (a Application) MarshalJSON() ([]byte, error) { if a.Properties != nil { objectMap["properties"] = a.Properties } - if a.ID != nil { - objectMap["id"] = a.ID - } - if a.Name != nil { - objectMap["name"] = a.Name - } - if a.Type != nil { - objectMap["type"] = a.Type - } return json.Marshal(objectMap) } @@ -216,7 +207,7 @@ type ApplicationListResult struct { autorest.Response `json:"-"` // Value - The list of HDInsight applications installed on HDInsight cluster. Value *[]Application `json:"value,omitempty"` - // NextLink - The URL to get the next set of operation list results if there are any. + // NextLink - READ-ONLY; The URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` } @@ -369,17 +360,17 @@ type ApplicationProperties struct { HTTPSEndpoints *[]ApplicationGetHTTPSEndpoint `json:"httpsEndpoints,omitempty"` // SSHEndpoints - The list of application SSH endpoints. SSHEndpoints *[]ApplicationGetEndpoint `json:"sshEndpoints,omitempty"` - // ProvisioningState - The provisioning state of the application. + // ProvisioningState - READ-ONLY; The provisioning state of the application. ProvisioningState *string `json:"provisioningState,omitempty"` // ApplicationType - The application type. ApplicationType *string `json:"applicationType,omitempty"` - // ApplicationState - The application state. + // ApplicationState - READ-ONLY; The application state. ApplicationState *string `json:"applicationState,omitempty"` // Errors - The list of errors. Errors *[]Errors `json:"errors,omitempty"` - // CreatedDate - The application create date time. + // CreatedDate - READ-ONLY; The application create date time. CreatedDate *string `json:"createdDate,omitempty"` - // MarketplaceIdentifier - The marketplace identifier. + // MarketplaceIdentifier - READ-ONLY; The marketplace identifier. MarketplaceIdentifier *string `json:"marketplaceIdentifier,omitempty"` } @@ -393,7 +384,7 @@ type ApplicationsCreateFuture struct { // If the operation has not completed it will return an error. func (future *ApplicationsCreateFuture) Result(client ApplicationsClient) (a Application, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ApplicationsCreateFuture", "Result", future.Response(), "Polling failure") return @@ -422,7 +413,7 @@ type ApplicationsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ApplicationsDeleteFuture) Result(client ApplicationsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ApplicationsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -448,11 +439,11 @@ type Cluster struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Fully qualified resource Id for the resource. + // ID - READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -474,14 +465,21 @@ func (c Cluster) MarshalJSON() ([]byte, error) { if c.Tags != nil { objectMap["tags"] = c.Tags } - if c.ID != nil { - objectMap["id"] = c.ID - } - if c.Name != nil { - objectMap["name"] = c.Name - } - if c.Type != nil { - objectMap["type"] = c.Type + return json.Marshal(objectMap) +} + +// ClusterConfigurations the configuration object for the specified cluster. +type ClusterConfigurations struct { + autorest.Response `json:"-"` + // Configurations - The configuration object for the specified configuration for the specified cluster. + Configurations map[string]map[string]*string `json:"configurations"` +} + +// MarshalJSON is the custom marshaler for ClusterConfigurations. +func (cc ClusterConfigurations) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cc.Configurations != nil { + objectMap["configurations"] = cc.Configurations } return json.Marshal(objectMap) } @@ -608,9 +606,9 @@ type ClusterGetProperties struct { // ClusterIdentity identity for the cluster. type ClusterIdentity struct { - // PrincipalID - The principal id of cluster identity. This property will only be provided for a system assigned identity. + // PrincipalID - READ-ONLY; The principal id of cluster identity. This property will only be provided for a system assigned identity. PrincipalID *string `json:"principalId,omitempty"` - // TenantID - The tenant id associated with the cluster. This property will only be provided for a system assigned identity. + // TenantID - READ-ONLY; The tenant id associated with the cluster. This property will only be provided for a system assigned identity. TenantID *string `json:"tenantId,omitempty"` // Type - The type of identity used for the cluster. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssignedUserAssigned', 'None' Type ResourceIdentityType `json:"type,omitempty"` @@ -621,12 +619,6 @@ type ClusterIdentity struct { // MarshalJSON is the custom marshaler for ClusterIdentity. func (ci ClusterIdentity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if ci.PrincipalID != nil { - objectMap["principalId"] = ci.PrincipalID - } - if ci.TenantID != nil { - objectMap["tenantId"] = ci.TenantID - } if ci.Type != "" { objectMap["type"] = ci.Type } @@ -638,9 +630,9 @@ func (ci ClusterIdentity) MarshalJSON() ([]byte, error) { // ClusterIdentityUserAssignedIdentitiesValue ... type ClusterIdentityUserAssignedIdentitiesValue struct { - // PrincipalID - The principal id of user assigned identity. + // PrincipalID - READ-ONLY; The principal id of user assigned identity. PrincipalID *string `json:"principalId,omitempty"` - // ClientID - The client id of user assigned identity. + // ClientID - READ-ONLY; The client id of user assigned identity. ClientID *string `json:"clientId,omitempty"` } @@ -648,7 +640,7 @@ type ClusterIdentityUserAssignedIdentitiesValue struct { type ClusterListPersistedScriptActionsResult struct { // Value - The list of Persisted Script Actions. Value *[]RuntimeScriptAction `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -657,7 +649,7 @@ type ClusterListResult struct { autorest.Response `json:"-"` // Value - The list of Clusters. Value *[]Cluster `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -800,9 +792,9 @@ func NewClusterListResultPage(getNextPage func(context.Context, ClusterListResul // ClusterListRuntimeScriptActionDetailResult the list runtime script action detail response. type ClusterListRuntimeScriptActionDetailResult struct { - // Value - The list of persisted script action details for the cluster. + // Value - READ-ONLY; The list of persisted script action details for the cluster. Value *[]RuntimeScriptActionDetail `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -854,7 +846,7 @@ type ClustersCreateFuture struct { // If the operation has not completed it will return an error. func (future *ClustersCreateFuture) Result(client ClustersClient) (c Cluster, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersCreateFuture", "Result", future.Response(), "Polling failure") return @@ -883,7 +875,7 @@ type ClustersDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ClustersDeleteFuture) Result(client ClustersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -906,7 +898,7 @@ type ClustersExecuteScriptActionsFuture struct { // If the operation has not completed it will return an error. func (future *ClustersExecuteScriptActionsFuture) Result(client ClustersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersExecuteScriptActionsFuture", "Result", future.Response(), "Polling failure") return @@ -929,7 +921,7 @@ type ClustersResizeFuture struct { // If the operation has not completed it will return an error. func (future *ClustersResizeFuture) Result(client ClustersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersResizeFuture", "Result", future.Response(), "Polling failure") return @@ -952,7 +944,7 @@ type ClustersRotateDiskEncryptionKeyFuture struct { // If the operation has not completed it will return an error. func (future *ClustersRotateDiskEncryptionKeyFuture) Result(client ClustersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ClustersRotateDiskEncryptionKeyFuture", "Result", future.Response(), "Polling failure") return @@ -965,6 +957,29 @@ func (future *ClustersRotateDiskEncryptionKeyFuture) Result(client ClustersClien return } +// ClustersUpdateGatewaySettingsFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type ClustersUpdateGatewaySettingsFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *ClustersUpdateGatewaySettingsFuture) Result(client ClustersClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "hdinsight.ClustersUpdateGatewaySettingsFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("hdinsight.ClustersUpdateGatewaySettingsFuture") + return + } + ar.Response = future.Response() + return +} + // ComputeProfile describes the compute profile. type ComputeProfile struct { // Roles - The list of roles in the cluster. @@ -981,7 +996,7 @@ type ConfigurationsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ConfigurationsUpdateFuture) Result(client ConfigurationsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ConfigurationsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1010,9 +1025,9 @@ type ConnectivityEndpoint struct { type DataDisksGroups struct { // DisksPerNode - The number of disks per node. DisksPerNode *int32 `json:"disksPerNode,omitempty"` - // StorageAccountType - ReadOnly. The storage account type. Do not set this value. + // StorageAccountType - READ-ONLY; ReadOnly. The storage account type. Do not set this value. StorageAccountType *string `json:"storageAccountType,omitempty"` - // DiskSizeGB - ReadOnly. The DiskSize in GB. Do not set this value. + // DiskSizeGB - READ-ONLY; ReadOnly. The DiskSize in GB. Do not set this value. DiskSizeGB *int32 `json:"diskSizeGB,omitempty"` } @@ -1073,7 +1088,7 @@ type ExtensionsCreateFuture struct { // If the operation has not completed it will return an error. func (future *ExtensionsCreateFuture) Result(client ExtensionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ExtensionsCreateFuture", "Result", future.Response(), "Polling failure") return @@ -1096,7 +1111,7 @@ type ExtensionsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ExtensionsDeleteFuture) Result(client ExtensionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ExtensionsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1119,7 +1134,7 @@ type ExtensionsDisableMonitoringFuture struct { // If the operation has not completed it will return an error. func (future *ExtensionsDisableMonitoringFuture) Result(client ExtensionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ExtensionsDisableMonitoringFuture", "Result", future.Response(), "Polling failure") return @@ -1142,7 +1157,7 @@ type ExtensionsEnableMonitoringFuture struct { // If the operation has not completed it will return an error. func (future *ExtensionsEnableMonitoringFuture) Result(client ExtensionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "hdinsight.ExtensionsEnableMonitoringFuture", "Result", future.Response(), "Polling failure") return @@ -1155,6 +1170,17 @@ func (future *ExtensionsEnableMonitoringFuture) Result(client ExtensionsClient) return } +// GatewaySettings gateway settings. +type GatewaySettings struct { + autorest.Response `json:"-"` + // IsCredentialEnabled - READ-ONLY; Indicates whether or not the gateway settings based authorization is enabled. + IsCredentialEnabled *string `json:"restAuthCredential.isEnabled,omitempty"` + // UserName - READ-ONLY; The gateway settings user name. + UserName *string `json:"restAuthCredential.username,omitempty"` + // Password - READ-ONLY; The gateway settings user password. + Password *string `json:"restAuthCredential.password,omitempty"` +} + // HardwareProfile the hardware profile. type HardwareProfile struct { // VMSize - The size of the VM @@ -1361,11 +1387,11 @@ type OsProfile struct { // ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than // required location and tags type ProxyResource struct { - // ID - Fully qualified resource Id for the resource. + // ID - READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -1377,11 +1403,11 @@ type QuotaInfo struct { // Resource the core properties of ARM resources type Resource struct { - // ID - Fully qualified resource Id for the resource. + // ID - READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -1415,26 +1441,26 @@ type RuntimeScriptAction struct { Parameters *string `json:"parameters,omitempty"` // Roles - The list of roles where script will be executed. Roles *[]string `json:"roles,omitempty"` - // ApplicationName - The application name of the script action, if any. + // ApplicationName - READ-ONLY; The application name of the script action, if any. ApplicationName *string `json:"applicationName,omitempty"` } // RuntimeScriptActionDetail the execution details of a script action. type RuntimeScriptActionDetail struct { autorest.Response `json:"-"` - // ScriptExecutionID - The execution id of the script action. + // ScriptExecutionID - READ-ONLY; The execution id of the script action. ScriptExecutionID *int64 `json:"scriptExecutionId,omitempty"` - // StartTime - The start time of script action execution. + // StartTime - READ-ONLY; The start time of script action execution. StartTime *string `json:"startTime,omitempty"` - // EndTime - The end time of script action execution. + // EndTime - READ-ONLY; The end time of script action execution. EndTime *string `json:"endTime,omitempty"` - // Status - The current execution status of the script action. + // Status - READ-ONLY; The current execution status of the script action. Status *string `json:"status,omitempty"` - // Operation - The reason why the script action was executed. + // Operation - READ-ONLY; The reason why the script action was executed. Operation *string `json:"operation,omitempty"` - // ExecutionSummary - The summary of script action execution result. + // ExecutionSummary - READ-ONLY; The summary of script action execution result. ExecutionSummary *[]ScriptActionExecutionSummary `json:"executionSummary,omitempty"` - // DebugInformation - The script action execution debug information. + // DebugInformation - READ-ONLY; The script action execution debug information. DebugInformation *string `json:"debugInformation,omitempty"` // Name - The name of the script action. Name *string `json:"name,omitempty"` @@ -1444,7 +1470,7 @@ type RuntimeScriptActionDetail struct { Parameters *string `json:"parameters,omitempty"` // Roles - The list of roles where script will be executed. Roles *[]string `json:"roles,omitempty"` - // ApplicationName - The application name of the script action, if any. + // ApplicationName - READ-ONLY; The application name of the script action, if any. ApplicationName *string `json:"applicationName,omitempty"` } @@ -1461,9 +1487,9 @@ type ScriptAction struct { // ScriptActionExecutionHistoryList the list script execution history response. type ScriptActionExecutionHistoryList struct { autorest.Response `json:"-"` - // Value - The list of persisted script action details for the cluster. + // Value - READ-ONLY; The list of persisted script action details for the cluster. Value *[]RuntimeScriptActionDetail `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1607,9 +1633,9 @@ func NewScriptActionExecutionHistoryListPage(getNextPage func(context.Context, S // ScriptActionExecutionSummary the execution summary of a script action. type ScriptActionExecutionSummary struct { - // Status - The status of script action execution. + // Status - READ-ONLY; The status of script action execution. Status *string `json:"status,omitempty"` - // InstanceCount - The instance count for a given script action execution status. + // InstanceCount - READ-ONLY; The instance count for a given script action execution status. InstanceCount *int32 `json:"instanceCount,omitempty"` } @@ -1632,7 +1658,7 @@ type ScriptActionsList struct { autorest.Response `json:"-"` // Value - The list of persisted script action details for the cluster. Value *[]RuntimeScriptActionDetail `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1852,11 +1878,11 @@ type TrackedResource struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Fully qualified resource Id for the resource. + // ID - READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. + // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` } @@ -1869,18 +1895,19 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Tags != nil { objectMap["tags"] = tr.Tags } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } +// UpdateGatewaySettingsParameters the update gateway settings request parameters. +type UpdateGatewaySettingsParameters struct { + // IsCredentialEnabled - Indicates whether or not the gateway settings based authorization is enabled. + IsCredentialEnabled *bool `json:"restAuthCredential.isEnabled,omitempty"` + // UserName - The gateway settings user name. + UserName *string `json:"restAuthCredential.username,omitempty"` + // Password - The gateway settings user password. + Password *string `json:"restAuthCredential.password,omitempty"` +} + // Usage the details about the usage of a particular limited resource. type Usage struct { // Unit - The type of measurement for usage. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/iothub/mgmt/2018-12-01-preview/devices/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/iothub/mgmt/2018-12-01-preview/devices/models.go index 682f0246bf9a..20c880b2af97 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/iothub/mgmt/2018-12-01-preview/devices/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/iothub/mgmt/2018-12-01-preview/devices/models.go @@ -266,25 +266,6 @@ func PossibleJobTypeValues() []JobType { return []JobType{JobTypeBackup, JobTypeExport, JobTypeFactoryResetDevice, JobTypeFirmwareUpdate, JobTypeImport, JobTypeReadDeviceProperties, JobTypeRebootDevice, JobTypeUnknown, JobTypeUpdateDeviceConfiguration, JobTypeWriteDeviceProperties} } -// OperationMonitoringLevel enumerates the values for operation monitoring level. -type OperationMonitoringLevel string - -const ( - // OperationMonitoringLevelError ... - OperationMonitoringLevelError OperationMonitoringLevel = "Error" - // OperationMonitoringLevelErrorInformation ... - OperationMonitoringLevelErrorInformation OperationMonitoringLevel = "Error, Information" - // OperationMonitoringLevelInformation ... - OperationMonitoringLevelInformation OperationMonitoringLevel = "Information" - // OperationMonitoringLevelNone ... - OperationMonitoringLevelNone OperationMonitoringLevel = "None" -) - -// PossibleOperationMonitoringLevelValues returns an array of possible values for the OperationMonitoringLevel const type. -func PossibleOperationMonitoringLevelValues() []OperationMonitoringLevel { - return []OperationMonitoringLevel{OperationMonitoringLevelError, OperationMonitoringLevelErrorInformation, OperationMonitoringLevelInformation, OperationMonitoringLevelNone} -} - // RouteErrorSeverity enumerates the values for route error severity. type RouteErrorSeverity string @@ -348,13 +329,13 @@ type CertificateBodyDescription struct { type CertificateDescription struct { autorest.Response `json:"-"` Properties *CertificateProperties `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The name of the certificate. + // Name - READ-ONLY; The name of the certificate. Name *string `json:"name,omitempty"` - // Etag - The entity tag. + // Etag - READ-ONLY; The entity tag. Etag *string `json:"etag,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` } @@ -367,17 +348,17 @@ type CertificateListDescription struct { // CertificateProperties the description of an X509 CA Certificate. type CertificateProperties struct { - // Subject - The certificate's subject name. + // Subject - READ-ONLY; The certificate's subject name. Subject *string `json:"subject,omitempty"` - // Expiry - The certificate's expiration date and time. + // Expiry - READ-ONLY; The certificate's expiration date and time. Expiry *date.TimeRFC1123 `json:"expiry,omitempty"` - // Thumbprint - The certificate's thumbprint. + // Thumbprint - READ-ONLY; The certificate's thumbprint. Thumbprint *string `json:"thumbprint,omitempty"` - // IsVerified - Determines whether certificate has been verified. + // IsVerified - READ-ONLY; Determines whether certificate has been verified. IsVerified *bool `json:"isVerified,omitempty"` - // Created - The certificate's create date and time. + // Created - READ-ONLY; The certificate's create date and time. Created *date.TimeRFC1123 `json:"created,omitempty"` - // Updated - The certificate's last update date and time. + // Updated - READ-ONLY; The certificate's last update date and time. Updated *date.TimeRFC1123 `json:"updated,omitempty"` // Certificate - The certificate content Certificate *string `json:"certificate,omitempty"` @@ -386,21 +367,21 @@ type CertificateProperties struct { // CertificatePropertiesWithNonce the description of an X509 CA Certificate including the challenge nonce // issued for the Proof-Of-Possession flow. type CertificatePropertiesWithNonce struct { - // Subject - The certificate's subject name. + // Subject - READ-ONLY; The certificate's subject name. Subject *string `json:"subject,omitempty"` - // Expiry - The certificate's expiration date and time. + // Expiry - READ-ONLY; The certificate's expiration date and time. Expiry *date.TimeRFC1123 `json:"expiry,omitempty"` - // Thumbprint - The certificate's thumbprint. + // Thumbprint - READ-ONLY; The certificate's thumbprint. Thumbprint *string `json:"thumbprint,omitempty"` - // IsVerified - Determines whether certificate has been verified. + // IsVerified - READ-ONLY; Determines whether certificate has been verified. IsVerified *bool `json:"isVerified,omitempty"` - // Created - The certificate's create date and time. + // Created - READ-ONLY; The certificate's create date and time. Created *date.TimeRFC1123 `json:"created,omitempty"` - // Updated - The certificate's last update date and time. + // Updated - READ-ONLY; The certificate's last update date and time. Updated *date.TimeRFC1123 `json:"updated,omitempty"` - // VerificationCode - The certificate's verification code that will be used for proof of possession. + // VerificationCode - READ-ONLY; The certificate's verification code that will be used for proof of possession. VerificationCode *string `json:"verificationCode,omitempty"` - // Certificate - The certificate content + // Certificate - READ-ONLY; The certificate content Certificate *string `json:"certificate,omitempty"` } @@ -414,13 +395,13 @@ type CertificateVerificationDescription struct { type CertificateWithNonceDescription struct { autorest.Response `json:"-"` Properties *CertificatePropertiesWithNonce `json:"properties,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The name of the certificate. + // Name - READ-ONLY; The name of the certificate. Name *string `json:"name,omitempty"` - // Etag - The entity tag. + // Etag - READ-ONLY; The entity tag. Etag *string `json:"etag,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` } @@ -446,7 +427,7 @@ type EndpointHealthDataListResult struct { autorest.Response `json:"-"` // Value - JSON-serialized array of Endpoint health data Value *[]EndpointHealthData `json:"value,omitempty"` - // NextLink - Link to more results + // NextLink - READ-ONLY; Link to more results NextLink *string `json:"nextLink,omitempty"` } @@ -589,13 +570,13 @@ func NewEndpointHealthDataListResultPage(getNextPage func(context.Context, Endpo // ErrorDetails error details. type ErrorDetails struct { - // Code - The error code. + // Code - READ-ONLY; The error code. Code *string `json:"code,omitempty"` - // HTTPStatusCode - The HTTP status code. + // HTTPStatusCode - READ-ONLY; The HTTP status code. HTTPStatusCode *string `json:"httpStatusCode,omitempty"` - // Message - The error message. + // Message - READ-ONLY; The error message. Message *string `json:"message,omitempty"` - // Details - The error details. + // Details - READ-ONLY; The error details. Details *string `json:"details,omitempty"` } @@ -604,13 +585,13 @@ type EventHubConsumerGroupInfo struct { autorest.Response `json:"-"` // Properties - The tags. Properties map[string]*string `json:"properties"` - // ID - The Event Hub-compatible consumer group identifier. + // ID - READ-ONLY; The Event Hub-compatible consumer group identifier. ID *string `json:"id,omitempty"` - // Name - The Event Hub-compatible consumer group name. + // Name - READ-ONLY; The Event Hub-compatible consumer group name. Name *string `json:"name,omitempty"` - // Type - the resource type. + // Type - READ-ONLY; the resource type. Type *string `json:"type,omitempty"` - // Etag - The etag. + // Etag - READ-ONLY; The etag. Etag *string `json:"etag,omitempty"` } @@ -620,18 +601,6 @@ func (ehcgi EventHubConsumerGroupInfo) MarshalJSON() ([]byte, error) { if ehcgi.Properties != nil { objectMap["properties"] = ehcgi.Properties } - if ehcgi.ID != nil { - objectMap["id"] = ehcgi.ID - } - if ehcgi.Name != nil { - objectMap["name"] = ehcgi.Name - } - if ehcgi.Type != nil { - objectMap["type"] = ehcgi.Type - } - if ehcgi.Etag != nil { - objectMap["etag"] = ehcgi.Etag - } return json.Marshal(objectMap) } @@ -641,7 +610,7 @@ type EventHubConsumerGroupsListResult struct { autorest.Response `json:"-"` // Value - List of consumer groups objects Value *[]EventHubConsumerGroupInfo `json:"value,omitempty"` - // NextLink - The next link. + // NextLink - READ-ONLY; The next link. NextLink *string `json:"nextLink,omitempty"` } @@ -789,11 +758,11 @@ type EventHubProperties struct { RetentionTimeInDays *int64 `json:"retentionTimeInDays,omitempty"` // PartitionCount - The number of partitions for receiving device-to-cloud messages in the Event Hub-compatible endpoint. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages. PartitionCount *int32 `json:"partitionCount,omitempty"` - // PartitionIds - The partition ids in the Event Hub-compatible endpoint. + // PartitionIds - READ-ONLY; The partition ids in the Event Hub-compatible endpoint. PartitionIds *[]string `json:"partitionIds,omitempty"` - // Path - The Event Hub-compatible name. + // Path - READ-ONLY; The Event Hub-compatible name. Path *string `json:"path,omitempty"` - // Endpoint - The Event Hub-compatible endpoint. + // Endpoint - READ-ONLY; The Event Hub-compatible endpoint. Endpoint *string `json:"endpoint,omitempty"` } @@ -840,13 +809,13 @@ type ImportDevicesRequest struct { // IotHubCapacity ioT Hub capacity information. type IotHubCapacity struct { - // Minimum - The minimum number of units. + // Minimum - READ-ONLY; The minimum number of units. Minimum *int64 `json:"minimum,omitempty"` - // Maximum - The maximum number of units. + // Maximum - READ-ONLY; The maximum number of units. Maximum *int64 `json:"maximum,omitempty"` - // Default - The default number of units. + // Default - READ-ONLY; The default number of units. Default *int64 `json:"default,omitempty"` - // ScaleType - The type of the scaling enabled. Possible values include: 'IotHubScaleTypeAutomatic', 'IotHubScaleTypeManual', 'IotHubScaleTypeNone' + // ScaleType - READ-ONLY; The type of the scaling enabled. Possible values include: 'IotHubScaleTypeAutomatic', 'IotHubScaleTypeManual', 'IotHubScaleTypeNone' ScaleType IotHubScaleType `json:"scaleType,omitempty"` } @@ -859,11 +828,11 @@ type IotHubDescription struct { Properties *IotHubProperties `json:"properties,omitempty"` // Sku - IotHub SKU info Sku *IotHubSkuInfo `json:"sku,omitempty"` - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -883,15 +852,6 @@ func (ihd IotHubDescription) MarshalJSON() ([]byte, error) { if ihd.Sku != nil { objectMap["sku"] = ihd.Sku } - if ihd.ID != nil { - objectMap["id"] = ihd.ID - } - if ihd.Name != nil { - objectMap["name"] = ihd.Name - } - if ihd.Type != nil { - objectMap["type"] = ihd.Type - } if ihd.Location != nil { objectMap["location"] = ihd.Location } @@ -906,7 +866,7 @@ type IotHubDescriptionListResult struct { autorest.Response `json:"-"` // Value - The array of IotHubDescription objects. Value *[]IotHubDescription `json:"value,omitempty"` - // NextLink - The next link. + // NextLink - READ-ONLY; The next link. NextLink *string `json:"nextLink,omitempty"` } @@ -1050,9 +1010,9 @@ func NewIotHubDescriptionListResultPage(getNextPage func(context.Context, IotHub // IotHubNameAvailabilityInfo the properties indicating whether a given IoT hub name is available. type IotHubNameAvailabilityInfo struct { autorest.Response `json:"-"` - // NameAvailable - The value which indicates whether the provided name is available. + // NameAvailable - READ-ONLY; The value which indicates whether the provided name is available. NameAvailable *bool `json:"nameAvailable,omitempty"` - // Reason - The reason for unavailability. Possible values include: 'Invalid', 'AlreadyExists' + // Reason - READ-ONLY; The reason for unavailability. Possible values include: 'Invalid', 'AlreadyExists' Reason IotHubNameUnavailabilityReason `json:"reason,omitempty"` // Message - The detailed reason message. Message *string `json:"message,omitempty"` @@ -1064,13 +1024,13 @@ type IotHubProperties struct { AuthorizationPolicies *[]SharedAccessSignatureAuthorizationRule `json:"authorizationPolicies,omitempty"` // IPFilterRules - The IP filter rules. IPFilterRules *[]IPFilterRule `json:"ipFilterRules,omitempty"` - // ProvisioningState - The provisioning state. + // ProvisioningState - READ-ONLY; The provisioning state. ProvisioningState *string `json:"provisioningState,omitempty"` - // State - The hub state. + // State - READ-ONLY; The hub state. State *string `json:"state,omitempty"` - // HostName - The name of the host. + // HostName - READ-ONLY; The name of the host. HostName *string `json:"hostName,omitempty"` - // EventHubEndpoints - The Event Hub-compatible endpoint properties. The possible keys to this dictionary are events and operationsMonitoringEvents. Both of these keys have to be present in the dictionary while making create or update calls for the IoT hub. + // EventHubEndpoints - The Event Hub-compatible endpoint properties. The only possible keys to this dictionary is events. This key has to be present in the dictionary while making create or update calls for the IoT hub. EventHubEndpoints map[string]*EventHubProperties `json:"eventHubEndpoints"` Routing *RoutingProperties `json:"routing,omitempty"` // StorageEndpoints - The list of Azure Storage endpoints where you can upload files. Currently you can configure only one Azure Storage account and that MUST have its key as $default. Specifying more than one storage account causes an error to be thrown. Not specifying a value for this property when the enableFileUploadNotifications property is set to True, causes an error to be thrown. @@ -1081,8 +1041,7 @@ type IotHubProperties struct { EnableFileUploadNotifications *bool `json:"enableFileUploadNotifications,omitempty"` CloudToDevice *CloudToDeviceProperties `json:"cloudToDevice,omitempty"` // Comments - IoT hub comments. - Comments *string `json:"comments,omitempty"` - OperationsMonitoringProperties *OperationsMonitoringProperties `json:"operationsMonitoringProperties,omitempty"` + Comments *string `json:"comments,omitempty"` // DeviceStreams - The device streams properties of iothub. DeviceStreams *IotHubPropertiesDeviceStreams `json:"deviceStreams,omitempty"` // Features - The capabilities and features enabled for the IoT hub. Possible values include: 'None', 'DeviceManagement' @@ -1098,15 +1057,6 @@ func (ihp IotHubProperties) MarshalJSON() ([]byte, error) { if ihp.IPFilterRules != nil { objectMap["ipFilterRules"] = ihp.IPFilterRules } - if ihp.ProvisioningState != nil { - objectMap["provisioningState"] = ihp.ProvisioningState - } - if ihp.State != nil { - objectMap["state"] = ihp.State - } - if ihp.HostName != nil { - objectMap["hostName"] = ihp.HostName - } if ihp.EventHubEndpoints != nil { objectMap["eventHubEndpoints"] = ihp.EventHubEndpoints } @@ -1128,9 +1078,6 @@ func (ihp IotHubProperties) MarshalJSON() ([]byte, error) { if ihp.Comments != nil { objectMap["comments"] = ihp.Comments } - if ihp.OperationsMonitoringProperties != nil { - objectMap["operationsMonitoringProperties"] = ihp.OperationsMonitoringProperties - } if ihp.DeviceStreams != nil { objectMap["deviceStreams"] = ihp.DeviceStreams } @@ -1148,11 +1095,11 @@ type IotHubPropertiesDeviceStreams struct { // IotHubQuotaMetricInfo quota metrics properties. type IotHubQuotaMetricInfo struct { - // Name - The name of the quota metric. + // Name - READ-ONLY; The name of the quota metric. Name *string `json:"name,omitempty"` - // CurrentValue - The current value for the quota metric. + // CurrentValue - READ-ONLY; The current value for the quota metric. CurrentValue *int64 `json:"currentValue,omitempty"` - // MaxValue - The maximum value of the quota metric. + // MaxValue - READ-ONLY; The maximum value of the quota metric. MaxValue *int64 `json:"maxValue,omitempty"` } @@ -1162,7 +1109,7 @@ type IotHubQuotaMetricInfoListResult struct { autorest.Response `json:"-"` // Value - The array of quota metrics objects. Value *[]IotHubQuotaMetricInfo `json:"value,omitempty"` - // NextLink - The next link. + // NextLink - READ-ONLY; The next link. NextLink *string `json:"nextLink,omitempty"` } @@ -1314,7 +1261,7 @@ type IotHubResourceCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *IotHubResourceCreateOrUpdateFuture) Result(client IotHubResourceClient) (ihd IotHubDescription, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1343,7 +1290,7 @@ type IotHubResourceDeleteFuture struct { // If the operation has not completed it will return an error. func (future *IotHubResourceDeleteFuture) Result(client IotHubResourceClient) (so SetObject, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1372,7 +1319,7 @@ type IotHubResourceUpdateFuture struct { // If the operation has not completed it will return an error. func (future *IotHubResourceUpdateFuture) Result(client IotHubResourceClient) (ihd IotHubDescription, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "devices.IotHubResourceUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1393,7 +1340,7 @@ func (future *IotHubResourceUpdateFuture) Result(client IotHubResourceClient) (i // IotHubSkuDescription SKU properties. type IotHubSkuDescription struct { - // ResourceType - The type of the resource. + // ResourceType - READ-ONLY; The type of the resource. ResourceType *string `json:"resourceType,omitempty"` // Sku - The type of the resource. Sku *IotHubSkuInfo `json:"sku,omitempty"` @@ -1407,7 +1354,7 @@ type IotHubSkuDescriptionListResult struct { autorest.Response `json:"-"` // Value - The array of IotHubSkuDescription. Value *[]IotHubSkuDescription `json:"value,omitempty"` - // NextLink - The next link. + // NextLink - READ-ONLY; The next link. NextLink *string `json:"nextLink,omitempty"` } @@ -1553,7 +1500,7 @@ func NewIotHubSkuDescriptionListResultPage(getNextPage func(context.Context, Iot type IotHubSkuInfo struct { // Name - The name of the SKU. Possible values include: 'F1', 'S1', 'S2', 'S3', 'B1', 'B2', 'B3' Name IotHubSku `json:"name,omitempty"` - // Tier - The billing tier for the IoT hub. Possible values include: 'Free', 'Standard', 'Basic' + // Tier - READ-ONLY; The billing tier for the IoT hub. Possible values include: 'Free', 'Standard', 'Basic' Tier IotHubSkuTier `json:"tier,omitempty"` // Capacity - The number of provisioned IoT Hub units. See: https://docs.microsoft.com/azure/azure-subscription-service-limits#iot-hub-limits. Capacity *int64 `json:"capacity,omitempty"` @@ -1572,21 +1519,21 @@ type IPFilterRule struct { // JobResponse the properties of the Job Response object. type JobResponse struct { autorest.Response `json:"-"` - // JobID - The job identifier. + // JobID - READ-ONLY; The job identifier. JobID *string `json:"jobId,omitempty"` - // StartTimeUtc - The start time of the job. + // StartTimeUtc - READ-ONLY; The start time of the job. StartTimeUtc *date.TimeRFC1123 `json:"startTimeUtc,omitempty"` - // EndTimeUtc - The time the job stopped processing. + // EndTimeUtc - READ-ONLY; The time the job stopped processing. EndTimeUtc *date.TimeRFC1123 `json:"endTimeUtc,omitempty"` - // Type - The type of the job. Possible values include: 'JobTypeUnknown', 'JobTypeExport', 'JobTypeImport', 'JobTypeBackup', 'JobTypeReadDeviceProperties', 'JobTypeWriteDeviceProperties', 'JobTypeUpdateDeviceConfiguration', 'JobTypeRebootDevice', 'JobTypeFactoryResetDevice', 'JobTypeFirmwareUpdate' + // Type - READ-ONLY; The type of the job. Possible values include: 'JobTypeUnknown', 'JobTypeExport', 'JobTypeImport', 'JobTypeBackup', 'JobTypeReadDeviceProperties', 'JobTypeWriteDeviceProperties', 'JobTypeUpdateDeviceConfiguration', 'JobTypeRebootDevice', 'JobTypeFactoryResetDevice', 'JobTypeFirmwareUpdate' Type JobType `json:"type,omitempty"` - // Status - The status of the job. Possible values include: 'JobStatusUnknown', 'JobStatusEnqueued', 'JobStatusRunning', 'JobStatusCompleted', 'JobStatusFailed', 'JobStatusCancelled' + // Status - READ-ONLY; The status of the job. Possible values include: 'JobStatusUnknown', 'JobStatusEnqueued', 'JobStatusRunning', 'JobStatusCompleted', 'JobStatusFailed', 'JobStatusCancelled' Status JobStatus `json:"status,omitempty"` - // FailureReason - If status == failed, this string containing the reason for the failure. + // FailureReason - READ-ONLY; If status == failed, this string containing the reason for the failure. FailureReason *string `json:"failureReason,omitempty"` - // StatusMessage - The status message for the job. + // StatusMessage - READ-ONLY; The status message for the job. StatusMessage *string `json:"statusMessage,omitempty"` - // ParentJobID - The job identifier of the parent job, if any. + // ParentJobID - READ-ONLY; The job identifier of the parent job, if any. ParentJobID *string `json:"parentJobId,omitempty"` } @@ -1595,7 +1542,7 @@ type JobResponseListResult struct { autorest.Response `json:"-"` // Value - The array of JobResponse objects. Value *[]JobResponse `json:"value,omitempty"` - // NextLink - The next link. + // NextLink - READ-ONLY; The next link. NextLink *string `json:"nextLink,omitempty"` } @@ -1762,7 +1709,7 @@ type Name struct { // Operation ioT Hub REST API operation type Operation struct { - // Name - Operation name: {provider}/{resource}/{read | write | action | delete} + // Name - READ-ONLY; Operation name: {provider}/{resource}/{read | write | action | delete} Name *string `json:"name,omitempty"` // Display - The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` @@ -1770,13 +1717,13 @@ type Operation struct { // OperationDisplay the object that represents the operation. type OperationDisplay struct { - // Provider - Service provider: Microsoft Devices + // Provider - READ-ONLY; Service provider: Microsoft Devices Provider *string `json:"provider,omitempty"` - // Resource - Resource Type: IotHubs + // Resource - READ-ONLY; Resource Type: IotHubs Resource *string `json:"resource,omitempty"` - // Operation - Name of the operation + // Operation - READ-ONLY; Name of the operation Operation *string `json:"operation,omitempty"` - // Description - Description of the operation + // Description - READ-ONLY; Description of the operation Description *string `json:"description,omitempty"` } @@ -1790,9 +1737,9 @@ type OperationInputs struct { // and a URL link to get the next set of results. type OperationListResult struct { autorest.Response `json:"-"` - // Value - List of IoT Hub operations supported by the Microsoft.Devices resource provider. + // Value - READ-ONLY; List of IoT Hub operations supported by the Microsoft.Devices resource provider. Value *[]Operation `json:"value,omitempty"` - // NextLink - URL to get the next set of operation list results if there are any. + // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` } @@ -1933,41 +1880,24 @@ func NewOperationListResultPage(getNextPage func(context.Context, OperationListR return OperationListResultPage{fn: getNextPage} } -// OperationsMonitoringProperties the operations monitoring properties for the IoT hub. The possible keys -// to the dictionary are Connections, DeviceTelemetry, C2DCommands, DeviceIdentityOperations, -// FileUploadOperations, Routes, D2CTwinOperations, C2DTwinOperations, TwinQueries, JobsOperations, -// DirectMethods. -type OperationsMonitoringProperties struct { - Events map[string]*OperationMonitoringLevel `json:"events"` -} - -// MarshalJSON is the custom marshaler for OperationsMonitoringProperties. -func (omp OperationsMonitoringProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if omp.Events != nil { - objectMap["events"] = omp.Events - } - return json.Marshal(objectMap) -} - // RegistryStatistics identity registry statistics. type RegistryStatistics struct { autorest.Response `json:"-"` - // TotalDeviceCount - The total count of devices in the identity registry. + // TotalDeviceCount - READ-ONLY; The total count of devices in the identity registry. TotalDeviceCount *int64 `json:"totalDeviceCount,omitempty"` - // EnabledDeviceCount - The count of enabled devices in the identity registry. + // EnabledDeviceCount - READ-ONLY; The count of enabled devices in the identity registry. EnabledDeviceCount *int64 `json:"enabledDeviceCount,omitempty"` - // DisabledDeviceCount - The count of disabled devices in the identity registry. + // DisabledDeviceCount - READ-ONLY; The count of disabled devices in the identity registry. DisabledDeviceCount *int64 `json:"disabledDeviceCount,omitempty"` } // Resource the common properties of an Azure resource. type Resource struct { - // ID - The resource identifier. + // ID - READ-ONLY; The resource identifier. ID *string `json:"id,omitempty"` - // Name - The resource name. + // Name - READ-ONLY; The resource name. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` // Location - The resource location. Location *string `json:"location,omitempty"` @@ -1978,15 +1908,6 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -2054,7 +1975,7 @@ type RoutingEndpoints struct { type RoutingEventHubProperties struct { // ConnectionString - The connection string of the event hub endpoint. ConnectionString *string `json:"connectionString,omitempty"` - // Name - The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. + // Name - The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types. Name *string `json:"name,omitempty"` // SubscriptionID - The subscription identifier of the event hub endpoint. SubscriptionID *string `json:"subscriptionId,omitempty"` @@ -2101,7 +2022,7 @@ type RoutingProperties struct { type RoutingServiceBusQueueEndpointProperties struct { // ConnectionString - The connection string of the service bus queue endpoint. ConnectionString *string `json:"connectionString,omitempty"` - // Name - The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual queue name. + // Name - The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual queue name. Name *string `json:"name,omitempty"` // SubscriptionID - The subscription identifier of the service bus queue endpoint. SubscriptionID *string `json:"subscriptionId,omitempty"` @@ -2113,7 +2034,7 @@ type RoutingServiceBusQueueEndpointProperties struct { type RoutingServiceBusTopicEndpointProperties struct { // ConnectionString - The connection string of the service bus topic endpoint. ConnectionString *string `json:"connectionString,omitempty"` - // Name - The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual topic name. + // Name - The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual topic name. Name *string `json:"name,omitempty"` // SubscriptionID - The subscription identifier of the service bus topic endpoint. SubscriptionID *string `json:"subscriptionId,omitempty"` @@ -2125,7 +2046,7 @@ type RoutingServiceBusTopicEndpointProperties struct { type RoutingStorageContainerProperties struct { // ConnectionString - The connection string of the storage account. ConnectionString *string `json:"connectionString,omitempty"` - // Name - The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, operationsMonitoringEvents, fileNotifications, $default. Endpoint names must be unique across endpoint types. + // Name - The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types. Name *string `json:"name,omitempty"` // SubscriptionID - The subscription identifier of the storage account. SubscriptionID *string `json:"subscriptionId,omitempty"` @@ -2182,7 +2103,7 @@ type SharedAccessSignatureAuthorizationRuleListResult struct { autorest.Response `json:"-"` // Value - The list of shared access policies. Value *[]SharedAccessSignatureAuthorizationRule `json:"value,omitempty"` - // NextLink - The next link. + // NextLink - READ-ONLY; The next link. NextLink *string `json:"nextLink,omitempty"` } @@ -2413,5 +2334,6 @@ type UserSubscriptionQuota struct { type UserSubscriptionQuotaListResult struct { autorest.Response `json:"-"` Value *[]UserSubscriptionQuota `json:"value,omitempty"` - NextLink *string `json:"nextLink,omitempty"` + // NextLink - READ-ONLY + NextLink *string `json:"nextLink,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights/actiongroups.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights/actiongroups.go index d4466837d87d..b7a2c3b34c41 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights/actiongroups.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights/actiongroups.go @@ -96,7 +96,7 @@ func (client ActionGroupsClient) CreateOrUpdatePreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-09-01" + const APIVersion = "2018-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -175,7 +175,7 @@ func (client ActionGroupsClient) DeletePreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-09-01" + const APIVersion = "2018-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -259,7 +259,7 @@ func (client ActionGroupsClient) EnableReceiverPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-09-01" + const APIVersion = "2018-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -337,7 +337,7 @@ func (client ActionGroupsClient) GetPreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-09-01" + const APIVersion = "2018-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -412,7 +412,7 @@ func (client ActionGroupsClient) ListByResourceGroupPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-09-01" + const APIVersion = "2018-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -484,7 +484,7 @@ func (client ActionGroupsClient) ListBySubscriptionIDPreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-09-01" + const APIVersion = "2018-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -562,7 +562,7 @@ func (client ActionGroupsClient) UpdatePreparer(ctx context.Context, resourceGro "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2018-09-01" + const APIVersion = "2018-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights/models.go index e9dd91e0266b..d8a54921c48b 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights/models.go @@ -152,6 +152,8 @@ func PossibleConditionOperatorValues() []ConditionOperator { type CriterionType string const ( + // CriterionTypeDynamicThresholdCriterion ... + CriterionTypeDynamicThresholdCriterion CriterionType = "DynamicThresholdCriterion" // CriterionTypeMultiMetricCriteria ... CriterionTypeMultiMetricCriteria CriterionType = "MultiMetricCriteria" // CriterionTypeStaticThresholdCriterion ... @@ -160,7 +162,7 @@ const ( // PossibleCriterionTypeValues returns an array of possible values for the CriterionType const type. func PossibleCriterionTypeValues() []CriterionType { - return []CriterionType{CriterionTypeMultiMetricCriteria, CriterionTypeStaticThresholdCriterion} + return []CriterionType{CriterionTypeDynamicThresholdCriterion, CriterionTypeMultiMetricCriteria, CriterionTypeStaticThresholdCriterion} } // Enabled enumerates the values for enabled. @@ -643,8 +645,6 @@ type ActionGroup struct { LogicAppReceivers *[]LogicAppReceiver `json:"logicAppReceivers,omitempty"` // AzureFunctionReceivers - The list of azure function receivers that are part of this action group. AzureFunctionReceivers *[]AzureFunctionReceiver `json:"azureFunctionReceivers,omitempty"` - // ArmRoleReceivers - The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported. - ArmRoleReceivers *[]ArmRoleReceiver `json:"armRoleReceivers,omitempty"` } // ActionGroupList a list of action groups. @@ -720,11 +720,11 @@ type ActionGroupResource struct { autorest.Response `json:"-"` // ActionGroup - The action groups properties of the resource. *ActionGroup `json:"properties,omitempty"` - // ID - Azure resource Id + // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` - // Name - Azure resource name + // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` - // Type - Azure resource type + // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -738,15 +738,6 @@ func (agr ActionGroupResource) MarshalJSON() ([]byte, error) { if agr.ActionGroup != nil { objectMap["properties"] = agr.ActionGroup } - if agr.ID != nil { - objectMap["id"] = agr.ID - } - if agr.Name != nil { - objectMap["name"] = agr.Name - } - if agr.Type != nil { - objectMap["type"] = agr.Type - } if agr.Location != nil { objectMap["location"] = agr.Location } @@ -954,11 +945,11 @@ type ActivityLogAlertResource struct { autorest.Response `json:"-"` // ActivityLogAlert - The activity log alert properties of the resource. *ActivityLogAlert `json:"properties,omitempty"` - // ID - Azure resource Id + // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` - // Name - Azure resource name + // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` - // Type - Azure resource type + // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -972,15 +963,6 @@ func (alar ActivityLogAlertResource) MarshalJSON() ([]byte, error) { if alar.ActivityLogAlert != nil { objectMap["properties"] = alar.ActivityLogAlert } - if alar.ID != nil { - objectMap["id"] = alar.ID - } - if alar.Name != nil { - objectMap["name"] = alar.Name - } - if alar.Type != nil { - objectMap["type"] = alar.Type - } if alar.Location != nil { objectMap["location"] = alar.Location } @@ -1127,7 +1109,7 @@ type AlertRule struct { Condition BasicRuleCondition `json:"condition,omitempty"` // Actions - the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. Actions *[]BasicRuleAction `json:"actions,omitempty"` - // LastUpdatedTime - Last time the rule was updated in ISO8601 format. + // LastUpdatedTime - READ-ONLY; Last time the rule was updated in ISO8601 format. LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"` } @@ -1203,11 +1185,11 @@ type AlertRuleResource struct { autorest.Response `json:"-"` // AlertRule - The alert rule properties of the resource. *AlertRule `json:"properties,omitempty"` - // ID - Azure resource Id + // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` - // Name - Azure resource name + // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` - // Type - Azure resource type + // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -1221,15 +1203,6 @@ func (arr AlertRuleResource) MarshalJSON() ([]byte, error) { if arr.AlertRule != nil { objectMap["properties"] = arr.AlertRule } - if arr.ID != nil { - objectMap["id"] = arr.ID - } - if arr.Name != nil { - objectMap["name"] = arr.Name - } - if arr.Type != nil { - objectMap["type"] = arr.Type - } if arr.Location != nil { objectMap["location"] = arr.Location } @@ -1368,14 +1341,6 @@ func (arrp *AlertRuleResourcePatch) UnmarshalJSON(body []byte) error { return nil } -// ArmRoleReceiver an arm role receiver. -type ArmRoleReceiver struct { - // Name - The name of the arm role receiver. Names must be unique across all receivers within an action group. - Name *string `json:"name,omitempty"` - // RoleID - The arm role id. - RoleID *string `json:"roleId,omitempty"` -} - // AutomationRunbookReceiver the Azure Automation Runbook notification receiver. type AutomationRunbookReceiver struct { // AutomationAccountID - The Azure automation account Id which holds this runbook and authenticate to Azure resource. @@ -1436,11 +1401,11 @@ type AutoscaleSettingResource struct { autorest.Response `json:"-"` // AutoscaleSetting - The autoscale setting of the resource. *AutoscaleSetting `json:"properties,omitempty"` - // ID - Azure resource Id + // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` - // Name - Azure resource name + // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` - // Type - Azure resource type + // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -1454,15 +1419,6 @@ func (asr AutoscaleSettingResource) MarshalJSON() ([]byte, error) { if asr.AutoscaleSetting != nil { objectMap["properties"] = asr.AutoscaleSetting } - if asr.ID != nil { - objectMap["id"] = asr.ID - } - if asr.Name != nil { - objectMap["name"] = asr.Name - } - if asr.Type != nil { - objectMap["type"] = asr.Type - } if asr.Location != nil { objectMap["location"] = asr.Location } @@ -1808,11 +1764,11 @@ type BaselineProperties struct { // BaselineResponse the response to a baseline query. type BaselineResponse struct { autorest.Response `json:"-"` - // ID - the metric baseline Id. + // ID - READ-ONLY; the metric baseline Id. ID *string `json:"id,omitempty"` - // Type - the resource type of the baseline resource. + // Type - READ-ONLY; the resource type of the baseline resource. Type *string `json:"type,omitempty"` - // Name - the name and the display name of the metric, i.e. it is localizable string. + // Name - READ-ONLY; the name and the display name of the metric, i.e. it is localizable string. Name *LocalizableString `json:"name,omitempty"` // BaselineProperties - the properties of the baseline. *BaselineProperties `json:"properties,omitempty"` @@ -1821,15 +1777,6 @@ type BaselineResponse struct { // MarshalJSON is the custom marshaler for BaselineResponse. func (br BaselineResponse) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if br.ID != nil { - objectMap["id"] = br.ID - } - if br.Type != nil { - objectMap["type"] = br.Type - } - if br.Name != nil { - objectMap["name"] = br.Name - } if br.BaselineProperties != nil { objectMap["properties"] = br.BaselineProperties } @@ -1935,11 +1882,11 @@ type DiagnosticSettingsCategoryResource struct { autorest.Response `json:"-"` // DiagnosticSettingsCategory - The properties of a Diagnostic Settings Category. *DiagnosticSettingsCategory `json:"properties,omitempty"` - // ID - Azure resource Id + // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` - // Name - Azure resource name + // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` - // Type - Azure resource type + // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` } @@ -1949,15 +1896,6 @@ func (dscr DiagnosticSettingsCategoryResource) MarshalJSON() ([]byte, error) { if dscr.DiagnosticSettingsCategory != nil { objectMap["properties"] = dscr.DiagnosticSettingsCategory } - if dscr.ID != nil { - objectMap["id"] = dscr.ID - } - if dscr.Name != nil { - objectMap["name"] = dscr.Name - } - if dscr.Type != nil { - objectMap["type"] = dscr.Type - } return json.Marshal(objectMap) } @@ -2025,11 +1963,11 @@ type DiagnosticSettingsResource struct { autorest.Response `json:"-"` // DiagnosticSettings - Properties of a Diagnostic Settings Resource. *DiagnosticSettings `json:"properties,omitempty"` - // ID - Azure resource Id + // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` - // Name - Azure resource name + // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` - // Type - Azure resource type + // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` } @@ -2039,15 +1977,6 @@ func (dsr DiagnosticSettingsResource) MarshalJSON() ([]byte, error) { if dsr.DiagnosticSettings != nil { objectMap["properties"] = dsr.DiagnosticSettings } - if dsr.ID != nil { - objectMap["id"] = dsr.ID - } - if dsr.Name != nil { - objectMap["name"] = dsr.Name - } - if dsr.Type != nil { - objectMap["type"] = dsr.Type - } return json.Marshal(objectMap) } @@ -2119,6 +2048,218 @@ type Dimension struct { Values *[]string `json:"values,omitempty"` } +// DynamicMetricCriteria criterion for dynamic threshold. +type DynamicMetricCriteria struct { + // Operator - The operator used to compare the metric value against the threshold. + Operator interface{} `json:"operator,omitempty"` + // AlertSensitivity - The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern. + AlertSensitivity interface{} `json:"alertSensitivity,omitempty"` + // FailingPeriods - The minimum number of violations required within the selected lookback time window required to raise an alert. + FailingPeriods *DynamicThresholdFailingPeriods `json:"failingPeriods,omitempty"` + // IgnoreDataBefore - Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format) + IgnoreDataBefore *date.Time `json:"ignoreDataBefore,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Name of the criteria. + Name *string `json:"name,omitempty"` + // MetricName - Name of the metric. + MetricName *string `json:"metricName,omitempty"` + // MetricNamespace - Namespace of the metric. + MetricNamespace *string `json:"metricNamespace,omitempty"` + // TimeAggregation - the criteria time aggregation types. + TimeAggregation interface{} `json:"timeAggregation,omitempty"` + // Dimensions - List of dimension conditions. + Dimensions *[]MetricDimension `json:"dimensions,omitempty"` + // CriterionType - Possible values include: 'CriterionTypeMultiMetricCriteria', 'CriterionTypeStaticThresholdCriterion', 'CriterionTypeDynamicThresholdCriterion' + CriterionType CriterionType `json:"criterionType,omitempty"` +} + +// MarshalJSON is the custom marshaler for DynamicMetricCriteria. +func (dmc DynamicMetricCriteria) MarshalJSON() ([]byte, error) { + dmc.CriterionType = CriterionTypeDynamicThresholdCriterion + objectMap := make(map[string]interface{}) + if dmc.Operator != nil { + objectMap["operator"] = dmc.Operator + } + if dmc.AlertSensitivity != nil { + objectMap["alertSensitivity"] = dmc.AlertSensitivity + } + if dmc.FailingPeriods != nil { + objectMap["failingPeriods"] = dmc.FailingPeriods + } + if dmc.IgnoreDataBefore != nil { + objectMap["ignoreDataBefore"] = dmc.IgnoreDataBefore + } + if dmc.Name != nil { + objectMap["name"] = dmc.Name + } + if dmc.MetricName != nil { + objectMap["metricName"] = dmc.MetricName + } + if dmc.MetricNamespace != nil { + objectMap["metricNamespace"] = dmc.MetricNamespace + } + if dmc.TimeAggregation != nil { + objectMap["timeAggregation"] = dmc.TimeAggregation + } + if dmc.Dimensions != nil { + objectMap["dimensions"] = dmc.Dimensions + } + if dmc.CriterionType != "" { + objectMap["criterionType"] = dmc.CriterionType + } + for k, v := range dmc.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsMetricCriteria is the BasicMultiMetricCriteria implementation for DynamicMetricCriteria. +func (dmc DynamicMetricCriteria) AsMetricCriteria() (*MetricCriteria, bool) { + return nil, false +} + +// AsDynamicMetricCriteria is the BasicMultiMetricCriteria implementation for DynamicMetricCriteria. +func (dmc DynamicMetricCriteria) AsDynamicMetricCriteria() (*DynamicMetricCriteria, bool) { + return &dmc, true +} + +// AsMultiMetricCriteria is the BasicMultiMetricCriteria implementation for DynamicMetricCriteria. +func (dmc DynamicMetricCriteria) AsMultiMetricCriteria() (*MultiMetricCriteria, bool) { + return nil, false +} + +// AsBasicMultiMetricCriteria is the BasicMultiMetricCriteria implementation for DynamicMetricCriteria. +func (dmc DynamicMetricCriteria) AsBasicMultiMetricCriteria() (BasicMultiMetricCriteria, bool) { + return &dmc, true +} + +// UnmarshalJSON is the custom unmarshaler for DynamicMetricCriteria struct. +func (dmc *DynamicMetricCriteria) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "operator": + if v != nil { + var operator interface{} + err = json.Unmarshal(*v, &operator) + if err != nil { + return err + } + dmc.Operator = operator + } + case "alertSensitivity": + if v != nil { + var alertSensitivity interface{} + err = json.Unmarshal(*v, &alertSensitivity) + if err != nil { + return err + } + dmc.AlertSensitivity = alertSensitivity + } + case "failingPeriods": + if v != nil { + var failingPeriods DynamicThresholdFailingPeriods + err = json.Unmarshal(*v, &failingPeriods) + if err != nil { + return err + } + dmc.FailingPeriods = &failingPeriods + } + case "ignoreDataBefore": + if v != nil { + var ignoreDataBefore date.Time + err = json.Unmarshal(*v, &ignoreDataBefore) + if err != nil { + return err + } + dmc.IgnoreDataBefore = &ignoreDataBefore + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dmc.AdditionalProperties == nil { + dmc.AdditionalProperties = make(map[string]interface{}) + } + dmc.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dmc.Name = &name + } + case "metricName": + if v != nil { + var metricName string + err = json.Unmarshal(*v, &metricName) + if err != nil { + return err + } + dmc.MetricName = &metricName + } + case "metricNamespace": + if v != nil { + var metricNamespace string + err = json.Unmarshal(*v, &metricNamespace) + if err != nil { + return err + } + dmc.MetricNamespace = &metricNamespace + } + case "timeAggregation": + if v != nil { + var timeAggregation interface{} + err = json.Unmarshal(*v, &timeAggregation) + if err != nil { + return err + } + dmc.TimeAggregation = timeAggregation + } + case "dimensions": + if v != nil { + var dimensions []MetricDimension + err = json.Unmarshal(*v, &dimensions) + if err != nil { + return err + } + dmc.Dimensions = &dimensions + } + case "criterionType": + if v != nil { + var criterionType CriterionType + err = json.Unmarshal(*v, &criterionType) + if err != nil { + return err + } + dmc.CriterionType = criterionType + } + } + } + + return nil +} + +// DynamicThresholdFailingPeriods the minimum number of violations required within the selected lookback +// time window required to raise an alert. +type DynamicThresholdFailingPeriods struct { + // NumberOfEvaluationPeriods - The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. + NumberOfEvaluationPeriods *float64 `json:"numberOfEvaluationPeriods,omitempty"` + // MinFailingPeriodsToAlert - The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. + MinFailingPeriodsToAlert *float64 `json:"minFailingPeriodsToAlert,omitempty"` +} + // EmailNotification email notification of an autoscale event. type EmailNotification struct { // SendToSubscriptionAdministrator - a value indicating whether to send email to subscription administrator. @@ -2135,7 +2276,7 @@ type EmailReceiver struct { Name *string `json:"name,omitempty"` // EmailAddress - The email address of this receiver. EmailAddress *string `json:"emailAddress,omitempty"` - // Status - The receiver status of the e-mail. Possible values include: 'ReceiverStatusNotSpecified', 'ReceiverStatusEnabled', 'ReceiverStatusDisabled' + // Status - READ-ONLY; The receiver status of the e-mail. Possible values include: 'ReceiverStatusNotSpecified', 'ReceiverStatusEnabled', 'ReceiverStatusDisabled' Status ReceiverStatus `json:"status,omitempty"` } @@ -2163,131 +2304,59 @@ type EventCategoryCollection struct { // EventData the Azure event log entries are of type EventData type EventData struct { - // Authorization - The sender authorization information. + // Authorization - READ-ONLY; The sender authorization information. Authorization *SenderAuthorization `json:"authorization,omitempty"` - // Claims - key value pairs to identify ARM permissions. + // Claims - READ-ONLY; key value pairs to identify ARM permissions. Claims map[string]*string `json:"claims"` - // Caller - the email address of the user who has performed the operation, the UPN claim or SPN claim based on availability. + // Caller - READ-ONLY; the email address of the user who has performed the operation, the UPN claim or SPN claim based on availability. Caller *string `json:"caller,omitempty"` - // Description - the description of the event. + // Description - READ-ONLY; the description of the event. Description *string `json:"description,omitempty"` - // ID - the Id of this event as required by ARM for RBAC. It contains the EventDataID and a timestamp information. + // ID - READ-ONLY; the Id of this event as required by ARM for RBAC. It contains the EventDataID and a timestamp information. ID *string `json:"id,omitempty"` - // EventDataID - the event data Id. This is a unique identifier for an event. + // EventDataID - READ-ONLY; the event data Id. This is a unique identifier for an event. EventDataID *string `json:"eventDataId,omitempty"` - // CorrelationID - the correlation Id, usually a GUID in the string format. The correlation Id is shared among the events that belong to the same uber operation. + // CorrelationID - READ-ONLY; the correlation Id, usually a GUID in the string format. The correlation Id is shared among the events that belong to the same uber operation. CorrelationID *string `json:"correlationId,omitempty"` - // EventName - the event name. This value should not be confused with OperationName. For practical purposes, OperationName might be more appealing to end users. + // EventName - READ-ONLY; the event name. This value should not be confused with OperationName. For practical purposes, OperationName might be more appealing to end users. EventName *LocalizableString `json:"eventName,omitempty"` - // Category - the event category. + // Category - READ-ONLY; the event category. Category *LocalizableString `json:"category,omitempty"` - // HTTPRequest - the HTTP request info. Usually includes the 'clientRequestId', 'clientIpAddress' (IP address of the user who initiated the event) and 'method' (HTTP method e.g. PUT). + // HTTPRequest - READ-ONLY; the HTTP request info. Usually includes the 'clientRequestId', 'clientIpAddress' (IP address of the user who initiated the event) and 'method' (HTTP method e.g. PUT). HTTPRequest *HTTPRequestInfo `json:"httpRequest,omitempty"` - // Level - the event level. Possible values include: 'Critical', 'Error', 'Warning', 'Informational', 'Verbose' + // Level - READ-ONLY; the event level. Possible values include: 'Critical', 'Error', 'Warning', 'Informational', 'Verbose' Level EventLevel `json:"level,omitempty"` - // ResourceGroupName - the resource group name of the impacted resource. + // ResourceGroupName - READ-ONLY; the resource group name of the impacted resource. ResourceGroupName *string `json:"resourceGroupName,omitempty"` - // ResourceProviderName - the resource provider name of the impacted resource. + // ResourceProviderName - READ-ONLY; the resource provider name of the impacted resource. ResourceProviderName *LocalizableString `json:"resourceProviderName,omitempty"` - // ResourceID - the resource uri that uniquely identifies the resource that caused this event. + // ResourceID - READ-ONLY; the resource uri that uniquely identifies the resource that caused this event. ResourceID *string `json:"resourceId,omitempty"` - // ResourceType - the resource type + // ResourceType - READ-ONLY; the resource type ResourceType *LocalizableString `json:"resourceType,omitempty"` - // OperationID - It is usually a GUID shared among the events corresponding to single operation. This value should not be confused with EventName. + // OperationID - READ-ONLY; It is usually a GUID shared among the events corresponding to single operation. This value should not be confused with EventName. OperationID *string `json:"operationId,omitempty"` - // OperationName - the operation name. + // OperationName - READ-ONLY; the operation name. OperationName *LocalizableString `json:"operationName,omitempty"` - // Properties - the set of pairs (usually a Dictionary) that includes details about the event. + // Properties - READ-ONLY; the set of pairs (usually a Dictionary) that includes details about the event. Properties map[string]*string `json:"properties"` - // Status - a string describing the status of the operation. Some typical values are: Started, In progress, Succeeded, Failed, Resolved. + // Status - READ-ONLY; a string describing the status of the operation. Some typical values are: Started, In progress, Succeeded, Failed, Resolved. Status *LocalizableString `json:"status,omitempty"` - // SubStatus - the event sub status. Most of the time, when included, this captures the HTTP status code of the REST call. Common values are: OK (HTTP Status Code: 200), Created (HTTP Status Code: 201), Accepted (HTTP Status Code: 202), No Content (HTTP Status Code: 204), Bad Request(HTTP Status Code: 400), Not Found (HTTP Status Code: 404), Conflict (HTTP Status Code: 409), Internal Server Error (HTTP Status Code: 500), Service Unavailable (HTTP Status Code:503), Gateway Timeout (HTTP Status Code: 504) + // SubStatus - READ-ONLY; the event sub status. Most of the time, when included, this captures the HTTP status code of the REST call. Common values are: OK (HTTP Status Code: 200), Created (HTTP Status Code: 201), Accepted (HTTP Status Code: 202), No Content (HTTP Status Code: 204), Bad Request(HTTP Status Code: 400), Not Found (HTTP Status Code: 404), Conflict (HTTP Status Code: 409), Internal Server Error (HTTP Status Code: 500), Service Unavailable (HTTP Status Code:503), Gateway Timeout (HTTP Status Code: 504) SubStatus *LocalizableString `json:"subStatus,omitempty"` - // EventTimestamp - the timestamp of when the event was generated by the Azure service processing the request corresponding the event. It in ISO 8601 format. + // EventTimestamp - READ-ONLY; the timestamp of when the event was generated by the Azure service processing the request corresponding the event. It in ISO 8601 format. EventTimestamp *date.Time `json:"eventTimestamp,omitempty"` - // SubmissionTimestamp - the timestamp of when the event became available for querying via this API. It is in ISO 8601 format. This value should not be confused eventTimestamp. As there might be a delay between the occurrence time of the event, and the time that the event is submitted to the Azure logging infrastructure. + // SubmissionTimestamp - READ-ONLY; the timestamp of when the event became available for querying via this API. It is in ISO 8601 format. This value should not be confused eventTimestamp. As there might be a delay between the occurrence time of the event, and the time that the event is submitted to the Azure logging infrastructure. SubmissionTimestamp *date.Time `json:"submissionTimestamp,omitempty"` - // SubscriptionID - the Azure subscription Id usually a GUID. + // SubscriptionID - READ-ONLY; the Azure subscription Id usually a GUID. SubscriptionID *string `json:"subscriptionId,omitempty"` - // TenantID - the Azure tenant Id + // TenantID - READ-ONLY; the Azure tenant Id TenantID *string `json:"tenantId,omitempty"` } // MarshalJSON is the custom marshaler for EventData. func (ed EventData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if ed.Authorization != nil { - objectMap["authorization"] = ed.Authorization - } - if ed.Claims != nil { - objectMap["claims"] = ed.Claims - } - if ed.Caller != nil { - objectMap["caller"] = ed.Caller - } - if ed.Description != nil { - objectMap["description"] = ed.Description - } - if ed.ID != nil { - objectMap["id"] = ed.ID - } - if ed.EventDataID != nil { - objectMap["eventDataId"] = ed.EventDataID - } - if ed.CorrelationID != nil { - objectMap["correlationId"] = ed.CorrelationID - } - if ed.EventName != nil { - objectMap["eventName"] = ed.EventName - } - if ed.Category != nil { - objectMap["category"] = ed.Category - } - if ed.HTTPRequest != nil { - objectMap["httpRequest"] = ed.HTTPRequest - } - if ed.Level != "" { - objectMap["level"] = ed.Level - } - if ed.ResourceGroupName != nil { - objectMap["resourceGroupName"] = ed.ResourceGroupName - } - if ed.ResourceProviderName != nil { - objectMap["resourceProviderName"] = ed.ResourceProviderName - } - if ed.ResourceID != nil { - objectMap["resourceId"] = ed.ResourceID - } - if ed.ResourceType != nil { - objectMap["resourceType"] = ed.ResourceType - } - if ed.OperationID != nil { - objectMap["operationId"] = ed.OperationID - } - if ed.OperationName != nil { - objectMap["operationName"] = ed.OperationName - } - if ed.Properties != nil { - objectMap["properties"] = ed.Properties - } - if ed.Status != nil { - objectMap["status"] = ed.Status - } - if ed.SubStatus != nil { - objectMap["subStatus"] = ed.SubStatus - } - if ed.EventTimestamp != nil { - objectMap["eventTimestamp"] = ed.EventTimestamp - } - if ed.SubmissionTimestamp != nil { - objectMap["submissionTimestamp"] = ed.SubmissionTimestamp - } - if ed.SubscriptionID != nil { - objectMap["subscriptionId"] = ed.SubscriptionID - } - if ed.TenantID != nil { - objectMap["tenantId"] = ed.TenantID - } return json.Marshal(objectMap) } @@ -2452,15 +2521,15 @@ type HTTPRequestInfo struct { // Incident an alert incident indicates the activation status of an alert rule. type Incident struct { autorest.Response `json:"-"` - // Name - Incident name. + // Name - READ-ONLY; Incident name. Name *string `json:"name,omitempty"` - // RuleName - Rule name that is associated with the incident. + // RuleName - READ-ONLY; Rule name that is associated with the incident. RuleName *string `json:"ruleName,omitempty"` - // IsActive - A boolean to indicate whether the incident is active or resolved. + // IsActive - READ-ONLY; A boolean to indicate whether the incident is active or resolved. IsActive *bool `json:"isActive,omitempty"` - // ActivatedTime - The time at which the incident was activated in ISO8601 format. + // ActivatedTime - READ-ONLY; The time at which the incident was activated in ISO8601 format. ActivatedTime *date.Time `json:"activatedTime,omitempty"` - // ResolvedTime - The time at which the incident was resolved in ISO8601 format. If null, it means the incident is still active. + // ResolvedTime - READ-ONLY; The time at which the incident was resolved in ISO8601 format. If null, it means the incident is still active. ResolvedTime *date.Time `json:"resolvedTime,omitempty"` } @@ -2645,11 +2714,11 @@ type LogProfileResource struct { autorest.Response `json:"-"` // LogProfileProperties - The log profile properties of the resource. *LogProfileProperties `json:"properties,omitempty"` - // ID - Azure resource Id + // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` - // Name - Azure resource name + // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` - // Type - Azure resource type + // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -2663,15 +2732,6 @@ func (lpr LogProfileResource) MarshalJSON() ([]byte, error) { if lpr.LogProfileProperties != nil { objectMap["properties"] = lpr.LogProfileProperties } - if lpr.ID != nil { - objectMap["id"] = lpr.ID - } - if lpr.Name != nil { - objectMap["name"] = lpr.Name - } - if lpr.Type != nil { - objectMap["type"] = lpr.Type - } if lpr.Location != nil { objectMap["location"] = lpr.Location } @@ -2809,9 +2869,9 @@ type LogSearchRule struct { Description *string `json:"description,omitempty"` // Enabled - The flag which indicates whether the Log Search rule is enabled. Value should be true or false. Possible values include: 'True', 'False' Enabled Enabled `json:"enabled,omitempty"` - // LastUpdatedTime - Last time the rule was updated in IS08601 format. + // LastUpdatedTime - READ-ONLY; Last time the rule was updated in IS08601 format. LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"` - // ProvisioningState - Provisioning state of the scheduled query rule. Possible values include: 'Succeeded', 'Deploying', 'Canceled', 'Failed' + // ProvisioningState - READ-ONLY; Provisioning state of the scheduled query rule. Possible values include: 'Succeeded', 'Deploying', 'Canceled', 'Failed' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // Source - Data Source against which rule will Query Data Source *Source `json:"source,omitempty"` @@ -2909,11 +2969,11 @@ type LogSearchRuleResource struct { autorest.Response `json:"-"` // LogSearchRule - The rule properties of the resource. *LogSearchRule `json:"properties,omitempty"` - // ID - Azure resource Id + // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` - // Name - Azure resource name + // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` - // Type - Azure resource type + // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -2927,15 +2987,6 @@ func (lsrr LogSearchRuleResource) MarshalJSON() ([]byte, error) { if lsrr.LogSearchRule != nil { objectMap["properties"] = lsrr.LogSearchRule } - if lsrr.ID != nil { - objectMap["id"] = lsrr.ID - } - if lsrr.Name != nil { - objectMap["name"] = lsrr.Name - } - if lsrr.Type != nil { - objectMap["type"] = lsrr.Type - } if lsrr.Location != nil { objectMap["location"] = lsrr.Location } @@ -3086,8 +3137,8 @@ type LogSettings struct { // LogToMetricAction specify action need to be taken when rule type is converting log to metric type LogToMetricAction struct { - // Criteria - Severity of the alert - Criteria *Criteria `json:"criteria,omitempty"` + // Criteria - Criteria of Metric + Criteria *[]Criteria `json:"criteria,omitempty"` // OdataType - Possible values include: 'OdataTypeAction', 'OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesAlertingAction', 'OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesLogToMetricAction' OdataType OdataTypeBasicAction `json:"odata.type,omitempty"` } @@ -3507,7 +3558,7 @@ type MetricAlertProperties struct { AutoMitigate *bool `json:"autoMitigate,omitempty"` // Actions - the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. Actions *[]MetricAlertAction `json:"actions,omitempty"` - // LastUpdatedTime - Last time the rule was updated in ISO8601 format. + // LastUpdatedTime - READ-ONLY; Last time the rule was updated in ISO8601 format. LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"` } @@ -3638,11 +3689,11 @@ type MetricAlertResource struct { autorest.Response `json:"-"` // MetricAlertProperties - The alert rule properties of the resource. *MetricAlertProperties `json:"properties,omitempty"` - // ID - Azure resource Id + // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` - // Name - Azure resource name + // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` - // Type - Azure resource type + // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -3656,15 +3707,6 @@ func (mar MetricAlertResource) MarshalJSON() ([]byte, error) { if mar.MetricAlertProperties != nil { objectMap["properties"] = mar.MetricAlertProperties } - if mar.ID != nil { - objectMap["id"] = mar.ID - } - if mar.Name != nil { - objectMap["name"] = mar.Name - } - if mar.Type != nil { - objectMap["type"] = mar.Type - } if mar.Location != nil { objectMap["location"] = mar.Location } @@ -3950,23 +3992,23 @@ type MetricAvailability struct { // MetricCriteria criterion to filter metrics. type MetricCriteria struct { + // Operator - the criteria operator. + Operator interface{} `json:"operator,omitempty"` + // Threshold - the criteria threshold value that activates the alert. + Threshold *float64 `json:"threshold,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` // Name - Name of the criteria. Name *string `json:"name,omitempty"` // MetricName - Name of the metric. MetricName *string `json:"metricName,omitempty"` // MetricNamespace - Namespace of the metric. MetricNamespace *string `json:"metricNamespace,omitempty"` - // Operator - the criteria operator. - Operator interface{} `json:"operator,omitempty"` // TimeAggregation - the criteria time aggregation types. TimeAggregation interface{} `json:"timeAggregation,omitempty"` - // Threshold - the criteria threshold value that activates the alert. - Threshold *float64 `json:"threshold,omitempty"` // Dimensions - List of dimension conditions. Dimensions *[]MetricDimension `json:"dimensions,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // CriterionType - Possible values include: 'CriterionTypeMultiMetricCriteria', 'CriterionTypeStaticThresholdCriterion' + // CriterionType - Possible values include: 'CriterionTypeMultiMetricCriteria', 'CriterionTypeStaticThresholdCriterion', 'CriterionTypeDynamicThresholdCriterion' CriterionType CriterionType `json:"criterionType,omitempty"` } @@ -3974,6 +4016,12 @@ type MetricCriteria struct { func (mc MetricCriteria) MarshalJSON() ([]byte, error) { mc.CriterionType = CriterionTypeStaticThresholdCriterion objectMap := make(map[string]interface{}) + if mc.Operator != nil { + objectMap["operator"] = mc.Operator + } + if mc.Threshold != nil { + objectMap["threshold"] = mc.Threshold + } if mc.Name != nil { objectMap["name"] = mc.Name } @@ -3983,15 +4031,9 @@ func (mc MetricCriteria) MarshalJSON() ([]byte, error) { if mc.MetricNamespace != nil { objectMap["metricNamespace"] = mc.MetricNamespace } - if mc.Operator != nil { - objectMap["operator"] = mc.Operator - } if mc.TimeAggregation != nil { objectMap["timeAggregation"] = mc.TimeAggregation } - if mc.Threshold != nil { - objectMap["threshold"] = mc.Threshold - } if mc.Dimensions != nil { objectMap["dimensions"] = mc.Dimensions } @@ -4009,6 +4051,11 @@ func (mc MetricCriteria) AsMetricCriteria() (*MetricCriteria, bool) { return &mc, true } +// AsDynamicMetricCriteria is the BasicMultiMetricCriteria implementation for MetricCriteria. +func (mc MetricCriteria) AsDynamicMetricCriteria() (*DynamicMetricCriteria, bool) { + return nil, false +} + // AsMultiMetricCriteria is the BasicMultiMetricCriteria implementation for MetricCriteria. func (mc MetricCriteria) AsMultiMetricCriteria() (*MultiMetricCriteria, bool) { return nil, false @@ -4028,6 +4075,36 @@ func (mc *MetricCriteria) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { + case "operator": + if v != nil { + var operator interface{} + err = json.Unmarshal(*v, &operator) + if err != nil { + return err + } + mc.Operator = operator + } + case "threshold": + if v != nil { + var threshold float64 + err = json.Unmarshal(*v, &threshold) + if err != nil { + return err + } + mc.Threshold = &threshold + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mc.AdditionalProperties == nil { + mc.AdditionalProperties = make(map[string]interface{}) + } + mc.AdditionalProperties[k] = additionalProperties + } case "name": if v != nil { var name string @@ -4055,15 +4132,6 @@ func (mc *MetricCriteria) UnmarshalJSON(body []byte) error { } mc.MetricNamespace = &metricNamespace } - case "operator": - if v != nil { - var operator interface{} - err = json.Unmarshal(*v, &operator) - if err != nil { - return err - } - mc.Operator = operator - } case "timeAggregation": if v != nil { var timeAggregation interface{} @@ -4073,15 +4141,6 @@ func (mc *MetricCriteria) UnmarshalJSON(body []byte) error { } mc.TimeAggregation = timeAggregation } - case "threshold": - if v != nil { - var threshold float64 - err = json.Unmarshal(*v, &threshold) - if err != nil { - return err - } - mc.Threshold = &threshold - } case "dimensions": if v != nil { var dimensions []MetricDimension @@ -4091,18 +4150,6 @@ func (mc *MetricCriteria) UnmarshalJSON(body []byte) error { } mc.Dimensions = &dimensions } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mc.AdditionalProperties == nil { - mc.AdditionalProperties = make(map[string]interface{}) - } - mc.AdditionalProperties[k] = additionalProperties - } case "criterionType": if v != nil { var criterionType CriterionType @@ -4207,17 +4254,28 @@ type MetricValue struct { Count *int64 `json:"count,omitempty"` } -// BasicMultiMetricCriteria the types of conditions for a multi resource alert +// BasicMultiMetricCriteria the types of conditions for a multi resource alert. type BasicMultiMetricCriteria interface { AsMetricCriteria() (*MetricCriteria, bool) + AsDynamicMetricCriteria() (*DynamicMetricCriteria, bool) AsMultiMetricCriteria() (*MultiMetricCriteria, bool) } -// MultiMetricCriteria the types of conditions for a multi resource alert +// MultiMetricCriteria the types of conditions for a multi resource alert. type MultiMetricCriteria struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // CriterionType - Possible values include: 'CriterionTypeMultiMetricCriteria', 'CriterionTypeStaticThresholdCriterion' + // Name - Name of the criteria. + Name *string `json:"name,omitempty"` + // MetricName - Name of the metric. + MetricName *string `json:"metricName,omitempty"` + // MetricNamespace - Namespace of the metric. + MetricNamespace *string `json:"metricNamespace,omitempty"` + // TimeAggregation - the criteria time aggregation types. + TimeAggregation interface{} `json:"timeAggregation,omitempty"` + // Dimensions - List of dimension conditions. + Dimensions *[]MetricDimension `json:"dimensions,omitempty"` + // CriterionType - Possible values include: 'CriterionTypeMultiMetricCriteria', 'CriterionTypeStaticThresholdCriterion', 'CriterionTypeDynamicThresholdCriterion' CriterionType CriterionType `json:"criterionType,omitempty"` } @@ -4233,6 +4291,10 @@ func unmarshalBasicMultiMetricCriteria(body []byte) (BasicMultiMetricCriteria, e var mc MetricCriteria err := json.Unmarshal(body, &mc) return mc, err + case string(CriterionTypeDynamicThresholdCriterion): + var dmc DynamicMetricCriteria + err := json.Unmarshal(body, &dmc) + return dmc, err default: var mmc MultiMetricCriteria err := json.Unmarshal(body, &mmc) @@ -4262,6 +4324,21 @@ func unmarshalBasicMultiMetricCriteriaArray(body []byte) ([]BasicMultiMetricCrit func (mmc MultiMetricCriteria) MarshalJSON() ([]byte, error) { mmc.CriterionType = CriterionTypeMultiMetricCriteria objectMap := make(map[string]interface{}) + if mmc.Name != nil { + objectMap["name"] = mmc.Name + } + if mmc.MetricName != nil { + objectMap["metricName"] = mmc.MetricName + } + if mmc.MetricNamespace != nil { + objectMap["metricNamespace"] = mmc.MetricNamespace + } + if mmc.TimeAggregation != nil { + objectMap["timeAggregation"] = mmc.TimeAggregation + } + if mmc.Dimensions != nil { + objectMap["dimensions"] = mmc.Dimensions + } if mmc.CriterionType != "" { objectMap["criterionType"] = mmc.CriterionType } @@ -4276,6 +4353,11 @@ func (mmc MultiMetricCriteria) AsMetricCriteria() (*MetricCriteria, bool) { return nil, false } +// AsDynamicMetricCriteria is the BasicMultiMetricCriteria implementation for MultiMetricCriteria. +func (mmc MultiMetricCriteria) AsDynamicMetricCriteria() (*DynamicMetricCriteria, bool) { + return nil, false +} + // AsMultiMetricCriteria is the BasicMultiMetricCriteria implementation for MultiMetricCriteria. func (mmc MultiMetricCriteria) AsMultiMetricCriteria() (*MultiMetricCriteria, bool) { return &mmc, true @@ -4307,6 +4389,51 @@ func (mmc *MultiMetricCriteria) UnmarshalJSON(body []byte) error { } mmc.AdditionalProperties[k] = additionalProperties } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + mmc.Name = &name + } + case "metricName": + if v != nil { + var metricName string + err = json.Unmarshal(*v, &metricName) + if err != nil { + return err + } + mmc.MetricName = &metricName + } + case "metricNamespace": + if v != nil { + var metricNamespace string + err = json.Unmarshal(*v, &metricNamespace) + if err != nil { + return err + } + mmc.MetricNamespace = &metricNamespace + } + case "timeAggregation": + if v != nil { + var timeAggregation interface{} + err = json.Unmarshal(*v, &timeAggregation) + if err != nil { + return err + } + mmc.TimeAggregation = timeAggregation + } + case "dimensions": + if v != nil { + var dimensions []MetricDimension + err = json.Unmarshal(*v, &dimensions) + if err != nil { + return err + } + mmc.Dimensions = &dimensions + } case "criterionType": if v != nil { var criterionType CriterionType @@ -4352,11 +4479,11 @@ type OperationListResult struct { // ProxyOnlyResource a proxy only azure resource object type ProxyOnlyResource struct { - // ID - Azure resource Id + // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` - // Name - Azure resource name + // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` - // Type - Azure resource type + // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` } @@ -4383,11 +4510,11 @@ type RecurrentSchedule struct { // Resource an azure resource object type Resource struct { - // ID - Azure resource Id + // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` - // Name - Azure resource name + // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` - // Type - Azure resource type + // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -4398,15 +4525,6 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -5037,7 +5155,7 @@ type SmsReceiver struct { CountryCode *string `json:"countryCode,omitempty"` // PhoneNumber - The phone number of the SMS receiver. PhoneNumber *string `json:"phoneNumber,omitempty"` - // Status - The status of the receiver. Possible values include: 'ReceiverStatusNotSpecified', 'ReceiverStatusEnabled', 'ReceiverStatusDisabled' + // Status - READ-ONLY; The status of the receiver. Possible values include: 'ReceiverStatusNotSpecified', 'ReceiverStatusEnabled', 'ReceiverStatusDisabled' Status ReceiverStatus `json:"status,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/msi/mgmt/2015-08-31-preview/msi/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/msi/mgmt/2015-08-31-preview/msi/models.go index 8495adb9e96f..eff1b71c9e01 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/msi/mgmt/2015-08-31-preview/msi/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/msi/mgmt/2015-08-31-preview/msi/models.go @@ -64,9 +64,9 @@ type CloudErrorBody struct { // Identity describes an identity resource. type Identity struct { autorest.Response `json:"-"` - // ID - The id of the created identity. + // ID - READ-ONLY; The id of the created identity. ID *string `json:"id,omitempty"` - // Name - The name of the created identity. + // Name - READ-ONLY; The name of the created identity. Name *string `json:"name,omitempty"` // Location - The Azure region where the identity lives. Location *string `json:"location,omitempty"` @@ -74,19 +74,13 @@ type Identity struct { Tags map[string]*string `json:"tags"` // IdentityProperties - The properties associated with the identity. *IdentityProperties `json:"properties,omitempty"` - // Type - The type of resource i.e. Microsoft.ManagedIdentity/userAssignedIdentities. Possible values include: 'MicrosoftManagedIdentityuserAssignedIdentities' + // Type - READ-ONLY; The type of resource i.e. Microsoft.ManagedIdentity/userAssignedIdentities. Possible values include: 'MicrosoftManagedIdentityuserAssignedIdentities' Type UserAssignedIdentities `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for Identity. func (i Identity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if i.ID != nil { - objectMap["id"] = i.ID - } - if i.Name != nil { - objectMap["name"] = i.Name - } if i.Location != nil { objectMap["location"] = i.Location } @@ -96,9 +90,6 @@ func (i Identity) MarshalJSON() ([]byte, error) { if i.IdentityProperties != nil { objectMap["properties"] = i.IdentityProperties } - if i.Type != "" { - objectMap["type"] = i.Type - } return json.Marshal(objectMap) } @@ -173,13 +164,13 @@ func (i *Identity) UnmarshalJSON(body []byte) error { // IdentityProperties the properties associated with the identity. type IdentityProperties struct { - // TenantID - The id of the tenant which the identity belongs to. + // TenantID - READ-ONLY; The id of the tenant which the identity belongs to. TenantID *uuid.UUID `json:"tenantId,omitempty"` - // PrincipalID - The id of the service principal object associated with the created identity. + // PrincipalID - READ-ONLY; The id of the service principal object associated with the created identity. PrincipalID *uuid.UUID `json:"principalId,omitempty"` - // ClientID - The id of the app associated with the identity. This is a random generated UUID by MSI. + // ClientID - READ-ONLY; The id of the app associated with the identity. This is a random generated UUID by MSI. ClientID *uuid.UUID `json:"clientId,omitempty"` - // ClientSecretURL - The ManagedServiceIdentity DataPlane URL that can be queried to obtain the identity credentials. + // ClientSecretURL - READ-ONLY; The ManagedServiceIdentity DataPlane URL that can be queried to obtain the identity credentials. ClientSecretURL *string `json:"clientSecretUrl,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/msi/mgmt/2015-08-31-preview/msi/userassignedidentities.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/msi/mgmt/2015-08-31-preview/msi/userassignedidentities.go index 0ac1afef6d8e..5702c7295a1d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/msi/mgmt/2015-08-31-preview/msi/userassignedidentities.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/msi/mgmt/2015-08-31-preview/msi/userassignedidentities.go @@ -90,6 +90,9 @@ func (client UserAssignedIdentitiesClient) CreateOrUpdatePreparer(ctx context.Co "api-version": APIVersion, } + parameters.ID = nil + parameters.Name = nil + parameters.Type = "" preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -546,6 +549,9 @@ func (client UserAssignedIdentitiesClient) UpdatePreparer(ctx context.Context, r "api-version": APIVersion, } + parameters.ID = nil + parameters.Name = nil + parameters.Type = "" preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPatch(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/models.go index 7f8524a5d2fa..b71302b59126 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/models.go @@ -111,13 +111,11 @@ const ( Standalone SkuNameEnum = "Standalone" // Standard ... Standard SkuNameEnum = "Standard" - // Unlimited ... - Unlimited SkuNameEnum = "Unlimited" ) // PossibleSkuNameEnumValues returns an array of possible values for the SkuNameEnum const type. func PossibleSkuNameEnumValues() []SkuNameEnum { - return []SkuNameEnum{Free, PerGB2018, PerNode, Premium, Standalone, Standard, Unlimited} + return []SkuNameEnum{Free, PerGB2018, PerNode, Premium, Standalone, Standard} } // DataSource datasources under OMS Workspace. @@ -129,11 +127,11 @@ type DataSource struct { ETag *string `json:"eTag,omitempty"` // Kind - Possible values include: 'AzureActivityLog', 'ChangeTrackingPath', 'ChangeTrackingDefaultPath', 'ChangeTrackingDefaultRegistry', 'ChangeTrackingCustomRegistry', 'CustomLog', 'CustomLogCollection', 'GenericDataSource', 'IISLogs', 'LinuxPerformanceObject', 'LinuxPerformanceCollection', 'LinuxSyslog', 'LinuxSyslogCollection', 'WindowsEvent', 'WindowsPerformanceCounter' Kind DataSourceKind `json:"kind,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` @@ -151,15 +149,6 @@ func (ds DataSource) MarshalJSON() ([]byte, error) { if ds.Kind != "" { objectMap["kind"] = ds.Kind } - if ds.ID != nil { - objectMap["id"] = ds.ID - } - if ds.Name != nil { - objectMap["name"] = ds.Name - } - if ds.Type != nil { - objectMap["type"] = ds.Type - } if ds.Tags != nil { objectMap["tags"] = ds.Tags } @@ -333,11 +322,11 @@ type LinkedService struct { autorest.Response `json:"-"` // LinkedServiceProperties - The properties of the linked service. *LinkedServiceProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` @@ -349,15 +338,6 @@ func (ls LinkedService) MarshalJSON() ([]byte, error) { if ls.LinkedServiceProperties != nil { objectMap["properties"] = ls.LinkedServiceProperties } - if ls.ID != nil { - objectMap["id"] = ls.ID - } - if ls.Name != nil { - objectMap["name"] = ls.Name - } - if ls.Type != nil { - objectMap["type"] = ls.Type - } if ls.Tags != nil { objectMap["tags"] = ls.Tags } @@ -533,7 +513,7 @@ type OperationListResult struct { autorest.Response `json:"-"` // Value - List of solution operations supported by the OperationsManagement resource provider. Value *[]Operation `json:"value,omitempty"` - // NextLink - URL to get the next set of operation list results if there are any. + // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` } @@ -676,11 +656,11 @@ func NewOperationListResultPage(getNextPage func(context.Context, OperationListR // ProxyResource common properties of proxy resource. type ProxyResource struct { - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` @@ -689,15 +669,6 @@ type ProxyResource struct { // MarshalJSON is the custom marshaler for ProxyResource. func (pr ProxyResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if pr.ID != nil { - objectMap["id"] = pr.ID - } - if pr.Name != nil { - objectMap["name"] = pr.Name - } - if pr.Type != nil { - objectMap["type"] = pr.Type - } if pr.Tags != nil { objectMap["tags"] = pr.Tags } @@ -706,11 +677,11 @@ func (pr ProxyResource) MarshalJSON() ([]byte, error) { // Resource the resource definition. type Resource struct { - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -721,15 +692,6 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -750,7 +712,7 @@ type SharedKeys struct { // Sku the SKU (tier) of a workspace. type Sku struct { - // Name - The name of the SKU. Possible values include: 'Free', 'Standard', 'Premium', 'Unlimited', 'PerNode', 'PerGB2018', 'Standalone' + // Name - The name of the SKU. Possible values include: 'Free', 'Standard', 'Premium', 'PerNode', 'PerGB2018', 'Standalone' Name SkuNameEnum `json:"name,omitempty"` } @@ -777,11 +739,11 @@ type Workspace struct { *WorkspaceProperties `json:"properties,omitempty"` // ETag - The ETag of the workspace. ETag *string `json:"eTag,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -798,15 +760,6 @@ func (w Workspace) MarshalJSON() ([]byte, error) { if w.ETag != nil { objectMap["eTag"] = w.ETag } - if w.ID != nil { - objectMap["id"] = w.ID - } - if w.Name != nil { - objectMap["name"] = w.Name - } - if w.Type != nil { - objectMap["type"] = w.Type - } if w.Location != nil { objectMap["location"] = w.Location } @@ -941,7 +894,7 @@ type WorkspacesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *WorkspacesCreateOrUpdateFuture) Result(client WorkspacesClient) (w Workspace, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/managementassociations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/managementassociations.go index aacc1e928c95..3156f579e3d2 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/managementassociations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/managementassociations.go @@ -105,6 +105,9 @@ func (client ManagementAssociationsClient) CreateOrUpdatePreparer(ctx context.Co "api-version": APIVersion, } + parameters.ID = nil + parameters.Name = nil + parameters.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/managementconfigurations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/managementconfigurations.go index 009065e02488..3d5f1dbb053f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/managementconfigurations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/managementconfigurations.go @@ -105,6 +105,9 @@ func (client ManagementConfigurationsClient) CreateOrUpdatePreparer(ctx context. "api-version": APIVersion, } + parameters.ID = nil + parameters.Name = nil + parameters.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/models.go index 93ac58f37774..994d4ca56275 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/models.go @@ -18,6 +18,7 @@ package operationsmanagement // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( + "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "net/http" @@ -51,11 +52,11 @@ type CodeMessageErrorError struct { // ManagementAssociation the container for solution. type ManagementAssociation struct { autorest.Response `json:"-"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -80,11 +81,11 @@ type ManagementAssociationPropertiesList struct { // ManagementConfiguration the container for solution. type ManagementConfiguration struct { autorest.Response `json:"-"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -101,7 +102,7 @@ type ManagementConfigurationProperties struct { ParentResourceType *string `json:"parentResourceType,omitempty"` // Parameters - Parameters to run the ARM template Parameters *[]ArmTemplateParameter `json:"parameters,omitempty"` - // ProvisioningState - The provisioning state for the ManagementConfiguration. + // ProvisioningState - READ-ONLY; The provisioning state for the ManagementConfiguration. ProvisioningState *string `json:"provisioningState,omitempty"` // Template - The Json object containing the ARM template to deploy Template interface{} `json:"template,omitempty"` @@ -142,11 +143,11 @@ type OperationListResult struct { // Solution the container for solution. type Solution struct { autorest.Response `json:"-"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -172,7 +173,7 @@ type SolutionPlan struct { type SolutionProperties struct { // WorkspaceResourceID - The azure resourceId for the workspace where the solution will be deployed/enabled. WorkspaceResourceID *string `json:"workspaceResourceId,omitempty"` - // ProvisioningState - The provisioning state for the solution. + // ProvisioningState - READ-ONLY; The provisioning state for the solution. ProvisioningState *string `json:"provisioningState,omitempty"` // ContainedResources - The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted. ContainedResources *[]string `json:"containedResources,omitempty"` @@ -197,7 +198,7 @@ type SolutionsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *SolutionsCreateOrUpdateFuture) Result(client SolutionsClient) (s Solution, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "operationsmanagement.SolutionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -226,7 +227,7 @@ type SolutionsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *SolutionsDeleteFuture) Result(client SolutionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "operationsmanagement.SolutionsDeleteFuture", "Result", future.Response(), "Polling failure") return diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/solutions.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/solutions.go index 363c1f5dada2..045cedd07f00 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/solutions.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement/solutions.go @@ -96,6 +96,9 @@ func (client SolutionsClient) CreateOrUpdatePreparer(ctx context.Context, resour "api-version": APIVersion, } + parameters.ID = nil + parameters.Name = nil + parameters.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/managementgroups.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/managementgroups.go index 92701c7e88fa..3227f45d900d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/managementgroups.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/managementgroups.go @@ -84,6 +84,8 @@ func (client Client) CreateOrUpdatePreparer(ctx context.Context, groupID string, "api-version": APIVersion, } + createManagementGroupRequest.ID = nil + createManagementGroupRequest.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/models.go index 254b8122cff2..cb2970eabb8a 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2018-03-01-preview/managementgroups/models.go @@ -194,11 +194,11 @@ type CheckNameAvailabilityRequest struct { // availability. type CheckNameAvailabilityResult struct { autorest.Response `json:"-"` - // NameAvailable - Required. True indicates name is valid and available. False indicates the name is invalid, unavailable, or both. + // NameAvailable - READ-ONLY; Required. True indicates name is valid and available. False indicates the name is invalid, unavailable, or both. NameAvailable *bool `json:"nameAvailable,omitempty"` - // Reason - Required if nameAvailable == false. Invalid indicates the name provided does not match the resource provider's naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable. Possible values include: 'Invalid', 'AlreadyExists' + // Reason - READ-ONLY; Required if nameAvailable == false. Invalid indicates the name provided does not match the resource provider's naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable. Possible values include: 'Invalid', 'AlreadyExists' Reason Reason `json:"reason,omitempty"` - // Message - Required if nameAvailable == false. Localized. If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that is already in use, and direct them to select a different name. + // Message - READ-ONLY; Required if nameAvailable == false. Localized. If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that is already in use, and direct them to select a different name. Message *string `json:"message,omitempty"` } @@ -220,49 +220,49 @@ type ChildInfo struct { // CreateManagementGroupChildInfo the child information of a management group used during creation. type CreateManagementGroupChildInfo struct { - // Type - The fully qualified resource type which includes provider namespace (e.g. /providers/Microsoft.Management/managementGroups). Possible values include: 'Type2ProvidersMicrosoftManagementmanagementGroups', 'Type2Subscriptions' + // Type - READ-ONLY; The fully qualified resource type which includes provider namespace (e.g. /providers/Microsoft.Management/managementGroups). Possible values include: 'Type2ProvidersMicrosoftManagementmanagementGroups', 'Type2Subscriptions' Type Type2 `json:"type,omitempty"` - // ID - The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 + // ID - READ-ONLY; The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 ID *string `json:"id,omitempty"` - // Name - The name of the child entity. + // Name - READ-ONLY; The name of the child entity. Name *string `json:"name,omitempty"` - // DisplayName - The friendly name of the child resource. + // DisplayName - READ-ONLY; The friendly name of the child resource. DisplayName *string `json:"displayName,omitempty"` - // Roles - The roles definitions associated with the management group. + // Roles - READ-ONLY; The roles definitions associated with the management group. Roles *[]string `json:"roles,omitempty"` - // Children - The list of children. + // Children - READ-ONLY; The list of children. Children *[]CreateManagementGroupChildInfo `json:"children,omitempty"` } // CreateManagementGroupDetails the details of a management group used during creation. type CreateManagementGroupDetails struct { - // Version - The version number of the object. + // Version - READ-ONLY; The version number of the object. Version *float64 `json:"version,omitempty"` - // UpdatedTime - The date and time when this object was last updated. + // UpdatedTime - READ-ONLY; The date and time when this object was last updated. UpdatedTime *date.Time `json:"updatedTime,omitempty"` - // UpdatedBy - The identity of the principal or process that updated the object. + // UpdatedBy - READ-ONLY; The identity of the principal or process that updated the object. UpdatedBy *string `json:"updatedBy,omitempty"` Parent *CreateParentGroupInfo `json:"parent,omitempty"` } // CreateManagementGroupProperties the generic properties of a management group used during creation. type CreateManagementGroupProperties struct { - // TenantID - The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000 + // TenantID - READ-ONLY; The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000 TenantID *string `json:"tenantId,omitempty"` // DisplayName - The friendly name of the management group. If no value is passed then this field will be set to the groupId. DisplayName *string `json:"displayName,omitempty"` - // Roles - The roles definitions associated with the management group. + // Roles - READ-ONLY; The roles definitions associated with the management group. Roles *[]string `json:"roles,omitempty"` Details *CreateManagementGroupDetails `json:"details,omitempty"` - // Children - The list of children. + // Children - READ-ONLY; The list of children. Children *[]CreateManagementGroupChildInfo `json:"children,omitempty"` } // CreateManagementGroupRequest management group creation parameters. type CreateManagementGroupRequest struct { - // ID - The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 + // ID - READ-ONLY; The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 ID *string `json:"id,omitempty"` - // Type - The type of the resource. For example, /providers/Microsoft.Management/managementGroups + // Type - READ-ONLY; The type of the resource. For example, /providers/Microsoft.Management/managementGroups Type *string `json:"type,omitempty"` // Name - The name of the management group. For example, 00000000-0000-0000-0000-000000000000 Name *string `json:"name,omitempty"` @@ -272,12 +272,6 @@ type CreateManagementGroupRequest struct { // MarshalJSON is the custom marshaler for CreateManagementGroupRequest. func (cmgr CreateManagementGroupRequest) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if cmgr.ID != nil { - objectMap["id"] = cmgr.ID - } - if cmgr.Type != nil { - objectMap["type"] = cmgr.Type - } if cmgr.Name != nil { objectMap["name"] = cmgr.Name } @@ -348,7 +342,7 @@ type CreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *CreateOrUpdateFuture) Result(client Client) (so SetObject, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.CreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -371,9 +365,9 @@ func (future *CreateOrUpdateFuture) Result(client Client) (so SetObject, err err type CreateParentGroupInfo struct { // ID - The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 ID *string `json:"id,omitempty"` - // Name - The name of the parent management group + // Name - READ-ONLY; The name of the parent management group Name *string `json:"name,omitempty"` - // DisplayName - The friendly name of the parent management group. + // DisplayName - READ-ONLY; The friendly name of the parent management group. DisplayName *string `json:"displayName,omitempty"` } @@ -386,7 +380,7 @@ type DeleteFuture struct { // If the operation has not completed it will return an error. func (future *DeleteFuture) Result(client Client) (or OperationResults, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "managementgroups.DeleteFuture", "Result", future.Response(), "Polling failure") return @@ -418,11 +412,11 @@ type Details struct { // EntityHierarchyItem the management group details for the hierarchy view. type EntityHierarchyItem struct { - // ID - The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 + // ID - READ-ONLY; The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 ID *string `json:"id,omitempty"` - // Type - The type of the resource. For example, /providers/Microsoft.Management/managementGroups + // Type - READ-ONLY; The type of the resource. For example, /providers/Microsoft.Management/managementGroups Type *string `json:"type,omitempty"` - // Name - The name of the management group. For example, 00000000-0000-0000-0000-000000000000 + // Name - READ-ONLY; The name of the management group. For example, 00000000-0000-0000-0000-000000000000 Name *string `json:"name,omitempty"` *EntityHierarchyItemProperties `json:"properties,omitempty"` } @@ -430,15 +424,6 @@ type EntityHierarchyItem struct { // MarshalJSON is the custom marshaler for EntityHierarchyItem. func (ehi EntityHierarchyItem) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if ehi.ID != nil { - objectMap["id"] = ehi.ID - } - if ehi.Type != nil { - objectMap["type"] = ehi.Type - } - if ehi.Name != nil { - objectMap["name"] = ehi.Name - } if ehi.EntityHierarchyItemProperties != nil { objectMap["properties"] = ehi.EntityHierarchyItemProperties } @@ -508,11 +493,11 @@ type EntityHierarchyItemProperties struct { // EntityInfo the entity. type EntityInfo struct { - // ID - The fully qualified ID for the entity. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 + // ID - READ-ONLY; The fully qualified ID for the entity. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 ID *string `json:"id,omitempty"` - // Type - The type of the resource. For example, /providers/Microsoft.Management/managementGroups + // Type - READ-ONLY; The type of the resource. For example, /providers/Microsoft.Management/managementGroups Type *string `json:"type,omitempty"` - // Name - The name of the entity. For example, 00000000-0000-0000-0000-000000000000 + // Name - READ-ONLY; The name of the entity. For example, 00000000-0000-0000-0000-000000000000 Name *string `json:"name,omitempty"` *EntityInfoProperties `json:"properties,omitempty"` } @@ -520,15 +505,6 @@ type EntityInfo struct { // MarshalJSON is the custom marshaler for EntityInfo. func (ei EntityInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if ei.ID != nil { - objectMap["id"] = ei.ID - } - if ei.Type != nil { - objectMap["type"] = ei.Type - } - if ei.Name != nil { - objectMap["name"] = ei.Name - } if ei.EntityInfoProperties != nil { objectMap["properties"] = ei.EntityInfoProperties } @@ -613,9 +589,9 @@ type EntityListResult struct { autorest.Response `json:"-"` // Value - The list of entities. Value *[]EntityInfo `json:"value,omitempty"` - // Count - Total count of records that match the filter + // Count - READ-ONLY; Total count of records that match the filter Count *int32 `json:"count,omitempty"` - // NextLink - The URL to use for getting the next set of results. + // NextLink - READ-ONLY; The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -779,11 +755,11 @@ type ErrorResponse struct { // Info the management group resource. type Info struct { - // ID - The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 + // ID - READ-ONLY; The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 ID *string `json:"id,omitempty"` - // Type - The type of the resource. For example, /providers/Microsoft.Management/managementGroups + // Type - READ-ONLY; The type of the resource. For example, /providers/Microsoft.Management/managementGroups Type *string `json:"type,omitempty"` - // Name - The name of the management group. For example, 00000000-0000-0000-0000-000000000000 + // Name - READ-ONLY; The name of the management group. For example, 00000000-0000-0000-0000-000000000000 Name *string `json:"name,omitempty"` *InfoProperties `json:"properties,omitempty"` } @@ -791,15 +767,6 @@ type Info struct { // MarshalJSON is the custom marshaler for Info. func (i Info) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if i.ID != nil { - objectMap["id"] = i.ID - } - if i.Type != nil { - objectMap["type"] = i.Type - } - if i.Name != nil { - objectMap["name"] = i.Name - } if i.InfoProperties != nil { objectMap["properties"] = i.InfoProperties } @@ -870,7 +837,7 @@ type ListResult struct { autorest.Response `json:"-"` // Value - The list of management groups. Value *[]Info `json:"value,omitempty"` - // NextLink - The URL to use for getting the next set of results. + // NextLink - READ-ONLY; The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1014,11 +981,11 @@ func NewListResultPage(getNextPage func(context.Context, ListResult) (ListResult // ManagementGroup the management group details. type ManagementGroup struct { autorest.Response `json:"-"` - // ID - The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 + // ID - READ-ONLY; The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 ID *string `json:"id,omitempty"` - // Type - The type of the resource. For example, /providers/Microsoft.Management/managementGroups + // Type - READ-ONLY; The type of the resource. For example, /providers/Microsoft.Management/managementGroups Type *string `json:"type,omitempty"` - // Name - The name of the management group. For example, 00000000-0000-0000-0000-000000000000 + // Name - READ-ONLY; The name of the management group. For example, 00000000-0000-0000-0000-000000000000 Name *string `json:"name,omitempty"` *Properties `json:"properties,omitempty"` } @@ -1026,15 +993,6 @@ type ManagementGroup struct { // MarshalJSON is the custom marshaler for ManagementGroup. func (mg ManagementGroup) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if mg.ID != nil { - objectMap["id"] = mg.ID - } - if mg.Type != nil { - objectMap["type"] = mg.Type - } - if mg.Name != nil { - objectMap["name"] = mg.Name - } if mg.Properties != nil { objectMap["properties"] = mg.Properties } @@ -1094,29 +1052,29 @@ func (mg *ManagementGroup) UnmarshalJSON(body []byte) error { // Operation operation supported by the Microsoft.Management resource provider. type Operation struct { - // Name - Operation name: {provider}/{resource}/{operation}. + // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation}. Name *string `json:"name,omitempty"` Display *OperationDisplayProperties `json:"display,omitempty"` } // OperationDisplayProperties the object that represents the operation. type OperationDisplayProperties struct { - // Provider - The name of the provider. + // Provider - READ-ONLY; The name of the provider. Provider *string `json:"provider,omitempty"` - // Resource - The resource on which the operation is performed. + // Resource - READ-ONLY; The resource on which the operation is performed. Resource *string `json:"resource,omitempty"` - // Operation - The operation that can be performed. + // Operation - READ-ONLY; The operation that can be performed. Operation *string `json:"operation,omitempty"` - // Description - Operation description. + // Description - READ-ONLY; Operation description. Description *string `json:"description,omitempty"` } // OperationListResult describes the result of the request to list Microsoft.Management operations. type OperationListResult struct { autorest.Response `json:"-"` - // Value - List of operations supported by the Microsoft.Management resource provider. + // Value - READ-ONLY; List of operations supported by the Microsoft.Management resource provider. Value *[]Operation `json:"value,omitempty"` - // NextLink - URL to get the next set of operation list results if there are any. + // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` } @@ -1260,11 +1218,11 @@ func NewOperationListResultPage(getNextPage func(context.Context, OperationListR // OperationResults the results of an asynchronous operation. type OperationResults struct { autorest.Response `json:"-"` - // ID - The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 + // ID - READ-ONLY; The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 ID *string `json:"id,omitempty"` - // Type - The type of the resource. For example, /providers/Microsoft.Management/managementGroups + // Type - READ-ONLY; The type of the resource. For example, /providers/Microsoft.Management/managementGroups Type *string `json:"type,omitempty"` - // Name - The name of the management group. For example, 00000000-0000-0000-0000-000000000000 + // Name - READ-ONLY; The name of the management group. For example, 00000000-0000-0000-0000-000000000000 Name *string `json:"name,omitempty"` *OperationResultsProperties `json:"properties,omitempty"` } @@ -1272,15 +1230,6 @@ type OperationResults struct { // MarshalJSON is the custom marshaler for OperationResults. func (or OperationResults) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if or.ID != nil { - objectMap["id"] = or.ID - } - if or.Type != nil { - objectMap["type"] = or.Type - } - if or.Name != nil { - objectMap["name"] = or.Name - } if or.OperationResultsProperties != nil { objectMap["properties"] = or.OperationResultsProperties } @@ -1384,8 +1333,8 @@ type SetObject struct { // TenantBackfillStatusResult the tenant backfill status type TenantBackfillStatusResult struct { autorest.Response `json:"-"` - // TenantID - The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000 + // TenantID - READ-ONLY; The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000 TenantID *string `json:"tenantId,omitempty"` - // Status - The status of the Tenant Backfill. Possible values include: 'NotStarted', 'NotStartedButGroupsExist', 'Started', 'Failed', 'Cancelled', 'Completed' + // Status - READ-ONLY; The status of the Tenant Backfill. Possible values include: 'NotStarted', 'NotStartedButGroupsExist', 'Started', 'Failed', 'Cancelled', 'Completed' Status Status `json:"status,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/adaptivenetworkhardenings.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/adaptivenetworkhardenings.go new file mode 100644 index 000000000000..0d6adbf2aba2 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/adaptivenetworkhardenings.go @@ -0,0 +1,365 @@ +package security + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// AdaptiveNetworkHardeningsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider +type AdaptiveNetworkHardeningsClient struct { + BaseClient +} + +// NewAdaptiveNetworkHardeningsClient creates an instance of the AdaptiveNetworkHardeningsClient client. +func NewAdaptiveNetworkHardeningsClient(subscriptionID string, ascLocation string) AdaptiveNetworkHardeningsClient { + return NewAdaptiveNetworkHardeningsClientWithBaseURI(DefaultBaseURI, subscriptionID, ascLocation) +} + +// NewAdaptiveNetworkHardeningsClientWithBaseURI creates an instance of the AdaptiveNetworkHardeningsClient client. +func NewAdaptiveNetworkHardeningsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) AdaptiveNetworkHardeningsClient { + return AdaptiveNetworkHardeningsClient{NewWithBaseURI(baseURI, subscriptionID, ascLocation)} +} + +// Enforce enforces the given rules on the NSG(s) listed in the request +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// resourceNamespace - the Namespace of the resource. +// resourceType - the type of the resource. +// resourceName - name of the resource. +// adaptiveNetworkHardeningResourceName - the name of the Adaptive Network Hardening resource. +func (client AdaptiveNetworkHardeningsClient) Enforce(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, adaptiveNetworkHardeningResourceName string, body AdaptiveNetworkHardeningEnforceRequest) (result AdaptiveNetworkHardeningsEnforceFuture, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AdaptiveNetworkHardeningsClient.Enforce") + defer func() { + sc := -1 + if result.Response() != nil { + sc = result.Response().StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.Pattern, Rule: `^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$`, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: body, + Constraints: []validation.Constraint{{Target: "body.Rules", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "body.NetworkSecurityGroups", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("security.AdaptiveNetworkHardeningsClient", "Enforce", err.Error()) + } + + req, err := client.EnforcePreparer(ctx, resourceGroupName, resourceNamespace, resourceType, resourceName, adaptiveNetworkHardeningResourceName, body) + if err != nil { + err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "Enforce", nil, "Failure preparing request") + return + } + + result, err = client.EnforceSender(req) + if err != nil { + err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "Enforce", result.Response(), "Failure sending request") + return + } + + return +} + +// EnforcePreparer prepares the Enforce request. +func (client AdaptiveNetworkHardeningsClient) EnforcePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, adaptiveNetworkHardeningResourceName string, body AdaptiveNetworkHardeningEnforceRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "adaptiveNetworkHardeningEnforceAction": autorest.Encode("path", "enforce"), + "adaptiveNetworkHardeningResourceName": autorest.Encode("path", adaptiveNetworkHardeningResourceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "resourceNamespace": autorest.Encode("path", resourceNamespace), + "resourceType": autorest.Encode("path", resourceType), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-06-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings/{adaptiveNetworkHardeningResourceName}/{adaptiveNetworkHardeningEnforceAction}", pathParameters), + autorest.WithJSON(body), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// EnforceSender sends the Enforce request. The method will close the +// http.Response Body if it receives an error. +func (client AdaptiveNetworkHardeningsClient) EnforceSender(req *http.Request) (future AdaptiveNetworkHardeningsEnforceFuture, err error) { + var resp *http.Response + resp, err = autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return +} + +// EnforceResponder handles the response to the Enforce request. The method always +// closes the http.Response Body. +func (client AdaptiveNetworkHardeningsClient) EnforceResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets a single Adaptive Network Hardening resource +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// resourceNamespace - the Namespace of the resource. +// resourceType - the type of the resource. +// resourceName - name of the resource. +// adaptiveNetworkHardeningResourceName - the name of the Adaptive Network Hardening resource. +func (client AdaptiveNetworkHardeningsClient) Get(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, adaptiveNetworkHardeningResourceName string) (result AdaptiveNetworkHardening, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AdaptiveNetworkHardeningsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.Pattern, Rule: `^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$`, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("security.AdaptiveNetworkHardeningsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, resourceNamespace, resourceType, resourceName, adaptiveNetworkHardeningResourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client AdaptiveNetworkHardeningsClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, adaptiveNetworkHardeningResourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "adaptiveNetworkHardeningResourceName": autorest.Encode("path", adaptiveNetworkHardeningResourceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "resourceNamespace": autorest.Encode("path", resourceNamespace), + "resourceType": autorest.Encode("path", resourceType), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-06-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings/{adaptiveNetworkHardeningResourceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client AdaptiveNetworkHardeningsClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client AdaptiveNetworkHardeningsClient) GetResponder(resp *http.Response) (result AdaptiveNetworkHardening, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByExtendedResource gets a list of Adaptive Network Hardenings resources in scope of an extended resource. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// resourceNamespace - the Namespace of the resource. +// resourceType - the type of the resource. +// resourceName - name of the resource. +func (client AdaptiveNetworkHardeningsClient) ListByExtendedResource(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string) (result AdaptiveNetworkHardeningsListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AdaptiveNetworkHardeningsClient.ListByExtendedResource") + defer func() { + sc := -1 + if result.anhl.Response.Response != nil { + sc = result.anhl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.Pattern, Rule: `^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$`, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("security.AdaptiveNetworkHardeningsClient", "ListByExtendedResource", err.Error()) + } + + result.fn = client.listByExtendedResourceNextResults + req, err := client.ListByExtendedResourcePreparer(ctx, resourceGroupName, resourceNamespace, resourceType, resourceName) + if err != nil { + err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "ListByExtendedResource", nil, "Failure preparing request") + return + } + + resp, err := client.ListByExtendedResourceSender(req) + if err != nil { + result.anhl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "ListByExtendedResource", resp, "Failure sending request") + return + } + + result.anhl, err = client.ListByExtendedResourceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "ListByExtendedResource", resp, "Failure responding to request") + } + + return +} + +// ListByExtendedResourcePreparer prepares the ListByExtendedResource request. +func (client AdaptiveNetworkHardeningsClient) ListByExtendedResourcePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "resourceName": autorest.Encode("path", resourceName), + "resourceNamespace": autorest.Encode("path", resourceNamespace), + "resourceType": autorest.Encode("path", resourceType), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-06-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByExtendedResourceSender sends the ListByExtendedResource request. The method will close the +// http.Response Body if it receives an error. +func (client AdaptiveNetworkHardeningsClient) ListByExtendedResourceSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByExtendedResourceResponder handles the response to the ListByExtendedResource request. The method always +// closes the http.Response Body. +func (client AdaptiveNetworkHardeningsClient) ListByExtendedResourceResponder(resp *http.Response) (result AdaptiveNetworkHardeningsList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByExtendedResourceNextResults retrieves the next set of results, if any. +func (client AdaptiveNetworkHardeningsClient) listByExtendedResourceNextResults(ctx context.Context, lastResults AdaptiveNetworkHardeningsList) (result AdaptiveNetworkHardeningsList, err error) { + req, err := lastResults.adaptiveNetworkHardeningsListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "listByExtendedResourceNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByExtendedResourceSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "listByExtendedResourceNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByExtendedResourceResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsClient", "listByExtendedResourceNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByExtendedResourceComplete enumerates all values, automatically crossing page boundaries as required. +func (client AdaptiveNetworkHardeningsClient) ListByExtendedResourceComplete(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string) (result AdaptiveNetworkHardeningsListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AdaptiveNetworkHardeningsClient.ListByExtendedResource") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByExtendedResource(ctx, resourceGroupName, resourceNamespace, resourceType, resourceName) + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/devicesecuritygroups.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/devicesecuritygroups.go new file mode 100644 index 000000000000..d06e1a21aaa8 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/devicesecuritygroups.go @@ -0,0 +1,383 @@ +package security + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// DeviceSecurityGroupsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider +type DeviceSecurityGroupsClient struct { + BaseClient +} + +// NewDeviceSecurityGroupsClient creates an instance of the DeviceSecurityGroupsClient client. +func NewDeviceSecurityGroupsClient(subscriptionID string, ascLocation string) DeviceSecurityGroupsClient { + return NewDeviceSecurityGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID, ascLocation) +} + +// NewDeviceSecurityGroupsClientWithBaseURI creates an instance of the DeviceSecurityGroupsClient client. +func NewDeviceSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) DeviceSecurityGroupsClient { + return DeviceSecurityGroupsClient{NewWithBaseURI(baseURI, subscriptionID, ascLocation)} +} + +// CreateOrUpdate creates or updates the device security group on a specified IoT hub resource. +// Parameters: +// resourceID - the identifier of the resource. +// deviceSecurityGroupName - the name of the security group. Please notice that the name is case insensitive. +// deviceSecurityGroup - security group object. +func (client DeviceSecurityGroupsClient) CreateOrUpdate(ctx context.Context, resourceID string, deviceSecurityGroupName string, deviceSecurityGroup DeviceSecurityGroup) (result DeviceSecurityGroup, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeviceSecurityGroupsClient.CreateOrUpdate") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceID, deviceSecurityGroupName, deviceSecurityGroup) + if err != nil { + err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "CreateOrUpdate", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + } + + return +} + +// CreateOrUpdatePreparer prepares the CreateOrUpdate request. +func (client DeviceSecurityGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceID string, deviceSecurityGroupName string, deviceSecurityGroup DeviceSecurityGroup) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceSecurityGroupName": autorest.Encode("path", deviceSecurityGroupName), + "resourceId": autorest.Encode("path", resourceID), + } + + const APIVersion = "2017-08-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/{resourceId}/providers/Microsoft.Security/deviceSecurityGroups/{deviceSecurityGroupName}", pathParameters), + autorest.WithJSON(deviceSecurityGroup), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (client DeviceSecurityGroupsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always +// closes the http.Response Body. +func (client DeviceSecurityGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result DeviceSecurityGroup, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the security group +// Parameters: +// resourceID - the identifier of the resource. +// deviceSecurityGroupName - the name of the security group. Please notice that the name is case insensitive. +func (client DeviceSecurityGroupsClient) Delete(ctx context.Context, resourceID string, deviceSecurityGroupName string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeviceSecurityGroupsClient.Delete") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.DeletePreparer(ctx, resourceID, deviceSecurityGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "Delete", resp, "Failure responding to request") + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client DeviceSecurityGroupsClient) DeletePreparer(ctx context.Context, resourceID string, deviceSecurityGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceSecurityGroupName": autorest.Encode("path", deviceSecurityGroupName), + "resourceId": autorest.Encode("path", resourceID), + } + + const APIVersion = "2017-08-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/{resourceId}/providers/Microsoft.Security/deviceSecurityGroups/{deviceSecurityGroupName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client DeviceSecurityGroupsClient) DeleteSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client DeviceSecurityGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the device security group for the specified IoT hub resource. +// Parameters: +// resourceID - the identifier of the resource. +// deviceSecurityGroupName - the name of the security group. Please notice that the name is case insensitive. +func (client DeviceSecurityGroupsClient) Get(ctx context.Context, resourceID string, deviceSecurityGroupName string) (result DeviceSecurityGroup, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeviceSecurityGroupsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.GetPreparer(ctx, resourceID, deviceSecurityGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client DeviceSecurityGroupsClient) GetPreparer(ctx context.Context, resourceID string, deviceSecurityGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "deviceSecurityGroupName": autorest.Encode("path", deviceSecurityGroupName), + "resourceId": autorest.Encode("path", resourceID), + } + + const APIVersion = "2017-08-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/{resourceId}/providers/Microsoft.Security/deviceSecurityGroups/{deviceSecurityGroupName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client DeviceSecurityGroupsClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client DeviceSecurityGroupsClient) GetResponder(resp *http.Response) (result DeviceSecurityGroup, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// List gets the list of device security groups for the specified IoT hub resource. +// Parameters: +// resourceID - the identifier of the resource. +func (client DeviceSecurityGroupsClient) List(ctx context.Context, resourceID string) (result DeviceSecurityGroupListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeviceSecurityGroupsClient.List") + defer func() { + sc := -1 + if result.dsgl.Response.Response != nil { + sc = result.dsgl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceID) + if err != nil { + err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.dsgl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "List", resp, "Failure sending request") + return + } + + result.dsgl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "List", resp, "Failure responding to request") + } + + return +} + +// ListPreparer prepares the List request. +func (client DeviceSecurityGroupsClient) ListPreparer(ctx context.Context, resourceID string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceId": autorest.Encode("path", resourceID), + } + + const APIVersion = "2017-08-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/{resourceId}/providers/Microsoft.Security/deviceSecurityGroups", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client DeviceSecurityGroupsClient) ListSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client DeviceSecurityGroupsClient) ListResponder(resp *http.Response) (result DeviceSecurityGroupList, 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 DeviceSecurityGroupsClient) listNextResults(ctx context.Context, lastResults DeviceSecurityGroupList) (result DeviceSecurityGroupList, err error) { + req, err := lastResults.deviceSecurityGroupListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.DeviceSecurityGroupsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client DeviceSecurityGroupsClient) ListComplete(ctx context.Context, resourceID string) (result DeviceSecurityGroupListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeviceSecurityGroupsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceID) + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/jitnetworkaccesspolicies.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/jitnetworkaccesspolicies.go index 40efd8479c66..ecee4a24459a 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/jitnetworkaccesspolicies.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/jitnetworkaccesspolicies.go @@ -105,6 +105,10 @@ func (client JitNetworkAccessPoliciesClient) CreateOrUpdatePreparer(ctx context. "api-version": APIVersion, } + body.ID = nil + body.Name = nil + body.Type = nil + body.Location = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/models.go index 53ad84f7a5ef..080fc7f2e087 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/models.go @@ -21,6 +21,7 @@ import ( "context" "encoding/json" "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/date" "github.com/Azure/go-autorest/autorest/to" "github.com/Azure/go-autorest/tracing" @@ -108,6 +109,21 @@ func PossibleConnectionTypeValues() []ConnectionType { return []ConnectionType{External, Internal} } +// Direction enumerates the values for direction. +type Direction string + +const ( + // Inbound ... + Inbound Direction = "Inbound" + // Outbound ... + Outbound Direction = "Outbound" +) + +// PossibleDirectionValues returns an array of possible values for the Direction const type. +func PossibleDirectionValues() []Direction { + return []Direction{Inbound, Outbound} +} + // ExternalSecuritySolutionKind enumerates the values for external security solution kind. type ExternalSecuritySolutionKind string @@ -229,6 +245,25 @@ func PossibleSettingKindValues() []SettingKind { return []SettingKind{SettingKindAlertSuppressionSetting, SettingKindDataExportSetting} } +// State enumerates the values for state. +type State string + +const ( + // Failed At least one supported regulatory compliance control in the given standard has a state of failed + Failed State = "Failed" + // Passed All supported regulatory compliance controls in the given standard have a passed state + Passed State = "Passed" + // Skipped All supported regulatory compliance controls in the given standard have a state of skipped + Skipped State = "Skipped" + // Unsupported No supported regulatory compliance data for the given standard + Unsupported State = "Unsupported" +) + +// PossibleStateValues returns an array of possible values for the State const type. +func PossibleStateValues() []State { + return []State{Failed, Passed, Skipped, Unsupported} +} + // Status enumerates the values for status. type Status string @@ -261,6 +296,36 @@ func PossibleStatusReasonValues() []StatusReason { return []StatusReason{Expired, NewerRequestInitiated, UserRequested} } +// TransportProtocol enumerates the values for transport protocol. +type TransportProtocol string + +const ( + // TransportProtocolTCP ... + TransportProtocolTCP TransportProtocol = "TCP" + // TransportProtocolUDP ... + TransportProtocolUDP TransportProtocol = "UDP" +) + +// PossibleTransportProtocolValues returns an array of possible values for the TransportProtocol const type. +func PossibleTransportProtocolValues() []TransportProtocol { + return []TransportProtocol{TransportProtocolTCP, TransportProtocolUDP} +} + +// ValueType enumerates the values for value type. +type ValueType string + +const ( + // IPCidr An IP range in CIDR format (e.g. '192.168.0.1/8'). + IPCidr ValueType = "IpCidr" + // String Any string value. + String ValueType = "String" +) + +// PossibleValueTypeValues returns an array of possible values for the ValueType const type. +func PossibleValueTypeValues() []ValueType { + return []ValueType{IPCidr, String} +} + // AadConnectivityState1 describes an Azure resource with kind type AadConnectivityState1 struct { // ConnectivityState - Possible values include: 'Discovered', 'NotLicensed', 'Connected' @@ -271,13 +336,13 @@ type AadConnectivityState1 struct { // workspace. type AadExternalSecuritySolution struct { Properties *AadSolutionProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` - // Location - Location where the resource is stored + // Location - READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty"` // Kind - Possible values include: 'KindExternalSecuritySolution', 'KindCEF', 'KindATA', 'KindAAD' Kind KindEnum `json:"kind,omitempty"` @@ -290,18 +355,6 @@ func (aess AadExternalSecuritySolution) MarshalJSON() ([]byte, error) { if aess.Properties != nil { objectMap["properties"] = aess.Properties } - if aess.ID != nil { - objectMap["id"] = aess.ID - } - if aess.Name != nil { - objectMap["name"] = aess.Name - } - if aess.Type != nil { - objectMap["type"] = aess.Type - } - if aess.Location != nil { - objectMap["location"] = aess.Location - } if aess.Kind != "" { objectMap["kind"] = aess.Kind } @@ -342,6 +395,268 @@ type AadSolutionProperties struct { ConnectivityState AadConnectivityState `json:"connectivityState,omitempty"` } +// AdaptiveNetworkHardening the resource whose properties describes the Adaptive Network Hardening settings +// for some Azure resource +type AdaptiveNetworkHardening struct { + autorest.Response `json:"-"` + // AdaptiveNetworkHardeningProperties - Properties of the Adaptive Network Hardening resource + *AdaptiveNetworkHardeningProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AdaptiveNetworkHardening. +func (anh AdaptiveNetworkHardening) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if anh.AdaptiveNetworkHardeningProperties != nil { + objectMap["properties"] = anh.AdaptiveNetworkHardeningProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AdaptiveNetworkHardening struct. +func (anh *AdaptiveNetworkHardening) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var adaptiveNetworkHardeningProperties AdaptiveNetworkHardeningProperties + err = json.Unmarshal(*v, &adaptiveNetworkHardeningProperties) + if err != nil { + return err + } + anh.AdaptiveNetworkHardeningProperties = &adaptiveNetworkHardeningProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + anh.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + anh.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + anh.Type = &typeVar + } + } + } + + return nil +} + +// AdaptiveNetworkHardeningEnforceRequest ... +type AdaptiveNetworkHardeningEnforceRequest struct { + // Rules - The rules to enforce + Rules *[]Rule `json:"rules,omitempty"` + // NetworkSecurityGroups - The Azure resource IDs of the effective network security groups that will be updated with the created security rules from the Adaptive Network Hardening rules + NetworkSecurityGroups *[]string `json:"networkSecurityGroups,omitempty"` +} + +// AdaptiveNetworkHardeningProperties adaptive Network Hardening resource properties +type AdaptiveNetworkHardeningProperties struct { + // Rules - The security rules which are recommended to be effective on the VM + Rules *[]Rule `json:"rules,omitempty"` + // RulesCalculationTime - The UTC time on which the rules were calculated + RulesCalculationTime *date.Time `json:"rulesCalculationTime,omitempty"` + // EffectiveNetworkSecurityGroups - The Network Security Groups effective on the network interfaces of the protected resource + EffectiveNetworkSecurityGroups *[]EffectiveNetworkSecurityGroups `json:"effectiveNetworkSecurityGroups,omitempty"` +} + +// AdaptiveNetworkHardeningsEnforceFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type AdaptiveNetworkHardeningsEnforceFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *AdaptiveNetworkHardeningsEnforceFuture) Result(client AdaptiveNetworkHardeningsClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "security.AdaptiveNetworkHardeningsEnforceFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("security.AdaptiveNetworkHardeningsEnforceFuture") + return + } + ar.Response = future.Response() + return +} + +// AdaptiveNetworkHardeningsList response for ListAdaptiveNetworkHardenings API service call +type AdaptiveNetworkHardeningsList struct { + autorest.Response `json:"-"` + // Value - A list of Adaptive Network Hardenings resources + Value *[]AdaptiveNetworkHardening `json:"value,omitempty"` + // NextLink - The URL to get the next set of results + NextLink *string `json:"nextLink,omitempty"` +} + +// AdaptiveNetworkHardeningsListIterator provides access to a complete listing of AdaptiveNetworkHardening +// values. +type AdaptiveNetworkHardeningsListIterator struct { + i int + page AdaptiveNetworkHardeningsListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *AdaptiveNetworkHardeningsListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AdaptiveNetworkHardeningsListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *AdaptiveNetworkHardeningsListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter AdaptiveNetworkHardeningsListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter AdaptiveNetworkHardeningsListIterator) Response() AdaptiveNetworkHardeningsList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter AdaptiveNetworkHardeningsListIterator) Value() AdaptiveNetworkHardening { + if !iter.page.NotDone() { + return AdaptiveNetworkHardening{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the AdaptiveNetworkHardeningsListIterator type. +func NewAdaptiveNetworkHardeningsListIterator(page AdaptiveNetworkHardeningsListPage) AdaptiveNetworkHardeningsListIterator { + return AdaptiveNetworkHardeningsListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (anhl AdaptiveNetworkHardeningsList) IsEmpty() bool { + return anhl.Value == nil || len(*anhl.Value) == 0 +} + +// adaptiveNetworkHardeningsListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (anhl AdaptiveNetworkHardeningsList) adaptiveNetworkHardeningsListPreparer(ctx context.Context) (*http.Request, error) { + if anhl.NextLink == nil || len(to.String(anhl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(anhl.NextLink))) +} + +// AdaptiveNetworkHardeningsListPage contains a page of AdaptiveNetworkHardening values. +type AdaptiveNetworkHardeningsListPage struct { + fn func(context.Context, AdaptiveNetworkHardeningsList) (AdaptiveNetworkHardeningsList, error) + anhl AdaptiveNetworkHardeningsList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *AdaptiveNetworkHardeningsListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AdaptiveNetworkHardeningsListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.anhl) + if err != nil { + return err + } + page.anhl = next + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *AdaptiveNetworkHardeningsListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page AdaptiveNetworkHardeningsListPage) NotDone() bool { + return !page.anhl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page AdaptiveNetworkHardeningsListPage) Response() AdaptiveNetworkHardeningsList { + return page.anhl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page AdaptiveNetworkHardeningsListPage) Values() []AdaptiveNetworkHardening { + if page.anhl.IsEmpty() { + return nil + } + return *page.anhl.Value +} + +// Creates a new instance of the AdaptiveNetworkHardeningsListPage type. +func NewAdaptiveNetworkHardeningsListPage(getNextPage func(context.Context, AdaptiveNetworkHardeningsList) (AdaptiveNetworkHardeningsList, error)) AdaptiveNetworkHardeningsListPage { + return AdaptiveNetworkHardeningsListPage{fn: getNextPage} +} + // AdvancedThreatProtectionProperties the Advanced Threat Protection settings. type AdvancedThreatProtectionProperties struct { // IsEnabled - Indicates whether Advanced Threat Protection is enabled. @@ -352,11 +667,11 @@ type AdvancedThreatProtectionProperties struct { type AdvancedThreatProtectionSetting struct { autorest.Response `json:"-"` *AdvancedThreatProtectionProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -366,15 +681,6 @@ func (atps AdvancedThreatProtectionSetting) MarshalJSON() ([]byte, error) { if atps.AdvancedThreatProtectionProperties != nil { objectMap["properties"] = atps.AdvancedThreatProtectionProperties } - if atps.ID != nil { - objectMap["id"] = atps.ID - } - if atps.Name != nil { - objectMap["name"] = atps.Name - } - if atps.Type != nil { - objectMap["type"] = atps.Type - } return json.Marshal(objectMap) } @@ -433,11 +739,11 @@ func (atps *AdvancedThreatProtectionSetting) UnmarshalJSON(body []byte) error { type Alert struct { autorest.Response `json:"-"` *AlertProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -447,15 +753,6 @@ func (a Alert) MarshalJSON() ([]byte, error) { if a.AlertProperties != nil { objectMap["properties"] = a.AlertProperties } - if a.ID != nil { - objectMap["id"] = a.ID - } - if a.Name != nil { - objectMap["name"] = a.Name - } - if a.Type != nil { - objectMap["type"] = a.Type - } return json.Marshal(objectMap) } @@ -512,9 +809,9 @@ func (a *Alert) UnmarshalJSON(body []byte) error { // AlertConfidenceReason factors that increase our confidence that the alert is a true positive type AlertConfidenceReason struct { - // Type - Type of confidence factor + // Type - READ-ONLY; Type of confidence factor Type *string `json:"type,omitempty"` - // Reason - description of the confidence reason + // Reason - READ-ONLY; description of the confidence reason Reason *string `json:"reason,omitempty"` } @@ -522,16 +819,13 @@ type AlertConfidenceReason struct { type AlertEntity struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Type - Type of entity + // Type - READ-ONLY; Type of entity Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for AlertEntity. func (ae AlertEntity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if ae.Type != nil { - objectMap["type"] = ae.Type - } for k, v := range ae.AdditionalProperties { objectMap[k] = v } @@ -578,7 +872,7 @@ func (ae *AlertEntity) UnmarshalJSON(body []byte) error { type AlertList struct { autorest.Response `json:"-"` Value *[]Alert `json:"value,omitempty"` - // NextLink - The URI to fetch the next page. + // NextLink - READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty"` } @@ -721,128 +1015,74 @@ func NewAlertListPage(getNextPage func(context.Context, AlertList) (AlertList, e // AlertProperties describes security alert properties. type AlertProperties struct { - // State - State of the alert (Active, Dismissed etc.) + // State - READ-ONLY; State of the alert (Active, Dismissed etc.) State *string `json:"state,omitempty"` - // ReportedTimeUtc - The time the incident was reported to Microsoft.Security in UTC + // ReportedTimeUtc - READ-ONLY; The time the incident was reported to Microsoft.Security in UTC ReportedTimeUtc *date.Time `json:"reportedTimeUtc,omitempty"` - // VendorName - Name of the vendor that discovered the incident + // VendorName - READ-ONLY; Name of the vendor that discovered the incident VendorName *string `json:"vendorName,omitempty"` - // AlertName - Name of the alert type + // AlertName - READ-ONLY; Name of the alert type AlertName *string `json:"alertName,omitempty"` - // AlertDisplayName - Display name of the alert type + // AlertDisplayName - READ-ONLY; Display name of the alert type AlertDisplayName *string `json:"alertDisplayName,omitempty"` - // DetectedTimeUtc - The time the incident was detected by the vendor + // DetectedTimeUtc - READ-ONLY; The time the incident was detected by the vendor DetectedTimeUtc *date.Time `json:"detectedTimeUtc,omitempty"` - // Description - Description of the incident and what it means + // Description - READ-ONLY; Description of the incident and what it means Description *string `json:"description,omitempty"` - // RemediationSteps - Recommended steps to reradiate the incident + // RemediationSteps - READ-ONLY; Recommended steps to reradiate the incident RemediationSteps *string `json:"remediationSteps,omitempty"` - // ActionTaken - The action that was taken as a response to the alert (Active, Blocked etc.) + // ActionTaken - READ-ONLY; The action that was taken as a response to the alert (Active, Blocked etc.) ActionTaken *string `json:"actionTaken,omitempty"` - // ReportedSeverity - Estimated severity of this alert. Possible values include: 'Silent', 'Information', 'Low', 'High' + // ReportedSeverity - READ-ONLY; Estimated severity of this alert. Possible values include: 'Silent', 'Information', 'Low', 'High' ReportedSeverity ReportedSeverity `json:"reportedSeverity,omitempty"` - // CompromisedEntity - The entity that the incident happened on + // CompromisedEntity - READ-ONLY; The entity that the incident happened on CompromisedEntity *string `json:"compromisedEntity,omitempty"` - // AssociatedResource - Azure resource ID of the associated resource + // AssociatedResource - READ-ONLY; Azure resource ID of the associated resource AssociatedResource *string `json:"associatedResource,omitempty"` ExtendedProperties map[string]interface{} `json:"extendedProperties"` - // SystemSource - The type of the alerted resource (Azure, Non-Azure) + // SystemSource - READ-ONLY; The type of the alerted resource (Azure, Non-Azure) SystemSource *string `json:"systemSource,omitempty"` - // CanBeInvestigated - Whether this alert can be investigated with Azure Security Center + // CanBeInvestigated - READ-ONLY; Whether this alert can be investigated with Azure Security Center CanBeInvestigated *bool `json:"canBeInvestigated,omitempty"` - // IsIncident - Whether this alert is for incident type or not (otherwise - single alert) + // IsIncident - READ-ONLY; Whether this alert is for incident type or not (otherwise - single alert) IsIncident *bool `json:"isIncident,omitempty"` // Entities - objects that are related to this alerts Entities *[]AlertEntity `json:"entities,omitempty"` - // ConfidenceScore - level of confidence we have on the alert + // ConfidenceScore - READ-ONLY; level of confidence we have on the alert ConfidenceScore *float64 `json:"confidenceScore,omitempty"` // ConfidenceReasons - reasons the alert got the confidenceScore value ConfidenceReasons *[]AlertConfidenceReason `json:"confidenceReasons,omitempty"` - // SubscriptionID - Azure subscription ID of the resource that had the security alert or the subscription ID of the workspace that this resource reports to + // SubscriptionID - READ-ONLY; Azure subscription ID of the resource that had the security alert or the subscription ID of the workspace that this resource reports to SubscriptionID *string `json:"subscriptionId,omitempty"` - // InstanceID - Instance ID of the alert. + // InstanceID - READ-ONLY; Instance ID of the alert. InstanceID *string `json:"instanceId,omitempty"` - // WorkspaceArmID - Azure resource ID of the workspace that the alert was reported to. + // WorkspaceArmID - READ-ONLY; Azure resource ID of the workspace that the alert was reported to. WorkspaceArmID *string `json:"workspaceArmId,omitempty"` + // CorrelationKey - READ-ONLY; Alerts with the same CorrelationKey will be grouped together in Ibiza. + CorrelationKey *string `json:"correlationKey,omitempty"` } // MarshalJSON is the custom marshaler for AlertProperties. func (ap AlertProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if ap.State != nil { - objectMap["state"] = ap.State - } - if ap.ReportedTimeUtc != nil { - objectMap["reportedTimeUtc"] = ap.ReportedTimeUtc - } - if ap.VendorName != nil { - objectMap["vendorName"] = ap.VendorName - } - if ap.AlertName != nil { - objectMap["alertName"] = ap.AlertName - } - if ap.AlertDisplayName != nil { - objectMap["alertDisplayName"] = ap.AlertDisplayName - } - if ap.DetectedTimeUtc != nil { - objectMap["detectedTimeUtc"] = ap.DetectedTimeUtc - } - if ap.Description != nil { - objectMap["description"] = ap.Description - } - if ap.RemediationSteps != nil { - objectMap["remediationSteps"] = ap.RemediationSteps - } - if ap.ActionTaken != nil { - objectMap["actionTaken"] = ap.ActionTaken - } - if ap.ReportedSeverity != "" { - objectMap["reportedSeverity"] = ap.ReportedSeverity - } - if ap.CompromisedEntity != nil { - objectMap["compromisedEntity"] = ap.CompromisedEntity - } - if ap.AssociatedResource != nil { - objectMap["associatedResource"] = ap.AssociatedResource - } if ap.ExtendedProperties != nil { objectMap["extendedProperties"] = ap.ExtendedProperties } - if ap.SystemSource != nil { - objectMap["systemSource"] = ap.SystemSource - } - if ap.CanBeInvestigated != nil { - objectMap["canBeInvestigated"] = ap.CanBeInvestigated - } - if ap.IsIncident != nil { - objectMap["isIncident"] = ap.IsIncident - } if ap.Entities != nil { objectMap["entities"] = ap.Entities } - if ap.ConfidenceScore != nil { - objectMap["confidenceScore"] = ap.ConfidenceScore - } if ap.ConfidenceReasons != nil { objectMap["confidenceReasons"] = ap.ConfidenceReasons } - if ap.SubscriptionID != nil { - objectMap["subscriptionId"] = ap.SubscriptionID - } - if ap.InstanceID != nil { - objectMap["instanceId"] = ap.InstanceID - } - if ap.WorkspaceArmID != nil { - objectMap["workspaceArmId"] = ap.WorkspaceArmID - } return json.Marshal(objectMap) } // AllowedConnectionsList list of all possible traffic between Azure resources type AllowedConnectionsList struct { autorest.Response `json:"-"` - Value *[]AllowedConnectionsResource `json:"value,omitempty"` - // NextLink - The URI to fetch the next page. + // Value - READ-ONLY + Value *[]AllowedConnectionsResource `json:"value,omitempty"` + // NextLink - READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty"` } @@ -988,35 +1228,21 @@ func NewAllowedConnectionsListPage(getNextPage func(context.Context, AllowedConn // resources type AllowedConnectionsResource struct { autorest.Response `json:"-"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` - // Location - Location where the resource is stored - Location *string `json:"location,omitempty"` + // Location - READ-ONLY; Location where the resource is stored + Location *string `json:"location,omitempty"` + // AllowedConnectionsResourceProperties - READ-ONLY *AllowedConnectionsResourceProperties `json:"properties,omitempty"` } // MarshalJSON is the custom marshaler for AllowedConnectionsResource. func (acr AllowedConnectionsResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if acr.ID != nil { - objectMap["id"] = acr.ID - } - if acr.Name != nil { - objectMap["name"] = acr.Name - } - if acr.Type != nil { - objectMap["type"] = acr.Type - } - if acr.Location != nil { - objectMap["location"] = acr.Location - } - if acr.AllowedConnectionsResourceProperties != nil { - objectMap["properties"] = acr.AllowedConnectionsResourceProperties - } return json.Marshal(objectMap) } @@ -1082,29 +1308,47 @@ func (acr *AllowedConnectionsResource) UnmarshalJSON(body []byte) error { // AllowedConnectionsResourceProperties describes the allowed traffic between Azure resources type AllowedConnectionsResourceProperties struct { - // CalculatedDateTime - The UTC time on which the allowed connections resource was calculated + // CalculatedDateTime - READ-ONLY; The UTC time on which the allowed connections resource was calculated CalculatedDateTime *date.Time `json:"calculatedDateTime,omitempty"` - // ConnectableResources - List of connectable resources + // ConnectableResources - READ-ONLY; List of connectable resources ConnectableResources *[]ConnectableResource `json:"connectableResources,omitempty"` } +// AllowlistCustomAlertRule a custom alert rule that checks if a value (depends on the custom alert type) +// is allowed +type AllowlistCustomAlertRule struct { + // AllowlistValues - The values to allow. The format of the values depends on the rule type. + AllowlistValues *[]string `json:"allowlistValues,omitempty"` + // ValueType - READ-ONLY; The value type of the items in the list. Possible values include: 'IPCidr', 'String' + ValueType ValueType `json:"valueType,omitempty"` + // DisplayName - READ-ONLY; The display name of the custom alert. + DisplayName *string `json:"displayName,omitempty"` + // Description - READ-ONLY; The description of the custom alert. + Description *string `json:"description,omitempty"` + // IsEnabled - Whether the custom alert is enabled. + IsEnabled *bool `json:"isEnabled,omitempty"` + // RuleType - The type of the custom alert rule. + RuleType *string `json:"ruleType,omitempty"` +} + // AscLocation the ASC location of the subscription is in the "name" field type AscLocation struct { autorest.Response `json:"-"` Properties interface{} `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } // AscLocationList list of locations where ASC saves your data type AscLocationList struct { autorest.Response `json:"-"` - Value *[]AscLocation `json:"value,omitempty"` - // NextLink - The URI to fetch the next page. + // Value - READ-ONLY + Value *[]AscLocation `json:"value,omitempty"` + // NextLink - READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty"` } @@ -1248,13 +1492,13 @@ func NewAscLocationListPage(getNextPage func(context.Context, AscLocationList) ( // AtaExternalSecuritySolution represents an ATA security solution which sends logs to an OMS workspace type AtaExternalSecuritySolution struct { Properties *AtaSolutionProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` - // Location - Location where the resource is stored + // Location - READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty"` // Kind - Possible values include: 'KindExternalSecuritySolution', 'KindCEF', 'KindATA', 'KindAAD' Kind KindEnum `json:"kind,omitempty"` @@ -1267,18 +1511,6 @@ func (aess AtaExternalSecuritySolution) MarshalJSON() ([]byte, error) { if aess.Properties != nil { objectMap["properties"] = aess.Properties } - if aess.ID != nil { - objectMap["id"] = aess.ID - } - if aess.Name != nil { - objectMap["name"] = aess.Name - } - if aess.Type != nil { - objectMap["type"] = aess.Type - } - if aess.Location != nil { - objectMap["location"] = aess.Location - } if aess.Kind != "" { objectMap["kind"] = aess.Kind } @@ -1409,11 +1641,11 @@ type AutoProvisioningSetting struct { autorest.Response `json:"-"` // AutoProvisioningSettingProperties - Auto provisioning setting data *AutoProvisioningSettingProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -1423,15 +1655,6 @@ func (aps AutoProvisioningSetting) MarshalJSON() ([]byte, error) { if aps.AutoProvisioningSettingProperties != nil { objectMap["properties"] = aps.AutoProvisioningSettingProperties } - if aps.ID != nil { - objectMap["id"] = aps.ID - } - if aps.Name != nil { - objectMap["name"] = aps.Name - } - if aps.Type != nil { - objectMap["type"] = aps.Type - } return json.Marshal(objectMap) } @@ -1491,7 +1714,7 @@ type AutoProvisioningSettingList struct { autorest.Response `json:"-"` // Value - List of all the auto provisioning settings Value *[]AutoProvisioningSetting `json:"value,omitempty"` - // NextLink - The URI to fetch the next page. + // NextLink - READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty"` } @@ -1642,13 +1865,13 @@ type AutoProvisioningSettingProperties struct { // CefExternalSecuritySolution represents a security solution which sends CEF logs to an OMS workspace type CefExternalSecuritySolution struct { Properties *CefSolutionProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` - // Location - Location where the resource is stored + // Location - READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty"` // Kind - Possible values include: 'KindExternalSecuritySolution', 'KindCEF', 'KindATA', 'KindAAD' Kind KindEnum `json:"kind,omitempty"` @@ -1661,18 +1884,6 @@ func (cess CefExternalSecuritySolution) MarshalJSON() ([]byte, error) { if cess.Properties != nil { objectMap["properties"] = cess.Properties } - if cess.ID != nil { - objectMap["id"] = cess.ID - } - if cess.Name != nil { - objectMap["name"] = cess.Name - } - if cess.Type != nil { - objectMap["type"] = cess.Type - } - if cess.Location != nil { - objectMap["location"] = cess.Location - } if cess.Kind != "" { objectMap["kind"] = cess.Kind } @@ -1865,9 +2076,9 @@ func (ce *CloudError) UnmarshalJSON(body []byte) error { // CloudErrorBody error details. type CloudErrorBody struct { - // Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + // Code - READ-ONLY; An identifier for the error. Codes are invariant and are intended to be consumed programmatically. Code *string `json:"code,omitempty"` - // Message - A message describing the error, intended to be suitable for display in a user interface. + // Message - READ-ONLY; A message describing the error, intended to be suitable for display in a user interface. Message *string `json:"message,omitempty"` } @@ -1876,11 +2087,11 @@ type Compliance struct { autorest.Response `json:"-"` // ComplianceProperties - Compliance data *ComplianceProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -1890,15 +2101,6 @@ func (c Compliance) MarshalJSON() ([]byte, error) { if c.ComplianceProperties != nil { objectMap["properties"] = c.ComplianceProperties } - if c.ID != nil { - objectMap["id"] = c.ID - } - if c.Name != nil { - objectMap["name"] = c.Name - } - if c.Type != nil { - objectMap["type"] = c.Type - } return json.Marshal(objectMap) } @@ -1958,7 +2160,7 @@ type ComplianceList struct { autorest.Response `json:"-"` // Value - List of Compliance objects Value *[]Compliance `json:"value,omitempty"` - // NextLink - The URI to fetch the next page. + // NextLink - READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty"` } @@ -2103,39 +2305,39 @@ func NewComplianceListPage(getNextPage func(context.Context, ComplianceList) (Co // Compliances under the given Subscription. A Resource Compliance is defined as the compliant ('healthy') // Policy Definitions out of all Policy Definitions applicable to a given resource. type ComplianceProperties struct { - // AssessmentTimestampUtcDate - The timestamp when the Compliance calculation was conducted. + // AssessmentTimestampUtcDate - READ-ONLY; The timestamp when the Compliance calculation was conducted. AssessmentTimestampUtcDate *date.Time `json:"assessmentTimestampUtcDate,omitempty"` - // ResourceCount - The resource count of the given subscription for which the Compliance calculation was conducted (needed for Management Group Compliance calculation). + // ResourceCount - READ-ONLY; The resource count of the given subscription for which the Compliance calculation was conducted (needed for Management Group Compliance calculation). ResourceCount *int32 `json:"resourceCount,omitempty"` - // AssessmentResult - An array of segment, which is the actually the compliance assessment. + // AssessmentResult - READ-ONLY; An array of segment, which is the actually the compliance assessment. AssessmentResult *[]ComplianceSegment `json:"assessmentResult,omitempty"` } // ComplianceSegment a segment of a compliance assessment. type ComplianceSegment struct { - // SegmentType - The segment type, e.g. compliant, non-compliance, insufficient coverage, N/A, etc. + // SegmentType - READ-ONLY; The segment type, e.g. compliant, non-compliance, insufficient coverage, N/A, etc. SegmentType *string `json:"segmentType,omitempty"` - // Percentage - The size (%) of the segment. + // Percentage - READ-ONLY; The size (%) of the segment. Percentage *float64 `json:"percentage,omitempty"` } // ConnectableResource describes the allowed inbound and outbound traffic of an Azure resource type ConnectableResource struct { - // ID - The Azure resource id + // ID - READ-ONLY; The Azure resource id ID *string `json:"id,omitempty"` - // InboundConnectedResources - The list of Azure resources that the resource has inbound allowed connection from + // InboundConnectedResources - READ-ONLY; The list of Azure resources that the resource has inbound allowed connection from InboundConnectedResources *[]ConnectedResource `json:"inboundConnectedResources,omitempty"` - // OutboundConnectedResources - The list of Azure resources that the resource has outbound allowed connection to + // OutboundConnectedResources - READ-ONLY; The list of Azure resources that the resource has outbound allowed connection to OutboundConnectedResources *[]ConnectedResource `json:"outboundConnectedResources,omitempty"` } // ConnectedResource describes properties of a connected resource type ConnectedResource struct { - // ConnectedResourceID - The Azure resource id of the connected resource + // ConnectedResourceID - READ-ONLY; The Azure resource id of the connected resource ConnectedResourceID *string `json:"connectedResourceId,omitempty"` - // TCPPorts - The allowed tcp ports + // TCPPorts - READ-ONLY; The allowed tcp ports TCPPorts *string `json:"tcpPorts,omitempty"` - // UDPPorts - The allowed udp ports + // UDPPorts - READ-ONLY; The allowed udp ports UDPPorts *string `json:"udpPorts,omitempty"` } @@ -2150,11 +2352,11 @@ type Contact struct { autorest.Response `json:"-"` // ContactProperties - Security contact data *ContactProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -2164,15 +2366,6 @@ func (c Contact) MarshalJSON() ([]byte, error) { if c.ContactProperties != nil { objectMap["properties"] = c.ContactProperties } - if c.ID != nil { - objectMap["id"] = c.ID - } - if c.Name != nil { - objectMap["name"] = c.Name - } - if c.Type != nil { - objectMap["type"] = c.Type - } return json.Marshal(objectMap) } @@ -2230,9 +2423,9 @@ func (c *Contact) UnmarshalJSON(body []byte) error { // ContactList list of security contacts response type ContactList struct { autorest.Response `json:"-"` - // Value - List of security contacts + // Value - READ-ONLY; List of security contacts Value *[]Contact `json:"value,omitempty"` - // NextLink - The URI to fetch the next page. + // NextLink - READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty"` } @@ -2385,17 +2578,29 @@ type ContactProperties struct { AlertsToAdmins AlertsToAdmins `json:"alertsToAdmins,omitempty"` } -// DataExportSetting represents a data export setting -type DataExportSetting struct { - // DataExportSettingProperties - Data export setting data - *DataExportSettingProperties `json:"properties,omitempty"` +// CustomAlertRule a custom alert rule +type CustomAlertRule struct { + // DisplayName - READ-ONLY; The display name of the custom alert. + DisplayName *string `json:"displayName,omitempty"` + // Description - READ-ONLY; The description of the custom alert. + Description *string `json:"description,omitempty"` + // IsEnabled - Whether the custom alert is enabled. + IsEnabled *bool `json:"isEnabled,omitempty"` + // RuleType - The type of the custom alert rule. + RuleType *string `json:"ruleType,omitempty"` +} + +// DataExportSetting represents a data export setting +type DataExportSetting struct { + // DataExportSettingProperties - Data export setting data + *DataExportSettingProperties `json:"properties,omitempty"` // Kind - the kind of the settings string (DataExportSetting). Possible values include: 'SettingKindDataExportSetting', 'SettingKindAlertSuppressionSetting' Kind SettingKind `json:"kind,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -2408,15 +2613,6 @@ func (desVar DataExportSetting) MarshalJSON() ([]byte, error) { if desVar.Kind != "" { objectMap["kind"] = desVar.Kind } - if desVar.ID != nil { - objectMap["id"] = desVar.ID - } - if desVar.Name != nil { - objectMap["name"] = desVar.Name - } - if desVar.Type != nil { - objectMap["type"] = desVar.Type - } return json.Marshal(objectMap) } @@ -2486,16 +2682,264 @@ type DataExportSettingProperties struct { Enabled *bool `json:"enabled,omitempty"` } +// DenylistCustomAlertRule a custom alert rule that checks if a value (depends on the custom alert type) is +// denied +type DenylistCustomAlertRule struct { + // DenylistValues - The values to deny. The format of the values depends on the rule type. + DenylistValues *[]string `json:"denylistValues,omitempty"` + // ValueType - READ-ONLY; The value type of the items in the list. Possible values include: 'IPCidr', 'String' + ValueType ValueType `json:"valueType,omitempty"` + // DisplayName - READ-ONLY; The display name of the custom alert. + DisplayName *string `json:"displayName,omitempty"` + // Description - READ-ONLY; The description of the custom alert. + Description *string `json:"description,omitempty"` + // IsEnabled - Whether the custom alert is enabled. + IsEnabled *bool `json:"isEnabled,omitempty"` + // RuleType - The type of the custom alert rule. + RuleType *string `json:"ruleType,omitempty"` +} + +// DeviceSecurityGroup the device security group resource +type DeviceSecurityGroup struct { + autorest.Response `json:"-"` + // DeviceSecurityGroupProperties - Device Security group data + *DeviceSecurityGroupProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeviceSecurityGroup. +func (dsg DeviceSecurityGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dsg.DeviceSecurityGroupProperties != nil { + objectMap["properties"] = dsg.DeviceSecurityGroupProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DeviceSecurityGroup struct. +func (dsg *DeviceSecurityGroup) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var deviceSecurityGroupProperties DeviceSecurityGroupProperties + err = json.Unmarshal(*v, &deviceSecurityGroupProperties) + if err != nil { + return err + } + dsg.DeviceSecurityGroupProperties = &deviceSecurityGroupProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + dsg.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dsg.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dsg.Type = &typeVar + } + } + } + + return nil +} + +// DeviceSecurityGroupList list of device security groups +type DeviceSecurityGroupList struct { + autorest.Response `json:"-"` + // Value - List of device security group objects + Value *[]DeviceSecurityGroup `json:"value,omitempty"` + // NextLink - READ-ONLY; The URI to fetch the next page. + NextLink *string `json:"nextLink,omitempty"` +} + +// DeviceSecurityGroupListIterator provides access to a complete listing of DeviceSecurityGroup values. +type DeviceSecurityGroupListIterator struct { + i int + page DeviceSecurityGroupListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *DeviceSecurityGroupListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeviceSecurityGroupListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *DeviceSecurityGroupListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter DeviceSecurityGroupListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter DeviceSecurityGroupListIterator) Response() DeviceSecurityGroupList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter DeviceSecurityGroupListIterator) Value() DeviceSecurityGroup { + if !iter.page.NotDone() { + return DeviceSecurityGroup{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the DeviceSecurityGroupListIterator type. +func NewDeviceSecurityGroupListIterator(page DeviceSecurityGroupListPage) DeviceSecurityGroupListIterator { + return DeviceSecurityGroupListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (dsgl DeviceSecurityGroupList) IsEmpty() bool { + return dsgl.Value == nil || len(*dsgl.Value) == 0 +} + +// deviceSecurityGroupListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (dsgl DeviceSecurityGroupList) deviceSecurityGroupListPreparer(ctx context.Context) (*http.Request, error) { + if dsgl.NextLink == nil || len(to.String(dsgl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(dsgl.NextLink))) +} + +// DeviceSecurityGroupListPage contains a page of DeviceSecurityGroup values. +type DeviceSecurityGroupListPage struct { + fn func(context.Context, DeviceSecurityGroupList) (DeviceSecurityGroupList, error) + dsgl DeviceSecurityGroupList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *DeviceSecurityGroupListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DeviceSecurityGroupListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.dsgl) + if err != nil { + return err + } + page.dsgl = next + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *DeviceSecurityGroupListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page DeviceSecurityGroupListPage) NotDone() bool { + return !page.dsgl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page DeviceSecurityGroupListPage) Response() DeviceSecurityGroupList { + return page.dsgl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page DeviceSecurityGroupListPage) Values() []DeviceSecurityGroup { + if page.dsgl.IsEmpty() { + return nil + } + return *page.dsgl.Value +} + +// Creates a new instance of the DeviceSecurityGroupListPage type. +func NewDeviceSecurityGroupListPage(getNextPage func(context.Context, DeviceSecurityGroupList) (DeviceSecurityGroupList, error)) DeviceSecurityGroupListPage { + return DeviceSecurityGroupListPage{fn: getNextPage} +} + +// DeviceSecurityGroupProperties describes properties of a security group. +type DeviceSecurityGroupProperties struct { + // ThresholdRules - A list of threshold custom alert rules. + ThresholdRules *[]ThresholdCustomAlertRule `json:"thresholdRules,omitempty"` + // TimeWindowRules - A list of time window custom alert rules. + TimeWindowRules *[]TimeWindowCustomAlertRule `json:"timeWindowRules,omitempty"` + // AllowlistRules - A list of allow-list custom alert rules. + AllowlistRules *[]AllowlistCustomAlertRule `json:"allowlistRules,omitempty"` + // DenylistRules - A list of deny-list custom alert rules. + DenylistRules *[]DenylistCustomAlertRule `json:"denylistRules,omitempty"` +} + // DiscoveredSecuritySolution ... type DiscoveredSecuritySolution struct { autorest.Response `json:"-"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` - // Location - Location where the resource is stored + // Location - READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty"` *DiscoveredSecuritySolutionProperties `json:"properties,omitempty"` } @@ -2503,18 +2947,6 @@ type DiscoveredSecuritySolution struct { // MarshalJSON is the custom marshaler for DiscoveredSecuritySolution. func (dss DiscoveredSecuritySolution) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if dss.ID != nil { - objectMap["id"] = dss.ID - } - if dss.Name != nil { - objectMap["name"] = dss.Name - } - if dss.Type != nil { - objectMap["type"] = dss.Type - } - if dss.Location != nil { - objectMap["location"] = dss.Location - } if dss.DiscoveredSecuritySolutionProperties != nil { objectMap["properties"] = dss.DiscoveredSecuritySolutionProperties } @@ -2585,7 +3017,7 @@ func (dss *DiscoveredSecuritySolution) UnmarshalJSON(body []byte) error { type DiscoveredSecuritySolutionList struct { autorest.Response `json:"-"` Value *[]DiscoveredSecuritySolution `json:"value,omitempty"` - // NextLink - The URI to fetch the next page. + // NextLink - READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty"` } @@ -2739,6 +3171,14 @@ type DiscoveredSecuritySolutionProperties struct { Sku *string `json:"sku,omitempty"` } +// EffectiveNetworkSecurityGroups describes the Network Security Groups effective on a network interface +type EffectiveNetworkSecurityGroups struct { + // NetworkInterface - The Azure resource ID of the network interface + NetworkInterface *string `json:"networkInterface,omitempty"` + // NetworkSecurityGroups - The Network Security Groups effective on the network interface + NetworkSecurityGroups *[]string `json:"networkSecurityGroups,omitempty"` +} + // BasicExternalSecuritySolution represents a security solution external to Azure Security Center which sends // information to an OMS workspace and whose data is displayed by Azure Security Center. type BasicExternalSecuritySolution interface { @@ -2752,13 +3192,13 @@ type BasicExternalSecuritySolution interface { // information to an OMS workspace and whose data is displayed by Azure Security Center. type ExternalSecuritySolution struct { autorest.Response `json:"-"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` - // Location - Location where the resource is stored + // Location - READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty"` // Kind - Possible values include: 'KindExternalSecuritySolution', 'KindCEF', 'KindATA', 'KindAAD' Kind KindEnum `json:"kind,omitempty"` @@ -2813,18 +3253,6 @@ func unmarshalBasicExternalSecuritySolutionArray(body []byte) ([]BasicExternalSe func (ess ExternalSecuritySolution) MarshalJSON() ([]byte, error) { ess.Kind = KindExternalSecuritySolution objectMap := make(map[string]interface{}) - if ess.ID != nil { - objectMap["id"] = ess.ID - } - if ess.Name != nil { - objectMap["name"] = ess.Name - } - if ess.Type != nil { - objectMap["type"] = ess.Type - } - if ess.Location != nil { - objectMap["location"] = ess.Location - } if ess.Kind != "" { objectMap["kind"] = ess.Kind } @@ -2866,7 +3294,7 @@ type ExternalSecuritySolutionKind1 struct { type ExternalSecuritySolutionList struct { autorest.Response `json:"-"` Value *[]BasicExternalSecuritySolution `json:"value,omitempty"` - // NextLink - The URI to fetch the next page. + // NextLink - READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty"` } @@ -3155,11 +3583,11 @@ type InformationProtectionPolicy struct { autorest.Response `json:"-"` // InformationProtectionPolicyProperties - Information protection policy data *InformationProtectionPolicyProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -3169,15 +3597,6 @@ func (ipp InformationProtectionPolicy) MarshalJSON() ([]byte, error) { if ipp.InformationProtectionPolicyProperties != nil { objectMap["properties"] = ipp.InformationProtectionPolicyProperties } - if ipp.ID != nil { - objectMap["id"] = ipp.ID - } - if ipp.Name != nil { - objectMap["name"] = ipp.Name - } - if ipp.Type != nil { - objectMap["type"] = ipp.Type - } return json.Marshal(objectMap) } @@ -3237,7 +3656,7 @@ type InformationProtectionPolicyList struct { autorest.Response `json:"-"` // Value - List of information protection policies. Value *[]InformationProtectionPolicy `json:"value,omitempty"` - // NextLink - The URI to fetch the next page. + // NextLink - READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty"` } @@ -3381,7 +3800,7 @@ func NewInformationProtectionPolicyListPage(getNextPage func(context.Context, In // InformationProtectionPolicyProperties describes properties of an information protection policy. type InformationProtectionPolicyProperties struct { - // LastModifiedUtc - Describes the last UTC time the policy was modified. + // LastModifiedUtc - READ-ONLY; Describes the last UTC time the policy was modified. LastModifiedUtc *date.Time `json:"lastModifiedUtc,omitempty"` // Labels - Dictionary of sensitivity labels. Labels map[string]*SensitivityLabel `json:"labels"` @@ -3392,9 +3811,6 @@ type InformationProtectionPolicyProperties struct { // MarshalJSON is the custom marshaler for InformationProtectionPolicyProperties. func (ippp InformationProtectionPolicyProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if ippp.LastModifiedUtc != nil { - objectMap["lastModifiedUtc"] = ippp.LastModifiedUtc - } if ippp.Labels != nil { objectMap["labels"] = ippp.Labels } @@ -3424,7 +3840,7 @@ type InformationType struct { type JitNetworkAccessPoliciesList struct { autorest.Response `json:"-"` Value *[]JitNetworkAccessPolicy `json:"value,omitempty"` - // NextLink - The URI to fetch the next page. + // NextLink - READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty"` } @@ -3569,15 +3985,15 @@ func NewJitNetworkAccessPoliciesListPage(getNextPage func(context.Context, JitNe // JitNetworkAccessPolicy ... type JitNetworkAccessPolicy struct { autorest.Response `json:"-"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Kind - Kind of the resource Kind *string `json:"kind,omitempty"` - // Location - Location where the resource is stored + // Location - READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty"` *JitNetworkAccessPolicyProperties `json:"properties,omitempty"` } @@ -3585,21 +4001,9 @@ type JitNetworkAccessPolicy struct { // MarshalJSON is the custom marshaler for JitNetworkAccessPolicy. func (jnap JitNetworkAccessPolicy) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if jnap.ID != nil { - objectMap["id"] = jnap.ID - } - if jnap.Name != nil { - objectMap["name"] = jnap.Name - } - if jnap.Type != nil { - objectMap["type"] = jnap.Type - } if jnap.Kind != nil { objectMap["kind"] = jnap.Kind } - if jnap.Location != nil { - objectMap["location"] = jnap.Location - } if jnap.JitNetworkAccessPolicyProperties != nil { objectMap["properties"] = jnap.JitNetworkAccessPolicyProperties } @@ -3703,7 +4107,7 @@ type JitNetworkAccessPolicyProperties struct { // VirtualMachines - Configurations for Microsoft.Compute/virtualMachines resource type. VirtualMachines *[]JitNetworkAccessPolicyVirtualMachine `json:"virtualMachines,omitempty"` Requests *[]JitNetworkAccessRequest `json:"requests,omitempty"` - // ProvisioningState - Gets the provisioning state of the Just-in-Time policy. + // ProvisioningState - READ-ONLY; Gets the provisioning state of the Just-in-Time policy. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -3767,30 +4171,44 @@ type Kind struct { Kind *string `json:"kind,omitempty"` } +// ListCustomAlertRule a List custom alert rule +type ListCustomAlertRule struct { + // ValueType - READ-ONLY; The value type of the items in the list. Possible values include: 'IPCidr', 'String' + ValueType ValueType `json:"valueType,omitempty"` + // DisplayName - READ-ONLY; The display name of the custom alert. + DisplayName *string `json:"displayName,omitempty"` + // Description - READ-ONLY; The description of the custom alert. + Description *string `json:"description,omitempty"` + // IsEnabled - Whether the custom alert is enabled. + IsEnabled *bool `json:"isEnabled,omitempty"` + // RuleType - The type of the custom alert rule. + RuleType *string `json:"ruleType,omitempty"` +} + // Location describes an Azure resource with location type Location struct { - // Location - Location where the resource is stored + // Location - READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty"` } // Operation possible operation in the REST API of Microsoft.Security type Operation struct { - // Name - Name of the operation + // Name - READ-ONLY; Name of the operation Name *string `json:"name,omitempty"` - // Origin - Where the operation is originated + // Origin - READ-ONLY; Where the operation is originated Origin *string `json:"origin,omitempty"` Display *OperationDisplay `json:"display,omitempty"` } // OperationDisplay security operation display type OperationDisplay struct { - // Provider - The resource provider for the operation. + // Provider - READ-ONLY; The resource provider for the operation. Provider *string `json:"provider,omitempty"` - // Resource - The display name of the resource the operation applies to. + // Resource - READ-ONLY; The display name of the resource the operation applies to. Resource *string `json:"resource,omitempty"` - // Operation - The display name of the security operation. + // Operation - READ-ONLY; The display name of the security operation. Operation *string `json:"operation,omitempty"` - // Description - The description of the operation. + // Description - READ-ONLY; The description of the operation. Description *string `json:"description,omitempty"` } @@ -3799,7 +4217,7 @@ type OperationList struct { autorest.Response `json:"-"` // Value - List of Security operations Value *[]Operation `json:"value,omitempty"` - // NextLink - The URI to fetch the next page. + // NextLink - READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty"` } @@ -3945,11 +4363,11 @@ type Pricing struct { autorest.Response `json:"-"` // PricingProperties - Pricing data *PricingProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -3959,15 +4377,6 @@ func (p Pricing) MarshalJSON() ([]byte, error) { if p.PricingProperties != nil { objectMap["properties"] = p.PricingProperties } - if p.ID != nil { - objectMap["id"] = p.ID - } - if p.Name != nil { - objectMap["name"] = p.Name - } - if p.Type != nil { - objectMap["type"] = p.Type - } return json.Marshal(objectMap) } @@ -4027,7 +4436,7 @@ type PricingList struct { autorest.Response `json:"-"` // Value - List of pricing configurations Value *[]Pricing `json:"value,omitempty"` - // NextLink - The URI to fetch the next page. + // NextLink - READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty"` } @@ -4174,75 +4583,796 @@ type PricingProperties struct { PricingTier PricingTier `json:"pricingTier,omitempty"` } -// Resource describes an Azure resource. -type Resource struct { - // ID - Resource Id - ID *string `json:"id,omitempty"` - // Name - Resource name - Name *string `json:"name,omitempty"` - // Type - Resource type - Type *string `json:"type,omitempty"` -} - -// SensitivityLabel the sensitivity label. -type SensitivityLabel struct { - // DisplayName - The name of the sensitivity label. - DisplayName *string `json:"displayName,omitempty"` - // Order - The order of the sensitivity label. - Order *float64 `json:"order,omitempty"` - // Enabled - Indicates whether the label is enabled or not. - Enabled *bool `json:"enabled,omitempty"` -} - -// Setting represents a security setting in Azure Security Center. -type Setting struct { +// RegulatoryComplianceAssessment regulatory compliance assessment details and state +type RegulatoryComplianceAssessment struct { autorest.Response `json:"-"` - // Kind - the kind of the settings string (DataExportSetting). Possible values include: 'SettingKindDataExportSetting', 'SettingKindAlertSuppressionSetting' - Kind SettingKind `json:"kind,omitempty"` - // ID - Resource Id - ID *string `json:"id,omitempty"` - // Name - Resource name - Name *string `json:"name,omitempty"` - // Type - Resource type - Type *string `json:"type,omitempty"` -} - -// SettingResource the kind of the security setting -type SettingResource struct { - // Kind - the kind of the settings string (DataExportSetting). Possible values include: 'SettingKindDataExportSetting', 'SettingKindAlertSuppressionSetting' - Kind SettingKind `json:"kind,omitempty"` - // ID - Resource Id + // RegulatoryComplianceAssessmentProperties - Regulatory compliance assessment data + *RegulatoryComplianceAssessmentProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } -// SettingsList subscription settings list. -type SettingsList struct { - autorest.Response `json:"-"` - // Value - The settings list. - Value *[]Setting `json:"value,omitempty"` - // NextLink - The URI to fetch the next page. - NextLink *string `json:"nextLink,omitempty"` -} - -// SettingsListIterator provides access to a complete listing of Setting values. -type SettingsListIterator struct { - i int - page SettingsListPage +// MarshalJSON is the custom marshaler for RegulatoryComplianceAssessment. +func (rca RegulatoryComplianceAssessment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rca.RegulatoryComplianceAssessmentProperties != nil { + objectMap["properties"] = rca.RegulatoryComplianceAssessmentProperties + } + return json.Marshal(objectMap) } -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *SettingsListIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SettingsListIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode +// UnmarshalJSON is the custom unmarshaler for RegulatoryComplianceAssessment struct. +func (rca *RegulatoryComplianceAssessment) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var regulatoryComplianceAssessmentProperties RegulatoryComplianceAssessmentProperties + err = json.Unmarshal(*v, ®ulatoryComplianceAssessmentProperties) + if err != nil { + return err + } + rca.RegulatoryComplianceAssessmentProperties = ®ulatoryComplianceAssessmentProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + rca.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + rca.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rca.Type = &typeVar + } + } + } + + return nil +} + +// RegulatoryComplianceAssessmentList list of regulatory compliance assessment response +type RegulatoryComplianceAssessmentList struct { + autorest.Response `json:"-"` + Value *[]RegulatoryComplianceAssessment `json:"value,omitempty"` + // NextLink - READ-ONLY; The URI to fetch the next page. + NextLink *string `json:"nextLink,omitempty"` +} + +// RegulatoryComplianceAssessmentListIterator provides access to a complete listing of +// RegulatoryComplianceAssessment values. +type RegulatoryComplianceAssessmentListIterator struct { + i int + page RegulatoryComplianceAssessmentListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *RegulatoryComplianceAssessmentListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RegulatoryComplianceAssessmentListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *RegulatoryComplianceAssessmentListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter RegulatoryComplianceAssessmentListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter RegulatoryComplianceAssessmentListIterator) Response() RegulatoryComplianceAssessmentList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter RegulatoryComplianceAssessmentListIterator) Value() RegulatoryComplianceAssessment { + if !iter.page.NotDone() { + return RegulatoryComplianceAssessment{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the RegulatoryComplianceAssessmentListIterator type. +func NewRegulatoryComplianceAssessmentListIterator(page RegulatoryComplianceAssessmentListPage) RegulatoryComplianceAssessmentListIterator { + return RegulatoryComplianceAssessmentListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (rcal RegulatoryComplianceAssessmentList) IsEmpty() bool { + return rcal.Value == nil || len(*rcal.Value) == 0 +} + +// regulatoryComplianceAssessmentListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (rcal RegulatoryComplianceAssessmentList) regulatoryComplianceAssessmentListPreparer(ctx context.Context) (*http.Request, error) { + if rcal.NextLink == nil || len(to.String(rcal.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(rcal.NextLink))) +} + +// RegulatoryComplianceAssessmentListPage contains a page of RegulatoryComplianceAssessment values. +type RegulatoryComplianceAssessmentListPage struct { + fn func(context.Context, RegulatoryComplianceAssessmentList) (RegulatoryComplianceAssessmentList, error) + rcal RegulatoryComplianceAssessmentList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *RegulatoryComplianceAssessmentListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RegulatoryComplianceAssessmentListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.rcal) + if err != nil { + return err + } + page.rcal = next + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *RegulatoryComplianceAssessmentListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page RegulatoryComplianceAssessmentListPage) NotDone() bool { + return !page.rcal.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page RegulatoryComplianceAssessmentListPage) Response() RegulatoryComplianceAssessmentList { + return page.rcal +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page RegulatoryComplianceAssessmentListPage) Values() []RegulatoryComplianceAssessment { + if page.rcal.IsEmpty() { + return nil + } + return *page.rcal.Value +} + +// Creates a new instance of the RegulatoryComplianceAssessmentListPage type. +func NewRegulatoryComplianceAssessmentListPage(getNextPage func(context.Context, RegulatoryComplianceAssessmentList) (RegulatoryComplianceAssessmentList, error)) RegulatoryComplianceAssessmentListPage { + return RegulatoryComplianceAssessmentListPage{fn: getNextPage} +} + +// RegulatoryComplianceAssessmentProperties regulatory compliance assessment data +type RegulatoryComplianceAssessmentProperties struct { + // Description - READ-ONLY; The description of the regulatory compliance assessment + Description *string `json:"description,omitempty"` + // AssessmentType - READ-ONLY; The expected type of assessment contained in the AssessmentDetailsLink + AssessmentType *string `json:"assessmentType,omitempty"` + // AssessmentDetailsLink - READ-ONLY; Link to more detailed assessment results data. The response type will be according to the assessmentType field + AssessmentDetailsLink *string `json:"assessmentDetailsLink,omitempty"` + // State - Aggregative state based on the assessment's scanned resources states. Possible values include: 'Passed', 'Failed', 'Skipped', 'Unsupported' + State State `json:"state,omitempty"` + // PassedResources - READ-ONLY; The given assessment's related resources count with passed state. + PassedResources *int32 `json:"passedResources,omitempty"` + // FailedResources - READ-ONLY; The given assessment's related resources count with failed state. + FailedResources *int32 `json:"failedResources,omitempty"` + // SkippedResources - READ-ONLY; The given assessment's related resources count with skipped state. + SkippedResources *int32 `json:"skippedResources,omitempty"` + // UnsupportedResources - READ-ONLY; The given assessment's related resources count with unsupported state. + UnsupportedResources *int32 `json:"unsupportedResources,omitempty"` +} + +// RegulatoryComplianceControl regulatory compliance control details and state +type RegulatoryComplianceControl struct { + autorest.Response `json:"-"` + // RegulatoryComplianceControlProperties - Regulatory compliance control data + *RegulatoryComplianceControlProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for RegulatoryComplianceControl. +func (rcc RegulatoryComplianceControl) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rcc.RegulatoryComplianceControlProperties != nil { + objectMap["properties"] = rcc.RegulatoryComplianceControlProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RegulatoryComplianceControl struct. +func (rcc *RegulatoryComplianceControl) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var regulatoryComplianceControlProperties RegulatoryComplianceControlProperties + err = json.Unmarshal(*v, ®ulatoryComplianceControlProperties) + if err != nil { + return err + } + rcc.RegulatoryComplianceControlProperties = ®ulatoryComplianceControlProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + rcc.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + rcc.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rcc.Type = &typeVar + } + } + } + + return nil +} + +// RegulatoryComplianceControlList list of regulatory compliance controls response +type RegulatoryComplianceControlList struct { + autorest.Response `json:"-"` + // Value - List of regulatory compliance controls + Value *[]RegulatoryComplianceControl `json:"value,omitempty"` + // NextLink - READ-ONLY; The URI to fetch the next page. + NextLink *string `json:"nextLink,omitempty"` +} + +// RegulatoryComplianceControlListIterator provides access to a complete listing of +// RegulatoryComplianceControl values. +type RegulatoryComplianceControlListIterator struct { + i int + page RegulatoryComplianceControlListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *RegulatoryComplianceControlListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RegulatoryComplianceControlListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *RegulatoryComplianceControlListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter RegulatoryComplianceControlListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter RegulatoryComplianceControlListIterator) Response() RegulatoryComplianceControlList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter RegulatoryComplianceControlListIterator) Value() RegulatoryComplianceControl { + if !iter.page.NotDone() { + return RegulatoryComplianceControl{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the RegulatoryComplianceControlListIterator type. +func NewRegulatoryComplianceControlListIterator(page RegulatoryComplianceControlListPage) RegulatoryComplianceControlListIterator { + return RegulatoryComplianceControlListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (rccl RegulatoryComplianceControlList) IsEmpty() bool { + return rccl.Value == nil || len(*rccl.Value) == 0 +} + +// regulatoryComplianceControlListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (rccl RegulatoryComplianceControlList) regulatoryComplianceControlListPreparer(ctx context.Context) (*http.Request, error) { + if rccl.NextLink == nil || len(to.String(rccl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(rccl.NextLink))) +} + +// RegulatoryComplianceControlListPage contains a page of RegulatoryComplianceControl values. +type RegulatoryComplianceControlListPage struct { + fn func(context.Context, RegulatoryComplianceControlList) (RegulatoryComplianceControlList, error) + rccl RegulatoryComplianceControlList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *RegulatoryComplianceControlListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RegulatoryComplianceControlListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.rccl) + if err != nil { + return err + } + page.rccl = next + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *RegulatoryComplianceControlListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page RegulatoryComplianceControlListPage) NotDone() bool { + return !page.rccl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page RegulatoryComplianceControlListPage) Response() RegulatoryComplianceControlList { + return page.rccl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page RegulatoryComplianceControlListPage) Values() []RegulatoryComplianceControl { + if page.rccl.IsEmpty() { + return nil + } + return *page.rccl.Value +} + +// Creates a new instance of the RegulatoryComplianceControlListPage type. +func NewRegulatoryComplianceControlListPage(getNextPage func(context.Context, RegulatoryComplianceControlList) (RegulatoryComplianceControlList, error)) RegulatoryComplianceControlListPage { + return RegulatoryComplianceControlListPage{fn: getNextPage} +} + +// RegulatoryComplianceControlProperties regulatory compliance control data +type RegulatoryComplianceControlProperties struct { + // Description - READ-ONLY; The description of the regulatory compliance control + Description *string `json:"description,omitempty"` + // State - Aggregative state based on the control's supported assessments states. Possible values include: 'Passed', 'Failed', 'Skipped', 'Unsupported' + State State `json:"state,omitempty"` + // PassedAssessments - READ-ONLY; The number of supported regulatory compliance assessments of the given control with a passed state + PassedAssessments *int32 `json:"passedAssessments,omitempty"` + // FailedAssessments - READ-ONLY; The number of supported regulatory compliance assessments of the given control with a failed state + FailedAssessments *int32 `json:"failedAssessments,omitempty"` + // SkippedAssessments - READ-ONLY; The number of supported regulatory compliance assessments of the given control with a skipped state + SkippedAssessments *int32 `json:"skippedAssessments,omitempty"` +} + +// RegulatoryComplianceStandard regulatory compliance standard details and state +type RegulatoryComplianceStandard struct { + autorest.Response `json:"-"` + // RegulatoryComplianceStandardProperties - Regulatory compliance standard data + *RegulatoryComplianceStandardProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for RegulatoryComplianceStandard. +func (rcs RegulatoryComplianceStandard) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rcs.RegulatoryComplianceStandardProperties != nil { + objectMap["properties"] = rcs.RegulatoryComplianceStandardProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RegulatoryComplianceStandard struct. +func (rcs *RegulatoryComplianceStandard) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var regulatoryComplianceStandardProperties RegulatoryComplianceStandardProperties + err = json.Unmarshal(*v, ®ulatoryComplianceStandardProperties) + if err != nil { + return err + } + rcs.RegulatoryComplianceStandardProperties = ®ulatoryComplianceStandardProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + rcs.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + rcs.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rcs.Type = &typeVar + } + } + } + + return nil +} + +// RegulatoryComplianceStandardList list of regulatory compliance standards response +type RegulatoryComplianceStandardList struct { + autorest.Response `json:"-"` + Value *[]RegulatoryComplianceStandard `json:"value,omitempty"` + // NextLink - READ-ONLY; The URI to fetch the next page. + NextLink *string `json:"nextLink,omitempty"` +} + +// RegulatoryComplianceStandardListIterator provides access to a complete listing of +// RegulatoryComplianceStandard values. +type RegulatoryComplianceStandardListIterator struct { + i int + page RegulatoryComplianceStandardListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *RegulatoryComplianceStandardListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RegulatoryComplianceStandardListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *RegulatoryComplianceStandardListIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter RegulatoryComplianceStandardListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter RegulatoryComplianceStandardListIterator) Response() RegulatoryComplianceStandardList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter RegulatoryComplianceStandardListIterator) Value() RegulatoryComplianceStandard { + if !iter.page.NotDone() { + return RegulatoryComplianceStandard{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the RegulatoryComplianceStandardListIterator type. +func NewRegulatoryComplianceStandardListIterator(page RegulatoryComplianceStandardListPage) RegulatoryComplianceStandardListIterator { + return RegulatoryComplianceStandardListIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (rcsl RegulatoryComplianceStandardList) IsEmpty() bool { + return rcsl.Value == nil || len(*rcsl.Value) == 0 +} + +// regulatoryComplianceStandardListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (rcsl RegulatoryComplianceStandardList) regulatoryComplianceStandardListPreparer(ctx context.Context) (*http.Request, error) { + if rcsl.NextLink == nil || len(to.String(rcsl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(rcsl.NextLink))) +} + +// RegulatoryComplianceStandardListPage contains a page of RegulatoryComplianceStandard values. +type RegulatoryComplianceStandardListPage struct { + fn func(context.Context, RegulatoryComplianceStandardList) (RegulatoryComplianceStandardList, error) + rcsl RegulatoryComplianceStandardList +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *RegulatoryComplianceStandardListPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RegulatoryComplianceStandardListPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.rcsl) + if err != nil { + return err + } + page.rcsl = next + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *RegulatoryComplianceStandardListPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page RegulatoryComplianceStandardListPage) NotDone() bool { + return !page.rcsl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page RegulatoryComplianceStandardListPage) Response() RegulatoryComplianceStandardList { + return page.rcsl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page RegulatoryComplianceStandardListPage) Values() []RegulatoryComplianceStandard { + if page.rcsl.IsEmpty() { + return nil + } + return *page.rcsl.Value +} + +// Creates a new instance of the RegulatoryComplianceStandardListPage type. +func NewRegulatoryComplianceStandardListPage(getNextPage func(context.Context, RegulatoryComplianceStandardList) (RegulatoryComplianceStandardList, error)) RegulatoryComplianceStandardListPage { + return RegulatoryComplianceStandardListPage{fn: getNextPage} +} + +// RegulatoryComplianceStandardProperties regulatory compliance standard data +type RegulatoryComplianceStandardProperties struct { + // State - Aggregative state based on the standard's supported controls states. Possible values include: 'Passed', 'Failed', 'Skipped', 'Unsupported' + State State `json:"state,omitempty"` + // PassedControls - READ-ONLY; The number of supported regulatory compliance controls of the given standard with a passed state + PassedControls *int32 `json:"passedControls,omitempty"` + // FailedControls - READ-ONLY; The number of supported regulatory compliance controls of the given standard with a failed state + FailedControls *int32 `json:"failedControls,omitempty"` + // SkippedControls - READ-ONLY; The number of supported regulatory compliance controls of the given standard with a skipped state + SkippedControls *int32 `json:"skippedControls,omitempty"` + // UnsupportedControls - READ-ONLY; The number of regulatory compliance controls of the given standard which are unsupported by automated assessments + UnsupportedControls *int32 `json:"unsupportedControls,omitempty"` +} + +// Resource describes an Azure resource. +type Resource struct { + // ID - READ-ONLY; Resource Id + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type + Type *string `json:"type,omitempty"` +} + +// Rule describes remote addresses that is recommended to communicate with the Azure resource on some +// (Protocol, Port, Direction). All other remote addresses are recommended to be blocked +type Rule struct { + // Name - The name of the rule + Name *string `json:"name,omitempty"` + // Direction - The rule's direction. Possible values include: 'Inbound', 'Outbound' + Direction Direction `json:"direction,omitempty"` + // DestinationPort - The rule's destination port + DestinationPort *int32 `json:"destinationPort,omitempty"` + // Protocols - The rule's transport protocols + Protocols *[]TransportProtocol `json:"protocols,omitempty"` + // IPAddresses - The remote IP addresses that should be able to communicate with the Azure resource on the rule's destination port and protocol + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} + +// SensitivityLabel the sensitivity label. +type SensitivityLabel struct { + // DisplayName - The name of the sensitivity label. + DisplayName *string `json:"displayName,omitempty"` + // Order - The order of the sensitivity label. + Order *float64 `json:"order,omitempty"` + // Enabled - Indicates whether the label is enabled or not. + Enabled *bool `json:"enabled,omitempty"` +} + +// Setting represents a security setting in Azure Security Center. +type Setting struct { + autorest.Response `json:"-"` + // Kind - the kind of the settings string (DataExportSetting). Possible values include: 'SettingKindDataExportSetting', 'SettingKindAlertSuppressionSetting' + Kind SettingKind `json:"kind,omitempty"` + // ID - READ-ONLY; Resource Id + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type + Type *string `json:"type,omitempty"` +} + +// SettingResource the kind of the security setting +type SettingResource struct { + // Kind - the kind of the settings string (DataExportSetting). Possible values include: 'SettingKindDataExportSetting', 'SettingKindAlertSuppressionSetting' + Kind SettingKind `json:"kind,omitempty"` + // ID - READ-ONLY; Resource Id + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type + Type *string `json:"type,omitempty"` +} + +// SettingsList subscription settings list. +type SettingsList struct { + autorest.Response `json:"-"` + // Value - The settings list. + Value *[]Setting `json:"value,omitempty"` + // NextLink - READ-ONLY; The URI to fetch the next page. + NextLink *string `json:"nextLink,omitempty"` +} + +// SettingsListIterator provides access to a complete listing of Setting values. +type SettingsListIterator struct { + i int + page SettingsListPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *SettingsListIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/SettingsListIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode } tracing.EndSpan(ctx, sc, err) }() @@ -4369,11 +5499,11 @@ func NewSettingsListPage(getNextPage func(context.Context, SettingsList) (Settin type Task struct { autorest.Response `json:"-"` *TaskProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -4383,15 +5513,6 @@ func (t Task) MarshalJSON() ([]byte, error) { if t.TaskProperties != nil { objectMap["properties"] = t.TaskProperties } - if t.ID != nil { - objectMap["id"] = t.ID - } - if t.Name != nil { - objectMap["name"] = t.Name - } - if t.Type != nil { - objectMap["type"] = t.Type - } return json.Marshal(objectMap) } @@ -4449,8 +5570,9 @@ func (t *Task) UnmarshalJSON(body []byte) error { // TaskList list of security task recommendations type TaskList struct { autorest.Response `json:"-"` - Value *[]Task `json:"value,omitempty"` - // NextLink - The URI to fetch the next page. + // Value - READ-ONLY + Value *[]Task `json:"value,omitempty"` + // NextLink - READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty"` } @@ -4596,16 +5718,13 @@ func NewTaskListPage(getNextPage func(context.Context, TaskList) (TaskList, erro type TaskParameters struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` - // Name - Name of the task type + // Name - READ-ONLY; Name of the task type Name *string `json:"name,omitempty"` } // MarshalJSON is the custom marshaler for TaskParameters. func (tp TaskParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if tp.Name != nil { - objectMap["name"] = tp.Name - } for k, v := range tp.AdditionalProperties { objectMap[k] = v } @@ -4650,22 +5769,59 @@ func (tp *TaskParameters) UnmarshalJSON(body []byte) error { // TaskProperties describes properties of a task. type TaskProperties struct { - // State - State of the task (Active, Resolved etc.) + // State - READ-ONLY; State of the task (Active, Resolved etc.) State *string `json:"state,omitempty"` - // CreationTimeUtc - The time this task was discovered in UTC + // CreationTimeUtc - READ-ONLY; The time this task was discovered in UTC CreationTimeUtc *date.Time `json:"creationTimeUtc,omitempty"` SecurityTaskParameters *TaskParameters `json:"securityTaskParameters,omitempty"` - // LastStateChangeTimeUtc - The time this task's details were last changed in UTC + // LastStateChangeTimeUtc - READ-ONLY; The time this task's details were last changed in UTC LastStateChangeTimeUtc *date.Time `json:"lastStateChangeTimeUtc,omitempty"` - // SubState - Additional data on the state of the task + // SubState - READ-ONLY; Additional data on the state of the task SubState *string `json:"subState,omitempty"` } +// ThresholdCustomAlertRule a custom alert rule that checks if a value (depends on the custom alert type) +// is within the given range. +type ThresholdCustomAlertRule struct { + // MinThreshold - The minimum threshold. + MinThreshold *int32 `json:"minThreshold,omitempty"` + // MaxThreshold - The maximum threshold. + MaxThreshold *int32 `json:"maxThreshold,omitempty"` + // DisplayName - READ-ONLY; The display name of the custom alert. + DisplayName *string `json:"displayName,omitempty"` + // Description - READ-ONLY; The description of the custom alert. + Description *string `json:"description,omitempty"` + // IsEnabled - Whether the custom alert is enabled. + IsEnabled *bool `json:"isEnabled,omitempty"` + // RuleType - The type of the custom alert rule. + RuleType *string `json:"ruleType,omitempty"` +} + +// TimeWindowCustomAlertRule a custom alert rule that checks if the number of activities (depends on the +// custom alert type) in a time window is within the given range. +type TimeWindowCustomAlertRule struct { + // DisplayName - READ-ONLY; The display name of the custom alert. + DisplayName *string `json:"displayName,omitempty"` + // Description - READ-ONLY; The description of the custom alert. + Description *string `json:"description,omitempty"` + // IsEnabled - Whether the custom alert is enabled. + IsEnabled *bool `json:"isEnabled,omitempty"` + // RuleType - The type of the custom alert rule. + RuleType *string `json:"ruleType,omitempty"` + // MinThreshold - The minimum threshold. + MinThreshold *int32 `json:"minThreshold,omitempty"` + // MaxThreshold - The maximum threshold. + MaxThreshold *int32 `json:"maxThreshold,omitempty"` + // TimeWindowSize - The time window size in iso8601 format. + TimeWindowSize *string `json:"timeWindowSize,omitempty"` +} + // TopologyList ... type TopologyList struct { autorest.Response `json:"-"` - Value *[]TopologyResource `json:"value,omitempty"` - // NextLink - The URI to fetch the next page. + // Value - READ-ONLY + Value *[]TopologyResource `json:"value,omitempty"` + // NextLink - READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty"` } @@ -4809,35 +5965,21 @@ func NewTopologyListPage(getNextPage func(context.Context, TopologyList) (Topolo // TopologyResource ... type TopologyResource struct { autorest.Response `json:"-"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` - // Location - Location where the resource is stored - Location *string `json:"location,omitempty"` + // Location - READ-ONLY; Location where the resource is stored + Location *string `json:"location,omitempty"` + // TopologyResourceProperties - READ-ONLY *TopologyResourceProperties `json:"properties,omitempty"` } // MarshalJSON is the custom marshaler for TopologyResource. func (tr TopologyResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } - if tr.Location != nil { - objectMap["location"] = tr.Location - } - if tr.TopologyResourceProperties != nil { - objectMap["properties"] = tr.TopologyResourceProperties - } return json.Marshal(objectMap) } @@ -4903,41 +6045,41 @@ func (tr *TopologyResource) UnmarshalJSON(body []byte) error { // TopologyResourceProperties ... type TopologyResourceProperties struct { - // CalculatedDateTime - The UTC time on which the topology was calculated + // CalculatedDateTime - READ-ONLY; The UTC time on which the topology was calculated CalculatedDateTime *date.Time `json:"calculatedDateTime,omitempty"` - // TopologyResources - Azure resources which are part of this topology resource + // TopologyResources - READ-ONLY; Azure resources which are part of this topology resource TopologyResources *[]TopologySingleResource `json:"topologyResources,omitempty"` } // TopologySingleResource ... type TopologySingleResource struct { - // ResourceID - Azure resource id + // ResourceID - READ-ONLY; Azure resource id ResourceID *string `json:"resourceId,omitempty"` - // Severity - The security severity of the resource + // Severity - READ-ONLY; The security severity of the resource Severity *string `json:"severity,omitempty"` - // RecommendationsExist - Indicates if the resource has security recommendations + // RecommendationsExist - READ-ONLY; Indicates if the resource has security recommendations RecommendationsExist *bool `json:"recommendationsExist,omitempty"` - // NetworkZones - Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.) + // NetworkZones - READ-ONLY; Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.) NetworkZones *string `json:"networkZones,omitempty"` - // TopologyScore - Score of the resource based on its security severity + // TopologyScore - READ-ONLY; Score of the resource based on its security severity TopologyScore *int32 `json:"topologyScore,omitempty"` - // Location - The location of this resource + // Location - READ-ONLY; The location of this resource Location *string `json:"location,omitempty"` - // Parents - Azure resources connected to this resource which are in higher level in the topology view + // Parents - READ-ONLY; Azure resources connected to this resource which are in higher level in the topology view Parents *[]TopologySingleResourceParent `json:"parents,omitempty"` - // Children - Azure resources connected to this resource which are in lower level in the topology view + // Children - READ-ONLY; Azure resources connected to this resource which are in lower level in the topology view Children *[]TopologySingleResourceChild `json:"children,omitempty"` } // TopologySingleResourceChild ... type TopologySingleResourceChild struct { - // ResourceID - Azure resource id which serves as child resource in topology view + // ResourceID - READ-ONLY; Azure resource id which serves as child resource in topology view ResourceID *string `json:"resourceId,omitempty"` } // TopologySingleResourceParent ... type TopologySingleResourceParent struct { - // ResourceID - Azure resource id which serves as parent resource in topology view + // ResourceID - READ-ONLY; Azure resource id which serves as parent resource in topology view ResourceID *string `json:"resourceId,omitempty"` } @@ -4946,11 +6088,11 @@ type WorkspaceSetting struct { autorest.Response `json:"-"` // WorkspaceSettingProperties - Workspace setting data *WorkspaceSettingProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -4960,15 +6102,6 @@ func (ws WorkspaceSetting) MarshalJSON() ([]byte, error) { if ws.WorkspaceSettingProperties != nil { objectMap["properties"] = ws.WorkspaceSettingProperties } - if ws.ID != nil { - objectMap["id"] = ws.ID - } - if ws.Name != nil { - objectMap["name"] = ws.Name - } - if ws.Type != nil { - objectMap["type"] = ws.Type - } return json.Marshal(objectMap) } @@ -5028,7 +6161,7 @@ type WorkspaceSettingList struct { autorest.Response `json:"-"` // Value - List of workspace settings Value *[]WorkspaceSetting `json:"value,omitempty"` - // NextLink - The URI to fetch the next page. + // NextLink - READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/regulatorycomplianceassessments.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/regulatorycomplianceassessments.go new file mode 100644 index 000000000000..a03511f202bb --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/regulatorycomplianceassessments.go @@ -0,0 +1,268 @@ +package security + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// RegulatoryComplianceAssessmentsClient is the API spec for Microsoft.Security (Azure Security Center) resource +// provider +type RegulatoryComplianceAssessmentsClient struct { + BaseClient +} + +// NewRegulatoryComplianceAssessmentsClient creates an instance of the RegulatoryComplianceAssessmentsClient client. +func NewRegulatoryComplianceAssessmentsClient(subscriptionID string, ascLocation string) RegulatoryComplianceAssessmentsClient { + return NewRegulatoryComplianceAssessmentsClientWithBaseURI(DefaultBaseURI, subscriptionID, ascLocation) +} + +// NewRegulatoryComplianceAssessmentsClientWithBaseURI creates an instance of the RegulatoryComplianceAssessmentsClient +// client. +func NewRegulatoryComplianceAssessmentsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) RegulatoryComplianceAssessmentsClient { + return RegulatoryComplianceAssessmentsClient{NewWithBaseURI(baseURI, subscriptionID, ascLocation)} +} + +// Get supported regulatory compliance details and state for selected assessment +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// regulatoryComplianceStandardName - name of the regulatory compliance standard object +// regulatoryComplianceControlName - name of the regulatory compliance control object +// regulatoryComplianceAssessmentName - name of the regulatory compliance assessment object +func (client RegulatoryComplianceAssessmentsClient) Get(ctx context.Context, resourceGroupName string, regulatoryComplianceStandardName string, regulatoryComplianceControlName string, regulatoryComplianceAssessmentName string) (result RegulatoryComplianceAssessment, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RegulatoryComplianceAssessmentsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.Pattern, Rule: `^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$`, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("security.RegulatoryComplianceAssessmentsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, regulatoryComplianceStandardName, regulatoryComplianceControlName, regulatoryComplianceAssessmentName) + if err != nil { + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client RegulatoryComplianceAssessmentsClient) GetPreparer(ctx context.Context, resourceGroupName string, regulatoryComplianceStandardName string, regulatoryComplianceControlName string, regulatoryComplianceAssessmentName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "regulatoryComplianceAssessmentName": autorest.Encode("path", regulatoryComplianceAssessmentName), + "regulatoryComplianceControlName": autorest.Encode("path", regulatoryComplianceControlName), + "regulatoryComplianceStandardName": autorest.Encode("path", regulatoryComplianceStandardName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-01-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments/{regulatoryComplianceAssessmentName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client RegulatoryComplianceAssessmentsClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client RegulatoryComplianceAssessmentsClient) GetResponder(resp *http.Response) (result RegulatoryComplianceAssessment, 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 details and state of assessments mapped to selected regulatory compliance control +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// regulatoryComplianceStandardName - name of the regulatory compliance standard object +// regulatoryComplianceControlName - name of the regulatory compliance control object +// filter - oData filter. Optional. +func (client RegulatoryComplianceAssessmentsClient) List(ctx context.Context, resourceGroupName string, regulatoryComplianceStandardName string, regulatoryComplianceControlName string, filter string) (result RegulatoryComplianceAssessmentListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RegulatoryComplianceAssessmentsClient.List") + defer func() { + sc := -1 + if result.rcal.Response.Response != nil { + sc = result.rcal.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.Pattern, Rule: `^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$`, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("security.RegulatoryComplianceAssessmentsClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, regulatoryComplianceStandardName, regulatoryComplianceControlName, filter) + if err != nil { + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.rcal.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "List", resp, "Failure sending request") + return + } + + result.rcal, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "List", resp, "Failure responding to request") + } + + return +} + +// ListPreparer prepares the List request. +func (client RegulatoryComplianceAssessmentsClient) ListPreparer(ctx context.Context, resourceGroupName string, regulatoryComplianceStandardName string, regulatoryComplianceControlName string, filter string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "regulatoryComplianceControlName": autorest.Encode("path", regulatoryComplianceControlName), + "regulatoryComplianceStandardName": autorest.Encode("path", regulatoryComplianceStandardName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-01-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client RegulatoryComplianceAssessmentsClient) ListSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client RegulatoryComplianceAssessmentsClient) ListResponder(resp *http.Response) (result RegulatoryComplianceAssessmentList, 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 RegulatoryComplianceAssessmentsClient) listNextResults(ctx context.Context, lastResults RegulatoryComplianceAssessmentList) (result RegulatoryComplianceAssessmentList, err error) { + req, err := lastResults.regulatoryComplianceAssessmentListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceAssessmentsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client RegulatoryComplianceAssessmentsClient) ListComplete(ctx context.Context, resourceGroupName string, regulatoryComplianceStandardName string, regulatoryComplianceControlName string, filter string) (result RegulatoryComplianceAssessmentListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RegulatoryComplianceAssessmentsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, regulatoryComplianceStandardName, regulatoryComplianceControlName, filter) + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/regulatorycompliancecontrols.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/regulatorycompliancecontrols.go new file mode 100644 index 000000000000..cd3e803c9f64 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/regulatorycompliancecontrols.go @@ -0,0 +1,263 @@ +package security + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// RegulatoryComplianceControlsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider +type RegulatoryComplianceControlsClient struct { + BaseClient +} + +// NewRegulatoryComplianceControlsClient creates an instance of the RegulatoryComplianceControlsClient client. +func NewRegulatoryComplianceControlsClient(subscriptionID string, ascLocation string) RegulatoryComplianceControlsClient { + return NewRegulatoryComplianceControlsClientWithBaseURI(DefaultBaseURI, subscriptionID, ascLocation) +} + +// NewRegulatoryComplianceControlsClientWithBaseURI creates an instance of the RegulatoryComplianceControlsClient +// client. +func NewRegulatoryComplianceControlsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) RegulatoryComplianceControlsClient { + return RegulatoryComplianceControlsClient{NewWithBaseURI(baseURI, subscriptionID, ascLocation)} +} + +// Get selected regulatory compliance control details and state +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// regulatoryComplianceStandardName - name of the regulatory compliance standard object +// regulatoryComplianceControlName - name of the regulatory compliance control object +func (client RegulatoryComplianceControlsClient) Get(ctx context.Context, resourceGroupName string, regulatoryComplianceStandardName string, regulatoryComplianceControlName string) (result RegulatoryComplianceControl, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RegulatoryComplianceControlsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.Pattern, Rule: `^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$`, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("security.RegulatoryComplianceControlsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, regulatoryComplianceStandardName, regulatoryComplianceControlName) + if err != nil { + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client RegulatoryComplianceControlsClient) GetPreparer(ctx context.Context, resourceGroupName string, regulatoryComplianceStandardName string, regulatoryComplianceControlName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "regulatoryComplianceControlName": autorest.Encode("path", regulatoryComplianceControlName), + "regulatoryComplianceStandardName": autorest.Encode("path", regulatoryComplianceStandardName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-01-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client RegulatoryComplianceControlsClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client RegulatoryComplianceControlsClient) GetResponder(resp *http.Response) (result RegulatoryComplianceControl, 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 all supported regulatory compliance controls details and state for selected standard +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// regulatoryComplianceStandardName - name of the regulatory compliance standard object +// filter - oData filter. Optional. +func (client RegulatoryComplianceControlsClient) List(ctx context.Context, resourceGroupName string, regulatoryComplianceStandardName string, filter string) (result RegulatoryComplianceControlListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RegulatoryComplianceControlsClient.List") + defer func() { + sc := -1 + if result.rccl.Response.Response != nil { + sc = result.rccl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.Pattern, Rule: `^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$`, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("security.RegulatoryComplianceControlsClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, regulatoryComplianceStandardName, filter) + if err != nil { + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.rccl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "List", resp, "Failure sending request") + return + } + + result.rccl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "List", resp, "Failure responding to request") + } + + return +} + +// ListPreparer prepares the List request. +func (client RegulatoryComplianceControlsClient) ListPreparer(ctx context.Context, resourceGroupName string, regulatoryComplianceStandardName string, filter string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "regulatoryComplianceStandardName": autorest.Encode("path", regulatoryComplianceStandardName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-01-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client RegulatoryComplianceControlsClient) ListSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client RegulatoryComplianceControlsClient) ListResponder(resp *http.Response) (result RegulatoryComplianceControlList, 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 RegulatoryComplianceControlsClient) listNextResults(ctx context.Context, lastResults RegulatoryComplianceControlList) (result RegulatoryComplianceControlList, err error) { + req, err := lastResults.regulatoryComplianceControlListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceControlsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client RegulatoryComplianceControlsClient) ListComplete(ctx context.Context, resourceGroupName string, regulatoryComplianceStandardName string, filter string) (result RegulatoryComplianceControlListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RegulatoryComplianceControlsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, regulatoryComplianceStandardName, filter) + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/regulatorycompliancestandards.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/regulatorycompliancestandards.go new file mode 100644 index 000000000000..279e3ab19c3e --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v1.0/security/regulatorycompliancestandards.go @@ -0,0 +1,259 @@ +package security + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// RegulatoryComplianceStandardsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider +type RegulatoryComplianceStandardsClient struct { + BaseClient +} + +// NewRegulatoryComplianceStandardsClient creates an instance of the RegulatoryComplianceStandardsClient client. +func NewRegulatoryComplianceStandardsClient(subscriptionID string, ascLocation string) RegulatoryComplianceStandardsClient { + return NewRegulatoryComplianceStandardsClientWithBaseURI(DefaultBaseURI, subscriptionID, ascLocation) +} + +// NewRegulatoryComplianceStandardsClientWithBaseURI creates an instance of the RegulatoryComplianceStandardsClient +// client. +func NewRegulatoryComplianceStandardsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) RegulatoryComplianceStandardsClient { + return RegulatoryComplianceStandardsClient{NewWithBaseURI(baseURI, subscriptionID, ascLocation)} +} + +// Get supported regulatory compliance details state for selected standard +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// regulatoryComplianceStandardName - name of the regulatory compliance standard object +func (client RegulatoryComplianceStandardsClient) Get(ctx context.Context, resourceGroupName string, regulatoryComplianceStandardName string) (result RegulatoryComplianceStandard, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RegulatoryComplianceStandardsClient.Get") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.Pattern, Rule: `^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$`, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("security.RegulatoryComplianceStandardsClient", "Get", err.Error()) + } + + req, err := client.GetPreparer(ctx, resourceGroupName, regulatoryComplianceStandardName) + if err != nil { + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client RegulatoryComplianceStandardsClient) GetPreparer(ctx context.Context, resourceGroupName string, regulatoryComplianceStandardName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "regulatoryComplianceStandardName": autorest.Encode("path", regulatoryComplianceStandardName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-01-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client RegulatoryComplianceStandardsClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client RegulatoryComplianceStandardsClient) GetResponder(resp *http.Response) (result RegulatoryComplianceStandard, 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 supported regulatory compliance standards details and state +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// filter - oData filter. Optional. +func (client RegulatoryComplianceStandardsClient) List(ctx context.Context, resourceGroupName string, filter string) (result RegulatoryComplianceStandardListPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RegulatoryComplianceStandardsClient.List") + defer func() { + sc := -1 + if result.rcsl.Response.Response != nil { + sc = result.rcsl.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.Pattern, Rule: `^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$`, Chain: nil}}}, + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("security.RegulatoryComplianceStandardsClient", "List", err.Error()) + } + + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx, resourceGroupName, filter) + if err != nil { + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.rcsl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "List", resp, "Failure sending request") + return + } + + result.rcsl, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "List", resp, "Failure responding to request") + } + + return +} + +// ListPreparer prepares the List request. +func (client RegulatoryComplianceStandardsClient) ListPreparer(ctx context.Context, resourceGroupName string, filter string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-01-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client RegulatoryComplianceStandardsClient) ListSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client RegulatoryComplianceStandardsClient) ListResponder(resp *http.Response) (result RegulatoryComplianceStandardList, 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 RegulatoryComplianceStandardsClient) listNextResults(ctx context.Context, lastResults RegulatoryComplianceStandardList) (result RegulatoryComplianceStandardList, err error) { + req, err := lastResults.regulatoryComplianceStandardListPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "security.RegulatoryComplianceStandardsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client RegulatoryComplianceStandardsClient) ListComplete(ctx context.Context, resourceGroupName string, filter string) (result RegulatoryComplianceStandardListIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/RegulatoryComplianceStandardsClient.List") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.List(ctx, resourceGroupName, filter) + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/signalr/mgmt/2018-03-01-preview/signalr/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/signalr/mgmt/2018-03-01-preview/signalr/models.go index d827439ad115..b8c41a1fc20b 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/signalr/mgmt/2018-03-01-preview/signalr/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/signalr/mgmt/2018-03-01-preview/signalr/models.go @@ -103,7 +103,7 @@ type CreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *CreateOrUpdateFuture) Result(client Client) (rt ResourceType, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "signalr.CreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -171,7 +171,7 @@ type DeleteFuture struct { // If the operation has not completed it will return an error. func (future *DeleteFuture) Result(client Client) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "signalr.DeleteFuture", "Result", future.Response(), "Polling failure") return @@ -431,15 +431,15 @@ type OperationProperties struct { // Properties a class that describes the properties of the SignalR service that should contain more // read-only properties than AzSignalR.Models.SignalRCreateOrUpdateProperties type Properties struct { - // ProvisioningState - Provisioning state of the resource. Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', 'Moving' + // ProvisioningState - READ-ONLY; Provisioning state of the resource. Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', 'Moving' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` - // ExternalIP - The publicly accessible IP of the SignalR service. + // ExternalIP - READ-ONLY; The publicly accessible IP of the SignalR service. ExternalIP *string `json:"externalIP,omitempty"` - // HostName - FQDN of the SignalR service instance. Format: xxx.service.signalr.net + // HostName - READ-ONLY; FQDN of the SignalR service instance. Format: xxx.service.signalr.net HostName *string `json:"hostName,omitempty"` - // PublicPort - The publicly accessibly port of the SignalR service which is designed for browser/client side usage. + // PublicPort - READ-ONLY; The publicly accessibly port of the SignalR service which is designed for browser/client side usage. PublicPort *int32 `json:"publicPort,omitempty"` - // ServerPort - The publicly accessibly port of the SignalR service which is designed for customer server side usage. + // ServerPort - READ-ONLY; The publicly accessibly port of the SignalR service which is designed for customer server side usage. ServerPort *int32 `json:"serverPort,omitempty"` // Version - Version of the SignalR resource. Probably you need the same or higher version of client SDKs. Version *string `json:"version,omitempty"` @@ -458,7 +458,7 @@ type RegenerateKeyFuture struct { // If the operation has not completed it will return an error. func (future *RegenerateKeyFuture) Result(client Client) (kVar Keys, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "signalr.RegenerateKeyFuture", "Result", future.Response(), "Polling failure") return @@ -485,11 +485,11 @@ type RegenerateKeyParameters struct { // Resource the core properties of ARM resources. type Resource struct { - // ID - Fully qualified resource Id for the resource. + // ID - READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the service - e.g. "Microsoft.SignalRService/SignalR" + // Type - READ-ONLY; The type of the service - e.g. "Microsoft.SignalRService/SignalR" Type *string `json:"type,omitempty"` } @@ -666,11 +666,11 @@ type ResourceType struct { Location *string `json:"location,omitempty"` // Tags - Tags of the service which is a list of key value pairs that describe the resource. Tags map[string]*string `json:"tags"` - // ID - Fully qualified resource Id for the resource. + // ID - READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the service - e.g. "Microsoft.SignalRService/SignalR" + // Type - READ-ONLY; The type of the service - e.g. "Microsoft.SignalRService/SignalR" Type *string `json:"type,omitempty"` } @@ -689,15 +689,6 @@ func (rt ResourceType) MarshalJSON() ([]byte, error) { if rt.Tags != nil { objectMap["tags"] = rt.Tags } - if rt.ID != nil { - objectMap["id"] = rt.ID - } - if rt.Name != nil { - objectMap["name"] = rt.Name - } - if rt.Type != nil { - objectMap["type"] = rt.Type - } return json.Marshal(objectMap) } @@ -791,11 +782,11 @@ type TrackedResource struct { Location *string `json:"location,omitempty"` // Tags - Tags of the service which is a list of key value pairs that describe the resource. Tags map[string]*string `json:"tags"` - // ID - Fully qualified resource Id for the resource. + // ID - READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The type of the service - e.g. "Microsoft.SignalRService/SignalR" + // Type - READ-ONLY; The type of the service - e.g. "Microsoft.SignalRService/SignalR" Type *string `json:"type,omitempty"` } @@ -808,15 +799,6 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Tags != nil { objectMap["tags"] = tr.Tags } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } @@ -829,7 +811,7 @@ type UpdateFuture struct { // If the operation has not completed it will return an error. func (future *UpdateFuture) Result(client Client) (rt ResourceType, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "signalr.UpdateFuture", "Result", future.Response(), "Polling failure") return diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/backuplongtermretentionpolicies.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/backuplongtermretentionpolicies.go index af99814dd267..dcfb96d118ac 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/backuplongtermretentionpolicies.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/backuplongtermretentionpolicies.go @@ -99,6 +99,7 @@ func (client BackupLongTermRetentionPoliciesClient) CreateOrUpdatePreparer(ctx c "api-version": APIVersion, } + parameters.Location = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/backuplongtermretentionvaults.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/backuplongtermretentionvaults.go index 96f1b8ac3a1c..dd641f69f02e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/backuplongtermretentionvaults.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/backuplongtermretentionvaults.go @@ -97,6 +97,7 @@ func (client BackupLongTermRetentionVaultsClient) CreateOrUpdatePreparer(ctx con "api-version": APIVersion, } + parameters.Location = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/databaseblobauditingpolicies.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/databaseblobauditingpolicies.go index 7359f3b5526a..d2baabed42ad 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/databaseblobauditingpolicies.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/databaseblobauditingpolicies.go @@ -97,6 +97,7 @@ func (client DatabaseBlobAuditingPoliciesClient) CreateOrUpdatePreparer(ctx cont "api-version": APIVersion, } + parameters.Kind = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/databases.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/databases.go index 78c0fb8f5ee9..9cee35bfe2dc 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/databases.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/databases.go @@ -182,6 +182,7 @@ func (client DatabasesClient) CreateOrUpdatePreparer(ctx context.Context, resour "api-version": APIVersion, } + parameters.Kind = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/databasethreatdetectionpolicies.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/databasethreatdetectionpolicies.go index 3aa4499e4e11..0ade6dcdeb7a 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/databasethreatdetectionpolicies.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/databasethreatdetectionpolicies.go @@ -97,6 +97,7 @@ func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdatePreparer(ctx c "api-version": APIVersion, } + parameters.Kind = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/datamaskingpolicies.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/datamaskingpolicies.go index f6fe014bc83c..5d034d9f04f6 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/datamaskingpolicies.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/datamaskingpolicies.go @@ -96,6 +96,8 @@ func (client DataMaskingPoliciesClient) CreateOrUpdatePreparer(ctx context.Conte "api-version": APIVersion, } + parameters.Location = nil + parameters.Kind = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/datamaskingrules.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/datamaskingrules.go index 2d5b5e1073ca..6fd4e686acfa 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/datamaskingrules.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/datamaskingrules.go @@ -109,6 +109,8 @@ func (client DataMaskingRulesClient) CreateOrUpdatePreparer(ctx context.Context, "api-version": APIVersion, } + parameters.Location = nil + parameters.Kind = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/elasticpools.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/elasticpools.go index 46b612572ccb..239ac3dcef0c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/elasticpools.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/elasticpools.go @@ -89,6 +89,7 @@ func (client ElasticPoolsClient) CreateOrUpdatePreparer(ctx context.Context, res "api-version": APIVersion, } + parameters.Kind = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/encryptionprotectors.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/encryptionprotectors.go index 539ee9f88031..51c43047ccca 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/encryptionprotectors.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/encryptionprotectors.go @@ -88,6 +88,7 @@ func (client EncryptionProtectorsClient) CreateOrUpdatePreparer(ctx context.Cont "api-version": APIVersion, } + parameters.Location = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/failovergroups.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/failovergroups.go index c2e5a585e1b9..c5037aca3408 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/failovergroups.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/failovergroups.go @@ -99,6 +99,7 @@ func (client FailoverGroupsClient) CreateOrUpdatePreparer(ctx context.Context, r "api-version": APIVersion, } + parameters.Location = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/firewallrules.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/firewallrules.go index c3cbef3cce19..95a020d2650f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/firewallrules.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/firewallrules.go @@ -105,6 +105,8 @@ func (client FirewallRulesClient) CreateOrUpdatePreparer(ctx context.Context, re "api-version": APIVersion, } + parameters.Kind = nil + parameters.Location = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/geobackuppolicies.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/geobackuppolicies.go index 9e5f54876588..a08a5955248d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/geobackuppolicies.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/geobackuppolicies.go @@ -103,6 +103,8 @@ func (client GeoBackupPoliciesClient) CreateOrUpdatePreparer(ctx context.Context "api-version": APIVersion, } + parameters.Kind = nil + parameters.Location = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/managedinstances.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/managedinstances.go index 60206e04c5bb..4e7ebe3ae4d3 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/managedinstances.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/managedinstances.go @@ -396,6 +396,122 @@ func (client ManagedInstancesClient) ListComplete(ctx context.Context) (result M return } +// ListByInstancePool gets a list of all managed instances in an instance pool. +// Parameters: +// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value +// from the Azure Resource Manager API or the portal. +// instancePoolName - the instance pool name. +func (client ManagedInstancesClient) ListByInstancePool(ctx context.Context, resourceGroupName string, instancePoolName string) (result ManagedInstanceListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstancesClient.ListByInstancePool") + defer func() { + sc := -1 + if result.milr.Response.Response != nil { + sc = result.milr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByInstancePoolNextResults + req, err := client.ListByInstancePoolPreparer(ctx, resourceGroupName, instancePoolName) + if err != nil { + err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "ListByInstancePool", nil, "Failure preparing request") + return + } + + resp, err := client.ListByInstancePoolSender(req) + if err != nil { + result.milr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "ListByInstancePool", resp, "Failure sending request") + return + } + + result.milr, err = client.ListByInstancePoolResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "ListByInstancePool", resp, "Failure responding to request") + } + + return +} + +// ListByInstancePoolPreparer prepares the ListByInstancePool request. +func (client ManagedInstancesClient) ListByInstancePoolPreparer(ctx context.Context, resourceGroupName string, instancePoolName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "instancePoolName": autorest.Encode("path", instancePoolName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2015-05-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/managedInstances", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByInstancePoolSender sends the ListByInstancePool request. The method will close the +// http.Response Body if it receives an error. +func (client ManagedInstancesClient) ListByInstancePoolSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByInstancePoolResponder handles the response to the ListByInstancePool request. The method always +// closes the http.Response Body. +func (client ManagedInstancesClient) ListByInstancePoolResponder(resp *http.Response) (result ManagedInstanceListResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByInstancePoolNextResults retrieves the next set of results, if any. +func (client ManagedInstancesClient) listByInstancePoolNextResults(ctx context.Context, lastResults ManagedInstanceListResult) (result ManagedInstanceListResult, err error) { + req, err := lastResults.managedInstanceListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listByInstancePoolNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByInstancePoolSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listByInstancePoolNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByInstancePoolResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listByInstancePoolNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByInstancePoolComplete enumerates all values, automatically crossing page boundaries as required. +func (client ManagedInstancesClient) ListByInstancePoolComplete(ctx context.Context, resourceGroupName string, instancePoolName string) (result ManagedInstanceListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstancesClient.ListByInstancePool") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByInstancePool(ctx, resourceGroupName, instancePoolName) + return +} + // ListByResourceGroup gets a list of managed instances in a resource group. // Parameters: // resourceGroupName - the name of the resource group that contains the resource. You can obtain this value diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/models.go index 3781ece93da5..cbc26fccfeec 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/models.go @@ -146,10 +146,16 @@ const ( Basic DatabaseEdition = "Basic" // Business ... Business DatabaseEdition = "Business" + // BusinessCritical ... + BusinessCritical DatabaseEdition = "BusinessCritical" // DataWarehouse ... DataWarehouse DatabaseEdition = "DataWarehouse" // Free ... Free DatabaseEdition = "Free" + // GeneralPurpose ... + GeneralPurpose DatabaseEdition = "GeneralPurpose" + // Hyperscale ... + Hyperscale DatabaseEdition = "Hyperscale" // Premium ... Premium DatabaseEdition = "Premium" // PremiumRS ... @@ -168,7 +174,7 @@ const ( // PossibleDatabaseEditionValues returns an array of possible values for the DatabaseEdition const type. func PossibleDatabaseEditionValues() []DatabaseEdition { - return []DatabaseEdition{Basic, Business, DataWarehouse, Free, Premium, PremiumRS, Standard, Stretch, System, System2, Web} + return []DatabaseEdition{Basic, Business, BusinessCritical, DataWarehouse, Free, GeneralPurpose, Hyperscale, Premium, PremiumRS, Standard, Stretch, System, System2, Web} } // DataMaskingFunction enumerates the values for data masking function. @@ -230,6 +236,10 @@ type ElasticPoolEdition string const ( // ElasticPoolEditionBasic ... ElasticPoolEditionBasic ElasticPoolEdition = "Basic" + // ElasticPoolEditionBusinessCritical ... + ElasticPoolEditionBusinessCritical ElasticPoolEdition = "BusinessCritical" + // ElasticPoolEditionGeneralPurpose ... + ElasticPoolEditionGeneralPurpose ElasticPoolEdition = "GeneralPurpose" // ElasticPoolEditionPremium ... ElasticPoolEditionPremium ElasticPoolEdition = "Premium" // ElasticPoolEditionStandard ... @@ -238,7 +248,7 @@ const ( // PossibleElasticPoolEditionValues returns an array of possible values for the ElasticPoolEdition const type. func PossibleElasticPoolEditionValues() []ElasticPoolEdition { - return []ElasticPoolEdition{ElasticPoolEditionBasic, ElasticPoolEditionPremium, ElasticPoolEditionStandard} + return []ElasticPoolEdition{ElasticPoolEditionBasic, ElasticPoolEditionBusinessCritical, ElasticPoolEditionGeneralPurpose, ElasticPoolEditionPremium, ElasticPoolEditionStandard} } // ElasticPoolState enumerates the values for elastic pool state. @@ -301,6 +311,21 @@ func PossibleIdentityTypeValues() []IdentityType { return []IdentityType{SystemAssigned} } +// ManagedInstanceLicenseType enumerates the values for managed instance license type. +type ManagedInstanceLicenseType string + +const ( + // BasePrice ... + BasePrice ManagedInstanceLicenseType = "BasePrice" + // LicenseIncluded ... + LicenseIncluded ManagedInstanceLicenseType = "LicenseIncluded" +) + +// PossibleManagedInstanceLicenseTypeValues returns an array of possible values for the ManagedInstanceLicenseType const type. +func PossibleManagedInstanceLicenseTypeValues() []ManagedInstanceLicenseType { + return []ManagedInstanceLicenseType{BasePrice, LicenseIncluded} +} + // ManagedInstanceProxyOverride enumerates the values for managed instance proxy override. type ManagedInstanceProxyOverride string @@ -318,6 +343,21 @@ func PossibleManagedInstanceProxyOverrideValues() []ManagedInstanceProxyOverride return []ManagedInstanceProxyOverride{ManagedInstanceProxyOverrideDefault, ManagedInstanceProxyOverrideProxy, ManagedInstanceProxyOverrideRedirect} } +// ManagedServerCreateMode enumerates the values for managed server create mode. +type ManagedServerCreateMode string + +const ( + // ManagedServerCreateModeDefault ... + ManagedServerCreateModeDefault ManagedServerCreateMode = "Default" + // ManagedServerCreateModePointInTimeRestore ... + ManagedServerCreateModePointInTimeRestore ManagedServerCreateMode = "PointInTimeRestore" +) + +// PossibleManagedServerCreateModeValues returns an array of possible values for the ManagedServerCreateMode const type. +func PossibleManagedServerCreateModeValues() []ManagedServerCreateMode { + return []ManagedServerCreateMode{ManagedServerCreateModeDefault, ManagedServerCreateModePointInTimeRestore} +} + // MaxSizeUnits enumerates the values for max size units. type MaxSizeUnits string @@ -1064,7 +1104,7 @@ type BackupLongTermRetentionPoliciesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *BackupLongTermRetentionPoliciesCreateOrUpdateFuture) Result(client BackupLongTermRetentionPoliciesClient) (bltrp BackupLongTermRetentionPolicy, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.BackupLongTermRetentionPoliciesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1086,36 +1126,24 @@ func (future *BackupLongTermRetentionPoliciesCreateOrUpdateFuture) Result(client // BackupLongTermRetentionPolicy a backup long term retention policy type BackupLongTermRetentionPolicy struct { autorest.Response `json:"-"` - // Location - The geo-location where the resource lives + // Location - READ-ONLY; The geo-location where the resource lives Location *string `json:"location,omitempty"` // BackupLongTermRetentionPolicyProperties - The properties of the backup long term retention policy *BackupLongTermRetentionPolicyProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for BackupLongTermRetentionPolicy. func (bltrp BackupLongTermRetentionPolicy) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if bltrp.Location != nil { - objectMap["location"] = bltrp.Location - } if bltrp.BackupLongTermRetentionPolicyProperties != nil { objectMap["properties"] = bltrp.BackupLongTermRetentionPolicyProperties } - if bltrp.ID != nil { - objectMap["id"] = bltrp.ID - } - if bltrp.Name != nil { - objectMap["name"] = bltrp.Name - } - if bltrp.Type != nil { - objectMap["type"] = bltrp.Type - } return json.Marshal(objectMap) } @@ -1198,36 +1226,24 @@ type BackupLongTermRetentionPolicyProperties struct { // BackupLongTermRetentionVault a backup long term retention vault type BackupLongTermRetentionVault struct { autorest.Response `json:"-"` - // Location - The geo-location where the resource lives + // Location - READ-ONLY; The geo-location where the resource lives Location *string `json:"location,omitempty"` // BackupLongTermRetentionVaultProperties - The properties of the backup long term retention vault *BackupLongTermRetentionVaultProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for BackupLongTermRetentionVault. func (bltrv BackupLongTermRetentionVault) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if bltrv.Location != nil { - objectMap["location"] = bltrv.Location - } if bltrv.BackupLongTermRetentionVaultProperties != nil { objectMap["properties"] = bltrv.BackupLongTermRetentionVaultProperties } - if bltrv.ID != nil { - objectMap["id"] = bltrv.ID - } - if bltrv.Name != nil { - objectMap["name"] = bltrv.Name - } - if bltrv.Type != nil { - objectMap["type"] = bltrv.Type - } return json.Marshal(objectMap) } @@ -1314,7 +1330,7 @@ type BackupLongTermRetentionVaultsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *BackupLongTermRetentionVaultsCreateOrUpdateFuture) Result(client BackupLongTermRetentionVaultsClient) (bltrv BackupLongTermRetentionVault, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.BackupLongTermRetentionVaultsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1345,20 +1361,20 @@ type CheckNameAvailabilityRequest struct { // available. type CheckNameAvailabilityResponse struct { autorest.Response `json:"-"` - // Available - True if the name is available, otherwise false. + // Available - READ-ONLY; True if the name is available, otherwise false. Available *bool `json:"available,omitempty"` - // Message - A message explaining why the name is unavailable. Will be null if the name is available. + // Message - READ-ONLY; A message explaining why the name is unavailable. Will be null if the name is available. Message *string `json:"message,omitempty"` - // Name - The name whose availability was checked. + // Name - READ-ONLY; The name whose availability was checked. Name *string `json:"name,omitempty"` - // Reason - The reason code explaining why the name is unavailable. Will be null if the name is available. Possible values include: 'Invalid', 'AlreadyExists' + // Reason - READ-ONLY; The reason code explaining why the name is unavailable. Will be null if the name is available. Possible values include: 'Invalid', 'AlreadyExists' Reason CheckNameAvailabilityReason `json:"reason,omitempty"` } // Database represents a database. type Database struct { autorest.Response `json:"-"` - // Kind - Kind of database. This is metadata used for the Azure portal experience. + // Kind - READ-ONLY; Kind of database. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` // DatabaseProperties - The properties representing the resource. *DatabaseProperties `json:"properties,omitempty"` @@ -1366,20 +1382,17 @@ type Database struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for Database. func (d Database) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if d.Kind != nil { - objectMap["kind"] = d.Kind - } if d.DatabaseProperties != nil { objectMap["properties"] = d.DatabaseProperties } @@ -1389,15 +1402,6 @@ func (d Database) MarshalJSON() ([]byte, error) { if d.Tags != nil { objectMap["tags"] = d.Tags } - if d.ID != nil { - objectMap["id"] = d.ID - } - if d.Name != nil { - objectMap["name"] = d.Name - } - if d.Type != nil { - objectMap["type"] = d.Type - } return json.Marshal(objectMap) } @@ -1482,36 +1486,24 @@ func (d *Database) UnmarshalJSON(body []byte) error { // DatabaseBlobAuditingPolicy a database blob auditing policy. type DatabaseBlobAuditingPolicy struct { autorest.Response `json:"-"` - // Kind - Resource kind. + // Kind - READ-ONLY; Resource kind. Kind *string `json:"kind,omitempty"` // DatabaseBlobAuditingPolicyProperties - Resource properties. *DatabaseBlobAuditingPolicyProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for DatabaseBlobAuditingPolicy. func (dbap DatabaseBlobAuditingPolicy) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if dbap.Kind != nil { - objectMap["kind"] = dbap.Kind - } if dbap.DatabaseBlobAuditingPolicyProperties != nil { objectMap["properties"] = dbap.DatabaseBlobAuditingPolicyProperties } - if dbap.ID != nil { - objectMap["id"] = dbap.ID - } - if dbap.Name != nil { - objectMap["name"] = dbap.Name - } - if dbap.Type != nil { - objectMap["type"] = dbap.Type - } return json.Marshal(objectMap) } @@ -1672,15 +1664,15 @@ type DatabaseListResult struct { type DatabaseProperties struct { // Collation - The collation of the database. If createMode is not Default, this value is ignored. Collation *string `json:"collation,omitempty"` - // CreationDate - The creation date of the database (ISO8601 format). + // CreationDate - READ-ONLY; The creation date of the database (ISO8601 format). CreationDate *date.Time `json:"creationDate,omitempty"` - // ContainmentState - The containment state of the database. + // ContainmentState - READ-ONLY; The containment state of the database. ContainmentState *int64 `json:"containmentState,omitempty"` - // CurrentServiceObjectiveID - The current service level objective ID of the database. This is the ID of the service level objective that is currently active. + // CurrentServiceObjectiveID - READ-ONLY; The current service level objective ID of the database. This is the ID of the service level objective that is currently active. CurrentServiceObjectiveID *uuid.UUID `json:"currentServiceObjectiveId,omitempty"` - // DatabaseID - The ID of the database. + // DatabaseID - READ-ONLY; The ID of the database. DatabaseID *uuid.UUID `json:"databaseId,omitempty"` - // EarliestRestoreDate - This records the earliest start date and time that restore is available for this database (ISO8601 format). + // EarliestRestoreDate - READ-ONLY; This records the earliest start date and time that restore is available for this database (ISO8601 format). EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` // CreateMode - Specifies the mode of database creation. // Default: regular database creation. @@ -1700,29 +1692,53 @@ type DatabaseProperties struct { RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"` // RecoveryServicesRecoveryPointResourceID - Conditional. If createMode is RestoreLongTermRetentionBackup, then this value is required. Specifies the resource ID of the recovery point to restore from. RecoveryServicesRecoveryPointResourceID *string `json:"recoveryServicesRecoveryPointResourceId,omitempty"` - // Edition - The edition of the database. The DatabaseEditions enumeration contains all the valid editions. If createMode is NonReadableSecondary or OnlineSecondary, this value is ignored. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: "Capabilities_ListByLocation." or use the Azure CLI command `az sql db list-editions -l westus --query [].name`. Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System', 'System2' + // Edition - The edition of the database. The DatabaseEditions enumeration contains all the valid editions. If createMode is NonReadableSecondary or OnlineSecondary, this value is ignored. + // + // The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands: + // + // ```azurecli + // az sql db list-editions -l -o table + // ```` + // + // ```powershell + // Get-AzSqlServerServiceObjective -Location + // ```` + // . Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System', 'System2', 'GeneralPurpose', 'BusinessCritical', 'Hyperscale' Edition DatabaseEdition `json:"edition,omitempty"` // MaxSizeBytes - The max size of the database expressed in bytes. If createMode is not Default, this value is ignored. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: "Capabilities_ListByLocation." MaxSizeBytes *string `json:"maxSizeBytes,omitempty"` - // RequestedServiceObjectiveID - The configured service level objective ID of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of currentServiceObjectiveId property. If requestedServiceObjectiveId and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveId overrides the value of requestedServiceObjectiveName. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: "Capabilities_ListByLocation." or use the Azure CLI command `az sql db list-editions --location --query [].supportedServiceLevelObjectives[].name` . + // RequestedServiceObjectiveID - The configured service level objective ID of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of currentServiceObjectiveId property. If requestedServiceObjectiveId and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveId overrides the value of requestedServiceObjectiveName. + // + // The list of SKUs may vary by region and support offer. To determine the service objective ids that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API. RequestedServiceObjectiveID *uuid.UUID `json:"requestedServiceObjectiveId,omitempty"` - // RequestedServiceObjectiveName - The name of the configured service level objective of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of serviceLevelObjective property. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: "Capabilities_ListByLocation." or use the Azure CLI command `az sql db list-editions --location --query [].supportedServiceLevelObjectives[].name`. Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool' + // RequestedServiceObjectiveName - The name of the configured service level objective of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of serviceLevelObjective property. + // + // The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands: + // + // ```azurecli + // az sql db list-editions -l -o table + // ```` + // + // ```powershell + // Get-AzSqlServerServiceObjective -Location + // ```` + // . Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool' RequestedServiceObjectiveName ServiceObjectiveName `json:"requestedServiceObjectiveName,omitempty"` - // ServiceLevelObjective - The current service level objective of the database. Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool' + // ServiceLevelObjective - READ-ONLY; The current service level objective of the database. Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool' ServiceLevelObjective ServiceObjectiveName `json:"serviceLevelObjective,omitempty"` - // Status - The status of the database. + // Status - READ-ONLY; The status of the database. Status *string `json:"status,omitempty"` // ElasticPoolName - The name of the elastic pool the database is in. If elasticPoolName and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveName is ignored. Not supported for DataWarehouse edition. ElasticPoolName *string `json:"elasticPoolName,omitempty"` - // DefaultSecondaryLocation - The default secondary region for this database. + // DefaultSecondaryLocation - READ-ONLY; The default secondary region for this database. DefaultSecondaryLocation *string `json:"defaultSecondaryLocation,omitempty"` - // ServiceTierAdvisors - The list of service tier advisors for this database. Expanded property + // ServiceTierAdvisors - READ-ONLY; The list of service tier advisors for this database. Expanded property ServiceTierAdvisors *[]ServiceTierAdvisor `json:"serviceTierAdvisors,omitempty"` - // TransparentDataEncryption - The transparent data encryption info for this database. + // TransparentDataEncryption - READ-ONLY; The transparent data encryption info for this database. TransparentDataEncryption *[]TransparentDataEncryption `json:"transparentDataEncryption,omitempty"` - // RecommendedIndex - The recommended indices for this database. + // RecommendedIndex - READ-ONLY; The recommended indices for this database. RecommendedIndex *[]RecommendedIndex `json:"recommendedIndex,omitempty"` - // FailoverGroupID - The resource identifier of the failover group containing this database. + // FailoverGroupID - READ-ONLY; The resource identifier of the failover group containing this database. FailoverGroupID *string `json:"failoverGroupId,omitempty"` // ReadScale - Conditional. If the database is a geo-secondary, readScale indicates whether read-only connections are allowed to this database or not. Not supported for DataWarehouse edition. Possible values include: 'ReadScaleEnabled', 'ReadScaleDisabled' ReadScale ReadScale `json:"readScale,omitempty"` @@ -1742,7 +1758,7 @@ type DatabasesCreateImportOperationFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesCreateImportOperationFuture) Result(client DatabasesClient) (ier ImportExportResponse, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesCreateImportOperationFuture", "Result", future.Response(), "Polling failure") return @@ -1771,7 +1787,7 @@ type DatabasesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesCreateOrUpdateFuture) Result(client DatabasesClient) (d Database, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1795,15 +1811,15 @@ type DatabaseSecurityAlertPolicy struct { autorest.Response `json:"-"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` - // Kind - Resource kind. + // Kind - READ-ONLY; Resource kind. Kind *string `json:"kind,omitempty"` // DatabaseSecurityAlertPolicyProperties - Properties of the security alert policy. *DatabaseSecurityAlertPolicyProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1813,21 +1829,9 @@ func (dsap DatabaseSecurityAlertPolicy) MarshalJSON() ([]byte, error) { if dsap.Location != nil { objectMap["location"] = dsap.Location } - if dsap.Kind != nil { - objectMap["kind"] = dsap.Kind - } if dsap.DatabaseSecurityAlertPolicyProperties != nil { objectMap["properties"] = dsap.DatabaseSecurityAlertPolicyProperties } - if dsap.ID != nil { - objectMap["id"] = dsap.ID - } - if dsap.Name != nil { - objectMap["name"] = dsap.Name - } - if dsap.Type != nil { - objectMap["type"] = dsap.Type - } return json.Marshal(objectMap) } @@ -1930,7 +1934,7 @@ type DatabasesExportFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesExportFuture) Result(client DatabasesClient) (ier ImportExportResponse, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesExportFuture", "Result", future.Response(), "Polling failure") return @@ -1959,7 +1963,7 @@ type DatabasesImportFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesImportFuture) Result(client DatabasesClient) (ier ImportExportResponse, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesImportFuture", "Result", future.Response(), "Polling failure") return @@ -1988,7 +1992,7 @@ type DatabasesPauseFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesPauseFuture) Result(client DatabasesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesPauseFuture", "Result", future.Response(), "Polling failure") return @@ -2011,7 +2015,7 @@ type DatabasesResumeFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesResumeFuture) Result(client DatabasesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesResumeFuture", "Result", future.Response(), "Polling failure") return @@ -2034,7 +2038,7 @@ type DatabasesUpdateFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesUpdateFuture) Result(client DatabasesClient) (d Database, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -2059,11 +2063,11 @@ type DatabaseUpdate struct { Tags map[string]*string `json:"tags"` // DatabaseProperties - The properties representing the resource. *DatabaseProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -2076,15 +2080,6 @@ func (du DatabaseUpdate) MarshalJSON() ([]byte, error) { if du.DatabaseProperties != nil { objectMap["properties"] = du.DatabaseProperties } - if du.ID != nil { - objectMap["id"] = du.ID - } - if du.Name != nil { - objectMap["name"] = du.Name - } - if du.Type != nil { - objectMap["type"] = du.Type - } return json.Marshal(objectMap) } @@ -2150,19 +2145,19 @@ func (du *DatabaseUpdate) UnmarshalJSON(body []byte) error { // DatabaseUsage the database usages. type DatabaseUsage struct { - // Name - The name of the usage metric. + // Name - READ-ONLY; The name of the usage metric. Name *string `json:"name,omitempty"` - // ResourceName - The name of the resource. + // ResourceName - READ-ONLY; The name of the resource. ResourceName *string `json:"resourceName,omitempty"` - // DisplayName - The usage metric display name. + // DisplayName - READ-ONLY; The usage metric display name. DisplayName *string `json:"displayName,omitempty"` - // CurrentValue - The current value of the usage metric. + // CurrentValue - READ-ONLY; The current value of the usage metric. CurrentValue *float64 `json:"currentValue,omitempty"` - // Limit - The current limit of the usage metric. + // Limit - READ-ONLY; The current limit of the usage metric. Limit *float64 `json:"limit,omitempty"` - // Unit - The units of the usage metric. + // Unit - READ-ONLY; The units of the usage metric. Unit *string `json:"unit,omitempty"` - // NextResetTime - The next reset time for the usage metric (ISO8601 format). + // NextResetTime - READ-ONLY; The next reset time for the usage metric (ISO8601 format). NextResetTime *date.Time `json:"nextResetTime,omitempty"` } @@ -2178,15 +2173,15 @@ type DataMaskingPolicy struct { autorest.Response `json:"-"` // DataMaskingPolicyProperties - The properties of the data masking policy. *DataMaskingPolicyProperties `json:"properties,omitempty"` - // Location - The location of the data masking policy. + // Location - READ-ONLY; The location of the data masking policy. Location *string `json:"location,omitempty"` - // Kind - The kind of data masking policy. Metadata, used for Azure portal. + // Kind - READ-ONLY; The kind of data masking policy. Metadata, used for Azure portal. Kind *string `json:"kind,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -2196,21 +2191,6 @@ func (dmp DataMaskingPolicy) MarshalJSON() ([]byte, error) { if dmp.DataMaskingPolicyProperties != nil { objectMap["properties"] = dmp.DataMaskingPolicyProperties } - if dmp.Location != nil { - objectMap["location"] = dmp.Location - } - if dmp.Kind != nil { - objectMap["kind"] = dmp.Kind - } - if dmp.ID != nil { - objectMap["id"] = dmp.ID - } - if dmp.Name != nil { - objectMap["name"] = dmp.Name - } - if dmp.Type != nil { - objectMap["type"] = dmp.Type - } return json.Marshal(objectMap) } @@ -2289,9 +2269,9 @@ type DataMaskingPolicyProperties struct { DataMaskingState DataMaskingState `json:"dataMaskingState,omitempty"` // ExemptPrincipals - The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries. ExemptPrincipals *string `json:"exemptPrincipals,omitempty"` - // ApplicationPrincipals - The list of the application principals. This is a legacy parameter and is no longer used. + // ApplicationPrincipals - READ-ONLY; The list of the application principals. This is a legacy parameter and is no longer used. ApplicationPrincipals *string `json:"applicationPrincipals,omitempty"` - // MaskingLevel - The masking level. This is a legacy parameter and is no longer used. + // MaskingLevel - READ-ONLY; The masking level. This is a legacy parameter and is no longer used. MaskingLevel *string `json:"maskingLevel,omitempty"` } @@ -2300,15 +2280,15 @@ type DataMaskingRule struct { autorest.Response `json:"-"` // DataMaskingRuleProperties - The properties of the resource. *DataMaskingRuleProperties `json:"properties,omitempty"` - // Location - The location of the data masking rule. + // Location - READ-ONLY; The location of the data masking rule. Location *string `json:"location,omitempty"` - // Kind - The kind of Data Masking Rule. Metadata, used for Azure portal. + // Kind - READ-ONLY; The kind of Data Masking Rule. Metadata, used for Azure portal. Kind *string `json:"kind,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -2318,21 +2298,6 @@ func (dmr DataMaskingRule) MarshalJSON() ([]byte, error) { if dmr.DataMaskingRuleProperties != nil { objectMap["properties"] = dmr.DataMaskingRuleProperties } - if dmr.Location != nil { - objectMap["location"] = dmr.Location - } - if dmr.Kind != nil { - objectMap["kind"] = dmr.Kind - } - if dmr.ID != nil { - objectMap["id"] = dmr.ID - } - if dmr.Name != nil { - objectMap["name"] = dmr.Name - } - if dmr.Type != nil { - objectMap["type"] = dmr.Type - } return json.Marshal(objectMap) } @@ -2414,7 +2379,7 @@ type DataMaskingRuleListResult struct { // DataMaskingRuleProperties the properties of a database data masking rule. type DataMaskingRuleProperties struct { - // ID - The rule Id. + // ID - READ-ONLY; The rule Id. ID *string `json:"id,omitempty"` // AliasName - The alias name. This is a legacy parameter and is no longer used. AliasName *string `json:"aliasName,omitempty"` @@ -2442,11 +2407,11 @@ type DataMaskingRuleProperties struct { // EditionCapability the edition capability. type EditionCapability struct { - // Name - The database edition name. + // Name - READ-ONLY; The database edition name. Name *string `json:"name,omitempty"` - // SupportedServiceLevelObjectives - The list of supported service objectives for the edition. + // SupportedServiceLevelObjectives - READ-ONLY; The list of supported service objectives for the edition. SupportedServiceLevelObjectives *[]ServiceLevelObjectiveCapability `json:"supportedServiceLevelObjectives,omitempty"` - // Status - The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -2457,17 +2422,17 @@ type ElasticPool struct { autorest.Response `json:"-"` // ElasticPoolProperties - The properties representing the resource. *ElasticPoolProperties `json:"properties,omitempty"` - // Kind - Kind of elastic pool. This is metadata used for the Azure portal experience. + // Kind - READ-ONLY; Kind of elastic pool. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -2477,24 +2442,12 @@ func (ep ElasticPool) MarshalJSON() ([]byte, error) { if ep.ElasticPoolProperties != nil { objectMap["properties"] = ep.ElasticPoolProperties } - if ep.Kind != nil { - objectMap["kind"] = ep.Kind - } if ep.Location != nil { objectMap["location"] = ep.Location } if ep.Tags != nil { objectMap["tags"] = ep.Tags } - if ep.ID != nil { - objectMap["id"] = ep.ID - } - if ep.Name != nil { - objectMap["name"] = ep.Name - } - if ep.Type != nil { - objectMap["type"] = ep.Type - } return json.Marshal(objectMap) } @@ -2582,11 +2535,11 @@ type ElasticPoolActivity struct { Location *string `json:"location,omitempty"` // ElasticPoolActivityProperties - The properties representing the resource. *ElasticPoolActivityProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -2599,15 +2552,6 @@ func (epa ElasticPoolActivity) MarshalJSON() ([]byte, error) { if epa.ElasticPoolActivityProperties != nil { objectMap["properties"] = epa.ElasticPoolActivityProperties } - if epa.ID != nil { - objectMap["id"] = epa.ID - } - if epa.Name != nil { - objectMap["name"] = epa.Name - } - if epa.Type != nil { - objectMap["type"] = epa.Type - } return json.Marshal(objectMap) } @@ -2680,45 +2624,45 @@ type ElasticPoolActivityListResult struct { // ElasticPoolActivityProperties represents the properties of an elastic pool. type ElasticPoolActivityProperties struct { - // EndTime - The time the operation finished (ISO8601 format). + // EndTime - READ-ONLY; The time the operation finished (ISO8601 format). EndTime *date.Time `json:"endTime,omitempty"` - // ErrorCode - The error code if available. + // ErrorCode - READ-ONLY; The error code if available. ErrorCode *int32 `json:"errorCode,omitempty"` - // ErrorMessage - The error message if available. + // ErrorMessage - READ-ONLY; The error message if available. ErrorMessage *string `json:"errorMessage,omitempty"` - // ErrorSeverity - The error severity if available. + // ErrorSeverity - READ-ONLY; The error severity if available. ErrorSeverity *int32 `json:"errorSeverity,omitempty"` - // Operation - The operation name. + // Operation - READ-ONLY; The operation name. Operation *string `json:"operation,omitempty"` - // OperationID - The unique operation ID. + // OperationID - READ-ONLY; The unique operation ID. OperationID *uuid.UUID `json:"operationId,omitempty"` - // PercentComplete - The percentage complete if available. + // PercentComplete - READ-ONLY; The percentage complete if available. PercentComplete *int32 `json:"percentComplete,omitempty"` - // RequestedDatabaseDtuMax - The requested max DTU per database if available. + // RequestedDatabaseDtuMax - READ-ONLY; The requested max DTU per database if available. RequestedDatabaseDtuMax *int32 `json:"requestedDatabaseDtuMax,omitempty"` - // RequestedDatabaseDtuMin - The requested min DTU per database if available. + // RequestedDatabaseDtuMin - READ-ONLY; The requested min DTU per database if available. RequestedDatabaseDtuMin *int32 `json:"requestedDatabaseDtuMin,omitempty"` - // RequestedDtu - The requested DTU for the pool if available. + // RequestedDtu - READ-ONLY; The requested DTU for the pool if available. RequestedDtu *int32 `json:"requestedDtu,omitempty"` - // RequestedElasticPoolName - The requested name for the elastic pool if available. + // RequestedElasticPoolName - READ-ONLY; The requested name for the elastic pool if available. RequestedElasticPoolName *string `json:"requestedElasticPoolName,omitempty"` - // RequestedStorageLimitInGB - The requested storage limit for the pool in GB if available. + // RequestedStorageLimitInGB - READ-ONLY; The requested storage limit for the pool in GB if available. RequestedStorageLimitInGB *int64 `json:"requestedStorageLimitInGB,omitempty"` - // ElasticPoolName - The name of the elastic pool. + // ElasticPoolName - READ-ONLY; The name of the elastic pool. ElasticPoolName *string `json:"elasticPoolName,omitempty"` - // ServerName - The name of the server the elastic pool is in. + // ServerName - READ-ONLY; The name of the server the elastic pool is in. ServerName *string `json:"serverName,omitempty"` - // StartTime - The time the operation started (ISO8601 format). + // StartTime - READ-ONLY; The time the operation started (ISO8601 format). StartTime *date.Time `json:"startTime,omitempty"` - // State - The current state of the operation. + // State - READ-ONLY; The current state of the operation. State *string `json:"state,omitempty"` - // RequestedStorageLimitInMB - The requested storage limit in MB. + // RequestedStorageLimitInMB - READ-ONLY; The requested storage limit in MB. RequestedStorageLimitInMB *int32 `json:"requestedStorageLimitInMB,omitempty"` - // RequestedDatabaseDtuGuarantee - The requested per database DTU guarantee. + // RequestedDatabaseDtuGuarantee - READ-ONLY; The requested per database DTU guarantee. RequestedDatabaseDtuGuarantee *int32 `json:"requestedDatabaseDtuGuarantee,omitempty"` - // RequestedDatabaseDtuCap - The requested per database DTU cap. + // RequestedDatabaseDtuCap - READ-ONLY; The requested per database DTU cap. RequestedDatabaseDtuCap *int32 `json:"requestedDatabaseDtuCap,omitempty"` - // RequestedDtuGuarantee - The requested DTU guarantee. + // RequestedDtuGuarantee - READ-ONLY; The requested DTU guarantee. RequestedDtuGuarantee *int32 `json:"requestedDtuGuarantee,omitempty"` } @@ -2728,11 +2672,11 @@ type ElasticPoolDatabaseActivity struct { Location *string `json:"location,omitempty"` // ElasticPoolDatabaseActivityProperties - The properties representing the resource. *ElasticPoolDatabaseActivityProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -2745,15 +2689,6 @@ func (epda ElasticPoolDatabaseActivity) MarshalJSON() ([]byte, error) { if epda.ElasticPoolDatabaseActivityProperties != nil { objectMap["properties"] = epda.ElasticPoolDatabaseActivityProperties } - if epda.ID != nil { - objectMap["id"] = epda.ID - } - if epda.Name != nil { - objectMap["name"] = epda.Name - } - if epda.Type != nil { - objectMap["type"] = epda.Type - } return json.Marshal(objectMap) } @@ -2827,53 +2762,53 @@ type ElasticPoolDatabaseActivityListResult struct { // ElasticPoolDatabaseActivityProperties represents the properties of an elastic pool database activity. type ElasticPoolDatabaseActivityProperties struct { - // DatabaseName - The database name. + // DatabaseName - READ-ONLY; The database name. DatabaseName *string `json:"databaseName,omitempty"` - // EndTime - The time the operation finished (ISO8601 format). + // EndTime - READ-ONLY; The time the operation finished (ISO8601 format). EndTime *date.Time `json:"endTime,omitempty"` - // ErrorCode - The error code if available. + // ErrorCode - READ-ONLY; The error code if available. ErrorCode *int32 `json:"errorCode,omitempty"` - // ErrorMessage - The error message if available. + // ErrorMessage - READ-ONLY; The error message if available. ErrorMessage *string `json:"errorMessage,omitempty"` - // ErrorSeverity - The error severity if available. + // ErrorSeverity - READ-ONLY; The error severity if available. ErrorSeverity *int32 `json:"errorSeverity,omitempty"` - // Operation - The operation name. + // Operation - READ-ONLY; The operation name. Operation *string `json:"operation,omitempty"` - // OperationID - The unique operation ID. + // OperationID - READ-ONLY; The unique operation ID. OperationID *uuid.UUID `json:"operationId,omitempty"` - // PercentComplete - The percentage complete if available. + // PercentComplete - READ-ONLY; The percentage complete if available. PercentComplete *int32 `json:"percentComplete,omitempty"` - // RequestedElasticPoolName - The name for the elastic pool the database is moving into if available. + // RequestedElasticPoolName - READ-ONLY; The name for the elastic pool the database is moving into if available. RequestedElasticPoolName *string `json:"requestedElasticPoolName,omitempty"` - // CurrentElasticPoolName - The name of the current elastic pool the database is in if available. + // CurrentElasticPoolName - READ-ONLY; The name of the current elastic pool the database is in if available. CurrentElasticPoolName *string `json:"currentElasticPoolName,omitempty"` - // CurrentServiceObjective - The name of the current service objective if available. + // CurrentServiceObjective - READ-ONLY; The name of the current service objective if available. CurrentServiceObjective *string `json:"currentServiceObjective,omitempty"` - // RequestedServiceObjective - The name of the requested service objective if available. + // RequestedServiceObjective - READ-ONLY; The name of the requested service objective if available. RequestedServiceObjective *string `json:"requestedServiceObjective,omitempty"` - // ServerName - The name of the server the elastic pool is in. + // ServerName - READ-ONLY; The name of the server the elastic pool is in. ServerName *string `json:"serverName,omitempty"` - // StartTime - The time the operation started (ISO8601 format). + // StartTime - READ-ONLY; The time the operation started (ISO8601 format). StartTime *date.Time `json:"startTime,omitempty"` - // State - The current state of the operation. + // State - READ-ONLY; The current state of the operation. State *string `json:"state,omitempty"` } // ElasticPoolDtuCapability the Elastic Pool DTU capability. type ElasticPoolDtuCapability struct { - // Limit - The DTU limit for the pool. + // Limit - READ-ONLY; The DTU limit for the pool. Limit *int32 `json:"limit,omitempty"` - // MaxDatabaseCount - The maximum number of databases supported. + // MaxDatabaseCount - READ-ONLY; The maximum number of databases supported. MaxDatabaseCount *int32 `json:"maxDatabaseCount,omitempty"` - // IncludedMaxSize - The included (free) max size for this DTU. + // IncludedMaxSize - READ-ONLY; The included (free) max size for this DTU. IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"` - // SupportedMaxSizes - The list of supported max sizes. + // SupportedMaxSizes - READ-ONLY; The list of supported max sizes. SupportedMaxSizes *[]MaxSizeCapability `json:"supportedMaxSizes,omitempty"` - // SupportedPerDatabaseMaxSizes - The list of supported per database max sizes. + // SupportedPerDatabaseMaxSizes - READ-ONLY; The list of supported per database max sizes. SupportedPerDatabaseMaxSizes *[]MaxSizeCapability `json:"supportedPerDatabaseMaxSizes,omitempty"` - // SupportedPerDatabaseMaxDtus - The list of supported per database max DTUs. + // SupportedPerDatabaseMaxDtus - READ-ONLY; The list of supported per database max DTUs. SupportedPerDatabaseMaxDtus *[]ElasticPoolPerDatabaseMaxDtuCapability `json:"supportedPerDatabaseMaxDtus,omitempty"` - // Status - The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -2881,11 +2816,11 @@ type ElasticPoolDtuCapability struct { // ElasticPoolEditionCapability the elastic pool edition capability. type ElasticPoolEditionCapability struct { - // Name - The elastic pool edition name. + // Name - READ-ONLY; The elastic pool edition name. Name *string `json:"name,omitempty"` - // SupportedElasticPoolDtus - The list of supported elastic pool DTU levels for the edition. + // SupportedElasticPoolDtus - READ-ONLY; The list of supported elastic pool DTU levels for the edition. SupportedElasticPoolDtus *[]ElasticPoolDtuCapability `json:"supportedElasticPoolDtus,omitempty"` - // Status - The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -2900,11 +2835,11 @@ type ElasticPoolListResult struct { // ElasticPoolPerDatabaseMaxDtuCapability the max per-database DTU capability. type ElasticPoolPerDatabaseMaxDtuCapability struct { - // Limit - The maximum DTUs per database. + // Limit - READ-ONLY; The maximum DTUs per database. Limit *int32 `json:"limit,omitempty"` - // SupportedPerDatabaseMinDtus - The list of supported min database DTUs. + // SupportedPerDatabaseMinDtus - READ-ONLY; The list of supported min database DTUs. SupportedPerDatabaseMinDtus *[]ElasticPoolPerDatabaseMinDtuCapability `json:"supportedPerDatabaseMinDtus,omitempty"` - // Status - The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -2912,9 +2847,9 @@ type ElasticPoolPerDatabaseMaxDtuCapability struct { // ElasticPoolPerDatabaseMinDtuCapability the minimum per-database DTU capability. type ElasticPoolPerDatabaseMinDtuCapability struct { - // Limit - The minimum DTUs per database. + // Limit - READ-ONLY; The minimum DTUs per database. Limit *int32 `json:"limit,omitempty"` - // Status - The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -2922,11 +2857,11 @@ type ElasticPoolPerDatabaseMinDtuCapability struct { // ElasticPoolProperties represents the properties of an elastic pool. type ElasticPoolProperties struct { - // CreationDate - The creation date of the elastic pool (ISO8601 format). + // CreationDate - READ-ONLY; The creation date of the elastic pool (ISO8601 format). CreationDate *date.Time `json:"creationDate,omitempty"` - // State - The state of the elastic pool. Possible values include: 'ElasticPoolStateCreating', 'ElasticPoolStateReady', 'ElasticPoolStateDisabled' + // State - READ-ONLY; The state of the elastic pool. Possible values include: 'ElasticPoolStateCreating', 'ElasticPoolStateReady', 'ElasticPoolStateDisabled' State ElasticPoolState `json:"state,omitempty"` - // Edition - The edition of the elastic pool. Possible values include: 'ElasticPoolEditionBasic', 'ElasticPoolEditionStandard', 'ElasticPoolEditionPremium' + // Edition - The edition of the elastic pool. Possible values include: 'ElasticPoolEditionBasic', 'ElasticPoolEditionStandard', 'ElasticPoolEditionPremium', 'ElasticPoolEditionGeneralPurpose', 'ElasticPoolEditionBusinessCritical' Edition ElasticPoolEdition `json:"edition,omitempty"` // Dtu - The total shared DTU for the database elastic pool. Dtu *int32 `json:"dtu,omitempty"` @@ -2950,7 +2885,7 @@ type ElasticPoolsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ElasticPoolsCreateOrUpdateFuture) Result(client ElasticPoolsClient) (ep ElasticPool, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -2979,7 +2914,7 @@ type ElasticPoolsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ElasticPoolsUpdateFuture) Result(client ElasticPoolsClient) (ep ElasticPool, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -3004,11 +2939,11 @@ type ElasticPoolUpdate struct { Tags map[string]*string `json:"tags"` // ElasticPoolProperties - The properties representing the resource. *ElasticPoolProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -3021,15 +2956,6 @@ func (epu ElasticPoolUpdate) MarshalJSON() ([]byte, error) { if epu.ElasticPoolProperties != nil { objectMap["properties"] = epu.ElasticPoolProperties } - if epu.ID != nil { - objectMap["id"] = epu.ID - } - if epu.Name != nil { - objectMap["name"] = epu.Name - } - if epu.Type != nil { - objectMap["type"] = epu.Type - } return json.Marshal(objectMap) } @@ -3098,15 +3024,15 @@ type EncryptionProtector struct { autorest.Response `json:"-"` // Kind - Kind of encryption protector. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` - // Location - Resource location. + // Location - READ-ONLY; Resource location. Location *string `json:"location,omitempty"` // EncryptionProtectorProperties - Resource properties. *EncryptionProtectorProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -3116,21 +3042,9 @@ func (ep EncryptionProtector) MarshalJSON() ([]byte, error) { if ep.Kind != nil { objectMap["kind"] = ep.Kind } - if ep.Location != nil { - objectMap["location"] = ep.Location - } if ep.EncryptionProtectorProperties != nil { objectMap["properties"] = ep.EncryptionProtectorProperties } - if ep.ID != nil { - objectMap["id"] = ep.ID - } - if ep.Name != nil { - objectMap["name"] = ep.Name - } - if ep.Type != nil { - objectMap["type"] = ep.Type - } return json.Marshal(objectMap) } @@ -3206,9 +3120,9 @@ func (ep *EncryptionProtector) UnmarshalJSON(body []byte) error { // EncryptionProtectorListResult a list of server encryption protectors. type EncryptionProtectorListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]EncryptionProtector `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -3352,15 +3266,15 @@ func NewEncryptionProtectorListResultPage(getNextPage func(context.Context, Encr // EncryptionProtectorProperties properties for an encryption protector execution. type EncryptionProtectorProperties struct { - // Subregion - Subregion of the encryption protector. + // Subregion - READ-ONLY; Subregion of the encryption protector. Subregion *string `json:"subregion,omitempty"` // ServerKeyName - The name of the server key. ServerKeyName *string `json:"serverKeyName,omitempty"` // ServerKeyType - The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault' ServerKeyType ServerKeyType `json:"serverKeyType,omitempty"` - // URI - The URI of the server key. + // URI - READ-ONLY; The URI of the server key. URI *string `json:"uri,omitempty"` - // Thumbprint - Thumbprint of the server key. + // Thumbprint - READ-ONLY; Thumbprint of the server key. Thumbprint *string `json:"thumbprint,omitempty"` } @@ -3374,7 +3288,7 @@ type EncryptionProtectorsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *EncryptionProtectorsCreateOrUpdateFuture) Result(client EncryptionProtectorsClient) (ep EncryptionProtector, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -3412,41 +3326,29 @@ type ExportRequest struct { // FailoverGroup a failover group. type FailoverGroup struct { autorest.Response `json:"-"` - // Location - Resource location. + // Location - READ-ONLY; Resource location. Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` // FailoverGroupProperties - Resource properties. *FailoverGroupProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for FailoverGroup. func (fg FailoverGroup) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if fg.Location != nil { - objectMap["location"] = fg.Location - } if fg.Tags != nil { objectMap["tags"] = fg.Tags } if fg.FailoverGroupProperties != nil { objectMap["properties"] = fg.FailoverGroupProperties } - if fg.ID != nil { - objectMap["id"] = fg.ID - } - if fg.Name != nil { - objectMap["name"] = fg.Name - } - if fg.Type != nil { - objectMap["type"] = fg.Type - } return json.Marshal(objectMap) } @@ -3522,9 +3424,9 @@ func (fg *FailoverGroup) UnmarshalJSON(body []byte) error { // FailoverGroupListResult a list of failover groups. type FailoverGroupListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]FailoverGroup `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -3671,9 +3573,9 @@ type FailoverGroupProperties struct { ReadWriteEndpoint *FailoverGroupReadWriteEndpoint `json:"readWriteEndpoint,omitempty"` // ReadOnlyEndpoint - Read-only endpoint of the failover group instance. ReadOnlyEndpoint *FailoverGroupReadOnlyEndpoint `json:"readOnlyEndpoint,omitempty"` - // ReplicationRole - Local replication role of the failover group instance. Possible values include: 'Primary', 'Secondary' + // ReplicationRole - READ-ONLY; Local replication role of the failover group instance. Possible values include: 'Primary', 'Secondary' ReplicationRole FailoverGroupReplicationRole `json:"replicationRole,omitempty"` - // ReplicationState - Replication state of the failover group instance. + // ReplicationState - READ-ONLY; Replication state of the failover group instance. ReplicationState *string `json:"replicationState,omitempty"` // PartnerServers - List of partner server information for the failover group. PartnerServers *[]PartnerInfo `json:"partnerServers,omitempty"` @@ -3705,7 +3607,7 @@ type FailoverGroupsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *FailoverGroupsCreateOrUpdateFuture) Result(client FailoverGroupsClient) (fg FailoverGroup, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.FailoverGroupsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -3734,7 +3636,7 @@ type FailoverGroupsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *FailoverGroupsDeleteFuture) Result(client FailoverGroupsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.FailoverGroupsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -3757,7 +3659,7 @@ type FailoverGroupsFailoverFuture struct { // If the operation has not completed it will return an error. func (future *FailoverGroupsFailoverFuture) Result(client FailoverGroupsClient) (fg FailoverGroup, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.FailoverGroupsFailoverFuture", "Result", future.Response(), "Polling failure") return @@ -3786,7 +3688,7 @@ type FailoverGroupsForceFailoverAllowDataLossFuture struct { // If the operation has not completed it will return an error. func (future *FailoverGroupsForceFailoverAllowDataLossFuture) Result(client FailoverGroupsClient) (fg FailoverGroup, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.FailoverGroupsForceFailoverAllowDataLossFuture", "Result", future.Response(), "Polling failure") return @@ -3815,7 +3717,7 @@ type FailoverGroupsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *FailoverGroupsUpdateFuture) Result(client FailoverGroupsClient) (fg FailoverGroup, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.FailoverGroupsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -3900,41 +3802,26 @@ type FailoverGroupUpdateProperties struct { // FirewallRule represents a server firewall rule. type FirewallRule struct { autorest.Response `json:"-"` - // Kind - Kind of server that contains this firewall rule. + // Kind - READ-ONLY; Kind of server that contains this firewall rule. Kind *string `json:"kind,omitempty"` - // Location - Location of the server that contains this firewall rule. + // Location - READ-ONLY; Location of the server that contains this firewall rule. Location *string `json:"location,omitempty"` // FirewallRuleProperties - The properties representing the resource. *FirewallRuleProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for FirewallRule. func (fr FirewallRule) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if fr.Kind != nil { - objectMap["kind"] = fr.Kind - } - if fr.Location != nil { - objectMap["location"] = fr.Location - } if fr.FirewallRuleProperties != nil { objectMap["properties"] = fr.FirewallRuleProperties } - if fr.ID != nil { - objectMap["id"] = fr.ID - } - if fr.Name != nil { - objectMap["name"] = fr.Name - } - if fr.Type != nil { - objectMap["type"] = fr.Type - } return json.Marshal(objectMap) } @@ -4027,15 +3914,15 @@ type GeoBackupPolicy struct { autorest.Response `json:"-"` // GeoBackupPolicyProperties - The properties of the geo backup policy. *GeoBackupPolicyProperties `json:"properties,omitempty"` - // Kind - Kind of geo backup policy. This is metadata used for the Azure portal experience. + // Kind - READ-ONLY; Kind of geo backup policy. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` - // Location - Backup policy location. + // Location - READ-ONLY; Backup policy location. Location *string `json:"location,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -4045,21 +3932,6 @@ func (gbp GeoBackupPolicy) MarshalJSON() ([]byte, error) { if gbp.GeoBackupPolicyProperties != nil { objectMap["properties"] = gbp.GeoBackupPolicyProperties } - if gbp.Kind != nil { - objectMap["kind"] = gbp.Kind - } - if gbp.Location != nil { - objectMap["location"] = gbp.Location - } - if gbp.ID != nil { - objectMap["id"] = gbp.ID - } - if gbp.Name != nil { - objectMap["name"] = gbp.Name - } - if gbp.Type != nil { - objectMap["type"] = gbp.Type - } return json.Marshal(objectMap) } @@ -4143,7 +4015,7 @@ type GeoBackupPolicyListResult struct { type GeoBackupPolicyProperties struct { // State - The state of the geo backup policy. Possible values include: 'GeoBackupPolicyStateDisabled', 'GeoBackupPolicyStateEnabled' State GeoBackupPolicyState `json:"state,omitempty"` - // StorageType - The storage type of the geo backup policy. + // StorageType - READ-ONLY; The storage type of the geo backup policy. StorageType *string `json:"storageType,omitempty"` } @@ -4152,11 +4024,11 @@ type ImportExportResponse struct { autorest.Response `json:"-"` // ImportExportResponseProperties - The import/export operation properties. *ImportExportResponseProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -4166,15 +4038,6 @@ func (ier ImportExportResponse) MarshalJSON() ([]byte, error) { if ier.ImportExportResponseProperties != nil { objectMap["properties"] = ier.ImportExportResponseProperties } - if ier.ID != nil { - objectMap["id"] = ier.ID - } - if ier.Name != nil { - objectMap["name"] = ier.Name - } - if ier.Type != nil { - objectMap["type"] = ier.Type - } return json.Marshal(objectMap) } @@ -4231,23 +4094,23 @@ func (ier *ImportExportResponse) UnmarshalJSON(body []byte) error { // ImportExportResponseProperties response for Import/Export Status operation. type ImportExportResponseProperties struct { - // RequestType - The request type of the operation. + // RequestType - READ-ONLY; The request type of the operation. RequestType *string `json:"requestType,omitempty"` - // RequestID - The request type of the operation. + // RequestID - READ-ONLY; The request type of the operation. RequestID *uuid.UUID `json:"requestId,omitempty"` - // ServerName - The name of the server. + // ServerName - READ-ONLY; The name of the server. ServerName *string `json:"serverName,omitempty"` - // DatabaseName - The name of the database. + // DatabaseName - READ-ONLY; The name of the database. DatabaseName *string `json:"databaseName,omitempty"` - // Status - The status message returned from the server. + // Status - READ-ONLY; The status message returned from the server. Status *string `json:"status,omitempty"` - // LastModifiedTime - The operation status last modified time. + // LastModifiedTime - READ-ONLY; The operation status last modified time. LastModifiedTime *string `json:"lastModifiedTime,omitempty"` - // QueuedTime - The operation queued time. + // QueuedTime - READ-ONLY; The operation queued time. QueuedTime *string `json:"queuedTime,omitempty"` - // BlobURI - The blob uri. + // BlobURI - READ-ONLY; The blob uri. BlobURI *string `json:"blobUri,omitempty"` - // ErrorMessage - The error message returned from the server. + // ErrorMessage - READ-ONLY; The error message returned from the server. ErrorMessage *string `json:"errorMessage,omitempty"` } @@ -4340,7 +4203,18 @@ func (ier *ImportExtensionRequest) UnmarshalJSON(body []byte) error { type ImportRequest struct { // DatabaseName - The name of the database to import. DatabaseName *string `json:"databaseName,omitempty"` - // Edition - The edition for the database being created. Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System', 'System2' + // Edition - The edition for the database being created. + // + // The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands: + // + // ```azurecli + // az sql db list-editions -l -o table + // ```` + // + // ```powershell + // Get-AzSqlServerServiceObjective -Location + // ```` + // . Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System', 'System2', 'GeneralPurpose', 'BusinessCritical', 'Hyperscale' Edition DatabaseEdition `json:"edition,omitempty"` // ServiceObjectiveName - The name of the service objective to assign to the database. Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool' ServiceObjectiveName ServiceObjectiveName `json:"serviceObjectiveName,omitempty"` @@ -4363,11 +4237,11 @@ type ImportRequest struct { // LocationCapabilities the location capability. type LocationCapabilities struct { autorest.Response `json:"-"` - // Name - The location name. + // Name - READ-ONLY; The location name. Name *string `json:"name,omitempty"` - // SupportedServerVersions - The list of supported server versions. + // SupportedServerVersions - READ-ONLY; The list of supported server versions. SupportedServerVersions *[]ServerVersionCapability `json:"supportedServerVersions,omitempty"` - // Status - The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -4378,7 +4252,7 @@ type ManagedInstance struct { autorest.Response `json:"-"` // Identity - The Azure Active Directory identity of the managed instance. Identity *ResourceIdentity `json:"identity,omitempty"` - // Sku - Managed instance sku + // Sku - Managed instance SKU. Allowed values for sku.name: GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5 Sku *Sku `json:"sku,omitempty"` // ManagedInstanceProperties - Resource properties. *ManagedInstanceProperties `json:"properties,omitempty"` @@ -4386,11 +4260,11 @@ type ManagedInstance struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -4412,15 +4286,6 @@ func (mi ManagedInstance) MarshalJSON() ([]byte, error) { if mi.Tags != nil { objectMap["tags"] = mi.Tags } - if mi.ID != nil { - objectMap["id"] = mi.ID - } - if mi.Name != nil { - objectMap["name"] = mi.Name - } - if mi.Type != nil { - objectMap["type"] = mi.Type - } return json.Marshal(objectMap) } @@ -4514,9 +4379,9 @@ func (mi *ManagedInstance) UnmarshalJSON(body []byte) error { // ManagedInstanceListResult a list of managed instances. type ManagedInstanceListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]ManagedInstance `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -4659,7 +4524,13 @@ func NewManagedInstanceListResultPage(getNextPage func(context.Context, ManagedI // ManagedInstanceProperties the properties of a managed instance. type ManagedInstanceProperties struct { - // FullyQualifiedDomainName - The fully qualified domain name of the managed instance. + // ManagedInstanceCreateMode - Specifies the mode of database creation. + // + // Default: Regular instance creation. + // + // Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. Possible values include: 'ManagedServerCreateModeDefault', 'ManagedServerCreateModePointInTimeRestore' + ManagedInstanceCreateMode ManagedServerCreateMode `json:"managedInstanceCreateMode,omitempty"` + // FullyQualifiedDomainName - READ-ONLY; The fully qualified domain name of the managed instance. FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"` // AdministratorLogin - Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation). AdministratorLogin *string `json:"administratorLogin,omitempty"` @@ -4667,31 +4538,37 @@ type ManagedInstanceProperties struct { AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` // SubnetID - Subnet resource ID for the managed instance. SubnetID *string `json:"subnetId,omitempty"` - // State - The state of the managed instance. + // State - READ-ONLY; The state of the managed instance. State *string `json:"state,omitempty"` - // LicenseType - The license type. Possible values are 'LicenseIncluded' and 'BasePrice'. - LicenseType *string `json:"licenseType,omitempty"` - // VCores - The number of VCores. + // LicenseType - The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). Possible values include: 'LicenseIncluded', 'BasePrice' + LicenseType ManagedInstanceLicenseType `json:"licenseType,omitempty"` + // VCores - The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. VCores *int32 `json:"vCores,omitempty"` - // StorageSizeInGB - The maximum storage size in GB. + // StorageSizeInGB - Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only. StorageSizeInGB *int32 `json:"storageSizeInGB,omitempty"` // Collation - Collation of the managed instance. Collation *string `json:"collation,omitempty"` - // DNSZone - The Dns Zone that the managed instance is in. + // DNSZone - READ-ONLY; The Dns Zone that the managed instance is in. DNSZone *string `json:"dnsZone,omitempty"` // DNSZonePartner - The resource id of another managed instance whose DNS zone this managed instance will share after creation. DNSZonePartner *string `json:"dnsZonePartner,omitempty"` // PublicDataEndpointEnabled - Whether or not the public data endpoint is enabled. PublicDataEndpointEnabled *bool `json:"publicDataEndpointEnabled,omitempty"` + // SourceManagedInstanceID - The resource identifier of the source managed instance associated with create operation of this instance. + SourceManagedInstanceID *string `json:"sourceManagedInstanceId,omitempty"` + // RestorePointInTime - Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. + RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"` // ProxyOverride - Connection type used for connecting to the instance. Possible values include: 'ManagedInstanceProxyOverrideProxy', 'ManagedInstanceProxyOverrideRedirect', 'ManagedInstanceProxyOverrideDefault' ProxyOverride ManagedInstanceProxyOverride `json:"proxyOverride,omitempty"` // TimezoneID - Id of the timezone. Allowed values are timezones supported by Windows. - // Winodws keeps details on supported timezones, including the id, in registry under + // Windows keeps details on supported timezones, including the id, in registry under // KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. // You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info. // List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. // An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". TimezoneID *string `json:"timezoneId,omitempty"` + // InstancePoolID - The Id of the instance pool this managed server belongs to. + InstancePoolID *string `json:"instancePoolId,omitempty"` } // ManagedInstancesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a @@ -4704,7 +4581,7 @@ type ManagedInstancesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ManagedInstancesCreateOrUpdateFuture) Result(client ManagedInstancesClient) (mi ManagedInstance, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -4733,7 +4610,7 @@ type ManagedInstancesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ManagedInstancesDeleteFuture) Result(client ManagedInstancesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -4756,7 +4633,7 @@ type ManagedInstancesUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ManagedInstancesUpdateFuture) Result(client ManagedInstancesClient) (mi ManagedInstance, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstancesUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -4844,11 +4721,11 @@ func (miu *ManagedInstanceUpdate) UnmarshalJSON(body []byte) error { // MaxSizeCapability the maximum size capability. type MaxSizeCapability struct { - // Limit - The maximum size limit (see 'unit' for the units). + // Limit - READ-ONLY; The maximum size limit (see 'unit' for the units). Limit *int32 `json:"limit,omitempty"` - // Unit - The units that the limit is expressed in. Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' + // Unit - READ-ONLY; The units that the limit is expressed in. Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' Unit MaxSizeUnits `json:"unit,omitempty"` - // Status - The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -4856,39 +4733,39 @@ type MaxSizeCapability struct { // Metric database metrics. type Metric struct { - // StartTime - The start time for the metric (ISO-8601 format). + // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - The end time for the metric (ISO-8601 format). + // EndTime - READ-ONLY; The end time for the metric (ISO-8601 format). EndTime *date.Time `json:"endTime,omitempty"` - // TimeGrain - The time step to be used to summarize the metric values. + // TimeGrain - READ-ONLY; The time step to be used to summarize the metric values. TimeGrain *string `json:"timeGrain,omitempty"` - // Unit - The unit of the metric. Possible values include: 'UnitTypeCount', 'UnitTypeBytes', 'UnitTypeSeconds', 'UnitTypePercent', 'UnitTypeCountPerSecond', 'UnitTypeBytesPerSecond' + // Unit - READ-ONLY; The unit of the metric. Possible values include: 'UnitTypeCount', 'UnitTypeBytes', 'UnitTypeSeconds', 'UnitTypePercent', 'UnitTypeCountPerSecond', 'UnitTypeBytesPerSecond' Unit UnitType `json:"unit,omitempty"` - // Name - The name information for the metric. + // Name - READ-ONLY; The name information for the metric. Name *MetricName `json:"name,omitempty"` - // MetricValues - The metric values for the specified time window and timestep. + // MetricValues - READ-ONLY; The metric values for the specified time window and timestep. MetricValues *[]MetricValue `json:"metricValues,omitempty"` } // MetricAvailability a metric availability value. type MetricAvailability struct { - // Retention - The length of retention for the database metric. + // Retention - READ-ONLY; The length of retention for the database metric. Retention *string `json:"retention,omitempty"` - // TimeGrain - The granularity of the database metric. + // TimeGrain - READ-ONLY; The granularity of the database metric. TimeGrain *string `json:"timeGrain,omitempty"` } // MetricDefinition a database metric definition. type MetricDefinition struct { - // Name - The name information for the metric. + // Name - READ-ONLY; The name information for the metric. Name *MetricName `json:"name,omitempty"` - // PrimaryAggregationType - The primary aggregation type defining how metric values are displayed. Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' + // PrimaryAggregationType - READ-ONLY; The primary aggregation type defining how metric values are displayed. Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' PrimaryAggregationType PrimaryAggregationType `json:"primaryAggregationType,omitempty"` - // ResourceURI - The resource uri of the database. + // ResourceURI - READ-ONLY; The resource uri of the database. ResourceURI *string `json:"resourceUri,omitempty"` - // Unit - The unit of the metric. Possible values include: 'UnitDefinitionTypeCount', 'UnitDefinitionTypeBytes', 'UnitDefinitionTypeSeconds', 'UnitDefinitionTypePercent', 'UnitDefinitionTypeCountPerSecond', 'UnitDefinitionTypeBytesPerSecond' + // Unit - READ-ONLY; The unit of the metric. Possible values include: 'UnitDefinitionTypeCount', 'UnitDefinitionTypeBytes', 'UnitDefinitionTypeSeconds', 'UnitDefinitionTypePercent', 'UnitDefinitionTypeCountPerSecond', 'UnitDefinitionTypeBytesPerSecond' Unit UnitDefinitionType `json:"unit,omitempty"` - // MetricAvailabilities - The list of database metric availabilities for the metric. + // MetricAvailabilities - READ-ONLY; The list of database metric availabilities for the metric. MetricAvailabilities *[]MetricAvailability `json:"metricAvailabilities,omitempty"` } @@ -4908,88 +4785,76 @@ type MetricListResult struct { // MetricName a database metric name. type MetricName struct { - // Value - The name of the database metric. + // Value - READ-ONLY; The name of the database metric. Value *string `json:"value,omitempty"` - // LocalizedValue - The friendly name of the database metric. + // LocalizedValue - READ-ONLY; The friendly name of the database metric. LocalizedValue *string `json:"localizedValue,omitempty"` } // MetricValue represents database metrics. type MetricValue struct { - // Count - The number of values for the metric. + // Count - READ-ONLY; The number of values for the metric. Count *float64 `json:"count,omitempty"` - // Average - The average value of the metric. + // Average - READ-ONLY; The average value of the metric. Average *float64 `json:"average,omitempty"` - // Maximum - The max value of the metric. + // Maximum - READ-ONLY; The max value of the metric. Maximum *float64 `json:"maximum,omitempty"` - // Minimum - The min value of the metric. + // Minimum - READ-ONLY; The min value of the metric. Minimum *float64 `json:"minimum,omitempty"` - // Timestamp - The metric timestamp (ISO-8601 format). + // Timestamp - READ-ONLY; The metric timestamp (ISO-8601 format). Timestamp *date.Time `json:"timestamp,omitempty"` - // Total - The total value of the metric. + // Total - READ-ONLY; The total value of the metric. Total *float64 `json:"total,omitempty"` } // Operation SQL REST API operation definition. type Operation struct { - // Name - The name of the operation being performed on this particular object. + // Name - READ-ONLY; The name of the operation being performed on this particular object. Name *string `json:"name,omitempty"` - // Display - The localized display information for this particular operation / action. + // Display - READ-ONLY; The localized display information for this particular operation / action. Display *OperationDisplay `json:"display,omitempty"` - // Origin - The intended executor of the operation. Possible values include: 'OperationOriginUser', 'OperationOriginSystem' + // Origin - READ-ONLY; The intended executor of the operation. Possible values include: 'OperationOriginUser', 'OperationOriginSystem' Origin OperationOrigin `json:"origin,omitempty"` - // Properties - Additional descriptions for the operation. + // Properties - READ-ONLY; Additional descriptions for the operation. Properties map[string]interface{} `json:"properties"` } // MarshalJSON is the custom marshaler for Operation. func (o Operation) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if o.Name != nil { - objectMap["name"] = o.Name - } - if o.Display != nil { - objectMap["display"] = o.Display - } - if o.Origin != "" { - objectMap["origin"] = o.Origin - } - if o.Properties != nil { - objectMap["properties"] = o.Properties - } return json.Marshal(objectMap) } // OperationDisplay display metadata associated with the operation. type OperationDisplay struct { - // Provider - The localized friendly form of the resource provider name. + // Provider - READ-ONLY; The localized friendly form of the resource provider name. Provider *string `json:"provider,omitempty"` - // Resource - The localized friendly form of the resource type related to this action/operation. + // Resource - READ-ONLY; The localized friendly form of the resource type related to this action/operation. Resource *string `json:"resource,omitempty"` - // Operation - The localized friendly name for the operation. + // Operation - READ-ONLY; The localized friendly name for the operation. Operation *string `json:"operation,omitempty"` - // Description - The localized friendly description for the operation. + // Description - READ-ONLY; The localized friendly description for the operation. Description *string `json:"description,omitempty"` } // OperationImpact the impact of an operation, both in absolute and relative terms. type OperationImpact struct { - // Name - The name of the impact dimension. + // Name - READ-ONLY; The name of the impact dimension. Name *string `json:"name,omitempty"` - // Unit - The unit in which estimated impact to dimension is measured. + // Unit - READ-ONLY; The unit in which estimated impact to dimension is measured. Unit *string `json:"unit,omitempty"` - // ChangeValueAbsolute - The absolute impact to dimension. + // ChangeValueAbsolute - READ-ONLY; The absolute impact to dimension. ChangeValueAbsolute *float64 `json:"changeValueAbsolute,omitempty"` - // ChangeValueRelative - The relative impact to dimension (null if not applicable) + // ChangeValueRelative - READ-ONLY; The relative impact to dimension (null if not applicable) ChangeValueRelative *float64 `json:"changeValueRelative,omitempty"` } // OperationListResult result of the request to list SQL operations. type OperationListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]Operation `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -5134,57 +4999,45 @@ func NewOperationListResultPage(getNextPage func(context.Context, OperationListR type PartnerInfo struct { // ID - Resource identifier of the partner server. ID *string `json:"id,omitempty"` - // Location - Geo location of the partner server. + // Location - READ-ONLY; Geo location of the partner server. Location *string `json:"location,omitempty"` - // ReplicationRole - Replication role of the partner server. Possible values include: 'Primary', 'Secondary' + // ReplicationRole - READ-ONLY; Replication role of the partner server. Possible values include: 'Primary', 'Secondary' ReplicationRole FailoverGroupReplicationRole `json:"replicationRole,omitempty"` } // PerformanceLevelCapability the performance level capability. type PerformanceLevelCapability struct { - // Value - Performance level value. + // Value - READ-ONLY; Performance level value. Value *int32 `json:"value,omitempty"` - // Unit - Unit type used to measure service objective performance level. Possible values include: 'DTU' + // Unit - READ-ONLY; Unit type used to measure service objective performance level. Possible values include: 'DTU' Unit PerformanceLevelUnit `json:"unit,omitempty"` } // ProxyResource ARM proxy resource. type ProxyResource struct { - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // RecommendedIndex represents a database recommended index. type RecommendedIndex struct { - // RecommendedIndexProperties - The properties representing the resource. + // RecommendedIndexProperties - READ-ONLY; The properties representing the resource. *RecommendedIndexProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for RecommendedIndex. func (ri RecommendedIndex) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if ri.RecommendedIndexProperties != nil { - objectMap["properties"] = ri.RecommendedIndexProperties - } - if ri.ID != nil { - objectMap["id"] = ri.ID - } - if ri.Name != nil { - objectMap["name"] = ri.Name - } - if ri.Type != nil { - objectMap["type"] = ri.Type - } return json.Marshal(objectMap) } @@ -5241,29 +5094,29 @@ func (ri *RecommendedIndex) UnmarshalJSON(body []byte) error { // RecommendedIndexProperties represents the properties of a database recommended index. type RecommendedIndexProperties struct { - // Action - The proposed index action. You can create a missing index, drop an unused index, or rebuild an existing index to improve its performance. Possible values include: 'Create', 'Drop', 'Rebuild' + // Action - READ-ONLY; The proposed index action. You can create a missing index, drop an unused index, or rebuild an existing index to improve its performance. Possible values include: 'Create', 'Drop', 'Rebuild' Action RecommendedIndexAction `json:"action,omitempty"` - // State - The current recommendation state. Possible values include: 'Active', 'Pending', 'Executing', 'Verifying', 'PendingRevert', 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', 'Success' + // State - READ-ONLY; The current recommendation state. Possible values include: 'Active', 'Pending', 'Executing', 'Verifying', 'PendingRevert', 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', 'Success' State RecommendedIndexState `json:"state,omitempty"` - // Created - The UTC datetime showing when this resource was created (ISO8601 format). + // Created - READ-ONLY; The UTC datetime showing when this resource was created (ISO8601 format). Created *date.Time `json:"created,omitempty"` - // LastModified - The UTC datetime of when was this resource last changed (ISO8601 format). + // LastModified - READ-ONLY; The UTC datetime of when was this resource last changed (ISO8601 format). LastModified *date.Time `json:"lastModified,omitempty"` - // IndexType - The type of index (CLUSTERED, NONCLUSTERED, COLUMNSTORE, CLUSTERED COLUMNSTORE). Possible values include: 'CLUSTERED', 'NONCLUSTERED', 'COLUMNSTORE', 'CLUSTEREDCOLUMNSTORE' + // IndexType - READ-ONLY; The type of index (CLUSTERED, NONCLUSTERED, COLUMNSTORE, CLUSTERED COLUMNSTORE). Possible values include: 'CLUSTERED', 'NONCLUSTERED', 'COLUMNSTORE', 'CLUSTEREDCOLUMNSTORE' IndexType RecommendedIndexType `json:"indexType,omitempty"` - // Schema - The schema where table to build index over resides + // Schema - READ-ONLY; The schema where table to build index over resides Schema *string `json:"schema,omitempty"` - // Table - The table on which to build index. + // Table - READ-ONLY; The table on which to build index. Table *string `json:"table,omitempty"` - // Columns - Columns over which to build index + // Columns - READ-ONLY; Columns over which to build index Columns *[]string `json:"columns,omitempty"` - // IncludedColumns - The list of column names to be included in the index + // IncludedColumns - READ-ONLY; The list of column names to be included in the index IncludedColumns *[]string `json:"includedColumns,omitempty"` - // IndexScript - The full build index script + // IndexScript - READ-ONLY; The full build index script IndexScript *string `json:"indexScript,omitempty"` - // EstimatedImpact - The estimated impact of doing recommended index action. + // EstimatedImpact - READ-ONLY; The estimated impact of doing recommended index action. EstimatedImpact *[]OperationImpact `json:"estimatedImpact,omitempty"` - // ReportedImpact - The values reported after index action is complete. + // ReportedImpact - READ-ONLY; The values reported after index action is complete. ReportedImpact *[]OperationImpact `json:"reportedImpact,omitempty"` } @@ -5272,11 +5125,11 @@ type RecoverableDatabase struct { autorest.Response `json:"-"` // RecoverableDatabaseProperties - The properties of a recoverable database *RecoverableDatabaseProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -5286,15 +5139,6 @@ func (rd RecoverableDatabase) MarshalJSON() ([]byte, error) { if rd.RecoverableDatabaseProperties != nil { objectMap["properties"] = rd.RecoverableDatabaseProperties } - if rd.ID != nil { - objectMap["id"] = rd.ID - } - if rd.Name != nil { - objectMap["name"] = rd.Name - } - if rd.Type != nil { - objectMap["type"] = rd.Type - } return json.Marshal(objectMap) } @@ -5358,49 +5202,37 @@ type RecoverableDatabaseListResult struct { // RecoverableDatabaseProperties the properties of a recoverable database type RecoverableDatabaseProperties struct { - // Edition - The edition of the database + // Edition - READ-ONLY; The edition of the database Edition *string `json:"edition,omitempty"` - // ServiceLevelObjective - The service level objective name of the database + // ServiceLevelObjective - READ-ONLY; The service level objective name of the database ServiceLevelObjective *string `json:"serviceLevelObjective,omitempty"` - // ElasticPoolName - The elastic pool name of the database + // ElasticPoolName - READ-ONLY; The elastic pool name of the database ElasticPoolName *string `json:"elasticPoolName,omitempty"` - // LastAvailableBackupDate - The last available backup date of the database (ISO8601 format) + // LastAvailableBackupDate - READ-ONLY; The last available backup date of the database (ISO8601 format) LastAvailableBackupDate *date.Time `json:"lastAvailableBackupDate,omitempty"` } // ReplicationLink represents a database replication link. type ReplicationLink struct { autorest.Response `json:"-"` - // Location - Location of the server that contains this firewall rule. + // Location - READ-ONLY; Location of the server that contains this firewall rule. Location *string `json:"location,omitempty"` // ReplicationLinkProperties - The properties representing the resource. *ReplicationLinkProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for ReplicationLink. func (rl ReplicationLink) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if rl.Location != nil { - objectMap["location"] = rl.Location - } if rl.ReplicationLinkProperties != nil { objectMap["properties"] = rl.ReplicationLinkProperties } - if rl.ID != nil { - objectMap["id"] = rl.ID - } - if rl.Name != nil { - objectMap["name"] = rl.Name - } - if rl.Type != nil { - objectMap["type"] = rl.Type - } return json.Marshal(objectMap) } @@ -5473,25 +5305,25 @@ type ReplicationLinkListResult struct { // ReplicationLinkProperties represents the properties of a database replication link. type ReplicationLinkProperties struct { - // IsTerminationAllowed - Legacy value indicating whether termination is allowed. Currently always returns true. + // IsTerminationAllowed - READ-ONLY; Legacy value indicating whether termination is allowed. Currently always returns true. IsTerminationAllowed *bool `json:"isTerminationAllowed,omitempty"` - // ReplicationMode - Replication mode of this replication link. + // ReplicationMode - READ-ONLY; Replication mode of this replication link. ReplicationMode *string `json:"replicationMode,omitempty"` - // PartnerServer - The name of the server hosting the partner database. + // PartnerServer - READ-ONLY; The name of the server hosting the partner database. PartnerServer *string `json:"partnerServer,omitempty"` - // PartnerDatabase - The name of the partner database. + // PartnerDatabase - READ-ONLY; The name of the partner database. PartnerDatabase *string `json:"partnerDatabase,omitempty"` - // PartnerLocation - The Azure Region of the partner database. + // PartnerLocation - READ-ONLY; The Azure Region of the partner database. PartnerLocation *string `json:"partnerLocation,omitempty"` - // Role - The role of the database in the replication link. Possible values include: 'ReplicationRolePrimary', 'ReplicationRoleSecondary', 'ReplicationRoleNonReadableSecondary', 'ReplicationRoleSource', 'ReplicationRoleCopy' + // Role - READ-ONLY; The role of the database in the replication link. Possible values include: 'ReplicationRolePrimary', 'ReplicationRoleSecondary', 'ReplicationRoleNonReadableSecondary', 'ReplicationRoleSource', 'ReplicationRoleCopy' Role ReplicationRole `json:"role,omitempty"` - // PartnerRole - The role of the partner database in the replication link. Possible values include: 'ReplicationRolePrimary', 'ReplicationRoleSecondary', 'ReplicationRoleNonReadableSecondary', 'ReplicationRoleSource', 'ReplicationRoleCopy' + // PartnerRole - READ-ONLY; The role of the partner database in the replication link. Possible values include: 'ReplicationRolePrimary', 'ReplicationRoleSecondary', 'ReplicationRoleNonReadableSecondary', 'ReplicationRoleSource', 'ReplicationRoleCopy' PartnerRole ReplicationRole `json:"partnerRole,omitempty"` - // StartTime - The start time for the replication link. + // StartTime - READ-ONLY; The start time for the replication link. StartTime *date.Time `json:"startTime,omitempty"` - // PercentComplete - The percentage of seeding complete for the replication link. + // PercentComplete - READ-ONLY; The percentage of seeding complete for the replication link. PercentComplete *int32 `json:"percentComplete,omitempty"` - // ReplicationState - The replication state for the replication link. Possible values include: 'PENDING', 'SEEDING', 'CATCHUP', 'SUSPENDED' + // ReplicationState - READ-ONLY; The replication state for the replication link. Possible values include: 'PENDING', 'SEEDING', 'CATCHUP', 'SUSPENDED' ReplicationState ReplicationState `json:"replicationState,omitempty"` } @@ -5505,7 +5337,7 @@ type ReplicationLinksFailoverAllowDataLossFuture struct { // If the operation has not completed it will return an error. func (future *ReplicationLinksFailoverAllowDataLossFuture) Result(client ReplicationLinksClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ReplicationLinksFailoverAllowDataLossFuture", "Result", future.Response(), "Polling failure") return @@ -5528,7 +5360,7 @@ type ReplicationLinksFailoverFuture struct { // If the operation has not completed it will return an error. func (future *ReplicationLinksFailoverFuture) Result(client ReplicationLinksClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ReplicationLinksFailoverFuture", "Result", future.Response(), "Polling failure") return @@ -5543,57 +5375,45 @@ func (future *ReplicationLinksFailoverFuture) Result(client ReplicationLinksClie // Resource ARM resource. type Resource struct { - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // ResourceIdentity azure Active Directory identity configuration for a resource. type ResourceIdentity struct { - // PrincipalID - The Azure Active Directory principal id. + // PrincipalID - READ-ONLY; The Azure Active Directory principal id. PrincipalID *uuid.UUID `json:"principalId,omitempty"` // Type - The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. Possible values include: 'SystemAssigned' Type IdentityType `json:"type,omitempty"` - // TenantID - The Azure Active Directory tenant id. + // TenantID - READ-ONLY; The Azure Active Directory tenant id. TenantID *uuid.UUID `json:"tenantId,omitempty"` } // RestorableDroppedDatabase a restorable dropped database type RestorableDroppedDatabase struct { autorest.Response `json:"-"` - // Location - The geo-location where the resource lives + // Location - READ-ONLY; The geo-location where the resource lives Location *string `json:"location,omitempty"` // RestorableDroppedDatabaseProperties - The properties of a restorable dropped database *RestorableDroppedDatabaseProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for RestorableDroppedDatabase. func (rdd RestorableDroppedDatabase) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if rdd.Location != nil { - objectMap["location"] = rdd.Location - } if rdd.RestorableDroppedDatabaseProperties != nil { objectMap["properties"] = rdd.RestorableDroppedDatabaseProperties } - if rdd.ID != nil { - objectMap["id"] = rdd.ID - } - if rdd.Name != nil { - objectMap["name"] = rdd.Name - } - if rdd.Type != nil { - objectMap["type"] = rdd.Type - } return json.Marshal(objectMap) } @@ -5666,21 +5486,21 @@ type RestorableDroppedDatabaseListResult struct { // RestorableDroppedDatabaseProperties the properties of a restorable dropped database type RestorableDroppedDatabaseProperties struct { - // DatabaseName - The name of the database + // DatabaseName - READ-ONLY; The name of the database DatabaseName *string `json:"databaseName,omitempty"` - // Edition - The edition of the database + // Edition - READ-ONLY; The edition of the database Edition *string `json:"edition,omitempty"` - // MaxSizeBytes - The max size in bytes of the database + // MaxSizeBytes - READ-ONLY; The max size in bytes of the database MaxSizeBytes *string `json:"maxSizeBytes,omitempty"` - // ServiceLevelObjective - The service level objective name of the database + // ServiceLevelObjective - READ-ONLY; The service level objective name of the database ServiceLevelObjective *string `json:"serviceLevelObjective,omitempty"` - // ElasticPoolName - The elastic pool name of the database + // ElasticPoolName - READ-ONLY; The elastic pool name of the database ElasticPoolName *string `json:"elasticPoolName,omitempty"` - // CreationDate - The creation date of the database (ISO8601 format) + // CreationDate - READ-ONLY; The creation date of the database (ISO8601 format) CreationDate *date.Time `json:"creationDate,omitempty"` - // DeletionDate - The deletion date of the database (ISO8601 format) + // DeletionDate - READ-ONLY; The deletion date of the database (ISO8601 format) DeletionDate *date.Time `json:"deletionDate,omitempty"` - // EarliestRestoreDate - The earliest restore date of the database (ISO8601 format) + // EarliestRestoreDate - READ-ONLY; The earliest restore date of the database (ISO8601 format) EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` } @@ -5688,11 +5508,11 @@ type RestorableDroppedDatabaseProperties struct { type RestorePoint struct { // RestorePointProperties - The properties of the restore point. *RestorePointProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -5702,15 +5522,6 @@ func (rp RestorePoint) MarshalJSON() ([]byte, error) { if rp.RestorePointProperties != nil { objectMap["properties"] = rp.RestorePointProperties } - if rp.ID != nil { - objectMap["id"] = rp.ID - } - if rp.Name != nil { - objectMap["name"] = rp.Name - } - if rp.Type != nil { - objectMap["type"] = rp.Type - } return json.Marshal(objectMap) } @@ -5774,11 +5585,11 @@ type RestorePointListResult struct { // RestorePointProperties represents the properties of a database restore point. type RestorePointProperties struct { - // RestorePointType - The restore point type of the database restore point. Possible values include: 'DISCRETE', 'CONTINUOUS' + // RestorePointType - READ-ONLY; The restore point type of the database restore point. Possible values include: 'DISCRETE', 'CONTINUOUS' RestorePointType RestorePointType `json:"restorePointType,omitempty"` - // RestorePointCreationDate - Restore point creation time (ISO8601 format). Populated when restorePointType = CONTINUOUS. Null otherwise. + // RestorePointCreationDate - READ-ONLY; Restore point creation time (ISO8601 format). Populated when restorePointType = CONTINUOUS. Null otherwise. RestorePointCreationDate *date.Time `json:"restorePointCreationDate,omitempty"` - // EarliestRestoreDate - Earliest restore time (ISO8601 format). Populated when restorePointType = DISCRETE. Null otherwise. + // EarliestRestoreDate - READ-ONLY; Earliest restore time (ISO8601 format). Populated when restorePointType = DISCRETE. Null otherwise. EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` } @@ -5787,7 +5598,7 @@ type Server struct { autorest.Response `json:"-"` // Identity - The Azure Active Directory identity of the server. Identity *ResourceIdentity `json:"identity,omitempty"` - // Kind - Kind of sql server. This is metadata used for the Azure portal experience. + // Kind - READ-ONLY; Kind of sql server. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` // ServerProperties - Resource properties. *ServerProperties `json:"properties,omitempty"` @@ -5795,11 +5606,11 @@ type Server struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -5809,9 +5620,6 @@ func (s Server) MarshalJSON() ([]byte, error) { if s.Identity != nil { objectMap["identity"] = s.Identity } - if s.Kind != nil { - objectMap["kind"] = s.Kind - } if s.ServerProperties != nil { objectMap["properties"] = s.ServerProperties } @@ -5821,15 +5629,6 @@ func (s Server) MarshalJSON() ([]byte, error) { if s.Tags != nil { objectMap["tags"] = s.Tags } - if s.ID != nil { - objectMap["id"] = s.ID - } - if s.Name != nil { - objectMap["name"] = s.Name - } - if s.Type != nil { - objectMap["type"] = s.Type - } return json.Marshal(objectMap) } @@ -5944,11 +5743,11 @@ type ServerAzureADAdministrator struct { autorest.Response `json:"-"` // ServerAdministratorProperties - The properties of the resource. *ServerAdministratorProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -5958,15 +5757,6 @@ func (saaa ServerAzureADAdministrator) MarshalJSON() ([]byte, error) { if saaa.ServerAdministratorProperties != nil { objectMap["properties"] = saaa.ServerAdministratorProperties } - if saaa.ID != nil { - objectMap["id"] = saaa.ID - } - if saaa.Name != nil { - objectMap["name"] = saaa.Name - } - if saaa.Type != nil { - objectMap["type"] = saaa.Type - } return json.Marshal(objectMap) } @@ -6031,7 +5821,7 @@ type ServerAzureADAdministratorsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServerAzureADAdministratorsCreateOrUpdateFuture) Result(client ServerAzureADAdministratorsClient) (saaa ServerAzureADAdministrator, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAzureADAdministratorsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -6060,7 +5850,7 @@ type ServerAzureADAdministratorsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ServerAzureADAdministratorsDeleteFuture) Result(client ServerAzureADAdministratorsClient) (saaa ServerAzureADAdministrator, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerAzureADAdministratorsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -6084,15 +5874,15 @@ type ServerCommunicationLink struct { autorest.Response `json:"-"` // ServerCommunicationLinkProperties - The properties of resource. *ServerCommunicationLinkProperties `json:"properties,omitempty"` - // Location - Communication link location. + // Location - READ-ONLY; Communication link location. Location *string `json:"location,omitempty"` - // Kind - Communication link kind. This property is used for Azure Portal metadata. + // Kind - READ-ONLY; Communication link kind. This property is used for Azure Portal metadata. Kind *string `json:"kind,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -6102,21 +5892,6 @@ func (scl ServerCommunicationLink) MarshalJSON() ([]byte, error) { if scl.ServerCommunicationLinkProperties != nil { objectMap["properties"] = scl.ServerCommunicationLinkProperties } - if scl.Location != nil { - objectMap["location"] = scl.Location - } - if scl.Kind != nil { - objectMap["kind"] = scl.Kind - } - if scl.ID != nil { - objectMap["id"] = scl.ID - } - if scl.Name != nil { - objectMap["name"] = scl.Name - } - if scl.Type != nil { - objectMap["type"] = scl.Type - } return json.Marshal(objectMap) } @@ -6198,7 +5973,7 @@ type ServerCommunicationLinkListResult struct { // ServerCommunicationLinkProperties the properties of a server communication link. type ServerCommunicationLinkProperties struct { - // State - The state. + // State - READ-ONLY; The state. State *string `json:"state,omitempty"` // PartnerServer - The name of the partner server. PartnerServer *string `json:"partnerServer,omitempty"` @@ -6214,7 +5989,7 @@ type ServerCommunicationLinksCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServerCommunicationLinksCreateOrUpdateFuture) Result(client ServerCommunicationLinksClient) (scl ServerCommunicationLink, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerCommunicationLinksCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -6236,41 +6011,26 @@ func (future *ServerCommunicationLinksCreateOrUpdateFuture) Result(client Server // ServerConnectionPolicy a server secure connection policy. type ServerConnectionPolicy struct { autorest.Response `json:"-"` - // Kind - Metadata used for the Azure portal experience. + // Kind - READ-ONLY; Metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` - // Location - Resource location. + // Location - READ-ONLY; Resource location. Location *string `json:"location,omitempty"` // ServerConnectionPolicyProperties - The properties of the server secure connection policy. *ServerConnectionPolicyProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for ServerConnectionPolicy. func (scp ServerConnectionPolicy) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if scp.Kind != nil { - objectMap["kind"] = scp.Kind - } - if scp.Location != nil { - objectMap["location"] = scp.Location - } if scp.ServerConnectionPolicyProperties != nil { objectMap["properties"] = scp.ServerConnectionPolicyProperties } - if scp.ID != nil { - objectMap["id"] = scp.ID - } - if scp.Name != nil { - objectMap["name"] = scp.Name - } - if scp.Type != nil { - objectMap["type"] = scp.Type - } return json.Marshal(objectMap) } @@ -6354,15 +6114,15 @@ type ServerKey struct { autorest.Response `json:"-"` // Kind - Kind of encryption protector. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` - // Location - Resource location. + // Location - READ-ONLY; Resource location. Location *string `json:"location,omitempty"` // ServerKeyProperties - Resource properties. *ServerKeyProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -6372,21 +6132,9 @@ func (sk ServerKey) MarshalJSON() ([]byte, error) { if sk.Kind != nil { objectMap["kind"] = sk.Kind } - if sk.Location != nil { - objectMap["location"] = sk.Location - } if sk.ServerKeyProperties != nil { objectMap["properties"] = sk.ServerKeyProperties } - if sk.ID != nil { - objectMap["id"] = sk.ID - } - if sk.Name != nil { - objectMap["name"] = sk.Name - } - if sk.Type != nil { - objectMap["type"] = sk.Type - } return json.Marshal(objectMap) } @@ -6462,9 +6210,9 @@ func (sk *ServerKey) UnmarshalJSON(body []byte) error { // ServerKeyListResult a list of server keys. type ServerKeyListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]ServerKey `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -6607,7 +6355,7 @@ func NewServerKeyListResultPage(getNextPage func(context.Context, ServerKeyListR // ServerKeyProperties properties for a server key execution. type ServerKeyProperties struct { - // Subregion - Subregion of the server key. + // Subregion - READ-ONLY; Subregion of the server key. Subregion *string `json:"subregion,omitempty"` // ServerKeyType - The server key type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault' ServerKeyType ServerKeyType `json:"serverKeyType,omitempty"` @@ -6629,7 +6377,7 @@ type ServerKeysCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServerKeysCreateOrUpdateFuture) Result(client ServerKeysClient) (sk ServerKey, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerKeysCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -6658,7 +6406,7 @@ type ServerKeysDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ServerKeysDeleteFuture) Result(client ServerKeysClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServerKeysDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -6674,9 +6422,9 @@ func (future *ServerKeysDeleteFuture) Result(client ServerKeysClient) (ar autore // ServerListResult a list of servers. type ServerListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]Server `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -6825,9 +6573,9 @@ type ServerProperties struct { AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` // Version - The version of the server. Version *string `json:"version,omitempty"` - // State - The state of the server. + // State - READ-ONLY; The state of the server. State *string `json:"state,omitempty"` - // FullyQualifiedDomainName - The fully qualified domain name of the server. + // FullyQualifiedDomainName - READ-ONLY; The fully qualified domain name of the server. FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"` } @@ -6841,7 +6589,7 @@ type ServersCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServersCreateOrUpdateFuture) Result(client ServersClient) (s Server, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -6870,7 +6618,7 @@ type ServersDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ServersDeleteFuture) Result(client ServersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -6893,7 +6641,7 @@ type ServersUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServersUpdateFuture) Result(client ServersClient) (s Server, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ServersUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -6967,19 +6715,19 @@ func (su *ServerUpdate) UnmarshalJSON(body []byte) error { // ServerUsage represents server metrics. type ServerUsage struct { - // Name - Name of the server usage metric. + // Name - READ-ONLY; Name of the server usage metric. Name *string `json:"name,omitempty"` - // ResourceName - The name of the resource. + // ResourceName - READ-ONLY; The name of the resource. ResourceName *string `json:"resourceName,omitempty"` - // DisplayName - The metric display name. + // DisplayName - READ-ONLY; The metric display name. DisplayName *string `json:"displayName,omitempty"` - // CurrentValue - The current value of the metric. + // CurrentValue - READ-ONLY; The current value of the metric. CurrentValue *float64 `json:"currentValue,omitempty"` - // Limit - The current limit of the metric. + // Limit - READ-ONLY; The current limit of the metric. Limit *float64 `json:"limit,omitempty"` - // Unit - The units of the metric. + // Unit - READ-ONLY; The units of the metric. Unit *string `json:"unit,omitempty"` - // NextResetTime - The next reset time for the metric (ISO8601 format). + // NextResetTime - READ-ONLY; The next reset time for the metric (ISO8601 format). NextResetTime *date.Time `json:"nextResetTime,omitempty"` } @@ -6992,13 +6740,13 @@ type ServerUsageListResult struct { // ServerVersionCapability the server capability type ServerVersionCapability struct { - // Name - The server version name. + // Name - READ-ONLY; The server version name. Name *string `json:"name,omitempty"` - // SupportedEditions - The list of supported database editions. + // SupportedEditions - READ-ONLY; The list of supported database editions. SupportedEditions *[]EditionCapability `json:"supportedEditions,omitempty"` - // SupportedElasticPoolEditions - The list of supported elastic pool editions. + // SupportedElasticPoolEditions - READ-ONLY; The list of supported elastic pool editions. SupportedElasticPoolEditions *[]ElasticPoolEditionCapability `json:"supportedElasticPoolEditions,omitempty"` - // Status - The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -7006,17 +6754,17 @@ type ServerVersionCapability struct { // ServiceLevelObjectiveCapability the service objectives capability. type ServiceLevelObjectiveCapability struct { - // ID - The unique ID of the service objective. + // ID - READ-ONLY; The unique ID of the service objective. ID *uuid.UUID `json:"id,omitempty"` - // Name - The service objective name. + // Name - READ-ONLY; The service objective name. Name *string `json:"name,omitempty"` - // SupportedMaxSizes - The list of supported maximum database sizes for this service objective. + // SupportedMaxSizes - READ-ONLY; The list of supported maximum database sizes for this service objective. SupportedMaxSizes *[]MaxSizeCapability `json:"supportedMaxSizes,omitempty"` - // PerformanceLevel - The performance level of the service objective capability. + // PerformanceLevel - READ-ONLY; The performance level of the service objective capability. PerformanceLevel *PerformanceLevelCapability `json:"performanceLevel,omitempty"` - // IncludedMaxSize - The included (free) max size for this service level objective. + // IncludedMaxSize - READ-ONLY; The included (free) max size for this service level objective. IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"` - // Status - The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -7027,11 +6775,11 @@ type ServiceObjective struct { autorest.Response `json:"-"` // ServiceObjectiveProperties - Represents the properties of the resource. *ServiceObjectiveProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -7041,15 +6789,6 @@ func (so ServiceObjective) MarshalJSON() ([]byte, error) { if so.ServiceObjectiveProperties != nil { objectMap["properties"] = so.ServiceObjectiveProperties } - if so.ID != nil { - objectMap["id"] = so.ID - } - if so.Name != nil { - objectMap["name"] = so.Name - } - if so.Type != nil { - objectMap["type"] = so.Type - } return json.Marshal(objectMap) } @@ -7113,46 +6852,34 @@ type ServiceObjectiveListResult struct { // ServiceObjectiveProperties represents the properties of a database service objective. type ServiceObjectiveProperties struct { - // ServiceObjectiveName - The name for the service objective. + // ServiceObjectiveName - READ-ONLY; The name for the service objective. ServiceObjectiveName *string `json:"serviceObjectiveName,omitempty"` - // IsDefault - Gets whether the service level objective is the default service objective. + // IsDefault - READ-ONLY; Gets whether the service level objective is the default service objective. IsDefault *bool `json:"isDefault,omitempty"` - // IsSystem - Gets whether the service level objective is a system service objective. + // IsSystem - READ-ONLY; Gets whether the service level objective is a system service objective. IsSystem *bool `json:"isSystem,omitempty"` - // Description - The description for the service level objective. + // Description - READ-ONLY; The description for the service level objective. Description *string `json:"description,omitempty"` - // Enabled - Gets whether the service level objective is enabled. + // Enabled - READ-ONLY; Gets whether the service level objective is enabled. Enabled *bool `json:"enabled,omitempty"` } // ServiceTierAdvisor represents a Service Tier Advisor. type ServiceTierAdvisor struct { autorest.Response `json:"-"` - // ServiceTierAdvisorProperties - The properties representing the resource. + // ServiceTierAdvisorProperties - READ-ONLY; The properties representing the resource. *ServiceTierAdvisorProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for ServiceTierAdvisor. func (sta ServiceTierAdvisor) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if sta.ServiceTierAdvisorProperties != nil { - objectMap["properties"] = sta.ServiceTierAdvisorProperties - } - if sta.ID != nil { - objectMap["id"] = sta.ID - } - if sta.Name != nil { - objectMap["name"] = sta.Name - } - if sta.Type != nil { - objectMap["type"] = sta.Type - } return json.Marshal(objectMap) } @@ -7216,43 +6943,43 @@ type ServiceTierAdvisorListResult struct { // ServiceTierAdvisorProperties represents the properties of a Service Tier Advisor. type ServiceTierAdvisorProperties struct { - // ObservationPeriodStart - The observation period start (ISO8601 format). + // ObservationPeriodStart - READ-ONLY; The observation period start (ISO8601 format). ObservationPeriodStart *date.Time `json:"observationPeriodStart,omitempty"` - // ObservationPeriodEnd - The observation period start (ISO8601 format). + // ObservationPeriodEnd - READ-ONLY; The observation period start (ISO8601 format). ObservationPeriodEnd *date.Time `json:"observationPeriodEnd,omitempty"` - // ActiveTimeRatio - The activeTimeRatio for service tier advisor. + // ActiveTimeRatio - READ-ONLY; The activeTimeRatio for service tier advisor. ActiveTimeRatio *float64 `json:"activeTimeRatio,omitempty"` - // MinDtu - Gets or sets minDtu for service tier advisor. + // MinDtu - READ-ONLY; Gets or sets minDtu for service tier advisor. MinDtu *float64 `json:"minDtu,omitempty"` - // AvgDtu - Gets or sets avgDtu for service tier advisor. + // AvgDtu - READ-ONLY; Gets or sets avgDtu for service tier advisor. AvgDtu *float64 `json:"avgDtu,omitempty"` - // MaxDtu - Gets or sets maxDtu for service tier advisor. + // MaxDtu - READ-ONLY; Gets or sets maxDtu for service tier advisor. MaxDtu *float64 `json:"maxDtu,omitempty"` - // MaxSizeInGB - Gets or sets maxSizeInGB for service tier advisor. + // MaxSizeInGB - READ-ONLY; Gets or sets maxSizeInGB for service tier advisor. MaxSizeInGB *float64 `json:"maxSizeInGB,omitempty"` - // ServiceLevelObjectiveUsageMetrics - Gets or sets serviceLevelObjectiveUsageMetrics for the service tier advisor. + // ServiceLevelObjectiveUsageMetrics - READ-ONLY; Gets or sets serviceLevelObjectiveUsageMetrics for the service tier advisor. ServiceLevelObjectiveUsageMetrics *[]SloUsageMetric `json:"serviceLevelObjectiveUsageMetrics,omitempty"` - // CurrentServiceLevelObjective - Gets or sets currentServiceLevelObjective for service tier advisor. + // CurrentServiceLevelObjective - READ-ONLY; Gets or sets currentServiceLevelObjective for service tier advisor. CurrentServiceLevelObjective *string `json:"currentServiceLevelObjective,omitempty"` - // CurrentServiceLevelObjectiveID - Gets or sets currentServiceLevelObjectiveId for service tier advisor. + // CurrentServiceLevelObjectiveID - READ-ONLY; Gets or sets currentServiceLevelObjectiveId for service tier advisor. CurrentServiceLevelObjectiveID *uuid.UUID `json:"currentServiceLevelObjectiveId,omitempty"` - // UsageBasedRecommendationServiceLevelObjective - Gets or sets usageBasedRecommendationServiceLevelObjective for service tier advisor. + // UsageBasedRecommendationServiceLevelObjective - READ-ONLY; Gets or sets usageBasedRecommendationServiceLevelObjective for service tier advisor. UsageBasedRecommendationServiceLevelObjective *string `json:"usageBasedRecommendationServiceLevelObjective,omitempty"` - // UsageBasedRecommendationServiceLevelObjectiveID - Gets or sets usageBasedRecommendationServiceLevelObjectiveId for service tier advisor. + // UsageBasedRecommendationServiceLevelObjectiveID - READ-ONLY; Gets or sets usageBasedRecommendationServiceLevelObjectiveId for service tier advisor. UsageBasedRecommendationServiceLevelObjectiveID *uuid.UUID `json:"usageBasedRecommendationServiceLevelObjectiveId,omitempty"` - // DatabaseSizeBasedRecommendationServiceLevelObjective - Gets or sets databaseSizeBasedRecommendationServiceLevelObjective for service tier advisor. + // DatabaseSizeBasedRecommendationServiceLevelObjective - READ-ONLY; Gets or sets databaseSizeBasedRecommendationServiceLevelObjective for service tier advisor. DatabaseSizeBasedRecommendationServiceLevelObjective *string `json:"databaseSizeBasedRecommendationServiceLevelObjective,omitempty"` - // DatabaseSizeBasedRecommendationServiceLevelObjectiveID - Gets or sets databaseSizeBasedRecommendationServiceLevelObjectiveId for service tier advisor. + // DatabaseSizeBasedRecommendationServiceLevelObjectiveID - READ-ONLY; Gets or sets databaseSizeBasedRecommendationServiceLevelObjectiveId for service tier advisor. DatabaseSizeBasedRecommendationServiceLevelObjectiveID *uuid.UUID `json:"databaseSizeBasedRecommendationServiceLevelObjectiveId,omitempty"` - // DisasterPlanBasedRecommendationServiceLevelObjective - Gets or sets disasterPlanBasedRecommendationServiceLevelObjective for service tier advisor. + // DisasterPlanBasedRecommendationServiceLevelObjective - READ-ONLY; Gets or sets disasterPlanBasedRecommendationServiceLevelObjective for service tier advisor. DisasterPlanBasedRecommendationServiceLevelObjective *string `json:"disasterPlanBasedRecommendationServiceLevelObjective,omitempty"` - // DisasterPlanBasedRecommendationServiceLevelObjectiveID - Gets or sets disasterPlanBasedRecommendationServiceLevelObjectiveId for service tier advisor. + // DisasterPlanBasedRecommendationServiceLevelObjectiveID - READ-ONLY; Gets or sets disasterPlanBasedRecommendationServiceLevelObjectiveId for service tier advisor. DisasterPlanBasedRecommendationServiceLevelObjectiveID *uuid.UUID `json:"disasterPlanBasedRecommendationServiceLevelObjectiveId,omitempty"` - // OverallRecommendationServiceLevelObjective - Gets or sets overallRecommendationServiceLevelObjective for service tier advisor. + // OverallRecommendationServiceLevelObjective - READ-ONLY; Gets or sets overallRecommendationServiceLevelObjective for service tier advisor. OverallRecommendationServiceLevelObjective *string `json:"overallRecommendationServiceLevelObjective,omitempty"` - // OverallRecommendationServiceLevelObjectiveID - Gets or sets overallRecommendationServiceLevelObjectiveId for service tier advisor. + // OverallRecommendationServiceLevelObjectiveID - READ-ONLY; Gets or sets overallRecommendationServiceLevelObjectiveId for service tier advisor. OverallRecommendationServiceLevelObjectiveID *uuid.UUID `json:"overallRecommendationServiceLevelObjectiveId,omitempty"` - // Confidence - Gets or sets confidence for service tier advisor. + // Confidence - READ-ONLY; Gets or sets confidence for service tier advisor. Confidence *float64 `json:"confidence,omitempty"` } @@ -7272,11 +6999,11 @@ type Sku struct { // SloUsageMetric a Slo Usage Metric. type SloUsageMetric struct { - // ServiceLevelObjective - The serviceLevelObjective for SLO usage metric. Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool' + // ServiceLevelObjective - READ-ONLY; The serviceLevelObjective for SLO usage metric. Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool' ServiceLevelObjective ServiceObjectiveName `json:"serviceLevelObjective,omitempty"` - // ServiceLevelObjectiveID - The serviceLevelObjectiveId for SLO usage metric. + // ServiceLevelObjectiveID - READ-ONLY; The serviceLevelObjectiveId for SLO usage metric. ServiceLevelObjectiveID *uuid.UUID `json:"serviceLevelObjectiveId,omitempty"` - // InRangeTimeRatio - Gets or sets inRangeTimeRatio for SLO usage metric. + // InRangeTimeRatio - READ-ONLY; Gets or sets inRangeTimeRatio for SLO usage metric. InRangeTimeRatio *float64 `json:"inRangeTimeRatio,omitempty"` } @@ -7285,11 +7012,11 @@ type SubscriptionUsage struct { autorest.Response `json:"-"` // SubscriptionUsageProperties - Resource properties. *SubscriptionUsageProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -7299,15 +7026,6 @@ func (su SubscriptionUsage) MarshalJSON() ([]byte, error) { if su.SubscriptionUsageProperties != nil { objectMap["properties"] = su.SubscriptionUsageProperties } - if su.ID != nil { - objectMap["id"] = su.ID - } - if su.Name != nil { - objectMap["name"] = su.Name - } - if su.Type != nil { - objectMap["type"] = su.Type - } return json.Marshal(objectMap) } @@ -7365,9 +7083,9 @@ func (su *SubscriptionUsage) UnmarshalJSON(body []byte) error { // SubscriptionUsageListResult a list of subscription usage metrics in a location. type SubscriptionUsageListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]SubscriptionUsage `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -7510,13 +7228,13 @@ func NewSubscriptionUsageListResultPage(getNextPage func(context.Context, Subscr // SubscriptionUsageProperties properties of a subscription usage. type SubscriptionUsageProperties struct { - // DisplayName - User-readable name of the metric. + // DisplayName - READ-ONLY; User-readable name of the metric. DisplayName *string `json:"displayName,omitempty"` - // CurrentValue - Current value of the metric. + // CurrentValue - READ-ONLY; Current value of the metric. CurrentValue *float64 `json:"currentValue,omitempty"` - // Limit - Boundary value of the metric. + // Limit - READ-ONLY; Boundary value of the metric. Limit *float64 `json:"limit,omitempty"` - // Unit - Unit of the metric. + // Unit - READ-ONLY; Unit of the metric. Unit *string `json:"unit,omitempty"` } @@ -7525,11 +7243,11 @@ type SyncAgent struct { autorest.Response `json:"-"` // SyncAgentProperties - Resource properties. *SyncAgentProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -7539,15 +7257,6 @@ func (sa SyncAgent) MarshalJSON() ([]byte, error) { if sa.SyncAgentProperties != nil { objectMap["properties"] = sa.SyncAgentProperties } - if sa.ID != nil { - objectMap["id"] = sa.ID - } - if sa.Name != nil { - objectMap["name"] = sa.Name - } - if sa.Type != nil { - objectMap["type"] = sa.Type - } return json.Marshal(objectMap) } @@ -7605,7 +7314,7 @@ func (sa *SyncAgent) UnmarshalJSON(body []byte) error { // SyncAgentKeyProperties properties of an Azure SQL Database sync agent key. type SyncAgentKeyProperties struct { autorest.Response `json:"-"` - // SyncAgentKey - Key of sync agent. + // SyncAgentKey - READ-ONLY; Key of sync agent. SyncAgentKey *string `json:"syncAgentKey,omitempty"` } @@ -7613,11 +7322,11 @@ type SyncAgentKeyProperties struct { type SyncAgentLinkedDatabase struct { // SyncAgentLinkedDatabaseProperties - Resource properties. *SyncAgentLinkedDatabaseProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -7627,15 +7336,6 @@ func (sald SyncAgentLinkedDatabase) MarshalJSON() ([]byte, error) { if sald.SyncAgentLinkedDatabaseProperties != nil { objectMap["properties"] = sald.SyncAgentLinkedDatabaseProperties } - if sald.ID != nil { - objectMap["id"] = sald.ID - } - if sald.Name != nil { - objectMap["name"] = sald.Name - } - if sald.Type != nil { - objectMap["type"] = sald.Type - } return json.Marshal(objectMap) } @@ -7693,9 +7393,9 @@ func (sald *SyncAgentLinkedDatabase) UnmarshalJSON(body []byte) error { // SyncAgentLinkedDatabaseListResult a list of sync agent linked databases. type SyncAgentLinkedDatabaseListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]SyncAgentLinkedDatabase `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -7839,26 +7539,26 @@ func NewSyncAgentLinkedDatabaseListResultPage(getNextPage func(context.Context, // SyncAgentLinkedDatabaseProperties properties of an Azure SQL Database sync agent linked database. type SyncAgentLinkedDatabaseProperties struct { - // DatabaseType - Type of the sync agent linked database. Possible values include: 'AzureSQLDatabase', 'SQLServerDatabase' + // DatabaseType - READ-ONLY; Type of the sync agent linked database. Possible values include: 'AzureSQLDatabase', 'SQLServerDatabase' DatabaseType SyncMemberDbType `json:"databaseType,omitempty"` - // DatabaseID - Id of the sync agent linked database. + // DatabaseID - READ-ONLY; Id of the sync agent linked database. DatabaseID *string `json:"databaseId,omitempty"` - // Description - Description of the sync agent linked database. + // Description - READ-ONLY; Description of the sync agent linked database. Description *string `json:"description,omitempty"` - // ServerName - Server name of the sync agent linked database. + // ServerName - READ-ONLY; Server name of the sync agent linked database. ServerName *string `json:"serverName,omitempty"` - // DatabaseName - Database name of the sync agent linked database. + // DatabaseName - READ-ONLY; Database name of the sync agent linked database. DatabaseName *string `json:"databaseName,omitempty"` - // UserName - User name of the sync agent linked database. + // UserName - READ-ONLY; User name of the sync agent linked database. UserName *string `json:"userName,omitempty"` } // SyncAgentListResult a list of sync agents. type SyncAgentListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]SyncAgent `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -8001,19 +7701,19 @@ func NewSyncAgentListResultPage(getNextPage func(context.Context, SyncAgentListR // SyncAgentProperties properties of an Azure SQL Database sync agent. type SyncAgentProperties struct { - // Name - Name of the sync agent. + // Name - READ-ONLY; Name of the sync agent. Name *string `json:"name,omitempty"` // SyncDatabaseID - ARM resource id of the sync database in the sync agent. SyncDatabaseID *string `json:"syncDatabaseId,omitempty"` - // LastAliveTime - Last alive time of the sync agent. + // LastAliveTime - READ-ONLY; Last alive time of the sync agent. LastAliveTime *date.Time `json:"lastAliveTime,omitempty"` - // State - State of the sync agent. Possible values include: 'Online', 'Offline', 'NeverConnected' + // State - READ-ONLY; State of the sync agent. Possible values include: 'Online', 'Offline', 'NeverConnected' State SyncAgentState `json:"state,omitempty"` - // IsUpToDate - If the sync agent version is up to date. + // IsUpToDate - READ-ONLY; If the sync agent version is up to date. IsUpToDate *bool `json:"isUpToDate,omitempty"` - // ExpiryTime - Expiration time of the sync agent version. + // ExpiryTime - READ-ONLY; Expiration time of the sync agent version. ExpiryTime *date.Time `json:"expiryTime,omitempty"` - // Version - Version of the sync agent. + // Version - READ-ONLY; Version of the sync agent. Version *string `json:"version,omitempty"` } @@ -8027,7 +7727,7 @@ type SyncAgentsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *SyncAgentsCreateOrUpdateFuture) Result(client SyncAgentsClient) (sa SyncAgent, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -8056,7 +7756,7 @@ type SyncAgentsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *SyncAgentsDeleteFuture) Result(client SyncAgentsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncAgentsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -8072,9 +7772,9 @@ func (future *SyncAgentsDeleteFuture) Result(client SyncAgentsClient) (ar autore // SyncDatabaseIDListResult a list of sync database ID properties. type SyncDatabaseIDListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]SyncDatabaseIDProperties `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -8218,24 +7918,24 @@ func NewSyncDatabaseIDListResultPage(getNextPage func(context.Context, SyncDatab // SyncDatabaseIDProperties properties of the sync database id. type SyncDatabaseIDProperties struct { - // ID - ARM resource id of sync database. + // ID - READ-ONLY; ARM resource id of sync database. ID *string `json:"id,omitempty"` } // SyncFullSchemaProperties properties of the database full schema. type SyncFullSchemaProperties struct { - // Tables - List of tables in the database full schema. + // Tables - READ-ONLY; List of tables in the database full schema. Tables *[]SyncFullSchemaTable `json:"tables,omitempty"` - // LastUpdateTime - Last update time of the database schema. + // LastUpdateTime - READ-ONLY; Last update time of the database schema. LastUpdateTime *date.Time `json:"lastUpdateTime,omitempty"` } // SyncFullSchemaPropertiesListResult a list of sync schema properties. type SyncFullSchemaPropertiesListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]SyncFullSchemaProperties `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -8379,33 +8079,33 @@ func NewSyncFullSchemaPropertiesListResultPage(getNextPage func(context.Context, // SyncFullSchemaTable properties of the table in the database full schema. type SyncFullSchemaTable struct { - // Columns - List of columns in the table of database full schema. + // Columns - READ-ONLY; List of columns in the table of database full schema. Columns *[]SyncFullSchemaTableColumn `json:"columns,omitempty"` - // ErrorID - Error id of the table. + // ErrorID - READ-ONLY; Error id of the table. ErrorID *string `json:"errorId,omitempty"` - // HasError - If there is error in the table. + // HasError - READ-ONLY; If there is error in the table. HasError *bool `json:"hasError,omitempty"` - // Name - Name of the table. + // Name - READ-ONLY; Name of the table. Name *string `json:"name,omitempty"` - // QuotedName - Quoted name of the table. + // QuotedName - READ-ONLY; Quoted name of the table. QuotedName *string `json:"quotedName,omitempty"` } // SyncFullSchemaTableColumn properties of the column in the table of database full schema. type SyncFullSchemaTableColumn struct { - // DataSize - Data size of the column. + // DataSize - READ-ONLY; Data size of the column. DataSize *string `json:"dataSize,omitempty"` - // DataType - Data type of the column. + // DataType - READ-ONLY; Data type of the column. DataType *string `json:"dataType,omitempty"` - // ErrorID - Error id of the column. + // ErrorID - READ-ONLY; Error id of the column. ErrorID *string `json:"errorId,omitempty"` - // HasError - If there is error in the table. + // HasError - READ-ONLY; If there is error in the table. HasError *bool `json:"hasError,omitempty"` - // IsPrimaryKey - If it is the primary key of the table. + // IsPrimaryKey - READ-ONLY; If it is the primary key of the table. IsPrimaryKey *bool `json:"isPrimaryKey,omitempty"` - // Name - Name of the column. + // Name - READ-ONLY; Name of the column. Name *string `json:"name,omitempty"` - // QuotedName - Quoted name of the column. + // QuotedName - READ-ONLY; Quoted name of the column. QuotedName *string `json:"quotedName,omitempty"` } @@ -8414,11 +8114,11 @@ type SyncGroup struct { autorest.Response `json:"-"` // SyncGroupProperties - Resource properties. *SyncGroupProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -8428,15 +8128,6 @@ func (sg SyncGroup) MarshalJSON() ([]byte, error) { if sg.SyncGroupProperties != nil { objectMap["properties"] = sg.SyncGroupProperties } - if sg.ID != nil { - objectMap["id"] = sg.ID - } - if sg.Name != nil { - objectMap["name"] = sg.Name - } - if sg.Type != nil { - objectMap["type"] = sg.Type - } return json.Marshal(objectMap) } @@ -8494,9 +8185,9 @@ func (sg *SyncGroup) UnmarshalJSON(body []byte) error { // SyncGroupListResult a list of sync groups. type SyncGroupListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]SyncGroup `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -8640,9 +8331,9 @@ func NewSyncGroupListResultPage(getNextPage func(context.Context, SyncGroupListR // SyncGroupLogListResult a list of sync group log properties. type SyncGroupLogListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]SyncGroupLogProperties `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -8785,17 +8476,17 @@ func NewSyncGroupLogListResultPage(getNextPage func(context.Context, SyncGroupLo // SyncGroupLogProperties properties of an Azure SQL Database sync group log. type SyncGroupLogProperties struct { - // Timestamp - Timestamp of the sync group log. + // Timestamp - READ-ONLY; Timestamp of the sync group log. Timestamp *date.Time `json:"timestamp,omitempty"` - // Type - Type of the sync group log. Possible values include: 'SyncGroupLogTypeAll', 'SyncGroupLogTypeError', 'SyncGroupLogTypeWarning', 'SyncGroupLogTypeSuccess' + // Type - READ-ONLY; Type of the sync group log. Possible values include: 'SyncGroupLogTypeAll', 'SyncGroupLogTypeError', 'SyncGroupLogTypeWarning', 'SyncGroupLogTypeSuccess' Type SyncGroupLogType `json:"type,omitempty"` - // Source - Source of the sync group log. + // Source - READ-ONLY; Source of the sync group log. Source *string `json:"source,omitempty"` - // Details - Details of the sync group log. + // Details - READ-ONLY; Details of the sync group log. Details *string `json:"details,omitempty"` - // TracingID - TracingId of the sync group log. + // TracingID - READ-ONLY; TracingId of the sync group log. TracingID *uuid.UUID `json:"tracingId,omitempty"` - // OperationStatus - OperationStatus of the sync group log. + // OperationStatus - READ-ONLY; OperationStatus of the sync group log. OperationStatus *string `json:"operationStatus,omitempty"` } @@ -8803,7 +8494,7 @@ type SyncGroupLogProperties struct { type SyncGroupProperties struct { // Interval - Sync interval of the sync group. Interval *int32 `json:"interval,omitempty"` - // LastSyncTime - Last sync time of the sync group. + // LastSyncTime - READ-ONLY; Last sync time of the sync group. LastSyncTime *date.Time `json:"lastSyncTime,omitempty"` // ConflictResolutionPolicy - Conflict resolution policy of the sync group. Possible values include: 'HubWin', 'MemberWin' ConflictResolutionPolicy SyncConflictResolutionPolicy `json:"conflictResolutionPolicy,omitempty"` @@ -8813,7 +8504,7 @@ type SyncGroupProperties struct { HubDatabaseUserName *string `json:"hubDatabaseUserName,omitempty"` // HubDatabasePassword - Password for the sync group hub database credential. HubDatabasePassword *string `json:"hubDatabasePassword,omitempty"` - // SyncState - Sync state of the sync group. Possible values include: 'NotReady', 'Error', 'Warning', 'Progressing', 'Good' + // SyncState - READ-ONLY; Sync state of the sync group. Possible values include: 'NotReady', 'Error', 'Warning', 'Progressing', 'Good' SyncState SyncGroupState `json:"syncState,omitempty"` // Schema - Sync schema of the sync group. Schema *SyncGroupSchema `json:"schema,omitempty"` @@ -8855,7 +8546,7 @@ type SyncGroupsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *SyncGroupsCreateOrUpdateFuture) Result(client SyncGroupsClient) (sg SyncGroup, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -8884,7 +8575,7 @@ type SyncGroupsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *SyncGroupsDeleteFuture) Result(client SyncGroupsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -8907,7 +8598,7 @@ type SyncGroupsRefreshHubSchemaFuture struct { // If the operation has not completed it will return an error. func (future *SyncGroupsRefreshHubSchemaFuture) Result(client SyncGroupsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsRefreshHubSchemaFuture", "Result", future.Response(), "Polling failure") return @@ -8930,7 +8621,7 @@ type SyncGroupsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *SyncGroupsUpdateFuture) Result(client SyncGroupsClient) (sg SyncGroup, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncGroupsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -8954,11 +8645,11 @@ type SyncMember struct { autorest.Response `json:"-"` // SyncMemberProperties - Resource properties. *SyncMemberProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -8968,15 +8659,6 @@ func (sm SyncMember) MarshalJSON() ([]byte, error) { if sm.SyncMemberProperties != nil { objectMap["properties"] = sm.SyncMemberProperties } - if sm.ID != nil { - objectMap["id"] = sm.ID - } - if sm.Name != nil { - objectMap["name"] = sm.Name - } - if sm.Type != nil { - objectMap["type"] = sm.Type - } return json.Marshal(objectMap) } @@ -9034,9 +8716,9 @@ func (sm *SyncMember) UnmarshalJSON(body []byte) error { // SyncMemberListResult a list of Azure SQL Database sync members. type SyncMemberListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]SyncMember `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -9195,7 +8877,7 @@ type SyncMemberProperties struct { Password *string `json:"password,omitempty"` // SyncDirection - Sync direction of the sync member. Possible values include: 'Bidirectional', 'OneWayMemberToHub', 'OneWayHubToMember' SyncDirection SyncDirection `json:"syncDirection,omitempty"` - // SyncState - Sync state of the sync member. Possible values include: 'SyncInProgress', 'SyncSucceeded', 'SyncFailed', 'DisabledTombstoneCleanup', 'DisabledBackupRestore', 'SyncSucceededWithWarnings', 'SyncCancelling', 'SyncCancelled', 'UnProvisioned', 'Provisioning', 'Provisioned', 'ProvisionFailed', 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' + // SyncState - READ-ONLY; Sync state of the sync member. Possible values include: 'SyncInProgress', 'SyncSucceeded', 'SyncFailed', 'DisabledTombstoneCleanup', 'DisabledBackupRestore', 'SyncSucceededWithWarnings', 'SyncCancelling', 'SyncCancelled', 'UnProvisioned', 'Provisioning', 'Provisioned', 'ProvisionFailed', 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' SyncState SyncMemberState `json:"syncState,omitempty"` } @@ -9209,7 +8891,7 @@ type SyncMembersCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *SyncMembersCreateOrUpdateFuture) Result(client SyncMembersClient) (sm SyncMember, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -9238,7 +8920,7 @@ type SyncMembersDeleteFuture struct { // If the operation has not completed it will return an error. func (future *SyncMembersDeleteFuture) Result(client SyncMembersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -9261,7 +8943,7 @@ type SyncMembersRefreshMemberSchemaFuture struct { // If the operation has not completed it will return an error. func (future *SyncMembersRefreshMemberSchemaFuture) Result(client SyncMembersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersRefreshMemberSchemaFuture", "Result", future.Response(), "Polling failure") return @@ -9284,7 +8966,7 @@ type SyncMembersUpdateFuture struct { // If the operation has not completed it will return an error. func (future *SyncMembersUpdateFuture) Result(client SyncMembersClient) (sm SyncMember, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.SyncMembersUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -9309,11 +8991,11 @@ type TrackedResource struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -9326,51 +9008,30 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Tags != nil { objectMap["tags"] = tr.Tags } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } // TransparentDataEncryption represents a database transparent data encryption configuration. type TransparentDataEncryption struct { autorest.Response `json:"-"` - // Location - Resource location. + // Location - READ-ONLY; Resource location. Location *string `json:"location,omitempty"` // TransparentDataEncryptionProperties - Represents the properties of the resource. *TransparentDataEncryptionProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for TransparentDataEncryption. func (tde TransparentDataEncryption) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if tde.Location != nil { - objectMap["location"] = tde.Location - } if tde.TransparentDataEncryptionProperties != nil { objectMap["properties"] = tde.TransparentDataEncryptionProperties } - if tde.ID != nil { - objectMap["id"] = tde.ID - } - if tde.Name != nil { - objectMap["name"] = tde.Name - } - if tde.Type != nil { - objectMap["type"] = tde.Type - } return json.Marshal(objectMap) } @@ -9436,36 +9097,24 @@ func (tde *TransparentDataEncryption) UnmarshalJSON(body []byte) error { // TransparentDataEncryptionActivity represents a database transparent data encryption Scan. type TransparentDataEncryptionActivity struct { - // Location - Resource location. + // Location - READ-ONLY; Resource location. Location *string `json:"location,omitempty"` // TransparentDataEncryptionActivityProperties - Represents the properties of the resource. *TransparentDataEncryptionActivityProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for TransparentDataEncryptionActivity. func (tdea TransparentDataEncryptionActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if tdea.Location != nil { - objectMap["location"] = tdea.Location - } if tdea.TransparentDataEncryptionActivityProperties != nil { objectMap["properties"] = tdea.TransparentDataEncryptionActivityProperties } - if tdea.ID != nil { - objectMap["id"] = tdea.ID - } - if tdea.Name != nil { - objectMap["name"] = tdea.Name - } - if tdea.Type != nil { - objectMap["type"] = tdea.Type - } return json.Marshal(objectMap) } @@ -9540,9 +9189,9 @@ type TransparentDataEncryptionActivityListResult struct { // TransparentDataEncryptionActivityProperties represents the properties of a database transparent data // encryption Scan. type TransparentDataEncryptionActivityProperties struct { - // Status - The status of the database. Possible values include: 'Encrypting', 'Decrypting' + // Status - READ-ONLY; The status of the database. Possible values include: 'Encrypting', 'Decrypting' Status TransparentDataEncryptionActivityStatus `json:"status,omitempty"` - // PercentComplete - The percent complete of the transparent data encryption scan for a database. + // PercentComplete - READ-ONLY; The percent complete of the transparent data encryption scan for a database. PercentComplete *float64 `json:"percentComplete,omitempty"` } @@ -9561,11 +9210,11 @@ type VirtualCluster struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -9581,15 +9230,6 @@ func (vc VirtualCluster) MarshalJSON() ([]byte, error) { if vc.Tags != nil { objectMap["tags"] = vc.Tags } - if vc.ID != nil { - objectMap["id"] = vc.ID - } - if vc.Name != nil { - objectMap["name"] = vc.Name - } - if vc.Type != nil { - objectMap["type"] = vc.Type - } return json.Marshal(objectMap) } @@ -9665,9 +9305,9 @@ func (vc *VirtualCluster) UnmarshalJSON(body []byte) error { // VirtualClusterListResult a list of virtual clusters. type VirtualClusterListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]VirtualCluster `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -9810,11 +9450,11 @@ func NewVirtualClusterListResultPage(getNextPage func(context.Context, VirtualCl // VirtualClusterProperties the properties of a virtual cluster. type VirtualClusterProperties struct { - // SubnetID - Subnet resource ID for the virtual cluster. + // SubnetID - READ-ONLY; Subnet resource ID for the virtual cluster. SubnetID *string `json:"subnetId,omitempty"` // Family - If the service has different generations of hardware, for the same SKU, then that can be captured here. Family *string `json:"family,omitempty"` - // ChildResources - List of resources in this virtual cluster. + // ChildResources - READ-ONLY; List of resources in this virtual cluster. ChildResources *[]string `json:"childResources,omitempty"` } @@ -9828,7 +9468,7 @@ type VirtualClustersDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualClustersDeleteFuture) Result(client VirtualClustersClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualClustersDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -9851,7 +9491,7 @@ type VirtualClustersUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualClustersUpdateFuture) Result(client VirtualClustersClient) (vc VirtualCluster, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualClustersUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -9928,11 +9568,11 @@ type VirtualNetworkRule struct { autorest.Response `json:"-"` // VirtualNetworkRuleProperties - Resource properties. *VirtualNetworkRuleProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -9942,15 +9582,6 @@ func (vnr VirtualNetworkRule) MarshalJSON() ([]byte, error) { if vnr.VirtualNetworkRuleProperties != nil { objectMap["properties"] = vnr.VirtualNetworkRuleProperties } - if vnr.ID != nil { - objectMap["id"] = vnr.ID - } - if vnr.Name != nil { - objectMap["name"] = vnr.Name - } - if vnr.Type != nil { - objectMap["type"] = vnr.Type - } return json.Marshal(objectMap) } @@ -10008,9 +9639,9 @@ func (vnr *VirtualNetworkRule) UnmarshalJSON(body []byte) error { // VirtualNetworkRuleListResult a list of virtual network rules. type VirtualNetworkRuleListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]VirtualNetworkRule `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -10157,7 +9788,7 @@ type VirtualNetworkRuleProperties struct { VirtualNetworkSubnetID *string `json:"virtualNetworkSubnetId,omitempty"` // IgnoreMissingVnetServiceEndpoint - Create firewall rule before the virtual network has vnet service endpoint enabled. IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty"` - // State - Virtual Network Rule State. Possible values include: 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' + // State - READ-ONLY; Virtual Network Rule State. Possible values include: 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' State VirtualNetworkRuleState `json:"state,omitempty"` } @@ -10171,7 +9802,7 @@ type VirtualNetworkRulesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkRulesCreateOrUpdateFuture) Result(client VirtualNetworkRulesClient) (vnr VirtualNetworkRule, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualNetworkRulesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -10200,7 +9831,7 @@ type VirtualNetworkRulesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *VirtualNetworkRulesDeleteFuture) Result(client VirtualNetworkRulesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.VirtualNetworkRulesDeleteFuture", "Result", future.Response(), "Polling failure") return diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/servercommunicationlinks.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/servercommunicationlinks.go index 51c616548ffc..29736aa927ed 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/servercommunicationlinks.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/servercommunicationlinks.go @@ -97,6 +97,8 @@ func (client ServerCommunicationLinksClient) CreateOrUpdatePreparer(ctx context. "api-version": APIVersion, } + parameters.Location = nil + parameters.Kind = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/serverconnectionpolicies.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/serverconnectionpolicies.go index e6258e89561a..fcc07d5fdf0e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/serverconnectionpolicies.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/serverconnectionpolicies.go @@ -94,6 +94,8 @@ func (client ServerConnectionPoliciesClient) CreateOrUpdatePreparer(ctx context. "api-version": APIVersion, } + parameters.Kind = nil + parameters.Location = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/serverkeys.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/serverkeys.go index b2338e324aea..7b55d074802f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/serverkeys.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/serverkeys.go @@ -92,6 +92,7 @@ func (client ServerKeysClient) CreateOrUpdatePreparer(ctx context.Context, resou "api-version": APIVersion, } + parameters.Location = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/servers.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/servers.go index 6b449810d65e..8b4822bf5d0d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/servers.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/servers.go @@ -171,6 +171,7 @@ func (client ServersClient) CreateOrUpdatePreparer(ctx context.Context, resource "api-version": APIVersion, } + parameters.Kind = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/transparentdataencryptions.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/transparentdataencryptions.go index 3076ca928b50..c9623d95955b 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/transparentdataencryptions.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql/transparentdataencryptions.go @@ -96,6 +96,7 @@ func (client TransparentDataEncryptionsClient) CreateOrUpdatePreparer(ctx contex "api-version": APIVersion, } + parameters.Location = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/databases.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/databases.go index 8bcb3eab6159..043cbac6d38a 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/databases.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/databases.go @@ -101,6 +101,8 @@ func (client DatabasesClient) CreateOrUpdatePreparer(ctx context.Context, resour "api-version": APIVersion, } + parameters.Kind = nil + parameters.ManagedBy = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/elasticpools.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/elasticpools.go index 9919d174d1b8..95c34e447edf 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/elasticpools.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/elasticpools.go @@ -97,6 +97,7 @@ func (client ElasticPoolsClient) CreateOrUpdatePreparer(ctx context.Context, res "api-version": APIVersion, } + parameters.Kind = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/managedinstanceencryptionprotectors.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/managedinstanceencryptionprotectors.go index 5c2646c55c2f..f34c4a2a8b6d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/managedinstanceencryptionprotectors.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/managedinstanceencryptionprotectors.go @@ -90,6 +90,7 @@ func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdatePreparer(c "api-version": APIVersion, } + parameters.Kind = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/managedinstancekeys.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/managedinstancekeys.go index dd9af74b8491..73caf1cda0e4 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/managedinstancekeys.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/managedinstancekeys.go @@ -89,6 +89,7 @@ func (client ManagedInstanceKeysClient) CreateOrUpdatePreparer(ctx context.Conte "api-version": APIVersion, } + parameters.Kind = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/models.go index e0b98711d263..47a9a57126e2 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql/models.go @@ -160,10 +160,14 @@ const ( Inaccessible DatabaseStatus = "Inaccessible" // Offline ... Offline DatabaseStatus = "Offline" + // OfflineChangingDwPerformanceTiers ... + OfflineChangingDwPerformanceTiers DatabaseStatus = "OfflineChangingDwPerformanceTiers" // OfflineSecondary ... OfflineSecondary DatabaseStatus = "OfflineSecondary" // Online ... Online DatabaseStatus = "Online" + // OnlineChangingDwPerformanceTiers ... + OnlineChangingDwPerformanceTiers DatabaseStatus = "OnlineChangingDwPerformanceTiers" // Paused ... Paused DatabaseStatus = "Paused" // Pausing ... @@ -188,7 +192,7 @@ const ( // PossibleDatabaseStatusValues returns an array of possible values for the DatabaseStatus const type. func PossibleDatabaseStatusValues() []DatabaseStatus { - return []DatabaseStatus{AutoClosed, Copying, Creating, EmergencyMode, Inaccessible, Offline, OfflineSecondary, Online, Paused, Pausing, Recovering, RecoveryPending, Restoring, Resuming, Scaling, Shutdown, Standby, Suspect} + return []DatabaseStatus{AutoClosed, Copying, Creating, EmergencyMode, Inaccessible, Offline, OfflineChangingDwPerformanceTiers, OfflineSecondary, Online, OnlineChangingDwPerformanceTiers, Paused, Pausing, Recovering, RecoveryPending, Restoring, Resuming, Scaling, Shutdown, Standby, Suspect} } // ElasticPoolLicenseType enumerates the values for elastic pool license type. @@ -438,7 +442,7 @@ type BackupShortTermRetentionPoliciesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *BackupShortTermRetentionPoliciesCreateOrUpdateFuture) Result(client BackupShortTermRetentionPoliciesClient) (bstrp BackupShortTermRetentionPolicy, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -467,7 +471,7 @@ type BackupShortTermRetentionPoliciesUpdateFuture struct { // If the operation has not completed it will return an error. func (future *BackupShortTermRetentionPoliciesUpdateFuture) Result(client BackupShortTermRetentionPoliciesClient) (bstrp BackupShortTermRetentionPolicy, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -491,11 +495,11 @@ type BackupShortTermRetentionPolicy struct { autorest.Response `json:"-"` // BackupShortTermRetentionPolicyProperties - Resource properties. *BackupShortTermRetentionPolicyProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -505,15 +509,6 @@ func (bstrp BackupShortTermRetentionPolicy) MarshalJSON() ([]byte, error) { if bstrp.BackupShortTermRetentionPolicyProperties != nil { objectMap["properties"] = bstrp.BackupShortTermRetentionPolicyProperties } - if bstrp.ID != nil { - objectMap["id"] = bstrp.ID - } - if bstrp.Name != nil { - objectMap["name"] = bstrp.Name - } - if bstrp.Type != nil { - objectMap["type"] = bstrp.Type - } return json.Marshal(objectMap) } @@ -571,9 +566,9 @@ func (bstrp *BackupShortTermRetentionPolicy) UnmarshalJSON(body []byte) error { // BackupShortTermRetentionPolicyListResult a list of short term retention policies. type BackupShortTermRetentionPolicyListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]BackupShortTermRetentionPolicy `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -724,11 +719,21 @@ type BackupShortTermRetentionPolicyProperties struct { // Database a database resource. type Database struct { autorest.Response `json:"-"` - // Sku - The name and tier of the SKU. + // Sku - The database SKU. + // + // The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands: + // + // ```azurecli + // az sql db list-editions -l -o table + // ```` + // + // ```powershell + // Get-AzSqlServerServiceObjective -Location + // ```` Sku *Sku `json:"sku,omitempty"` - // Kind - Kind of database. This is metadata used for the Azure portal experience. + // Kind - READ-ONLY; Kind of database. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` - // ManagedBy - Resource that manages the database. + // ManagedBy - READ-ONLY; Resource that manages the database. ManagedBy *string `json:"managedBy,omitempty"` // DatabaseProperties - Resource properties. *DatabaseProperties `json:"properties,omitempty"` @@ -736,11 +741,11 @@ type Database struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -750,12 +755,6 @@ func (d Database) MarshalJSON() ([]byte, error) { if d.Sku != nil { objectMap["sku"] = d.Sku } - if d.Kind != nil { - objectMap["kind"] = d.Kind - } - if d.ManagedBy != nil { - objectMap["managedBy"] = d.ManagedBy - } if d.DatabaseProperties != nil { objectMap["properties"] = d.DatabaseProperties } @@ -765,15 +764,6 @@ func (d Database) MarshalJSON() ([]byte, error) { if d.Tags != nil { objectMap["tags"] = d.Tags } - if d.ID != nil { - objectMap["id"] = d.ID - } - if d.Name != nil { - objectMap["name"] = d.Name - } - if d.Type != nil { - objectMap["type"] = d.Type - } return json.Marshal(objectMap) } @@ -876,9 +866,9 @@ func (d *Database) UnmarshalJSON(body []byte) error { // DatabaseListResult a list of databases. type DatabaseListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]Database `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1023,11 +1013,11 @@ func NewDatabaseListResultPage(getNextPage func(context.Context, DatabaseListRes type DatabaseOperation struct { // DatabaseOperationProperties - Resource properties. *DatabaseOperationProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1037,15 +1027,6 @@ func (do DatabaseOperation) MarshalJSON() ([]byte, error) { if do.DatabaseOperationProperties != nil { objectMap["properties"] = do.DatabaseOperationProperties } - if do.ID != nil { - objectMap["id"] = do.ID - } - if do.Name != nil { - objectMap["name"] = do.Name - } - if do.Type != nil { - objectMap["type"] = do.Type - } return json.Marshal(objectMap) } @@ -1103,9 +1084,9 @@ func (do *DatabaseOperation) UnmarshalJSON(body []byte) error { // DatabaseOperationListResult the response to a list database operations request type DatabaseOperationListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]DatabaseOperation `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1248,33 +1229,33 @@ func NewDatabaseOperationListResultPage(getNextPage func(context.Context, Databa // DatabaseOperationProperties the properties of a database operation. type DatabaseOperationProperties struct { - // DatabaseName - The name of the database the operation is being performed on. + // DatabaseName - READ-ONLY; The name of the database the operation is being performed on. DatabaseName *string `json:"databaseName,omitempty"` - // Operation - The name of operation. + // Operation - READ-ONLY; The name of operation. Operation *string `json:"operation,omitempty"` - // OperationFriendlyName - The friendly name of operation. + // OperationFriendlyName - READ-ONLY; The friendly name of operation. OperationFriendlyName *string `json:"operationFriendlyName,omitempty"` - // PercentComplete - The percentage of the operation completed. + // PercentComplete - READ-ONLY; The percentage of the operation completed. PercentComplete *int32 `json:"percentComplete,omitempty"` - // ServerName - The name of the server. + // ServerName - READ-ONLY; The name of the server. ServerName *string `json:"serverName,omitempty"` - // StartTime - The operation start time. + // StartTime - READ-ONLY; The operation start time. StartTime *date.Time `json:"startTime,omitempty"` - // State - The operation state. Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress', 'Cancelled' + // State - READ-ONLY; The operation state. Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress', 'Cancelled' State ManagementOperationState `json:"state,omitempty"` - // ErrorCode - The operation error code. + // ErrorCode - READ-ONLY; The operation error code. ErrorCode *int32 `json:"errorCode,omitempty"` - // ErrorDescription - The operation error description. + // ErrorDescription - READ-ONLY; The operation error description. ErrorDescription *string `json:"errorDescription,omitempty"` - // ErrorSeverity - The operation error severity. + // ErrorSeverity - READ-ONLY; The operation error severity. ErrorSeverity *int32 `json:"errorSeverity,omitempty"` - // IsUserError - Whether or not the error is a user error. + // IsUserError - READ-ONLY; Whether or not the error is a user error. IsUserError *bool `json:"isUserError,omitempty"` - // EstimatedCompletionTime - The estimated completion time of the operation. + // EstimatedCompletionTime - READ-ONLY; The estimated completion time of the operation. EstimatedCompletionTime *date.Time `json:"estimatedCompletionTime,omitempty"` - // Description - The operation description. + // Description - READ-ONLY; The operation description. Description *string `json:"description,omitempty"` - // IsCancellable - Whether the operation can be cancelled. + // IsCancellable - READ-ONLY; Whether the operation can be cancelled. IsCancellable *bool `json:"isCancellable,omitempty"` } @@ -1308,19 +1289,19 @@ type DatabaseProperties struct { ElasticPoolID *string `json:"elasticPoolId,omitempty"` // SourceDatabaseID - The resource identifier of the source database associated with create operation of this database. SourceDatabaseID *string `json:"sourceDatabaseId,omitempty"` - // Status - The status of the database. Possible values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling' + // Status - READ-ONLY; The status of the database. Possible values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling', 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers' Status DatabaseStatus `json:"status,omitempty"` - // DatabaseID - The ID of the database. + // DatabaseID - READ-ONLY; The ID of the database. DatabaseID *uuid.UUID `json:"databaseId,omitempty"` - // CreationDate - The creation date of the database (ISO8601 format). + // CreationDate - READ-ONLY; The creation date of the database (ISO8601 format). CreationDate *date.Time `json:"creationDate,omitempty"` - // CurrentServiceObjectiveName - The current service level objective name of the database. + // CurrentServiceObjectiveName - READ-ONLY; The current service level objective name of the database. CurrentServiceObjectiveName *string `json:"currentServiceObjectiveName,omitempty"` - // RequestedServiceObjectiveName - The requested service level objective name of the database. + // RequestedServiceObjectiveName - READ-ONLY; The requested service level objective name of the database. RequestedServiceObjectiveName *string `json:"requestedServiceObjectiveName,omitempty"` - // DefaultSecondaryLocation - The default secondary region for this database. + // DefaultSecondaryLocation - READ-ONLY; The default secondary region for this database. DefaultSecondaryLocation *string `json:"defaultSecondaryLocation,omitempty"` - // FailoverGroupID - Failover Group resource identifier that this database belongs to. + // FailoverGroupID - READ-ONLY; Failover Group resource identifier that this database belongs to. FailoverGroupID *string `json:"failoverGroupId,omitempty"` // RestorePointInTime - Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"` @@ -1340,14 +1321,18 @@ type DatabaseProperties struct { ZoneRedundant *bool `json:"zoneRedundant,omitempty"` // LicenseType - The license type to apply for this database. Possible values include: 'LicenseIncluded', 'BasePrice' LicenseType DatabaseLicenseType `json:"licenseType,omitempty"` - // MaxLogSizeBytes - The max log size for this database. + // MaxLogSizeBytes - READ-ONLY; The max log size for this database. MaxLogSizeBytes *int64 `json:"maxLogSizeBytes,omitempty"` - // EarliestRestoreDate - This records the earliest start date and time that restore is available for this database (ISO8601 format). + // EarliestRestoreDate - READ-ONLY; This records the earliest start date and time that restore is available for this database (ISO8601 format). EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` // ReadScale - The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Possible values include: 'DatabaseReadScaleEnabled', 'DatabaseReadScaleDisabled' ReadScale DatabaseReadScale `json:"readScale,omitempty"` - // CurrentSku - The name and tier of the SKU. + // CurrentSku - READ-ONLY; The name and tier of the SKU. CurrentSku *Sku `json:"currentSku,omitempty"` + // AutoPauseDelay - Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled + AutoPauseDelay *int32 `json:"autoPauseDelay,omitempty"` + // MinCapacity - Minimal capacity that database will always have allocated, if not paused + MinCapacity *float64 `json:"minCapacity,omitempty"` } // DatabasesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running @@ -1360,7 +1345,7 @@ type DatabasesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesCreateOrUpdateFuture) Result(client DatabasesClient) (d Database, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1389,7 +1374,7 @@ type DatabasesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesDeleteFuture) Result(client DatabasesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1412,7 +1397,7 @@ type DatabasesPauseFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesPauseFuture) Result(client DatabasesClient) (d Database, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesPauseFuture", "Result", future.Response(), "Polling failure") return @@ -1441,7 +1426,7 @@ type DatabasesResumeFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesResumeFuture) Result(client DatabasesClient) (d Database, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesResumeFuture", "Result", future.Response(), "Polling failure") return @@ -1470,7 +1455,7 @@ type DatabasesUpdateFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesUpdateFuture) Result(client DatabasesClient) (d Database, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1499,7 +1484,7 @@ type DatabasesUpgradeDataWarehouseFuture struct { // If the operation has not completed it will return an error. func (future *DatabasesUpgradeDataWarehouseFuture) Result(client DatabasesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabasesUpgradeDataWarehouseFuture", "Result", future.Response(), "Polling failure") return @@ -1584,11 +1569,11 @@ type DatabaseVulnerabilityAssessment struct { autorest.Response `json:"-"` // DatabaseVulnerabilityAssessmentProperties - Resource properties. *DatabaseVulnerabilityAssessmentProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1598,15 +1583,6 @@ func (dva DatabaseVulnerabilityAssessment) MarshalJSON() ([]byte, error) { if dva.DatabaseVulnerabilityAssessmentProperties != nil { objectMap["properties"] = dva.DatabaseVulnerabilityAssessmentProperties } - if dva.ID != nil { - objectMap["id"] = dva.ID - } - if dva.Name != nil { - objectMap["name"] = dva.Name - } - if dva.Type != nil { - objectMap["type"] = dva.Type - } return json.Marshal(objectMap) } @@ -1664,9 +1640,9 @@ func (dva *DatabaseVulnerabilityAssessment) UnmarshalJSON(body []byte) error { // DatabaseVulnerabilityAssessmentListResult a list of the database's vulnerability assessments. type DatabaseVulnerabilityAssessmentListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]DatabaseVulnerabilityAssessment `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1825,11 +1801,11 @@ type DatabaseVulnerabilityAssessmentRuleBaseline struct { autorest.Response `json:"-"` // DatabaseVulnerabilityAssessmentRuleBaselineProperties - Resource properties. *DatabaseVulnerabilityAssessmentRuleBaselineProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1839,15 +1815,6 @@ func (dvarb DatabaseVulnerabilityAssessmentRuleBaseline) MarshalJSON() ([]byte, if dvarb.DatabaseVulnerabilityAssessmentRuleBaselineProperties != nil { objectMap["properties"] = dvarb.DatabaseVulnerabilityAssessmentRuleBaselineProperties } - if dvarb.ID != nil { - objectMap["id"] = dvarb.ID - } - if dvarb.Name != nil { - objectMap["name"] = dvarb.Name - } - if dvarb.Type != nil { - objectMap["type"] = dvarb.Type - } return json.Marshal(objectMap) } @@ -1918,7 +1885,7 @@ type DatabaseVulnerabilityAssessmentRuleBaselineProperties struct { // DatabaseVulnerabilityAssessmentScanExportProperties properties of the export operation's result. type DatabaseVulnerabilityAssessmentScanExportProperties struct { - // ExportedReportLocation - Location of the exported report (e.g. https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). + // ExportedReportLocation - READ-ONLY; Location of the exported report (e.g. https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). ExportedReportLocation *string `json:"exportedReportLocation,omitempty"` } @@ -1927,11 +1894,11 @@ type DatabaseVulnerabilityAssessmentScansExport struct { autorest.Response `json:"-"` // DatabaseVulnerabilityAssessmentScanExportProperties - Resource properties. *DatabaseVulnerabilityAssessmentScanExportProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1941,15 +1908,6 @@ func (dvase DatabaseVulnerabilityAssessmentScansExport) MarshalJSON() ([]byte, e if dvase.DatabaseVulnerabilityAssessmentScanExportProperties != nil { objectMap["properties"] = dvase.DatabaseVulnerabilityAssessmentScanExportProperties } - if dvase.ID != nil { - objectMap["id"] = dvase.ID - } - if dvase.Name != nil { - objectMap["name"] = dvase.Name - } - if dvase.Type != nil { - objectMap["type"] = dvase.Type - } return json.Marshal(objectMap) } @@ -2014,7 +1972,7 @@ type DatabaseVulnerabilityAssessmentScansInitiateScanFuture struct { // If the operation has not completed it will return an error. func (future *DatabaseVulnerabilityAssessmentScansInitiateScanFuture) Result(client DatabaseVulnerabilityAssessmentScansClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansInitiateScanFuture", "Result", future.Response(), "Polling failure") return @@ -2029,13 +1987,13 @@ func (future *DatabaseVulnerabilityAssessmentScansInitiateScanFuture) Result(cli // EditionCapability the edition capability. type EditionCapability struct { - // Name - The database edition name. + // Name - READ-ONLY; The database edition name. Name *string `json:"name,omitempty"` - // SupportedServiceLevelObjectives - The list of supported service objectives for the edition. + // SupportedServiceLevelObjectives - READ-ONLY; The list of supported service objectives for the edition. SupportedServiceLevelObjectives *[]ServiceObjectiveCapability `json:"supportedServiceLevelObjectives,omitempty"` - // ZoneRedundant - Whether or not zone redundancy is supported for the edition. + // ZoneRedundant - READ-ONLY; Whether or not zone redundancy is supported for the edition. ZoneRedundant *bool `json:"zoneRedundant,omitempty"` - // Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -2044,8 +2002,15 @@ type EditionCapability struct { // ElasticPool an elastic pool. type ElasticPool struct { autorest.Response `json:"-"` - Sku *Sku `json:"sku,omitempty"` - // Kind - Kind of elastic pool. This is metadata used for the Azure portal experience. + // Sku - The elastic pool SKU. + // + // The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or the following command: + // + // ```azurecli + // az sql elastic-pool list-editions -l -o table + // ```` + Sku *Sku `json:"sku,omitempty"` + // Kind - READ-ONLY; Kind of elastic pool. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` // ElasticPoolProperties - Resource properties. *ElasticPoolProperties `json:"properties,omitempty"` @@ -2053,11 +2018,11 @@ type ElasticPool struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -2067,9 +2032,6 @@ func (ep ElasticPool) MarshalJSON() ([]byte, error) { if ep.Sku != nil { objectMap["sku"] = ep.Sku } - if ep.Kind != nil { - objectMap["kind"] = ep.Kind - } if ep.ElasticPoolProperties != nil { objectMap["properties"] = ep.ElasticPoolProperties } @@ -2079,15 +2041,6 @@ func (ep ElasticPool) MarshalJSON() ([]byte, error) { if ep.Tags != nil { objectMap["tags"] = ep.Tags } - if ep.ID != nil { - objectMap["id"] = ep.ID - } - if ep.Name != nil { - objectMap["name"] = ep.Name - } - if ep.Type != nil { - objectMap["type"] = ep.Type - } return json.Marshal(objectMap) } @@ -2180,13 +2133,13 @@ func (ep *ElasticPool) UnmarshalJSON(body []byte) error { // ElasticPoolEditionCapability the elastic pool edition capability. type ElasticPoolEditionCapability struct { - // Name - The elastic pool edition name. + // Name - READ-ONLY; The elastic pool edition name. Name *string `json:"name,omitempty"` - // SupportedElasticPoolPerformanceLevels - The list of supported elastic pool DTU levels for the edition. + // SupportedElasticPoolPerformanceLevels - READ-ONLY; The list of supported elastic pool DTU levels for the edition. SupportedElasticPoolPerformanceLevels *[]ElasticPoolPerformanceLevelCapability `json:"supportedElasticPoolPerformanceLevels,omitempty"` - // ZoneRedundant - Whether or not zone redundancy is supported for the edition. + // ZoneRedundant - READ-ONLY; Whether or not zone redundancy is supported for the edition. ZoneRedundant *bool `json:"zoneRedundant,omitempty"` - // Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -2195,9 +2148,9 @@ type ElasticPoolEditionCapability struct { // ElasticPoolListResult the result of an elastic pool list request. type ElasticPoolListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]ElasticPool `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -2342,11 +2295,11 @@ func NewElasticPoolListResultPage(getNextPage func(context.Context, ElasticPoolL type ElasticPoolOperation struct { // ElasticPoolOperationProperties - Resource properties. *ElasticPoolOperationProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -2356,15 +2309,6 @@ func (epo ElasticPoolOperation) MarshalJSON() ([]byte, error) { if epo.ElasticPoolOperationProperties != nil { objectMap["properties"] = epo.ElasticPoolOperationProperties } - if epo.ID != nil { - objectMap["id"] = epo.ID - } - if epo.Name != nil { - objectMap["name"] = epo.Name - } - if epo.Type != nil { - objectMap["type"] = epo.Type - } return json.Marshal(objectMap) } @@ -2422,9 +2366,9 @@ func (epo *ElasticPoolOperation) UnmarshalJSON(body []byte) error { // ElasticPoolOperationListResult the response to a list elastic pool operations request type ElasticPoolOperationListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]ElasticPoolOperation `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -2568,45 +2512,45 @@ func NewElasticPoolOperationListResultPage(getNextPage func(context.Context, Ela // ElasticPoolOperationProperties the properties of a elastic pool operation. type ElasticPoolOperationProperties struct { - // ElasticPoolName - The name of the elastic pool the operation is being performed on. + // ElasticPoolName - READ-ONLY; The name of the elastic pool the operation is being performed on. ElasticPoolName *string `json:"elasticPoolName,omitempty"` - // Operation - The name of operation. + // Operation - READ-ONLY; The name of operation. Operation *string `json:"operation,omitempty"` - // OperationFriendlyName - The friendly name of operation. + // OperationFriendlyName - READ-ONLY; The friendly name of operation. OperationFriendlyName *string `json:"operationFriendlyName,omitempty"` - // PercentComplete - The percentage of the operation completed. + // PercentComplete - READ-ONLY; The percentage of the operation completed. PercentComplete *int32 `json:"percentComplete,omitempty"` - // ServerName - The name of the server. + // ServerName - READ-ONLY; The name of the server. ServerName *string `json:"serverName,omitempty"` - // StartTime - The operation start time. + // StartTime - READ-ONLY; The operation start time. StartTime *date.Time `json:"startTime,omitempty"` - // State - The operation state. + // State - READ-ONLY; The operation state. State *string `json:"state,omitempty"` - // ErrorCode - The operation error code. + // ErrorCode - READ-ONLY; The operation error code. ErrorCode *int32 `json:"errorCode,omitempty"` - // ErrorDescription - The operation error description. + // ErrorDescription - READ-ONLY; The operation error description. ErrorDescription *string `json:"errorDescription,omitempty"` - // ErrorSeverity - The operation error severity. + // ErrorSeverity - READ-ONLY; The operation error severity. ErrorSeverity *int32 `json:"errorSeverity,omitempty"` - // IsUserError - Whether or not the error is a user error. + // IsUserError - READ-ONLY; Whether or not the error is a user error. IsUserError *bool `json:"isUserError,omitempty"` - // EstimatedCompletionTime - The estimated completion time of the operation. + // EstimatedCompletionTime - READ-ONLY; The estimated completion time of the operation. EstimatedCompletionTime *date.Time `json:"estimatedCompletionTime,omitempty"` - // Description - The operation description. + // Description - READ-ONLY; The operation description. Description *string `json:"description,omitempty"` - // IsCancellable - Whether the operation can be cancelled. + // IsCancellable - READ-ONLY; Whether the operation can be cancelled. IsCancellable *bool `json:"isCancellable,omitempty"` } // ElasticPoolPerDatabaseMaxPerformanceLevelCapability the max per-database performance level capability. type ElasticPoolPerDatabaseMaxPerformanceLevelCapability struct { - // Limit - The maximum performance level per database. + // Limit - READ-ONLY; The maximum performance level per database. Limit *float64 `json:"limit,omitempty"` - // Unit - Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' + // Unit - READ-ONLY; Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' Unit PerformanceLevelUnit `json:"unit,omitempty"` - // SupportedPerDatabaseMinPerformanceLevels - The list of supported min database performance levels. + // SupportedPerDatabaseMinPerformanceLevels - READ-ONLY; The list of supported min database performance levels. SupportedPerDatabaseMinPerformanceLevels *[]ElasticPoolPerDatabaseMinPerformanceLevelCapability `json:"supportedPerDatabaseMinPerformanceLevels,omitempty"` - // Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -2615,11 +2559,11 @@ type ElasticPoolPerDatabaseMaxPerformanceLevelCapability struct { // ElasticPoolPerDatabaseMinPerformanceLevelCapability the minimum per-database performance level // capability. type ElasticPoolPerDatabaseMinPerformanceLevelCapability struct { - // Limit - The minimum performance level per database. + // Limit - READ-ONLY; The minimum performance level per database. Limit *float64 `json:"limit,omitempty"` - // Unit - Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' + // Unit - READ-ONLY; Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' Unit PerformanceLevelUnit `json:"unit,omitempty"` - // Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -2635,23 +2579,23 @@ type ElasticPoolPerDatabaseSettings struct { // ElasticPoolPerformanceLevelCapability the Elastic Pool performance level capability. type ElasticPoolPerformanceLevelCapability struct { - // PerformanceLevel - The performance level for the pool. + // PerformanceLevel - READ-ONLY; The performance level for the pool. PerformanceLevel *PerformanceLevelCapability `json:"performanceLevel,omitempty"` - // Sku - The sku. + // Sku - READ-ONLY; The sku. Sku *Sku `json:"sku,omitempty"` - // SupportedLicenseTypes - List of supported license types. + // SupportedLicenseTypes - READ-ONLY; List of supported license types. SupportedLicenseTypes *[]LicenseTypeCapability `json:"supportedLicenseTypes,omitempty"` - // MaxDatabaseCount - The maximum number of databases supported. + // MaxDatabaseCount - READ-ONLY; The maximum number of databases supported. MaxDatabaseCount *int32 `json:"maxDatabaseCount,omitempty"` - // IncludedMaxSize - The included (free) max size for this performance level. + // IncludedMaxSize - READ-ONLY; The included (free) max size for this performance level. IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"` - // SupportedMaxSizes - The list of supported max sizes. + // SupportedMaxSizes - READ-ONLY; The list of supported max sizes. SupportedMaxSizes *[]MaxSizeRangeCapability `json:"supportedMaxSizes,omitempty"` - // SupportedPerDatabaseMaxSizes - The list of supported per database max sizes. + // SupportedPerDatabaseMaxSizes - READ-ONLY; The list of supported per database max sizes. SupportedPerDatabaseMaxSizes *[]MaxSizeRangeCapability `json:"supportedPerDatabaseMaxSizes,omitempty"` - // SupportedPerDatabaseMaxPerformanceLevels - The list of supported per database max performance levels. + // SupportedPerDatabaseMaxPerformanceLevels - READ-ONLY; The list of supported per database max performance levels. SupportedPerDatabaseMaxPerformanceLevels *[]ElasticPoolPerDatabaseMaxPerformanceLevelCapability `json:"supportedPerDatabaseMaxPerformanceLevels,omitempty"` - // Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -2659,9 +2603,9 @@ type ElasticPoolPerformanceLevelCapability struct { // ElasticPoolProperties properties of an elastic pool type ElasticPoolProperties struct { - // State - The state of the elastic pool. Possible values include: 'ElasticPoolStateCreating', 'ElasticPoolStateReady', 'ElasticPoolStateDisabled' + // State - READ-ONLY; The state of the elastic pool. Possible values include: 'ElasticPoolStateCreating', 'ElasticPoolStateReady', 'ElasticPoolStateDisabled' State ElasticPoolState `json:"state,omitempty"` - // CreationDate - The creation date of the elastic pool (ISO8601 format). + // CreationDate - READ-ONLY; The creation date of the elastic pool (ISO8601 format). CreationDate *date.Time `json:"creationDate,omitempty"` // MaxSizeBytes - The storage limit for the database elastic pool in bytes. MaxSizeBytes *int64 `json:"maxSizeBytes,omitempty"` @@ -2683,7 +2627,7 @@ type ElasticPoolsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ElasticPoolsCreateOrUpdateFuture) Result(client ElasticPoolsClient) (ep ElasticPool, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -2712,7 +2656,7 @@ type ElasticPoolsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ElasticPoolsDeleteFuture) Result(client ElasticPoolsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -2735,7 +2679,7 @@ type ElasticPoolsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ElasticPoolsUpdateFuture) Result(client ElasticPoolsClient) (ep ElasticPool, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ElasticPoolsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -2837,11 +2781,11 @@ type InstanceFailoverGroup struct { autorest.Response `json:"-"` // InstanceFailoverGroupProperties - Resource properties. *InstanceFailoverGroupProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -2851,15 +2795,6 @@ func (ifg InstanceFailoverGroup) MarshalJSON() ([]byte, error) { if ifg.InstanceFailoverGroupProperties != nil { objectMap["properties"] = ifg.InstanceFailoverGroupProperties } - if ifg.ID != nil { - objectMap["id"] = ifg.ID - } - if ifg.Name != nil { - objectMap["name"] = ifg.Name - } - if ifg.Type != nil { - objectMap["type"] = ifg.Type - } return json.Marshal(objectMap) } @@ -2917,9 +2852,9 @@ func (ifg *InstanceFailoverGroup) UnmarshalJSON(body []byte) error { // InstanceFailoverGroupListResult a list of instance failover groups. type InstanceFailoverGroupListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]InstanceFailoverGroup `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -3067,9 +3002,9 @@ type InstanceFailoverGroupProperties struct { ReadWriteEndpoint *InstanceFailoverGroupReadWriteEndpoint `json:"readWriteEndpoint,omitempty"` // ReadOnlyEndpoint - Read-only endpoint of the failover group instance. ReadOnlyEndpoint *InstanceFailoverGroupReadOnlyEndpoint `json:"readOnlyEndpoint,omitempty"` - // ReplicationRole - Local replication role of the failover group instance. Possible values include: 'Primary', 'Secondary' + // ReplicationRole - READ-ONLY; Local replication role of the failover group instance. Possible values include: 'Primary', 'Secondary' ReplicationRole InstanceFailoverGroupReplicationRole `json:"replicationRole,omitempty"` - // ReplicationState - Replication state of the failover group instance. + // ReplicationState - READ-ONLY; Replication state of the failover group instance. ReplicationState *string `json:"replicationState,omitempty"` // PartnerRegions - Partner region information for the failover group. PartnerRegions *[]PartnerRegionInfo `json:"partnerRegions,omitempty"` @@ -3101,7 +3036,7 @@ type InstanceFailoverGroupsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *InstanceFailoverGroupsCreateOrUpdateFuture) Result(client InstanceFailoverGroupsClient) (ifg InstanceFailoverGroup, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -3130,7 +3065,7 @@ type InstanceFailoverGroupsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *InstanceFailoverGroupsDeleteFuture) Result(client InstanceFailoverGroupsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -3153,7 +3088,7 @@ type InstanceFailoverGroupsFailoverFuture struct { // If the operation has not completed it will return an error. func (future *InstanceFailoverGroupsFailoverFuture) Result(client InstanceFailoverGroupsClient) (ifg InstanceFailoverGroup, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsFailoverFuture", "Result", future.Response(), "Polling failure") return @@ -3182,7 +3117,7 @@ type InstanceFailoverGroupsForceFailoverAllowDataLossFuture struct { // If the operation has not completed it will return an error. func (future *InstanceFailoverGroupsForceFailoverAllowDataLossFuture) Result(client InstanceFailoverGroupsClient) (ifg InstanceFailoverGroup, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsForceFailoverAllowDataLossFuture", "Result", future.Response(), "Polling failure") return @@ -3203,9 +3138,9 @@ func (future *InstanceFailoverGroupsForceFailoverAllowDataLossFuture) Result(cli // LicenseTypeCapability the license type capability type LicenseTypeCapability struct { - // Name - License type identifier. + // Name - READ-ONLY; License type identifier. Name *string `json:"name,omitempty"` - // Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -3214,13 +3149,13 @@ type LicenseTypeCapability struct { // LocationCapabilities the location capability. type LocationCapabilities struct { autorest.Response `json:"-"` - // Name - The location name. + // Name - READ-ONLY; The location name. Name *string `json:"name,omitempty"` - // SupportedServerVersions - The list of supported server versions. + // SupportedServerVersions - READ-ONLY; The list of supported server versions. SupportedServerVersions *[]ServerVersionCapability `json:"supportedServerVersions,omitempty"` - // SupportedManagedInstanceVersions - The list of supported managed instance versions. + // SupportedManagedInstanceVersions - READ-ONLY; The list of supported managed instance versions. SupportedManagedInstanceVersions *[]ManagedInstanceVersionCapability `json:"supportedManagedInstanceVersions,omitempty"` - // Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -3228,9 +3163,9 @@ type LocationCapabilities struct { // LogSizeCapability the log size capability. type LogSizeCapability struct { - // Limit - The log size limit (see 'unit' for the units). + // Limit - READ-ONLY; The log size limit (see 'unit' for the units). Limit *int32 `json:"limit,omitempty"` - // Unit - The units that the limit is expressed in. Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes', 'Percent' + // Unit - READ-ONLY; The units that the limit is expressed in. Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes', 'Percent' Unit LogSizeUnit `json:"unit,omitempty"` } @@ -3244,7 +3179,7 @@ type ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture struct { // If the operation has not completed it will return an error. func (future *ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture) Result(client ManagedDatabaseVulnerabilityAssessmentScansClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture", "Result", future.Response(), "Polling failure") return @@ -3259,11 +3194,11 @@ func (future *ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture) Res // ManagedInstanceEditionCapability the managed server capability type ManagedInstanceEditionCapability struct { - // Name - The managed server version name. + // Name - READ-ONLY; The managed server version name. Name *string `json:"name,omitempty"` - // SupportedFamilies - The supported families. + // SupportedFamilies - READ-ONLY; The supported families. SupportedFamilies *[]ManagedInstanceFamilyCapability `json:"supportedFamilies,omitempty"` - // Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -3272,36 +3207,24 @@ type ManagedInstanceEditionCapability struct { // ManagedInstanceEncryptionProtector the managed instance encryption protector. type ManagedInstanceEncryptionProtector struct { autorest.Response `json:"-"` - // Kind - Kind of encryption protector. This is metadata used for the Azure portal experience. + // Kind - READ-ONLY; Kind of encryption protector. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` // ManagedInstanceEncryptionProtectorProperties - Resource properties. *ManagedInstanceEncryptionProtectorProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for ManagedInstanceEncryptionProtector. func (miep ManagedInstanceEncryptionProtector) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if miep.Kind != nil { - objectMap["kind"] = miep.Kind - } if miep.ManagedInstanceEncryptionProtectorProperties != nil { objectMap["properties"] = miep.ManagedInstanceEncryptionProtectorProperties } - if miep.ID != nil { - objectMap["id"] = miep.ID - } - if miep.Name != nil { - objectMap["name"] = miep.Name - } - if miep.Type != nil { - objectMap["type"] = miep.Type - } return json.Marshal(objectMap) } @@ -3368,9 +3291,9 @@ func (miep *ManagedInstanceEncryptionProtector) UnmarshalJSON(body []byte) error // ManagedInstanceEncryptionProtectorListResult a list of managed instance encryption protectors. type ManagedInstanceEncryptionProtectorListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]ManagedInstanceEncryptionProtector `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -3519,9 +3442,9 @@ type ManagedInstanceEncryptionProtectorProperties struct { ServerKeyName *string `json:"serverKeyName,omitempty"` // ServerKeyType - The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault' ServerKeyType ServerKeyType `json:"serverKeyType,omitempty"` - // URI - The URI of the server key. + // URI - READ-ONLY; The URI of the server key. URI *string `json:"uri,omitempty"` - // Thumbprint - Thumbprint of the server key. + // Thumbprint - READ-ONLY; Thumbprint of the server key. Thumbprint *string `json:"thumbprint,omitempty"` } @@ -3535,7 +3458,7 @@ type ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture) Result(client ManagedInstanceEncryptionProtectorsClient) (miep ManagedInstanceEncryptionProtector, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -3556,19 +3479,19 @@ func (future *ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture) Result(cl // ManagedInstanceFamilyCapability the managed server family capability. type ManagedInstanceFamilyCapability struct { - // Name - Family name. + // Name - READ-ONLY; Family name. Name *string `json:"name,omitempty"` - // Sku - SKU name. + // Sku - READ-ONLY; SKU name. Sku *string `json:"sku,omitempty"` - // SupportedLicenseTypes - List of supported license types. + // SupportedLicenseTypes - READ-ONLY; List of supported license types. SupportedLicenseTypes *[]LicenseTypeCapability `json:"supportedLicenseTypes,omitempty"` - // SupportedVcoresValues - List of supported virtual cores values. + // SupportedVcoresValues - READ-ONLY; List of supported virtual cores values. SupportedVcoresValues *[]ManagedInstanceVcoresCapability `json:"supportedVcoresValues,omitempty"` - // IncludedMaxSize - Included size. + // IncludedMaxSize - READ-ONLY; Included size. IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"` - // SupportedStorageSizes - Storage size ranges. + // SupportedStorageSizes - READ-ONLY; Storage size ranges. SupportedStorageSizes *[]MaxSizeRangeCapability `json:"supportedStorageSizes,omitempty"` - // Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -3577,36 +3500,24 @@ type ManagedInstanceFamilyCapability struct { // ManagedInstanceKey a managed instance key. type ManagedInstanceKey struct { autorest.Response `json:"-"` - // Kind - Kind of encryption protector. This is metadata used for the Azure portal experience. + // Kind - READ-ONLY; Kind of encryption protector. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` // ManagedInstanceKeyProperties - Resource properties. *ManagedInstanceKeyProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for ManagedInstanceKey. func (mik ManagedInstanceKey) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if mik.Kind != nil { - objectMap["kind"] = mik.Kind - } if mik.ManagedInstanceKeyProperties != nil { objectMap["properties"] = mik.ManagedInstanceKeyProperties } - if mik.ID != nil { - objectMap["id"] = mik.ID - } - if mik.Name != nil { - objectMap["name"] = mik.Name - } - if mik.Type != nil { - objectMap["type"] = mik.Type - } return json.Marshal(objectMap) } @@ -3673,9 +3584,9 @@ func (mik *ManagedInstanceKey) UnmarshalJSON(body []byte) error { // ManagedInstanceKeyListResult a list of managed instance keys. type ManagedInstanceKeyListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]ManagedInstanceKey `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -3822,9 +3733,9 @@ type ManagedInstanceKeyProperties struct { ServerKeyType ServerKeyType `json:"serverKeyType,omitempty"` // URI - The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required. URI *string `json:"uri,omitempty"` - // Thumbprint - Thumbprint of the key. + // Thumbprint - READ-ONLY; Thumbprint of the key. Thumbprint *string `json:"thumbprint,omitempty"` - // CreationDate - The key creation date. + // CreationDate - READ-ONLY; The key creation date. CreationDate *date.Time `json:"creationDate,omitempty"` } @@ -3838,7 +3749,7 @@ type ManagedInstanceKeysCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ManagedInstanceKeysCreateOrUpdateFuture) Result(client ManagedInstanceKeysClient) (mik ManagedInstanceKey, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -3867,7 +3778,7 @@ type ManagedInstanceKeysDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ManagedInstanceKeysDeleteFuture) Result(client ManagedInstanceKeysClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -3898,7 +3809,7 @@ type ManagedInstanceTdeCertificatesCreateFuture struct { // If the operation has not completed it will return an error. func (future *ManagedInstanceTdeCertificatesCreateFuture) Result(client ManagedInstanceTdeCertificatesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.ManagedInstanceTdeCertificatesCreateFuture", "Result", future.Response(), "Polling failure") return @@ -3913,11 +3824,11 @@ func (future *ManagedInstanceTdeCertificatesCreateFuture) Result(client ManagedI // ManagedInstanceVcoresCapability the managed instance virtual cores capability. type ManagedInstanceVcoresCapability struct { - // Name - The virtual cores identifier. + // Name - READ-ONLY; The virtual cores identifier. Name *string `json:"name,omitempty"` - // Value - The virtual cores value. + // Value - READ-ONLY; The virtual cores value. Value *int32 `json:"value,omitempty"` - // Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -3925,11 +3836,11 @@ type ManagedInstanceVcoresCapability struct { // ManagedInstanceVersionCapability the managed instance capability type ManagedInstanceVersionCapability struct { - // Name - The server version name. + // Name - READ-ONLY; The server version name. Name *string `json:"name,omitempty"` - // SupportedEditions - The list of supported managed instance editions. + // SupportedEditions - READ-ONLY; The list of supported managed instance editions. SupportedEditions *[]ManagedInstanceEditionCapability `json:"supportedEditions,omitempty"` - // Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -3937,23 +3848,23 @@ type ManagedInstanceVersionCapability struct { // MaxSizeCapability the maximum size capability. type MaxSizeCapability struct { - // Limit - The maximum size limit (see 'unit' for the units). + // Limit - READ-ONLY; The maximum size limit (see 'unit' for the units). Limit *int32 `json:"limit,omitempty"` - // Unit - The units that the limit is expressed in. Possible values include: 'MaxSizeUnitMegabytes', 'MaxSizeUnitGigabytes', 'MaxSizeUnitTerabytes', 'MaxSizeUnitPetabytes' + // Unit - READ-ONLY; The units that the limit is expressed in. Possible values include: 'MaxSizeUnitMegabytes', 'MaxSizeUnitGigabytes', 'MaxSizeUnitTerabytes', 'MaxSizeUnitPetabytes' Unit MaxSizeUnit `json:"unit,omitempty"` } // MaxSizeRangeCapability the maximum size range capability. type MaxSizeRangeCapability struct { - // MinValue - Minimum value. + // MinValue - READ-ONLY; Minimum value. MinValue *MaxSizeCapability `json:"minValue,omitempty"` - // MaxValue - Maximum value. + // MaxValue - READ-ONLY; Maximum value. MaxValue *MaxSizeCapability `json:"maxValue,omitempty"` - // ScaleSize - Scale/step size for discrete values between the minimum value and the maximum value. + // ScaleSize - READ-ONLY; Scale/step size for discrete values between the minimum value and the maximum value. ScaleSize *MaxSizeCapability `json:"scaleSize,omitempty"` - // LogSize - Size of transaction log. + // LogSize - READ-ONLY; Size of transaction log. LogSize *LogSizeCapability `json:"logSize,omitempty"` - // Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -3963,25 +3874,25 @@ type MaxSizeRangeCapability struct { type PartnerRegionInfo struct { // Location - Geo location of the partner managed instances. Location *string `json:"location,omitempty"` - // ReplicationRole - Replication role of the partner managed instances. Possible values include: 'Primary', 'Secondary' + // ReplicationRole - READ-ONLY; Replication role of the partner managed instances. Possible values include: 'Primary', 'Secondary' ReplicationRole InstanceFailoverGroupReplicationRole `json:"replicationRole,omitempty"` } // PerformanceLevelCapability the performance level capability. type PerformanceLevelCapability struct { - // Value - Performance level value. + // Value - READ-ONLY; Performance level value. Value *float64 `json:"value,omitempty"` - // Unit - Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' + // Unit - READ-ONLY; Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' Unit PerformanceLevelUnit `json:"unit,omitempty"` } // ProxyResource ARM proxy resource. type ProxyResource struct { - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -3990,11 +3901,11 @@ type RecoverableManagedDatabase struct { autorest.Response `json:"-"` // RecoverableManagedDatabaseProperties - Resource properties. *RecoverableManagedDatabaseProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -4004,15 +3915,6 @@ func (rmd RecoverableManagedDatabase) MarshalJSON() ([]byte, error) { if rmd.RecoverableManagedDatabaseProperties != nil { objectMap["properties"] = rmd.RecoverableManagedDatabaseProperties } - if rmd.ID != nil { - objectMap["id"] = rmd.ID - } - if rmd.Name != nil { - objectMap["name"] = rmd.Name - } - if rmd.Type != nil { - objectMap["type"] = rmd.Type - } return json.Marshal(objectMap) } @@ -4070,9 +3972,9 @@ func (rmd *RecoverableManagedDatabase) UnmarshalJSON(body []byte) error { // RecoverableManagedDatabaseListResult a list of recoverable managed databases. type RecoverableManagedDatabaseListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]RecoverableManagedDatabase `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -4216,17 +4118,17 @@ func NewRecoverableManagedDatabaseListResultPage(getNextPage func(context.Contex // RecoverableManagedDatabaseProperties the recoverable managed database's properties. type RecoverableManagedDatabaseProperties struct { - // LastAvailableBackupDate - The last available backup date. + // LastAvailableBackupDate - READ-ONLY; The last available backup date. LastAvailableBackupDate *string `json:"lastAvailableBackupDate,omitempty"` } // Resource ARM resource. type Resource struct { - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -4238,13 +4140,13 @@ type ResourceMoveDefinition struct { // ServerVersionCapability the server capability type ServerVersionCapability struct { - // Name - The server version name. + // Name - READ-ONLY; The server version name. Name *string `json:"name,omitempty"` - // SupportedEditions - The list of supported database editions. + // SupportedEditions - READ-ONLY; The list of supported database editions. SupportedEditions *[]EditionCapability `json:"supportedEditions,omitempty"` - // SupportedElasticPoolEditions - The list of supported elastic pool editions. + // SupportedElasticPoolEditions - READ-ONLY; The list of supported elastic pool editions. SupportedElasticPoolEditions *[]ElasticPoolEditionCapability `json:"supportedElasticPoolEditions,omitempty"` - // Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -4252,21 +4154,21 @@ type ServerVersionCapability struct { // ServiceObjectiveCapability the service objectives capability. type ServiceObjectiveCapability struct { - // ID - The unique ID of the service objective. + // ID - READ-ONLY; The unique ID of the service objective. ID *uuid.UUID `json:"id,omitempty"` - // Name - The service objective name. + // Name - READ-ONLY; The service objective name. Name *string `json:"name,omitempty"` - // SupportedMaxSizes - The list of supported maximum database sizes. + // SupportedMaxSizes - READ-ONLY; The list of supported maximum database sizes. SupportedMaxSizes *[]MaxSizeRangeCapability `json:"supportedMaxSizes,omitempty"` - // PerformanceLevel - The performance level. + // PerformanceLevel - READ-ONLY; The performance level. PerformanceLevel *PerformanceLevelCapability `json:"performanceLevel,omitempty"` - // Sku - The sku. + // Sku - READ-ONLY; The sku. Sku *Sku `json:"sku,omitempty"` - // SupportedLicenseTypes - List of supported license types. + // SupportedLicenseTypes - READ-ONLY; List of supported license types. SupportedLicenseTypes *[]LicenseTypeCapability `json:"supportedLicenseTypes,omitempty"` - // IncludedMaxSize - The included (free) max size. + // IncludedMaxSize - READ-ONLY; The included (free) max size. IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"` - // Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' + // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` @@ -4290,11 +4192,11 @@ type Sku struct { type TdeCertificate struct { // TdeCertificateProperties - Resource properties. *TdeCertificateProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -4304,15 +4206,6 @@ func (tc TdeCertificate) MarshalJSON() ([]byte, error) { if tc.TdeCertificateProperties != nil { objectMap["properties"] = tc.TdeCertificateProperties } - if tc.ID != nil { - objectMap["id"] = tc.ID - } - if tc.Name != nil { - objectMap["name"] = tc.Name - } - if tc.Type != nil { - objectMap["type"] = tc.Type - } return json.Marshal(objectMap) } @@ -4385,7 +4278,7 @@ type TdeCertificatesCreateFuture struct { // If the operation has not completed it will return an error. func (future *TdeCertificatesCreateFuture) Result(client TdeCertificatesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "sql.TdeCertificatesCreateFuture", "Result", future.Response(), "Polling failure") return @@ -4404,11 +4297,11 @@ type TrackedResource struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -4421,15 +4314,6 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Tags != nil { objectMap["tags"] = tr.Tags } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } @@ -4446,9 +4330,9 @@ type VulnerabilityAssessmentRecurringScansProperties struct { // VulnerabilityAssessmentScanError properties of a vulnerability assessment scan error. type VulnerabilityAssessmentScanError struct { - // Code - The error code. + // Code - READ-ONLY; The error code. Code *string `json:"code,omitempty"` - // Message - The error message. + // Message - READ-ONLY; The error message. Message *string `json:"message,omitempty"` } @@ -4457,11 +4341,11 @@ type VulnerabilityAssessmentScanRecord struct { autorest.Response `json:"-"` // VulnerabilityAssessmentScanRecordProperties - Resource properties. *VulnerabilityAssessmentScanRecordProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -4471,15 +4355,6 @@ func (vasr VulnerabilityAssessmentScanRecord) MarshalJSON() ([]byte, error) { if vasr.VulnerabilityAssessmentScanRecordProperties != nil { objectMap["properties"] = vasr.VulnerabilityAssessmentScanRecordProperties } - if vasr.ID != nil { - objectMap["id"] = vasr.ID - } - if vasr.Name != nil { - objectMap["name"] = vasr.Name - } - if vasr.Type != nil { - objectMap["type"] = vasr.Type - } return json.Marshal(objectMap) } @@ -4537,9 +4412,9 @@ func (vasr *VulnerabilityAssessmentScanRecord) UnmarshalJSON(body []byte) error // VulnerabilityAssessmentScanRecordListResult a list of vulnerability assessment scan records. type VulnerabilityAssessmentScanRecordListResult struct { autorest.Response `json:"-"` - // Value - Array of results. + // Value - READ-ONLY; Array of results. Value *[]VulnerabilityAssessmentScanRecord `json:"value,omitempty"` - // NextLink - Link to retrieve next page of results. + // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -4684,20 +4559,20 @@ func NewVulnerabilityAssessmentScanRecordListResultPage(getNextPage func(context // VulnerabilityAssessmentScanRecordProperties properties of a vulnerability assessment scan record. type VulnerabilityAssessmentScanRecordProperties struct { - // ScanID - The scan ID. + // ScanID - READ-ONLY; The scan ID. ScanID *string `json:"scanId,omitempty"` - // TriggerType - The scan trigger type. Possible values include: 'OnDemand', 'Recurring' + // TriggerType - READ-ONLY; The scan trigger type. Possible values include: 'OnDemand', 'Recurring' TriggerType VulnerabilityAssessmentScanTriggerType `json:"triggerType,omitempty"` - // State - The scan status. Possible values include: 'VulnerabilityAssessmentScanStatePassed', 'VulnerabilityAssessmentScanStateFailed', 'VulnerabilityAssessmentScanStateFailedToRun', 'VulnerabilityAssessmentScanStateInProgress' + // State - READ-ONLY; The scan status. Possible values include: 'VulnerabilityAssessmentScanStatePassed', 'VulnerabilityAssessmentScanStateFailed', 'VulnerabilityAssessmentScanStateFailedToRun', 'VulnerabilityAssessmentScanStateInProgress' State VulnerabilityAssessmentScanState `json:"state,omitempty"` - // StartTime - The scan start time (UTC). + // StartTime - READ-ONLY; The scan start time (UTC). StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - The scan end time (UTC). + // EndTime - READ-ONLY; The scan end time (UTC). EndTime *date.Time `json:"endTime,omitempty"` - // Errors - The scan errors. + // Errors - READ-ONLY; The scan errors. Errors *[]VulnerabilityAssessmentScanError `json:"errors,omitempty"` - // StorageContainerPath - The scan results storage container path. + // StorageContainerPath - READ-ONLY; The scan results storage container path. StorageContainerPath *string `json:"storageContainerPath,omitempty"` - // NumberOfFailedSecurityChecks - The number of failed security checks. + // NumberOfFailedSecurityChecks - READ-ONLY; The number of failed security checks. NumberOfFailedSecurityChecks *int32 `json:"numberOfFailedSecurityChecks,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-06-01/recoveryservices/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-06-01/recoveryservices/models.go index b8ef3152dcde..7708a3eb7849 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-06-01/recoveryservices/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-06-01/recoveryservices/models.go @@ -146,6 +146,39 @@ type CertificateRequest struct { Properties *RawCertificateData `json:"properties,omitempty"` } +// CheckNameAvailabilityParameters resource Name availability input parameters - Resource type and resource +// name +type CheckNameAvailabilityParameters struct { + // Type - Describes the Resource type: Microsoft.RecoveryServices/Vaults + Type *string `json:"type,omitempty"` + // Name - Resource name for which availability needs to be checked + Name *string `json:"name,omitempty"` +} + +// CheckNameAvailabilityResult response for check name availability API. Resource provider will set +// availability as true | false. +type CheckNameAvailabilityResult struct { + NameAvailable *bool `json:"nameAvailable,omitempty"` + Reason *string `json:"reason,omitempty"` + Message *string `json:"message,omitempty"` +} + +// CheckNameAvailabilityResultResource response for check name availability API. Resource provider will set +// availability as true | false. +type CheckNameAvailabilityResultResource struct { + autorest.Response `json:"-"` + // Properties - CheckNameAvailabilityResultResource properties + Properties *CheckNameAvailabilityResult `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + Type *string `json:"type,omitempty"` + // ETag - Optional ETag. + ETag *string `json:"eTag,omitempty"` +} + // ClientDiscoveryDisplay localized display information of an operation. type ClientDiscoveryDisplay struct { // Provider - Name of the provider for display purposes @@ -381,11 +414,11 @@ type PatchTrackedResource struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // ETag - Optional ETag. ETag *string `json:"eTag,omitempty"` @@ -400,15 +433,6 @@ func (ptr PatchTrackedResource) MarshalJSON() ([]byte, error) { if ptr.Tags != nil { objectMap["tags"] = ptr.Tags } - if ptr.ID != nil { - objectMap["id"] = ptr.ID - } - if ptr.Name != nil { - objectMap["name"] = ptr.Name - } - if ptr.Type != nil { - objectMap["type"] = ptr.Type - } if ptr.ETag != nil { objectMap["eTag"] = ptr.ETag } @@ -423,11 +447,11 @@ type PatchVault struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // ETag - Optional ETag. ETag *string `json:"eTag,omitempty"` @@ -448,15 +472,6 @@ func (pv PatchVault) MarshalJSON() ([]byte, error) { if pv.Tags != nil { objectMap["tags"] = pv.Tags } - if pv.ID != nil { - objectMap["id"] = pv.ID - } - if pv.Name != nil { - objectMap["name"] = pv.Name - } - if pv.Type != nil { - objectMap["type"] = pv.Type - } if pv.ETag != nil { objectMap["eTag"] = pv.ETag } @@ -496,11 +511,11 @@ type ReplicationUsageList struct { // Resource ARM Resource. type Resource struct { - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // ETag - Optional ETag. ETag *string `json:"eTag,omitempty"` @@ -834,11 +849,11 @@ type TrackedResource struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // ETag - Optional ETag. ETag *string `json:"eTag,omitempty"` @@ -853,15 +868,6 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Tags != nil { objectMap["tags"] = tr.Tags } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } if tr.ETag != nil { objectMap["eTag"] = tr.ETag } @@ -870,23 +876,23 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { // UpgradeDetails details for upgrading vault. type UpgradeDetails struct { - // OperationID - ID of the vault upgrade operation. + // OperationID - READ-ONLY; ID of the vault upgrade operation. OperationID *string `json:"operationId,omitempty"` - // StartTimeUtc - UTC time at which the upgrade operation has started. + // StartTimeUtc - READ-ONLY; UTC time at which the upgrade operation has started. StartTimeUtc *date.Time `json:"startTimeUtc,omitempty"` - // LastUpdatedTimeUtc - UTC time at which the upgrade operation status was last updated. + // LastUpdatedTimeUtc - READ-ONLY; UTC time at which the upgrade operation status was last updated. LastUpdatedTimeUtc *date.Time `json:"lastUpdatedTimeUtc,omitempty"` - // EndTimeUtc - UTC time at which the upgrade operation has ended. + // EndTimeUtc - READ-ONLY; UTC time at which the upgrade operation has ended. EndTimeUtc *date.Time `json:"endTimeUtc,omitempty"` - // Status - Status of the vault upgrade operation. Possible values include: 'Unknown', 'InProgress', 'Upgraded', 'Failed' + // Status - READ-ONLY; Status of the vault upgrade operation. Possible values include: 'Unknown', 'InProgress', 'Upgraded', 'Failed' Status VaultUpgradeState `json:"status,omitempty"` - // Message - Message to the user containing information about the upgrade operation. + // Message - READ-ONLY; Message to the user containing information about the upgrade operation. Message *string `json:"message,omitempty"` - // TriggerType - The way the vault upgrade was triggered. Possible values include: 'UserTriggered', 'ForcedUpgrade' + // TriggerType - READ-ONLY; The way the vault upgrade was triggered. Possible values include: 'UserTriggered', 'ForcedUpgrade' TriggerType TriggerType `json:"triggerType,omitempty"` - // UpgradedResourceID - Resource ID of the upgraded vault. + // UpgradedResourceID - READ-ONLY; Resource ID of the upgraded vault. UpgradedResourceID *string `json:"upgradedResourceId,omitempty"` - // PreviousResourceID - Resource ID of the vault before the upgrade. + // PreviousResourceID - READ-ONLY; Resource ID of the vault before the upgrade. PreviousResourceID *string `json:"previousResourceId,omitempty"` } @@ -899,11 +905,11 @@ type Vault struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // ETag - Optional ETag. ETag *string `json:"eTag,omitempty"` @@ -924,15 +930,6 @@ func (vVar Vault) MarshalJSON() ([]byte, error) { if vVar.Tags != nil { objectMap["tags"] = vVar.Tags } - if vVar.ID != nil { - objectMap["id"] = vVar.ID - } - if vVar.Name != nil { - objectMap["name"] = vVar.Name - } - if vVar.Type != nil { - objectMap["type"] = vVar.Type - } if vVar.ETag != nil { objectMap["eTag"] = vVar.ETag } @@ -943,11 +940,11 @@ func (vVar Vault) MarshalJSON() ([]byte, error) { // themselves with the vault. type VaultCertificateResponse struct { autorest.Response `json:"-"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` Properties BasicResourceCertificateDetails `json:"properties,omitempty"` } @@ -1018,11 +1015,11 @@ type VaultExtendedInfo struct { type VaultExtendedInfoResource struct { autorest.Response `json:"-"` *VaultExtendedInfo `json:"properties,omitempty"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // ETag - Optional ETag. ETag *string `json:"eTag,omitempty"` @@ -1034,15 +1031,6 @@ func (veir VaultExtendedInfoResource) MarshalJSON() ([]byte, error) { if veir.VaultExtendedInfo != nil { objectMap["properties"] = veir.VaultExtendedInfo } - if veir.ID != nil { - objectMap["id"] = veir.ID - } - if veir.Name != nil { - objectMap["name"] = veir.Name - } - if veir.Type != nil { - objectMap["type"] = veir.Type - } if veir.ETag != nil { objectMap["eTag"] = veir.ETag } @@ -1113,7 +1101,8 @@ func (veir *VaultExtendedInfoResource) UnmarshalJSON(body []byte) error { type VaultList struct { autorest.Response `json:"-"` Value *[]Vault `json:"value,omitempty"` - NextLink *string `json:"nextLink,omitempty"` + // NextLink - READ-ONLY + NextLink *string `json:"nextLink,omitempty"` } // VaultListIterator provides access to a complete listing of Vault values. @@ -1255,7 +1244,7 @@ func NewVaultListPage(getNextPage func(context.Context, VaultList) (VaultList, e // VaultProperties properties of the vault. type VaultProperties struct { - // ProvisioningState - Provisioning State. + // ProvisioningState - READ-ONLY; Provisioning State. ProvisioningState *string `json:"provisioningState,omitempty"` UpgradeDetails *UpgradeDetails `json:"upgradeDetails,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-06-01/recoveryservices/recoveryservices.go b/vendor/github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-06-01/recoveryservices/recoveryservices.go new file mode 100644 index 000000000000..30a4911e2108 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-06-01/recoveryservices/recoveryservices.go @@ -0,0 +1,121 @@ +package recoveryservices + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/tracing" + "net/http" +) + +// Client is the recovery Services Client +type Client struct { + BaseClient +} + +// NewClient creates an instance of the Client client. +func NewClient(subscriptionID string) Client { + return NewClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewClientWithBaseURI creates an instance of the Client client. +func NewClientWithBaseURI(baseURI string, subscriptionID string) Client { + return Client{NewWithBaseURI(baseURI, subscriptionID)} +} + +// CheckNameAvailability sends the check name availability request. +// Parameters: +// resourceGroupName - the name of the resource group where the recovery services vault is present. +// location - location of the resource +// input - contains information about Resource type and Resource name +func (client Client) CheckNameAvailability(ctx context.Context, resourceGroupName string, location string, input CheckNameAvailabilityParameters) (result CheckNameAvailabilityResultResource, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.CheckNameAvailability") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + req, err := client.CheckNameAvailabilityPreparer(ctx, resourceGroupName, location, input) + if err != nil { + err = autorest.NewErrorWithError(err, "recoveryservices.Client", "CheckNameAvailability", nil, "Failure preparing request") + return + } + + resp, err := client.CheckNameAvailabilitySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "recoveryservices.Client", "CheckNameAvailability", resp, "Failure sending request") + return + } + + result, err = client.CheckNameAvailabilityResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "recoveryservices.Client", "CheckNameAvailability", resp, "Failure responding to request") + } + + return +} + +// CheckNameAvailabilityPreparer prepares the CheckNameAvailability request. +func (client Client) CheckNameAvailabilityPreparer(ctx context.Context, resourceGroupName string, location string, input CheckNameAvailabilityParameters) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "location": autorest.Encode("path", location), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2016-06-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/locations/{location}/checkNameAvailability", pathParameters), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the +// http.Response Body if it receives an error. +func (client Client) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always +// closes the http.Response Body. +func (client Client) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResultResource, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2017-07-01/backup/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2017-07-01/backup/models.go index bd54eeaa71b5..85748428e4cd 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2017-07-01/backup/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2017-07-01/backup/models.go @@ -12054,11 +12054,11 @@ type EngineBaseResource struct { autorest.Response `json:"-"` // Properties - BackupEngineBaseResource properties Properties BasicEngineBase `json:"properties,omitempty"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -12072,15 +12072,6 @@ type EngineBaseResource struct { func (ebr EngineBaseResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) objectMap["properties"] = ebr.Properties - if ebr.ID != nil { - objectMap["id"] = ebr.ID - } - if ebr.Name != nil { - objectMap["name"] = ebr.Name - } - if ebr.Type != nil { - objectMap["type"] = ebr.Type - } if ebr.Location != nil { objectMap["location"] = ebr.Location } @@ -13818,11 +13809,11 @@ func (ir ILRRequest) AsBasicILRRequest() (BasicILRRequest, bool) { type ILRRequestResource struct { // Properties - ILRRequestResource properties Properties BasicILRRequest `json:"properties,omitempty"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -13836,15 +13827,6 @@ type ILRRequestResource struct { func (irr ILRRequestResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) objectMap["properties"] = irr.Properties - if irr.ID != nil { - objectMap["id"] = irr.ID - } - if irr.Name != nil { - objectMap["name"] = irr.Name - } - if irr.Type != nil { - objectMap["type"] = irr.Type - } if irr.Location != nil { objectMap["location"] = irr.Location } @@ -14130,11 +14112,11 @@ type JobResource struct { autorest.Response `json:"-"` // Properties - JobResource properties Properties BasicJob `json:"properties,omitempty"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -14148,15 +14130,6 @@ type JobResource struct { func (jr JobResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) objectMap["properties"] = jr.Properties - if jr.ID != nil { - objectMap["id"] = jr.ID - } - if jr.Name != nil { - objectMap["name"] = jr.Name - } - if jr.Type != nil { - objectMap["type"] = jr.Type - } if jr.Location != nil { objectMap["location"] = jr.Location } @@ -15965,11 +15938,11 @@ func (pc ProtectableContainer) AsBasicProtectableContainer() (BasicProtectableCo type ProtectableContainerResource struct { // Properties - ProtectableContainerResource properties Properties BasicProtectableContainer `json:"properties,omitempty"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -15983,15 +15956,6 @@ type ProtectableContainerResource struct { func (pcr ProtectableContainerResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) objectMap["properties"] = pcr.Properties - if pcr.ID != nil { - objectMap["id"] = pcr.ID - } - if pcr.Name != nil { - objectMap["name"] = pcr.Name - } - if pcr.Type != nil { - objectMap["type"] = pcr.Type - } if pcr.Location != nil { objectMap["location"] = pcr.Location } @@ -16491,11 +16455,11 @@ type ProtectedItemResource struct { autorest.Response `json:"-"` // Properties - ProtectedItemResource properties Properties BasicProtectedItem `json:"properties,omitempty"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -16509,15 +16473,6 @@ type ProtectedItemResource struct { func (pir ProtectedItemResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) objectMap["properties"] = pir.Properties - if pir.ID != nil { - objectMap["id"] = pir.ID - } - if pir.Name != nil { - objectMap["name"] = pir.Name - } - if pir.Type != nil { - objectMap["type"] = pir.Type - } if pir.Location != nil { objectMap["location"] = pir.Location } @@ -16983,11 +16938,11 @@ type ProtectionContainerResource struct { autorest.Response `json:"-"` // Properties - ProtectionContainerResource properties Properties BasicProtectionContainer `json:"properties,omitempty"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -17001,15 +16956,6 @@ type ProtectionContainerResource struct { func (pcr ProtectionContainerResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) objectMap["properties"] = pcr.Properties - if pcr.ID != nil { - objectMap["id"] = pcr.ID - } - if pcr.Name != nil { - objectMap["name"] = pcr.Name - } - if pcr.Type != nil { - objectMap["type"] = pcr.Type - } if pcr.Location != nil { objectMap["location"] = pcr.Location } @@ -17404,11 +17350,11 @@ type ProtectionIntentResource struct { autorest.Response `json:"-"` // Properties - ProtectionIntentResource properties Properties BasicProtectionIntent `json:"properties,omitempty"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -17422,15 +17368,6 @@ type ProtectionIntentResource struct { func (pir ProtectionIntentResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) objectMap["properties"] = pir.Properties - if pir.ID != nil { - objectMap["id"] = pir.ID - } - if pir.Name != nil { - objectMap["name"] = pir.Name - } - if pir.Type != nil { - objectMap["type"] = pir.Type - } if pir.Location != nil { objectMap["location"] = pir.Location } @@ -17813,11 +17750,11 @@ type ProtectionPolicyResource struct { autorest.Response `json:"-"` // Properties - ProtectionPolicyResource properties Properties BasicProtectionPolicy `json:"properties,omitempty"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -17831,15 +17768,6 @@ type ProtectionPolicyResource struct { func (ppr ProtectionPolicyResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) objectMap["properties"] = ppr.Properties - if ppr.ID != nil { - objectMap["id"] = ppr.ID - } - if ppr.Name != nil { - objectMap["name"] = ppr.Name - } - if ppr.Type != nil { - objectMap["type"] = ppr.Type - } if ppr.Location != nil { objectMap["location"] = ppr.Location } @@ -18254,11 +18182,11 @@ type RecoveryPointResource struct { autorest.Response `json:"-"` // Properties - RecoveryPointResource properties Properties BasicRecoveryPoint `json:"properties,omitempty"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -18272,15 +18200,6 @@ type RecoveryPointResource struct { func (rpr RecoveryPointResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) objectMap["properties"] = rpr.Properties - if rpr.ID != nil { - objectMap["id"] = rpr.ID - } - if rpr.Name != nil { - objectMap["name"] = rpr.Name - } - if rpr.Type != nil { - objectMap["type"] = rpr.Type - } if rpr.Location != nil { objectMap["location"] = rpr.Location } @@ -18623,11 +18542,11 @@ func (r Request) AsBasicRequest() (BasicRequest, bool) { type RequestResource struct { // Properties - BackupRequestResource properties Properties BasicRequest `json:"properties,omitempty"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -18641,15 +18560,6 @@ type RequestResource struct { func (rr RequestResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) objectMap["properties"] = rr.Properties - if rr.ID != nil { - objectMap["id"] = rr.ID - } - if rr.Name != nil { - objectMap["name"] = rr.Name - } - if rr.Type != nil { - objectMap["type"] = rr.Type - } if rr.Location != nil { objectMap["location"] = rr.Location } @@ -18741,11 +18651,11 @@ func (rr *RequestResource) UnmarshalJSON(body []byte) error { // Resource ARM Resource. type Resource struct { - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -18758,15 +18668,6 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -18794,11 +18695,11 @@ type ResourceConfigResource struct { autorest.Response `json:"-"` // Properties - BackupResourceConfigResource properties Properties *ResourceConfig `json:"properties,omitempty"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -18814,15 +18715,6 @@ func (rcr ResourceConfigResource) MarshalJSON() ([]byte, error) { if rcr.Properties != nil { objectMap["properties"] = rcr.Properties } - if rcr.ID != nil { - objectMap["id"] = rcr.ID - } - if rcr.Name != nil { - objectMap["name"] = rcr.Name - } - if rcr.Type != nil { - objectMap["type"] = rcr.Type - } if rcr.Location != nil { objectMap["location"] = rcr.Location } @@ -18858,11 +18750,11 @@ type ResourceVaultConfigResource struct { autorest.Response `json:"-"` // Properties - BackupResourceVaultConfigResource properties Properties *ResourceVaultConfig `json:"properties,omitempty"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -18878,15 +18770,6 @@ func (rvcr ResourceVaultConfigResource) MarshalJSON() ([]byte, error) { if rvcr.Properties != nil { objectMap["properties"] = rvcr.Properties } - if rvcr.ID != nil { - objectMap["id"] = rvcr.ID - } - if rvcr.Name != nil { - objectMap["name"] = rvcr.Name - } - if rvcr.Type != nil { - objectMap["type"] = rvcr.Type - } if rvcr.Location != nil { objectMap["location"] = rvcr.Location } @@ -19077,11 +18960,11 @@ func (rr RestoreRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool) { type RestoreRequestResource struct { // Properties - RestoreRequestResource properties Properties BasicRestoreRequest `json:"properties,omitempty"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -19095,15 +18978,6 @@ type RestoreRequestResource struct { func (rrr RestoreRequestResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) objectMap["properties"] = rrr.Properties - if rrr.ID != nil { - objectMap["id"] = rrr.ID - } - if rrr.Name != nil { - objectMap["name"] = rrr.Name - } - if rrr.Type != nil { - objectMap["type"] = rrr.Type - } if rrr.Location != nil { objectMap["location"] = rrr.Location } @@ -20117,11 +19991,11 @@ func (wi WorkloadItem) AsBasicWorkloadItem() (BasicWorkloadItem, bool) { type WorkloadItemResource struct { // Properties - WorkloadItemResource properties Properties BasicWorkloadItem `json:"properties,omitempty"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -20135,15 +20009,6 @@ type WorkloadItemResource struct { func (wir WorkloadItemResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) objectMap["properties"] = wir.Properties - if wir.ID != nil { - objectMap["id"] = wir.ID - } - if wir.Name != nil { - objectMap["name"] = wir.Name - } - if wir.Type != nil { - objectMap["type"] = wir.Type - } if wir.Location != nil { objectMap["location"] = wir.Location } @@ -20601,11 +20466,11 @@ func (wpi WorkloadProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorklo type WorkloadProtectableItemResource struct { // Properties - WorkloadProtectableItemResource properties Properties BasicWorkloadProtectableItem `json:"properties,omitempty"` - // ID - Resource Id represents the complete path to the resource. + // ID - READ-ONLY; Resource Id represents the complete path to the resource. ID *string `json:"id,omitempty"` - // Name - Resource name associated with the resource. + // Name - READ-ONLY; Resource name associated with the resource. Name *string `json:"name,omitempty"` - // Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + // Type - READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... Type *string `json:"type,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` @@ -20619,15 +20484,6 @@ type WorkloadProtectableItemResource struct { func (wpir WorkloadProtectableItemResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) objectMap["properties"] = wpir.Properties - if wpir.ID != nil { - objectMap["id"] = wpir.ID - } - if wpir.Name != nil { - objectMap["name"] = wpir.Name - } - if wpir.Type != nil { - objectMap["type"] = wpir.Type - } if wpir.Location != nil { objectMap["location"] = wpir.Location } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2018-03-01/redis/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2018-03-01/redis/models.go index ff50d137a43e..d59689e41f72 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2018-03-01/redis/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2018-03-01/redis/models.go @@ -194,9 +194,9 @@ func PossibleTLSVersionValues() []TLSVersion { // AccessKeys redis cache access keys. type AccessKeys struct { autorest.Response `json:"-"` - // PrimaryKey - The current primary key that clients can use to authenticate with Redis cache. + // PrimaryKey - READ-ONLY; The current primary key that clients can use to authenticate with Redis cache. PrimaryKey *string `json:"primaryKey,omitempty"` - // SecondaryKey - The current secondary key that clients can use to authenticate with Redis cache. + // SecondaryKey - READ-ONLY; The current secondary key that clients can use to authenticate with Redis cache. SecondaryKey *string `json:"secondaryKey,omitempty"` } @@ -252,7 +252,7 @@ type CreateFuture struct { // If the operation has not completed it will return an error. func (future *CreateFuture) Result(client Client) (rt ResourceType, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "redis.CreateFuture", "Result", future.Response(), "Polling failure") return @@ -411,7 +411,7 @@ type DeleteFuture struct { // If the operation has not completed it will return an error. func (future *DeleteFuture) Result(client Client) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "redis.DeleteFuture", "Result", future.Response(), "Polling failure") return @@ -433,7 +433,7 @@ type ExportDataFuture struct { // If the operation has not completed it will return an error. func (future *ExportDataFuture) Result(client Client) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "redis.ExportDataFuture", "Result", future.Response(), "Polling failure") return @@ -462,11 +462,11 @@ type FirewallRule struct { autorest.Response `json:"-"` // FirewallRuleProperties - redis cache firewall rule properties *FirewallRuleProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -476,15 +476,6 @@ func (fr FirewallRule) MarshalJSON() ([]byte, error) { if fr.FirewallRuleProperties != nil { objectMap["properties"] = fr.FirewallRuleProperties } - if fr.ID != nil { - objectMap["id"] = fr.ID - } - if fr.Name != nil { - objectMap["name"] = fr.Name - } - if fr.Type != nil { - objectMap["type"] = fr.Type - } return json.Marshal(objectMap) } @@ -583,7 +574,7 @@ type FirewallRuleListResult struct { autorest.Response `json:"-"` // Value - Results of the list firewall rules operation. Value *[]FirewallRule `json:"value,omitempty"` - // NextLink - Link for next page of results. + // NextLink - READ-ONLY; Link for next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -735,7 +726,7 @@ type FirewallRuleProperties struct { // ForceRebootResponse response to force reboot for Redis cache. type ForceRebootResponse struct { autorest.Response `json:"-"` - // Message - Status message + // Message - READ-ONLY; Status message Message *string `json:"message,omitempty"` } @@ -748,7 +739,7 @@ type ImportDataFuture struct { // If the operation has not completed it will return an error. func (future *ImportDataFuture) Result(client Client) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "redis.ImportDataFuture", "Result", future.Response(), "Polling failure") return @@ -771,7 +762,7 @@ type ImportRDBParameters struct { // LinkedServer linked server Id type LinkedServer struct { - // ID - Linked server Id. + // ID - READ-ONLY; Linked server Id. ID *string `json:"id,omitempty"` } @@ -785,7 +776,7 @@ type LinkedServerCreateFuture struct { // If the operation has not completed it will return an error. func (future *LinkedServerCreateFuture) Result(client LinkedServerClient) (lswp LinkedServerWithProperties, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "redis.LinkedServerCreateFuture", "Result", future.Response(), "Polling failure") return @@ -855,7 +846,7 @@ type LinkedServerCreateProperties struct { // LinkedServerProperties properties of a linked server to be returned in get/put response type LinkedServerProperties struct { - // ProvisioningState - Terminal state of the link between primary and secondary redis cache. + // ProvisioningState - READ-ONLY; Terminal state of the link between primary and secondary redis cache. ProvisioningState *string `json:"provisioningState,omitempty"` // LinkedRedisCacheID - Fully qualified resourceId of the linked redis cache. LinkedRedisCacheID *string `json:"linkedRedisCacheId,omitempty"` @@ -870,11 +861,11 @@ type LinkedServerWithProperties struct { autorest.Response `json:"-"` // LinkedServerProperties - Properties of the linked server. *LinkedServerProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -884,15 +875,6 @@ func (lswp LinkedServerWithProperties) MarshalJSON() ([]byte, error) { if lswp.LinkedServerProperties != nil { objectMap["properties"] = lswp.LinkedServerProperties } - if lswp.ID != nil { - objectMap["id"] = lswp.ID - } - if lswp.Name != nil { - objectMap["name"] = lswp.Name - } - if lswp.Type != nil { - objectMap["type"] = lswp.Type - } return json.Marshal(objectMap) } @@ -952,7 +934,7 @@ type LinkedServerWithPropertiesList struct { autorest.Response `json:"-"` // Value - List of linked servers (with properties) of a Redis cache. Value *[]LinkedServerWithProperties `json:"value,omitempty"` - // NextLink - Link for next set. + // NextLink - READ-ONLY; Link for next set. NextLink *string `json:"nextLink,omitempty"` } @@ -1099,7 +1081,7 @@ type ListResult struct { autorest.Response `json:"-"` // Value - List of Redis cache instances. Value *[]ResourceType `json:"value,omitempty"` - // NextLink - Link for next page of results. + // NextLink - READ-ONLY; Link for next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1245,7 +1227,7 @@ type NotificationListResponse struct { autorest.Response `json:"-"` // Value - List of all notifications. Value *[]UpgradeNotification `json:"value,omitempty"` - // NextLink - Link for next set of notifications. + // NextLink - READ-ONLY; Link for next set of notifications. NextLink *string `json:"nextLink,omitempty"` } @@ -1275,7 +1257,7 @@ type OperationListResult struct { autorest.Response `json:"-"` // Value - List of operations supported by the resource provider. Value *[]Operation `json:"value,omitempty"` - // NextLink - URL to get the next set of operation list results if there are any. + // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` } @@ -1421,11 +1403,11 @@ type PatchSchedule struct { autorest.Response `json:"-"` // ScheduleEntries - List of patch schedules for a Redis cache. *ScheduleEntries `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1435,15 +1417,6 @@ func (ps PatchSchedule) MarshalJSON() ([]byte, error) { if ps.ScheduleEntries != nil { objectMap["properties"] = ps.ScheduleEntries } - if ps.ID != nil { - objectMap["id"] = ps.ID - } - if ps.Name != nil { - objectMap["name"] = ps.Name - } - if ps.Type != nil { - objectMap["type"] = ps.Type - } return json.Marshal(objectMap) } @@ -1503,7 +1476,7 @@ type PatchScheduleListResult struct { autorest.Response `json:"-"` // Value - Results of the list patch schedules operation. Value *[]PatchSchedule `json:"value,omitempty"` - // NextLink - Link for next page of results. + // NextLink - READ-ONLY; Link for next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1646,19 +1619,19 @@ func NewPatchScheduleListResultPage(getNextPage func(context.Context, PatchSched // Properties properties of the redis cache. type Properties struct { - // RedisVersion - Redis version. + // RedisVersion - READ-ONLY; Redis version. RedisVersion *string `json:"redisVersion,omitempty"` - // ProvisioningState - Redis instance provisioning status. Possible values include: 'Creating', 'Deleting', 'Disabled', 'Failed', 'Linking', 'Provisioning', 'RecoveringScaleFailure', 'Scaling', 'Succeeded', 'Unlinking', 'Unprovisioning', 'Updating' + // ProvisioningState - READ-ONLY; Redis instance provisioning status. Possible values include: 'Creating', 'Deleting', 'Disabled', 'Failed', 'Linking', 'Provisioning', 'RecoveringScaleFailure', 'Scaling', 'Succeeded', 'Unlinking', 'Unprovisioning', 'Updating' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` - // HostName - Redis host name. + // HostName - READ-ONLY; Redis host name. HostName *string `json:"hostName,omitempty"` - // Port - Redis non-SSL port. + // Port - READ-ONLY; Redis non-SSL port. Port *int32 `json:"port,omitempty"` - // SslPort - Redis SSL port. + // SslPort - READ-ONLY; Redis SSL port. SslPort *int32 `json:"sslPort,omitempty"` - // AccessKeys - The keys of the Redis cache - not set if this object is not the response to Create or Update redis cache + // AccessKeys - READ-ONLY; The keys of the Redis cache - not set if this object is not the response to Create or Update redis cache AccessKeys *AccessKeys `json:"accessKeys,omitempty"` - // LinkedServers - List of the linked servers associated with the cache + // LinkedServers - READ-ONLY; List of the linked servers associated with the cache LinkedServers *[]LinkedServer `json:"linkedServers,omitempty"` // Sku - The SKU of the Redis cache to deploy. Sku *Sku `json:"sku,omitempty"` @@ -1681,27 +1654,6 @@ type Properties struct { // MarshalJSON is the custom marshaler for Properties. func (p Properties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if p.RedisVersion != nil { - objectMap["redisVersion"] = p.RedisVersion - } - if p.ProvisioningState != "" { - objectMap["provisioningState"] = p.ProvisioningState - } - if p.HostName != nil { - objectMap["hostName"] = p.HostName - } - if p.Port != nil { - objectMap["port"] = p.Port - } - if p.SslPort != nil { - objectMap["sslPort"] = p.SslPort - } - if p.AccessKeys != nil { - objectMap["accessKeys"] = p.AccessKeys - } - if p.LinkedServers != nil { - objectMap["linkedServers"] = p.LinkedServers - } if p.Sku != nil { objectMap["sku"] = p.Sku } @@ -1732,11 +1684,11 @@ func (p Properties) MarshalJSON() ([]byte, error) { // ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than // required location and tags type ProxyResource struct { - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1756,11 +1708,11 @@ type RegenerateKeyParameters struct { // Resource the Resource definition. type Resource struct { - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1775,11 +1727,11 @@ type ResourceType struct { Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1798,15 +1750,6 @@ func (rt ResourceType) MarshalJSON() ([]byte, error) { if rt.Location != nil { objectMap["location"] = rt.Location } - if rt.ID != nil { - objectMap["id"] = rt.ID - } - if rt.Name != nil { - objectMap["name"] = rt.Name - } - if rt.Type != nil { - objectMap["type"] = rt.Type - } return json.Marshal(objectMap) } @@ -1920,11 +1863,11 @@ type TrackedResource struct { Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1937,15 +1880,6 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Location != nil { objectMap["location"] = tr.Location } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } @@ -2044,25 +1978,16 @@ func (up UpdateProperties) MarshalJSON() ([]byte, error) { // UpgradeNotification properties of upgrade notification. type UpgradeNotification struct { - // Name - Name of upgrade notification. + // Name - READ-ONLY; Name of upgrade notification. Name *string `json:"name,omitempty"` - // Timestamp - Timestamp when upgrade notification occurred. + // Timestamp - READ-ONLY; Timestamp when upgrade notification occurred. Timestamp *date.Time `json:"timestamp,omitempty"` - // UpsellNotification - Details about this upgrade notification + // UpsellNotification - READ-ONLY; Details about this upgrade notification UpsellNotification map[string]*string `json:"upsellNotification"` } // MarshalJSON is the custom marshaler for UpgradeNotification. func (un UpgradeNotification) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if un.Name != nil { - objectMap["name"] = un.Name - } - if un.Timestamp != nil { - objectMap["timestamp"] = un.Timestamp - } - if un.UpsellNotification != nil { - objectMap["upsellNotification"] = un.UpsellNotification - } return json.Marshal(objectMap) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/relay/mgmt/2017-04-01/relay/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/relay/mgmt/2017-04-01/relay/models.go index ea30b2511caa..610c302c4794 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/relay/mgmt/2017-04-01/relay/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/relay/mgmt/2017-04-01/relay/models.go @@ -157,11 +157,11 @@ type AuthorizationRule struct { autorest.Response `json:"-"` // AuthorizationRuleProperties - Authorization rule properties. *AuthorizationRuleProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -171,15 +171,6 @@ func (ar AuthorizationRule) MarshalJSON() ([]byte, error) { if ar.AuthorizationRuleProperties != nil { objectMap["properties"] = ar.AuthorizationRuleProperties } - if ar.ID != nil { - objectMap["id"] = ar.ID - } - if ar.Name != nil { - objectMap["name"] = ar.Name - } - if ar.Type != nil { - objectMap["type"] = ar.Type - } return json.Marshal(objectMap) } @@ -395,7 +386,7 @@ type CheckNameAvailability struct { // CheckNameAvailabilityResult description of the check name availability request properties. type CheckNameAvailabilityResult struct { autorest.Response `json:"-"` - // Message - The detailed info regarding the reason associated with the namespace. + // Message - READ-ONLY; The detailed info regarding the reason associated with the namespace. Message *string `json:"message,omitempty"` // NameAvailable - Value indicating namespace is available. Returns true if the namespace is available; otherwise, false. NameAvailable *bool `json:"nameAvailable,omitempty"` @@ -417,11 +408,11 @@ type HybridConnection struct { autorest.Response `json:"-"` // HybridConnectionProperties - Properties of the HybridConnection. *HybridConnectionProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -431,15 +422,6 @@ func (hc HybridConnection) MarshalJSON() ([]byte, error) { if hc.HybridConnectionProperties != nil { objectMap["properties"] = hc.HybridConnectionProperties } - if hc.ID != nil { - objectMap["id"] = hc.ID - } - if hc.Name != nil { - objectMap["name"] = hc.Name - } - if hc.Type != nil { - objectMap["type"] = hc.Type - } return json.Marshal(objectMap) } @@ -642,11 +624,11 @@ func NewHybridConnectionListResultPage(getNextPage func(context.Context, HybridC // HybridConnectionProperties properties of the HybridConnection. type HybridConnectionProperties struct { - // CreatedAt - The time the hybrid connection was created. + // CreatedAt - READ-ONLY; The time the hybrid connection was created. CreatedAt *date.Time `json:"createdAt,omitempty"` - // UpdatedAt - The time the namespace was updated. + // UpdatedAt - READ-ONLY; The time the namespace was updated. UpdatedAt *date.Time `json:"updatedAt,omitempty"` - // ListenerCount - The number of listeners for this hybrid connection. Note that min : 1 and max:25 are supported. + // ListenerCount - READ-ONLY; The number of listeners for this hybrid connection. Note that min : 1 and max:25 are supported. ListenerCount *int32 `json:"listenerCount,omitempty"` // RequiresClientAuthorization - Returns true if client authorization is needed for this hybrid connection; otherwise, false. RequiresClientAuthorization *bool `json:"requiresClientAuthorization,omitempty"` @@ -665,11 +647,11 @@ type Namespace struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -688,15 +670,6 @@ func (n Namespace) MarshalJSON() ([]byte, error) { if n.Tags != nil { objectMap["tags"] = n.Tags } - if n.ID != nil { - objectMap["id"] = n.ID - } - if n.Name != nil { - objectMap["name"] = n.Name - } - if n.Type != nil { - objectMap["type"] = n.Type - } return json.Marshal(objectMap) } @@ -926,15 +899,15 @@ func NewNamespaceListResultPage(getNextPage func(context.Context, NamespaceListR // NamespaceProperties properties of the namespace. type NamespaceProperties struct { - // ProvisioningState - Possible values include: 'Created', 'Succeeded', 'Deleted', 'Failed', 'Updating', 'Unknown' + // ProvisioningState - READ-ONLY; Possible values include: 'Created', 'Succeeded', 'Deleted', 'Failed', 'Updating', 'Unknown' ProvisioningState ProvisioningStateEnum `json:"provisioningState,omitempty"` - // CreatedAt - The time the namespace was created. + // CreatedAt - READ-ONLY; The time the namespace was created. CreatedAt *date.Time `json:"createdAt,omitempty"` - // UpdatedAt - The time the namespace was updated. + // UpdatedAt - READ-ONLY; The time the namespace was updated. UpdatedAt *date.Time `json:"updatedAt,omitempty"` - // ServiceBusEndpoint - Endpoint you can use to perform Service Bus operations. + // ServiceBusEndpoint - READ-ONLY; Endpoint you can use to perform Service Bus operations. ServiceBusEndpoint *string `json:"serviceBusEndpoint,omitempty"` - // MetricID - Identifier for Azure Insights metrics. + // MetricID - READ-ONLY; Identifier for Azure Insights metrics. MetricID *string `json:"metricId,omitempty"` } @@ -948,7 +921,7 @@ type NamespacesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *NamespacesCreateOrUpdateFuture) Result(client NamespacesClient) (n Namespace, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -977,7 +950,7 @@ type NamespacesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *NamespacesDeleteFuture) Result(client NamespacesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "relay.NamespacesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -992,7 +965,7 @@ func (future *NamespacesDeleteFuture) Result(client NamespacesClient) (ar autore // Operation a Relay REST API operation. type Operation struct { - // Name - Operation name: {provider}/{resource}/{operation} + // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // Display - The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` @@ -1000,11 +973,11 @@ type Operation struct { // OperationDisplay the object that represents the operation. type OperationDisplay struct { - // Provider - Service provider: Relay. + // Provider - READ-ONLY; Service provider: Relay. Provider *string `json:"provider,omitempty"` - // Resource - Resource on which the operation is performed: Invoice, etc. + // Resource - READ-ONLY; Resource on which the operation is performed: Invoice, etc. Resource *string `json:"resource,omitempty"` - // Operation - Operation type: Read, write, delete, etc. + // Operation - READ-ONLY; Operation type: Read, write, delete, etc. Operation *string `json:"operation,omitempty"` } @@ -1012,9 +985,9 @@ type OperationDisplay struct { // a URL link to get the next set of results. type OperationListResult struct { autorest.Response `json:"-"` - // Value - List of Relay operations supported by resource provider. + // Value - READ-ONLY; List of Relay operations supported by resource provider. Value *[]Operation `json:"value,omitempty"` - // NextLink - URL to get the next set of operation list results if there are any. + // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` } @@ -1166,11 +1139,11 @@ type RegenerateAccessKeyParameters struct { // Resource the resource definition. type Resource struct { - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1178,11 +1151,11 @@ type Resource struct { type ResourceNamespacePatch struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1192,15 +1165,6 @@ func (rnp ResourceNamespacePatch) MarshalJSON() ([]byte, error) { if rnp.Tags != nil { objectMap["tags"] = rnp.Tags } - if rnp.ID != nil { - objectMap["id"] = rnp.ID - } - if rnp.Name != nil { - objectMap["name"] = rnp.Name - } - if rnp.Type != nil { - objectMap["type"] = rnp.Type - } return json.Marshal(objectMap) } @@ -1218,11 +1182,11 @@ type TrackedResource struct { Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1235,15 +1199,6 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Tags != nil { objectMap["tags"] = tr.Tags } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } @@ -1255,11 +1210,11 @@ type UpdateParameters struct { *NamespaceProperties `json:"properties,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1275,15 +1230,6 @@ func (up UpdateParameters) MarshalJSON() ([]byte, error) { if up.Tags != nil { objectMap["tags"] = up.Tags } - if up.ID != nil { - objectMap["id"] = up.ID - } - if up.Name != nil { - objectMap["name"] = up.Name - } - if up.Type != nil { - objectMap["type"] = up.Type - } return json.Marshal(objectMap) } @@ -1361,11 +1307,11 @@ type WcfRelay struct { autorest.Response `json:"-"` // WcfRelayProperties - Properties of the WCF relay. *WcfRelayProperties `json:"properties,omitempty"` - // ID - Resource ID. + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - Resource name. + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1375,15 +1321,6 @@ func (wr WcfRelay) MarshalJSON() ([]byte, error) { if wr.WcfRelayProperties != nil { objectMap["properties"] = wr.WcfRelayProperties } - if wr.ID != nil { - objectMap["id"] = wr.ID - } - if wr.Name != nil { - objectMap["name"] = wr.Name - } - if wr.Type != nil { - objectMap["type"] = wr.Type - } return json.Marshal(objectMap) } @@ -1440,13 +1377,13 @@ func (wr *WcfRelay) UnmarshalJSON(body []byte) error { // WcfRelayProperties properties of the WCF relay. type WcfRelayProperties struct { - // IsDynamic - Returns true if the relay is dynamic; otherwise, false. + // IsDynamic - READ-ONLY; Returns true if the relay is dynamic; otherwise, false. IsDynamic *bool `json:"isDynamic,omitempty"` - // CreatedAt - The time the WCF relay was created. + // CreatedAt - READ-ONLY; The time the WCF relay was created. CreatedAt *date.Time `json:"createdAt,omitempty"` - // UpdatedAt - The time the namespace was updated. + // UpdatedAt - READ-ONLY; The time the namespace was updated. UpdatedAt *date.Time `json:"updatedAt,omitempty"` - // ListenerCount - The number of listeners for this relay. Note that min :1 and max:25 are supported. + // ListenerCount - READ-ONLY; The number of listeners for this relay. Note that min :1 and max:25 are supported. ListenerCount *int32 `json:"listenerCount,omitempty"` // RelayType - WCF relay type. Possible values include: 'NetTCP', 'HTTP' RelayType RelaytypeEnum `json:"relayType,omitempty"` diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-02-01/resources/groups.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-02-01/resources/groups.go index c199f30bcbc1..b8fb3d0705d2 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-02-01/resources/groups.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-02-01/resources/groups.go @@ -181,6 +181,7 @@ func (client GroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceG "api-version": APIVersion, } + parameters.ID = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -772,6 +773,7 @@ func (client GroupsClient) PatchPreparer(ctx context.Context, resourceGroupName "api-version": APIVersion, } + parameters.ID = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPatch(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-02-01/resources/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-02-01/resources/models.go index c073a1e81979..bb6249c93a03 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-02-01/resources/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-02-01/resources/models.go @@ -119,7 +119,7 @@ type DeploymentExportResult struct { // DeploymentExtended deployment information. type DeploymentExtended struct { autorest.Response `json:"-"` - // ID - The ID of the deployment. + // ID - READ-ONLY; The ID of the deployment. ID *string `json:"id,omitempty"` // Name - The name of the deployment. Name *string `json:"name,omitempty"` @@ -511,7 +511,7 @@ type DeploymentsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *DeploymentsCreateOrUpdateFuture) Result(client DeploymentsClient) (de DeploymentExtended, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -540,7 +540,7 @@ type DeploymentsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *DeploymentsDeleteFuture) Result(client DeploymentsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "resources.DeploymentsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -585,11 +585,11 @@ type GenericResource struct { Sku *Sku `json:"sku,omitempty"` // Identity - The identity of the resource. Identity *Identity `json:"identity,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -618,15 +618,6 @@ func (gr GenericResource) MarshalJSON() ([]byte, error) { if gr.Identity != nil { objectMap["identity"] = gr.Identity } - if gr.ID != nil { - objectMap["id"] = gr.ID - } - if gr.Name != nil { - objectMap["name"] = gr.Name - } - if gr.Type != nil { - objectMap["type"] = gr.Type - } if gr.Location != nil { objectMap["location"] = gr.Location } @@ -649,7 +640,7 @@ type GenericResourceFilter struct { // Group resource group information. type Group struct { autorest.Response `json:"-"` - // ID - The ID of the resource group. + // ID - READ-ONLY; The ID of the resource group. ID *string `json:"id,omitempty"` // Name - The Name of the resource group. Name *string `json:"name,omitempty"` @@ -663,9 +654,6 @@ type Group struct { // MarshalJSON is the custom marshaler for Group. func (g Group) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if g.ID != nil { - objectMap["id"] = g.ID - } if g.Name != nil { objectMap["name"] = g.Name } @@ -846,7 +834,7 @@ func NewGroupListResultPage(getNextPage func(context.Context, GroupListResult) ( // GroupProperties the resource group properties. type GroupProperties struct { - // ProvisioningState - The provisioning state. + // ProvisioningState - READ-ONLY; The provisioning state. ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -859,7 +847,7 @@ type GroupsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *GroupsDeleteFuture) Result(client GroupsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "resources.GroupsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -880,9 +868,9 @@ type HTTPMessage struct { // Identity identity for the resource. type Identity struct { - // PrincipalID - The principal id of resource identity. + // PrincipalID - READ-ONLY; The principal id of resource identity. PrincipalID *string `json:"principalId,omitempty"` - // TenantID - The tenant id of resource. + // TenantID - READ-ONLY; The tenant id of resource. TenantID *string `json:"tenantId,omitempty"` // Type - The identity type. Possible values include: 'SystemAssigned' Type ResourceIdentityType `json:"type,omitempty"` @@ -1064,7 +1052,7 @@ type MoveResourcesFuture struct { // If the operation has not completed it will return an error. func (future *MoveResourcesFuture) Result(client Client) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "resources.MoveResourcesFuture", "Result", future.Response(), "Polling failure") return @@ -1307,11 +1295,11 @@ func (prt ProviderResourceType) MarshalJSON() ([]byte, error) { // Resource ... type Resource struct { - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -1322,15 +1310,6 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -1373,7 +1352,7 @@ type TagCount struct { // TagDetails tag details. type TagDetails struct { autorest.Response `json:"-"` - // ID - The tag ID. + // ID - READ-ONLY; The tag ID. ID *string `json:"id,omitempty"` // TagName - The tag name. TagName *string `json:"tagName,omitempty"` @@ -1532,7 +1511,7 @@ func NewTagsListResultPage(getNextPage func(context.Context, TagsListResult) (Ta // TagValue tag information. type TagValue struct { autorest.Response `json:"-"` - // ID - The tag ID. + // ID - READ-ONLY; The tag ID. ID *string `json:"id,omitempty"` // TagValue - The tag value. TagValue *string `json:"tagValue,omitempty"` @@ -1567,7 +1546,7 @@ type UpdateFuture struct { // If the operation has not completed it will return an error. func (future *UpdateFuture) Result(client Client) (gr GenericResource, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "resources.UpdateFuture", "Result", future.Response(), "Polling failure") return diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/models.go index f03339e399ad..99fc94173842 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/models.go @@ -214,17 +214,17 @@ func NewListResultPage(getNextPage func(context.Context, ListResult) (ListResult // Location location information. type Location struct { - // ID - The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. + // ID - READ-ONLY; The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. ID *string `json:"id,omitempty"` - // SubscriptionID - The subscription ID. + // SubscriptionID - READ-ONLY; The subscription ID. SubscriptionID *string `json:"subscriptionId,omitempty"` - // Name - The location name. + // Name - READ-ONLY; The location name. Name *string `json:"name,omitempty"` - // DisplayName - The display name of the location. + // DisplayName - READ-ONLY; The display name of the location. DisplayName *string `json:"displayName,omitempty"` - // Latitude - The latitude of the location. + // Latitude - READ-ONLY; The latitude of the location. Latitude *string `json:"latitude,omitempty"` - // Longitude - The longitude of the location. + // Longitude - READ-ONLY; The longitude of the location. Longitude *string `json:"longitude,omitempty"` } @@ -404,24 +404,24 @@ func NewOperationListResultPage(getNextPage func(context.Context, OperationListR // Policies subscription policies. type Policies struct { - // LocationPlacementID - The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, a subscription with a location placement Id of Public_2014-09-01 has access to Azure public regions. + // LocationPlacementID - READ-ONLY; The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, a subscription with a location placement Id of Public_2014-09-01 has access to Azure public regions. LocationPlacementID *string `json:"locationPlacementId,omitempty"` - // QuotaID - The subscription quota ID. + // QuotaID - READ-ONLY; The subscription quota ID. QuotaID *string `json:"quotaId,omitempty"` - // SpendingLimit - The subscription spending limit. Possible values include: 'On', 'Off', 'CurrentPeriodOff' + // SpendingLimit - READ-ONLY; The subscription spending limit. Possible values include: 'On', 'Off', 'CurrentPeriodOff' SpendingLimit SpendingLimit `json:"spendingLimit,omitempty"` } // Subscription subscription information. type Subscription struct { autorest.Response `json:"-"` - // ID - The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000. + // ID - READ-ONLY; The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000. ID *string `json:"id,omitempty"` - // SubscriptionID - The subscription ID. + // SubscriptionID - READ-ONLY; The subscription ID. SubscriptionID *string `json:"subscriptionId,omitempty"` - // DisplayName - The subscription display name. + // DisplayName - READ-ONLY; The subscription display name. DisplayName *string `json:"displayName,omitempty"` - // State - The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. Possible values include: 'Enabled', 'Warned', 'PastDue', 'Disabled', 'Deleted' + // State - READ-ONLY; The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. Possible values include: 'Enabled', 'Warned', 'PastDue', 'Disabled', 'Deleted' State State `json:"state,omitempty"` // SubscriptionPolicies - The subscription policies. SubscriptionPolicies *Policies `json:"subscriptionPolicies,omitempty"` @@ -431,9 +431,9 @@ type Subscription struct { // TenantIDDescription tenant Id information. type TenantIDDescription struct { - // ID - The fully qualified ID of the tenant. For example, /tenants/00000000-0000-0000-0000-000000000000. + // ID - READ-ONLY; The fully qualified ID of the tenant. For example, /tenants/00000000-0000-0000-0000-000000000000. ID *string `json:"id,omitempty"` - // TenantID - The tenant ID. For example, 00000000-0000-0000-0000-000000000000. + // TenantID - READ-ONLY; The tenant ID. For example, 00000000-0000-0000-0000-000000000000. TenantID *string `json:"tenantId,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/operations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/operationsgroup.go similarity index 64% rename from vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/operations.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/operationsgroup.go index 18079e576437..3907ef0aebc6 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/operations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/operationsgroup.go @@ -25,27 +25,27 @@ import ( "net/http" ) -// OperationsClient is the all resource groups and resources exist within subscriptions. These operation enable you get -// information about your subscriptions and tenants. A tenant is a dedicated instance of Azure Active Directory (Azure -// AD) for your organization. -type OperationsClient struct { +// OperationsGroupClient is the all resource groups and resources exist within subscriptions. These operation enable +// you get information about your subscriptions and tenants. A tenant is a dedicated instance of Azure Active Directory +// (Azure AD) for your organization. +type OperationsGroupClient struct { BaseClient } -// NewOperationsClient creates an instance of the OperationsClient client. -func NewOperationsClient() OperationsClient { - return NewOperationsClientWithBaseURI(DefaultBaseURI) +// NewOperationsGroupClient creates an instance of the OperationsGroupClient client. +func NewOperationsGroupClient() OperationsGroupClient { + return NewOperationsGroupClientWithBaseURI(DefaultBaseURI) } -// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client. -func NewOperationsClientWithBaseURI(baseURI string) OperationsClient { - return OperationsClient{NewWithBaseURI(baseURI)} +// NewOperationsGroupClientWithBaseURI creates an instance of the OperationsGroupClient client. +func NewOperationsGroupClientWithBaseURI(baseURI string) OperationsGroupClient { + return OperationsGroupClient{NewWithBaseURI(baseURI)} } // List lists all of the available Microsoft.Resources REST API operations. -func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error) { +func (client OperationsGroupClient) List(ctx context.Context) (result OperationListResultPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsGroupClient.List") defer func() { sc := -1 if result.olr.Response.Response != nil { @@ -57,27 +57,27 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.fn = client.listNextResults req, err := client.ListPreparer(ctx) if err != nil { - err = autorest.NewErrorWithError(err, "subscriptions.OperationsClient", "List", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "subscriptions.OperationsGroupClient", "List", nil, "Failure preparing request") return } resp, err := client.ListSender(req) if err != nil { result.olr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "subscriptions.OperationsClient", "List", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "subscriptions.OperationsGroupClient", "List", resp, "Failure sending request") return } result.olr, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "subscriptions.OperationsClient", "List", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "subscriptions.OperationsGroupClient", "List", resp, "Failure responding to request") } return } // ListPreparer prepares the List request. -func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { +func (client OperationsGroupClient) ListPreparer(ctx context.Context) (*http.Request, error) { const APIVersion = "2016-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, @@ -93,14 +93,14 @@ func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. -func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) { +func (client OperationsGroupClient) ListSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // ListResponder handles the response to the List request. The method always // closes the http.Response Body. -func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { +func (client OperationsGroupClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -112,10 +112,10 @@ func (client OperationsClient) ListResponder(resp *http.Response) (result Operat } // listNextResults retrieves the next set of results, if any. -func (client OperationsClient) listNextResults(ctx context.Context, lastResults OperationListResult) (result OperationListResult, err error) { +func (client OperationsGroupClient) listNextResults(ctx context.Context, lastResults OperationListResult) (result OperationListResult, err error) { req, err := lastResults.operationListResultPreparer(ctx) if err != nil { - return result, autorest.NewErrorWithError(err, "subscriptions.OperationsClient", "listNextResults", nil, "Failure preparing next results request") + return result, autorest.NewErrorWithError(err, "subscriptions.OperationsGroupClient", "listNextResults", nil, "Failure preparing next results request") } if req == nil { return @@ -123,19 +123,19 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults resp, err := client.ListSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "subscriptions.OperationsClient", "listNextResults", resp, "Failure sending next results request") + return result, autorest.NewErrorWithError(err, "subscriptions.OperationsGroupClient", "listNextResults", resp, "Failure sending next results request") } result, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "subscriptions.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + err = autorest.NewErrorWithError(err, "subscriptions.OperationsGroupClient", "listNextResults", resp, "Failure responding to next results request") } return } // ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error) { +func (client OperationsGroupClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsGroupClient.List") defer func() { sc := -1 if result.Response().Response.Response != nil { diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/subscriptions.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/subscriptionsgroup.go similarity index 67% rename from vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/subscriptions.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/subscriptionsgroup.go index df7ce71c824f..ea8cb77152ba 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/subscriptions.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/subscriptionsgroup.go @@ -25,29 +25,29 @@ import ( "net/http" ) -// Client is the all resource groups and resources exist within subscriptions. These operation enable you get +// GroupClient is the all resource groups and resources exist within subscriptions. These operation enable you get // information about your subscriptions and tenants. A tenant is a dedicated instance of Azure Active Directory (Azure // AD) for your organization. -type Client struct { +type GroupClient struct { BaseClient } -// NewClient creates an instance of the Client client. -func NewClient() Client { - return NewClientWithBaseURI(DefaultBaseURI) +// NewGroupClient creates an instance of the GroupClient client. +func NewGroupClient() GroupClient { + return NewGroupClientWithBaseURI(DefaultBaseURI) } -// NewClientWithBaseURI creates an instance of the Client client. -func NewClientWithBaseURI(baseURI string) Client { - return Client{NewWithBaseURI(baseURI)} +// NewGroupClientWithBaseURI creates an instance of the GroupClient client. +func NewGroupClientWithBaseURI(baseURI string) GroupClient { + return GroupClient{NewWithBaseURI(baseURI)} } // Get gets details about a specified subscription. // Parameters: // subscriptionID - the ID of the target subscription. -func (client Client) Get(ctx context.Context, subscriptionID string) (result Subscription, err error) { +func (client GroupClient) Get(ctx context.Context, subscriptionID string) (result Subscription, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.Get") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.Get") defer func() { sc := -1 if result.Response.Response != nil { @@ -58,27 +58,27 @@ func (client Client) Get(ctx context.Context, subscriptionID string) (result Sub } req, err := client.GetPreparer(ctx, subscriptionID) if err != nil { - err = autorest.NewErrorWithError(err, "subscriptions.Client", "Get", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "subscriptions.GroupClient", "Get", nil, "Failure preparing request") return } resp, err := client.GetSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "subscriptions.Client", "Get", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "subscriptions.GroupClient", "Get", resp, "Failure sending request") return } result, err = client.GetResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "subscriptions.Client", "Get", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "subscriptions.GroupClient", "Get", resp, "Failure responding to request") } return } // GetPreparer prepares the Get request. -func (client Client) GetPreparer(ctx context.Context, subscriptionID string) (*http.Request, error) { +func (client GroupClient) GetPreparer(ctx context.Context, subscriptionID string) (*http.Request, error) { pathParameters := map[string]interface{}{ "subscriptionId": autorest.Encode("path", subscriptionID), } @@ -98,14 +98,14 @@ func (client Client) GetPreparer(ctx context.Context, subscriptionID string) (*h // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. -func (client Client) GetSender(req *http.Request) (*http.Response, error) { +func (client GroupClient) GetSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. -func (client Client) GetResponder(resp *http.Response) (result Subscription, err error) { +func (client GroupClient) GetResponder(resp *http.Response) (result Subscription, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -117,9 +117,9 @@ func (client Client) GetResponder(resp *http.Response) (result Subscription, err } // List gets all subscriptions for a tenant. -func (client Client) List(ctx context.Context) (result ListResultPage, err error) { +func (client GroupClient) List(ctx context.Context) (result ListResultPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.List") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.List") defer func() { sc := -1 if result.lr.Response.Response != nil { @@ -131,27 +131,27 @@ func (client Client) List(ctx context.Context) (result ListResultPage, err error result.fn = client.listNextResults req, err := client.ListPreparer(ctx) if err != nil { - err = autorest.NewErrorWithError(err, "subscriptions.Client", "List", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "subscriptions.GroupClient", "List", nil, "Failure preparing request") return } resp, err := client.ListSender(req) if err != nil { result.lr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "subscriptions.Client", "List", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "subscriptions.GroupClient", "List", resp, "Failure sending request") return } result.lr, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "subscriptions.Client", "List", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "subscriptions.GroupClient", "List", resp, "Failure responding to request") } return } // ListPreparer prepares the List request. -func (client Client) ListPreparer(ctx context.Context) (*http.Request, error) { +func (client GroupClient) ListPreparer(ctx context.Context) (*http.Request, error) { const APIVersion = "2016-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, @@ -167,14 +167,14 @@ func (client Client) ListPreparer(ctx context.Context) (*http.Request, error) { // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. -func (client Client) ListSender(req *http.Request) (*http.Response, error) { +func (client GroupClient) ListSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ListResponder handles the response to the List request. The method always // closes the http.Response Body. -func (client Client) ListResponder(resp *http.Response) (result ListResult, err error) { +func (client GroupClient) ListResponder(resp *http.Response) (result ListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -186,10 +186,10 @@ func (client Client) ListResponder(resp *http.Response) (result ListResult, err } // listNextResults retrieves the next set of results, if any. -func (client Client) listNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) { +func (client GroupClient) listNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) { req, err := lastResults.listResultPreparer(ctx) if err != nil { - return result, autorest.NewErrorWithError(err, "subscriptions.Client", "listNextResults", nil, "Failure preparing next results request") + return result, autorest.NewErrorWithError(err, "subscriptions.GroupClient", "listNextResults", nil, "Failure preparing next results request") } if req == nil { return @@ -197,19 +197,19 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult resp, err := client.ListSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "subscriptions.Client", "listNextResults", resp, "Failure sending next results request") + return result, autorest.NewErrorWithError(err, "subscriptions.GroupClient", "listNextResults", resp, "Failure sending next results request") } result, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "subscriptions.Client", "listNextResults", resp, "Failure responding to next results request") + err = autorest.NewErrorWithError(err, "subscriptions.GroupClient", "listNextResults", resp, "Failure responding to next results request") } return } // ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client Client) ListComplete(ctx context.Context) (result ListResultIterator, err error) { +func (client GroupClient) ListComplete(ctx context.Context) (result ListResultIterator, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.List") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.List") defer func() { sc := -1 if result.Response().Response.Response != nil { @@ -226,9 +226,9 @@ func (client Client) ListComplete(ctx context.Context) (result ListResultIterato // resource provider may support a subset of this list. // Parameters: // subscriptionID - the ID of the target subscription. -func (client Client) ListLocations(ctx context.Context, subscriptionID string) (result LocationListResult, err error) { +func (client GroupClient) ListLocations(ctx context.Context, subscriptionID string) (result LocationListResult, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.ListLocations") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.ListLocations") defer func() { sc := -1 if result.Response.Response != nil { @@ -239,27 +239,27 @@ func (client Client) ListLocations(ctx context.Context, subscriptionID string) ( } req, err := client.ListLocationsPreparer(ctx, subscriptionID) if err != nil { - err = autorest.NewErrorWithError(err, "subscriptions.Client", "ListLocations", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "subscriptions.GroupClient", "ListLocations", nil, "Failure preparing request") return } resp, err := client.ListLocationsSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "subscriptions.Client", "ListLocations", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "subscriptions.GroupClient", "ListLocations", resp, "Failure sending request") return } result, err = client.ListLocationsResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "subscriptions.Client", "ListLocations", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "subscriptions.GroupClient", "ListLocations", resp, "Failure responding to request") } return } // ListLocationsPreparer prepares the ListLocations request. -func (client Client) ListLocationsPreparer(ctx context.Context, subscriptionID string) (*http.Request, error) { +func (client GroupClient) ListLocationsPreparer(ctx context.Context, subscriptionID string) (*http.Request, error) { pathParameters := map[string]interface{}{ "subscriptionId": autorest.Encode("path", subscriptionID), } @@ -279,14 +279,14 @@ func (client Client) ListLocationsPreparer(ctx context.Context, subscriptionID s // ListLocationsSender sends the ListLocations request. The method will close the // http.Response Body if it receives an error. -func (client Client) ListLocationsSender(req *http.Request) (*http.Response, error) { +func (client GroupClient) ListLocationsSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ListLocationsResponder handles the response to the ListLocations request. The method always // closes the http.Response Body. -func (client Client) ListLocationsResponder(resp *http.Response) (result LocationListResult, err error) { +func (client GroupClient) ListLocationsResponder(resp *http.Response) (result LocationListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/tenants.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/tenantsgroup.go similarity index 60% rename from vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/tenants.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/tenantsgroup.go index 3fc98f0db1c9..eaaf1b1307fb 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/tenants.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions/tenantsgroup.go @@ -25,27 +25,27 @@ import ( "net/http" ) -// TenantsClient is the all resource groups and resources exist within subscriptions. These operation enable you get -// information about your subscriptions and tenants. A tenant is a dedicated instance of Azure Active Directory (Azure -// AD) for your organization. -type TenantsClient struct { +// TenantsGroupClient is the all resource groups and resources exist within subscriptions. These operation enable you +// get information about your subscriptions and tenants. A tenant is a dedicated instance of Azure Active Directory +// (Azure AD) for your organization. +type TenantsGroupClient struct { BaseClient } -// NewTenantsClient creates an instance of the TenantsClient client. -func NewTenantsClient() TenantsClient { - return NewTenantsClientWithBaseURI(DefaultBaseURI) +// NewTenantsGroupClient creates an instance of the TenantsGroupClient client. +func NewTenantsGroupClient() TenantsGroupClient { + return NewTenantsGroupClientWithBaseURI(DefaultBaseURI) } -// NewTenantsClientWithBaseURI creates an instance of the TenantsClient client. -func NewTenantsClientWithBaseURI(baseURI string) TenantsClient { - return TenantsClient{NewWithBaseURI(baseURI)} +// NewTenantsGroupClientWithBaseURI creates an instance of the TenantsGroupClient client. +func NewTenantsGroupClientWithBaseURI(baseURI string) TenantsGroupClient { + return TenantsGroupClient{NewWithBaseURI(baseURI)} } // List gets the tenants for your account. -func (client TenantsClient) List(ctx context.Context) (result TenantListResultPage, err error) { +func (client TenantsGroupClient) List(ctx context.Context) (result TenantListResultPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TenantsClient.List") + ctx = tracing.StartSpan(ctx, fqdn+"/TenantsGroupClient.List") defer func() { sc := -1 if result.tlr.Response.Response != nil { @@ -57,27 +57,27 @@ func (client TenantsClient) List(ctx context.Context) (result TenantListResultPa result.fn = client.listNextResults req, err := client.ListPreparer(ctx) if err != nil { - err = autorest.NewErrorWithError(err, "subscriptions.TenantsClient", "List", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "subscriptions.TenantsGroupClient", "List", nil, "Failure preparing request") return } resp, err := client.ListSender(req) if err != nil { result.tlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "subscriptions.TenantsClient", "List", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "subscriptions.TenantsGroupClient", "List", resp, "Failure sending request") return } result.tlr, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "subscriptions.TenantsClient", "List", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "subscriptions.TenantsGroupClient", "List", resp, "Failure responding to request") } return } // ListPreparer prepares the List request. -func (client TenantsClient) ListPreparer(ctx context.Context) (*http.Request, error) { +func (client TenantsGroupClient) ListPreparer(ctx context.Context) (*http.Request, error) { const APIVersion = "2016-06-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, @@ -93,14 +93,14 @@ func (client TenantsClient) ListPreparer(ctx context.Context) (*http.Request, er // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. -func (client TenantsClient) ListSender(req *http.Request) (*http.Response, error) { +func (client TenantsGroupClient) ListSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // ListResponder handles the response to the List request. The method always // closes the http.Response Body. -func (client TenantsClient) ListResponder(resp *http.Response) (result TenantListResult, err error) { +func (client TenantsGroupClient) ListResponder(resp *http.Response) (result TenantListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -112,10 +112,10 @@ func (client TenantsClient) ListResponder(resp *http.Response) (result TenantLis } // listNextResults retrieves the next set of results, if any. -func (client TenantsClient) listNextResults(ctx context.Context, lastResults TenantListResult) (result TenantListResult, err error) { +func (client TenantsGroupClient) listNextResults(ctx context.Context, lastResults TenantListResult) (result TenantListResult, err error) { req, err := lastResults.tenantListResultPreparer(ctx) if err != nil { - return result, autorest.NewErrorWithError(err, "subscriptions.TenantsClient", "listNextResults", nil, "Failure preparing next results request") + return result, autorest.NewErrorWithError(err, "subscriptions.TenantsGroupClient", "listNextResults", nil, "Failure preparing next results request") } if req == nil { return @@ -123,19 +123,19 @@ func (client TenantsClient) listNextResults(ctx context.Context, lastResults Ten resp, err := client.ListSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "subscriptions.TenantsClient", "listNextResults", resp, "Failure sending next results request") + return result, autorest.NewErrorWithError(err, "subscriptions.TenantsGroupClient", "listNextResults", resp, "Failure sending next results request") } result, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "subscriptions.TenantsClient", "listNextResults", resp, "Failure responding to next results request") + err = autorest.NewErrorWithError(err, "subscriptions.TenantsGroupClient", "listNextResults", resp, "Failure responding to next results request") } return } // ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client TenantsClient) ListComplete(ctx context.Context) (result TenantListResultIterator, err error) { +func (client TenantsGroupClient) ListComplete(ctx context.Context) (result TenantListResultIterator, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TenantsClient.List") + ctx = tracing.StartSpan(ctx, fqdn+"/TenantsGroupClient.List") defer func() { sc := -1 if result.Response().Response.Response != nil { diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-09-01/locks/managementlocks.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-09-01/locks/managementlocks.go index 6920b9b60721..7bcb6dd85ef7 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-09-01/locks/managementlocks.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-09-01/locks/managementlocks.go @@ -106,6 +106,9 @@ func (client ManagementLocksClient) CreateOrUpdateAtResourceGroupLevelPreparer(c "api-version": APIVersion, } + parameters.ID = nil + parameters.Type = nil + parameters.Name = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -207,6 +210,9 @@ func (client ManagementLocksClient) CreateOrUpdateAtResourceLevelPreparer(ctx co "api-version": APIVersion, } + parameters.ID = nil + parameters.Type = nil + parameters.Name = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -295,6 +301,9 @@ func (client ManagementLocksClient) CreateOrUpdateAtSubscriptionLevelPreparer(ct "api-version": APIVersion, } + parameters.ID = nil + parameters.Type = nil + parameters.Name = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -384,6 +393,9 @@ func (client ManagementLocksClient) CreateOrUpdateByScopePreparer(ctx context.Co "api-version": APIVersion, } + parameters.ID = nil + parameters.Type = nil + parameters.Name = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -1447,3 +1459,123 @@ func (client ManagementLocksClient) ListAtSubscriptionLevelComplete(ctx context. result.page, err = client.ListAtSubscriptionLevel(ctx, filter) return } + +// ListByScope gets all the management locks for a scope. +// Parameters: +// scope - the scope for the lock. When providing a scope for the assignment, use +// '/subscriptions/{subscriptionId}' for subscriptions, +// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and +// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' +// for resources. +// filter - the filter to apply on the operation. +func (client ManagementLocksClient) ListByScope(ctx context.Context, scope string, filter string) (result ManagementLockListResultPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagementLocksClient.ListByScope") + defer func() { + sc := -1 + if result.mllr.Response.Response != nil { + sc = result.mllr.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.fn = client.listByScopeNextResults + req, err := client.ListByScopePreparer(ctx, scope, filter) + if err != nil { + err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "ListByScope", nil, "Failure preparing request") + return + } + + resp, err := client.ListByScopeSender(req) + if err != nil { + result.mllr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "ListByScope", resp, "Failure sending request") + return + } + + result.mllr, err = client.ListByScopeResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "ListByScope", resp, "Failure responding to request") + } + + return +} + +// ListByScopePreparer prepares the ListByScope request. +func (client ManagementLocksClient) ListByScopePreparer(ctx context.Context, scope string, filter string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "scope": autorest.Encode("path", scope), + } + + const APIVersion = "2016-09-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if len(filter) > 0 { + queryParameters["$filter"] = autorest.Encode("query", filter) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/{scope}/providers/Microsoft.Authorization/locks", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByScopeSender sends the ListByScope request. The method will close the +// http.Response Body if it receives an error. +func (client ManagementLocksClient) ListByScopeSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// ListByScopeResponder handles the response to the ListByScope request. The method always +// closes the http.Response Body. +func (client ManagementLocksClient) ListByScopeResponder(resp *http.Response) (result ManagementLockListResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByScopeNextResults retrieves the next set of results, if any. +func (client ManagementLocksClient) listByScopeNextResults(ctx context.Context, lastResults ManagementLockListResult) (result ManagementLockListResult, err error) { + req, err := lastResults.managementLockListResultPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "listByScopeNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByScopeSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "listByScopeNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByScopeResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "locks.ManagementLocksClient", "listByScopeNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByScopeComplete enumerates all values, automatically crossing page boundaries as required. +func (client ManagementLocksClient) ListByScopeComplete(ctx context.Context, scope string, filter string) (result ManagementLockListResultIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagementLocksClient.ListByScope") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListByScope(ctx, scope, filter) + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-09-01/locks/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-09-01/locks/models.go index a67b2a64ba0a..5731ebaa96ad 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-09-01/locks/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-09-01/locks/models.go @@ -197,11 +197,11 @@ type ManagementLockObject struct { autorest.Response `json:"-"` // ManagementLockProperties - The properties of the lock. *ManagementLockProperties `json:"properties,omitempty"` - // ID - The resource ID of the lock. + // ID - READ-ONLY; The resource ID of the lock. ID *string `json:"id,omitempty"` - // Type - The resource type of the lock - Microsoft.Authorization/locks. + // Type - READ-ONLY; The resource type of the lock - Microsoft.Authorization/locks. Type *string `json:"type,omitempty"` - // Name - The name of the lock. + // Name - READ-ONLY; The name of the lock. Name *string `json:"name,omitempty"` } @@ -211,15 +211,6 @@ func (mlo ManagementLockObject) MarshalJSON() ([]byte, error) { if mlo.ManagementLockProperties != nil { objectMap["properties"] = mlo.ManagementLockProperties } - if mlo.ID != nil { - objectMap["id"] = mlo.ID - } - if mlo.Type != nil { - objectMap["type"] = mlo.Type - } - if mlo.Name != nil { - objectMap["name"] = mlo.Name - } return json.Marshal(objectMap) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/policy/assignments.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/policy/assignments.go index 9ad0386a325f..3f5bcc0521f1 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/policy/assignments.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/policy/assignments.go @@ -104,6 +104,9 @@ func (client AssignmentsClient) CreatePreparer(ctx context.Context, scope string "api-version": APIVersion, } + parameters.ID = nil + parameters.Type = nil + parameters.Name = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -196,6 +199,9 @@ func (client AssignmentsClient) CreateByIDPreparer(ctx context.Context, policyAs "api-version": APIVersion, } + parameters.ID = nil + parameters.Type = nil + parameters.Name = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/policy/definitions.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/policy/definitions.go index a8a292a7d9c6..cc8a0504d736 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/policy/definitions.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/policy/definitions.go @@ -89,6 +89,9 @@ func (client DefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, poli "api-version": APIVersion, } + parameters.ID = nil + parameters.Name = nil + parameters.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -169,6 +172,9 @@ func (client DefinitionsClient) CreateOrUpdateAtManagementGroupPreparer(ctx cont "api-version": APIVersion, } + parameters.ID = nil + parameters.Name = nil + parameters.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/policy/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/policy/models.go index 3944f1352776..52394c996172 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/policy/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/policy/models.go @@ -83,11 +83,11 @@ type Assignment struct { autorest.Response `json:"-"` // AssignmentProperties - Properties for the policy assignment. *AssignmentProperties `json:"properties,omitempty"` - // ID - The ID of the policy assignment. + // ID - READ-ONLY; The ID of the policy assignment. ID *string `json:"id,omitempty"` - // Type - The type of the policy assignment. + // Type - READ-ONLY; The type of the policy assignment. Type *string `json:"type,omitempty"` - // Name - The name of the policy assignment. + // Name - READ-ONLY; The name of the policy assignment. Name *string `json:"name,omitempty"` // Sku - The policy sku. This property is optional, obsolete, and will be ignored. Sku *Sku `json:"sku,omitempty"` @@ -103,15 +103,6 @@ func (a Assignment) MarshalJSON() ([]byte, error) { if a.AssignmentProperties != nil { objectMap["properties"] = a.AssignmentProperties } - if a.ID != nil { - objectMap["id"] = a.ID - } - if a.Type != nil { - objectMap["type"] = a.Type - } - if a.Name != nil { - objectMap["name"] = a.Name - } if a.Sku != nil { objectMap["sku"] = a.Sku } @@ -371,11 +362,11 @@ type Definition struct { autorest.Response `json:"-"` // DefinitionProperties - The policy definition properties. *DefinitionProperties `json:"properties,omitempty"` - // ID - The ID of the policy definition. + // ID - READ-ONLY; The ID of the policy definition. ID *string `json:"id,omitempty"` - // Name - The name of the policy definition. + // Name - READ-ONLY; The name of the policy definition. Name *string `json:"name,omitempty"` - // Type - The type of the resource (Microsoft.Authorization/policyDefinitions). + // Type - READ-ONLY; The type of the resource (Microsoft.Authorization/policyDefinitions). Type *string `json:"type,omitempty"` } @@ -385,15 +376,6 @@ func (d Definition) MarshalJSON() ([]byte, error) { if d.DefinitionProperties != nil { objectMap["properties"] = d.DefinitionProperties } - if d.ID != nil { - objectMap["id"] = d.ID - } - if d.Name != nil { - objectMap["name"] = d.Name - } - if d.Type != nil { - objectMap["type"] = d.Type - } return json.Marshal(objectMap) } @@ -633,9 +615,9 @@ type ErrorResponse struct { // Identity identity for the resource. type Identity struct { - // PrincipalID - The principal ID of the resource identity. + // PrincipalID - READ-ONLY; The principal ID of the resource identity. PrincipalID *string `json:"principalId,omitempty"` - // TenantID - The tenant ID of the resource identity. + // TenantID - READ-ONLY; The tenant ID of the resource identity. TenantID *string `json:"tenantId,omitempty"` // Type - The identity type. Possible values include: 'SystemAssigned', 'None' Type ResourceIdentityType `json:"type,omitempty"` @@ -646,11 +628,11 @@ type SetDefinition struct { autorest.Response `json:"-"` // SetDefinitionProperties - The policy definition properties. *SetDefinitionProperties `json:"properties,omitempty"` - // ID - The ID of the policy set definition. + // ID - READ-ONLY; The ID of the policy set definition. ID *string `json:"id,omitempty"` - // Name - The name of the policy set definition. + // Name - READ-ONLY; The name of the policy set definition. Name *string `json:"name,omitempty"` - // Type - The type of the resource (Microsoft.Authorization/policySetDefinitions). + // Type - READ-ONLY; The type of the resource (Microsoft.Authorization/policySetDefinitions). Type *string `json:"type,omitempty"` } @@ -660,15 +642,6 @@ func (sd SetDefinition) MarshalJSON() ([]byte, error) { if sd.SetDefinitionProperties != nil { objectMap["properties"] = sd.SetDefinitionProperties } - if sd.ID != nil { - objectMap["id"] = sd.ID - } - if sd.Name != nil { - objectMap["name"] = sd.Name - } - if sd.Type != nil { - objectMap["type"] = sd.Type - } return json.Marshal(objectMap) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/policy/setdefinitions.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/policy/setdefinitions.go index e5b6588c9adb..b3c02161de30 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/policy/setdefinitions.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/policy/setdefinitions.go @@ -98,6 +98,9 @@ func (client SetDefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, p "api-version": APIVersion, } + parameters.ID = nil + parameters.Name = nil + parameters.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -185,6 +188,9 @@ func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroupPreparer(ctx c "api-version": APIVersion, } + parameters.ID = nil + parameters.Name = nil + parameters.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/deploymentoperations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/deploymentoperationsgroup.go similarity index 71% rename from vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/deploymentoperations.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/deploymentoperationsgroup.go index bf46f0a65c88..69d8566d3c41 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/deploymentoperations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/deploymentoperationsgroup.go @@ -26,19 +26,19 @@ import ( "net/http" ) -// DeploymentOperationsClient is the provides operations for working with resources and resource groups. -type DeploymentOperationsClient struct { +// DeploymentOperationsGroupClient is the provides operations for working with resources and resource groups. +type DeploymentOperationsGroupClient struct { BaseClient } -// NewDeploymentOperationsClient creates an instance of the DeploymentOperationsClient client. -func NewDeploymentOperationsClient(subscriptionID string) DeploymentOperationsClient { - return NewDeploymentOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +// NewDeploymentOperationsGroupClient creates an instance of the DeploymentOperationsGroupClient client. +func NewDeploymentOperationsGroupClient(subscriptionID string) DeploymentOperationsGroupClient { + return NewDeploymentOperationsGroupClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewDeploymentOperationsClientWithBaseURI creates an instance of the DeploymentOperationsClient client. -func NewDeploymentOperationsClientWithBaseURI(baseURI string, subscriptionID string) DeploymentOperationsClient { - return DeploymentOperationsClient{NewWithBaseURI(baseURI, subscriptionID)} +// NewDeploymentOperationsGroupClientWithBaseURI creates an instance of the DeploymentOperationsGroupClient client. +func NewDeploymentOperationsGroupClientWithBaseURI(baseURI string, subscriptionID string) DeploymentOperationsGroupClient { + return DeploymentOperationsGroupClient{NewWithBaseURI(baseURI, subscriptionID)} } // Get gets a deployments operation. @@ -46,9 +46,9 @@ func NewDeploymentOperationsClientWithBaseURI(baseURI string, subscriptionID str // resourceGroupName - the name of the resource group. The name is case insensitive. // deploymentName - the name of the deployment. // operationID - the ID of the operation to get. -func (client DeploymentOperationsClient) Get(ctx context.Context, resourceGroupName string, deploymentName string, operationID string) (result DeploymentOperation, err error) { +func (client DeploymentOperationsGroupClient) Get(ctx context.Context, resourceGroupName string, deploymentName string, operationID string) (result DeploymentOperation, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentOperationsClient.Get") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentOperationsGroupClient.Get") defer func() { sc := -1 if result.Response.Response != nil { @@ -66,32 +66,32 @@ func (client DeploymentOperationsClient) Get(ctx context.Context, resourceGroupN Constraints: []validation.Constraint{{Target: "deploymentName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "deploymentName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "deploymentName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.DeploymentOperationsClient", "Get", err.Error()) + return result, validation.NewError("resources.DeploymentOperationsGroupClient", "Get", err.Error()) } req, err := client.GetPreparer(ctx, resourceGroupName, deploymentName, operationID) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "Get", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "Get", nil, "Failure preparing request") return } resp, err := client.GetSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "Get", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "Get", resp, "Failure sending request") return } result, err = client.GetResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "Get", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "Get", resp, "Failure responding to request") } return } // GetPreparer prepares the Get request. -func (client DeploymentOperationsClient) GetPreparer(ctx context.Context, resourceGroupName string, deploymentName string, operationID string) (*http.Request, error) { +func (client DeploymentOperationsGroupClient) GetPreparer(ctx context.Context, resourceGroupName string, deploymentName string, operationID string) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "operationId": autorest.Encode("path", operationID), @@ -114,14 +114,14 @@ func (client DeploymentOperationsClient) GetPreparer(ctx context.Context, resour // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentOperationsClient) GetSender(req *http.Request) (*http.Response, error) { +func (client DeploymentOperationsGroupClient) GetSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. -func (client DeploymentOperationsClient) GetResponder(resp *http.Response) (result DeploymentOperation, err error) { +func (client DeploymentOperationsGroupClient) GetResponder(resp *http.Response) (result DeploymentOperation, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -136,9 +136,9 @@ func (client DeploymentOperationsClient) GetResponder(resp *http.Response) (resu // Parameters: // deploymentName - the name of the deployment. // operationID - the ID of the operation to get. -func (client DeploymentOperationsClient) GetAtSubscriptionScope(ctx context.Context, deploymentName string, operationID string) (result DeploymentOperation, err error) { +func (client DeploymentOperationsGroupClient) GetAtSubscriptionScope(ctx context.Context, deploymentName string, operationID string) (result DeploymentOperation, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentOperationsClient.GetAtSubscriptionScope") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentOperationsGroupClient.GetAtSubscriptionScope") defer func() { sc := -1 if result.Response.Response != nil { @@ -152,32 +152,32 @@ func (client DeploymentOperationsClient) GetAtSubscriptionScope(ctx context.Cont Constraints: []validation.Constraint{{Target: "deploymentName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "deploymentName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "deploymentName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.DeploymentOperationsClient", "GetAtSubscriptionScope", err.Error()) + return result, validation.NewError("resources.DeploymentOperationsGroupClient", "GetAtSubscriptionScope", err.Error()) } req, err := client.GetAtSubscriptionScopePreparer(ctx, deploymentName, operationID) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "GetAtSubscriptionScope", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "GetAtSubscriptionScope", nil, "Failure preparing request") return } resp, err := client.GetAtSubscriptionScopeSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "GetAtSubscriptionScope", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "GetAtSubscriptionScope", resp, "Failure sending request") return } result, err = client.GetAtSubscriptionScopeResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "GetAtSubscriptionScope", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "GetAtSubscriptionScope", resp, "Failure responding to request") } return } // GetAtSubscriptionScopePreparer prepares the GetAtSubscriptionScope request. -func (client DeploymentOperationsClient) GetAtSubscriptionScopePreparer(ctx context.Context, deploymentName string, operationID string) (*http.Request, error) { +func (client DeploymentOperationsGroupClient) GetAtSubscriptionScopePreparer(ctx context.Context, deploymentName string, operationID string) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "operationId": autorest.Encode("path", operationID), @@ -199,14 +199,14 @@ func (client DeploymentOperationsClient) GetAtSubscriptionScopePreparer(ctx cont // GetAtSubscriptionScopeSender sends the GetAtSubscriptionScope request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentOperationsClient) GetAtSubscriptionScopeSender(req *http.Request) (*http.Response, error) { +func (client DeploymentOperationsGroupClient) GetAtSubscriptionScopeSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // GetAtSubscriptionScopeResponder handles the response to the GetAtSubscriptionScope request. The method always // closes the http.Response Body. -func (client DeploymentOperationsClient) GetAtSubscriptionScopeResponder(resp *http.Response) (result DeploymentOperation, err error) { +func (client DeploymentOperationsGroupClient) GetAtSubscriptionScopeResponder(resp *http.Response) (result DeploymentOperation, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -222,9 +222,9 @@ func (client DeploymentOperationsClient) GetAtSubscriptionScopeResponder(resp *h // resourceGroupName - the name of the resource group. The name is case insensitive. // deploymentName - the name of the deployment with the operation to get. // top - the number of results to return. -func (client DeploymentOperationsClient) List(ctx context.Context, resourceGroupName string, deploymentName string, top *int32) (result DeploymentOperationsListResultPage, err error) { +func (client DeploymentOperationsGroupClient) List(ctx context.Context, resourceGroupName string, deploymentName string, top *int32) (result DeploymentOperationsListResultPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentOperationsClient.List") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentOperationsGroupClient.List") defer func() { sc := -1 if result.dolr.Response.Response != nil { @@ -242,33 +242,33 @@ func (client DeploymentOperationsClient) List(ctx context.Context, resourceGroup Constraints: []validation.Constraint{{Target: "deploymentName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "deploymentName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "deploymentName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.DeploymentOperationsClient", "List", err.Error()) + return result, validation.NewError("resources.DeploymentOperationsGroupClient", "List", err.Error()) } result.fn = client.listNextResults req, err := client.ListPreparer(ctx, resourceGroupName, deploymentName, top) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "List", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "List", nil, "Failure preparing request") return } resp, err := client.ListSender(req) if err != nil { result.dolr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "List", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "List", resp, "Failure sending request") return } result.dolr, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "List", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "List", resp, "Failure responding to request") } return } // ListPreparer prepares the List request. -func (client DeploymentOperationsClient) ListPreparer(ctx context.Context, resourceGroupName string, deploymentName string, top *int32) (*http.Request, error) { +func (client DeploymentOperationsGroupClient) ListPreparer(ctx context.Context, resourceGroupName string, deploymentName string, top *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -293,14 +293,14 @@ func (client DeploymentOperationsClient) ListPreparer(ctx context.Context, resou // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentOperationsClient) ListSender(req *http.Request) (*http.Response, error) { +func (client DeploymentOperationsGroupClient) ListSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ListResponder handles the response to the List request. The method always // closes the http.Response Body. -func (client DeploymentOperationsClient) ListResponder(resp *http.Response) (result DeploymentOperationsListResult, err error) { +func (client DeploymentOperationsGroupClient) ListResponder(resp *http.Response) (result DeploymentOperationsListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -312,10 +312,10 @@ func (client DeploymentOperationsClient) ListResponder(resp *http.Response) (res } // listNextResults retrieves the next set of results, if any. -func (client DeploymentOperationsClient) listNextResults(ctx context.Context, lastResults DeploymentOperationsListResult) (result DeploymentOperationsListResult, err error) { +func (client DeploymentOperationsGroupClient) listNextResults(ctx context.Context, lastResults DeploymentOperationsListResult) (result DeploymentOperationsListResult, err error) { req, err := lastResults.deploymentOperationsListResultPreparer(ctx) if err != nil { - return result, autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listNextResults", nil, "Failure preparing next results request") + return result, autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "listNextResults", nil, "Failure preparing next results request") } if req == nil { return @@ -323,19 +323,19 @@ func (client DeploymentOperationsClient) listNextResults(ctx context.Context, la resp, err := client.ListSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listNextResults", resp, "Failure sending next results request") + return result, autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "listNextResults", resp, "Failure sending next results request") } result, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listNextResults", resp, "Failure responding to next results request") + err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "listNextResults", resp, "Failure responding to next results request") } return } // ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client DeploymentOperationsClient) ListComplete(ctx context.Context, resourceGroupName string, deploymentName string, top *int32) (result DeploymentOperationsListResultIterator, err error) { +func (client DeploymentOperationsGroupClient) ListComplete(ctx context.Context, resourceGroupName string, deploymentName string, top *int32) (result DeploymentOperationsListResultIterator, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentOperationsClient.List") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentOperationsGroupClient.List") defer func() { sc := -1 if result.Response().Response.Response != nil { @@ -352,9 +352,9 @@ func (client DeploymentOperationsClient) ListComplete(ctx context.Context, resou // Parameters: // deploymentName - the name of the deployment with the operation to get. // top - the number of results to return. -func (client DeploymentOperationsClient) ListAtSubscriptionScope(ctx context.Context, deploymentName string, top *int32) (result DeploymentOperationsListResultPage, err error) { +func (client DeploymentOperationsGroupClient) ListAtSubscriptionScope(ctx context.Context, deploymentName string, top *int32) (result DeploymentOperationsListResultPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentOperationsClient.ListAtSubscriptionScope") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentOperationsGroupClient.ListAtSubscriptionScope") defer func() { sc := -1 if result.dolr.Response.Response != nil { @@ -368,33 +368,33 @@ func (client DeploymentOperationsClient) ListAtSubscriptionScope(ctx context.Con Constraints: []validation.Constraint{{Target: "deploymentName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "deploymentName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "deploymentName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.DeploymentOperationsClient", "ListAtSubscriptionScope", err.Error()) + return result, validation.NewError("resources.DeploymentOperationsGroupClient", "ListAtSubscriptionScope", err.Error()) } result.fn = client.listAtSubscriptionScopeNextResults req, err := client.ListAtSubscriptionScopePreparer(ctx, deploymentName, top) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "ListAtSubscriptionScope", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "ListAtSubscriptionScope", nil, "Failure preparing request") return } resp, err := client.ListAtSubscriptionScopeSender(req) if err != nil { result.dolr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "ListAtSubscriptionScope", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "ListAtSubscriptionScope", resp, "Failure sending request") return } result.dolr, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "ListAtSubscriptionScope", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "ListAtSubscriptionScope", resp, "Failure responding to request") } return } // ListAtSubscriptionScopePreparer prepares the ListAtSubscriptionScope request. -func (client DeploymentOperationsClient) ListAtSubscriptionScopePreparer(ctx context.Context, deploymentName string, top *int32) (*http.Request, error) { +func (client DeploymentOperationsGroupClient) ListAtSubscriptionScopePreparer(ctx context.Context, deploymentName string, top *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -418,14 +418,14 @@ func (client DeploymentOperationsClient) ListAtSubscriptionScopePreparer(ctx con // ListAtSubscriptionScopeSender sends the ListAtSubscriptionScope request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentOperationsClient) ListAtSubscriptionScopeSender(req *http.Request) (*http.Response, error) { +func (client DeploymentOperationsGroupClient) ListAtSubscriptionScopeSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ListAtSubscriptionScopeResponder handles the response to the ListAtSubscriptionScope request. The method always // closes the http.Response Body. -func (client DeploymentOperationsClient) ListAtSubscriptionScopeResponder(resp *http.Response) (result DeploymentOperationsListResult, err error) { +func (client DeploymentOperationsGroupClient) ListAtSubscriptionScopeResponder(resp *http.Response) (result DeploymentOperationsListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -437,10 +437,10 @@ func (client DeploymentOperationsClient) ListAtSubscriptionScopeResponder(resp * } // listAtSubscriptionScopeNextResults retrieves the next set of results, if any. -func (client DeploymentOperationsClient) listAtSubscriptionScopeNextResults(ctx context.Context, lastResults DeploymentOperationsListResult) (result DeploymentOperationsListResult, err error) { +func (client DeploymentOperationsGroupClient) listAtSubscriptionScopeNextResults(ctx context.Context, lastResults DeploymentOperationsListResult) (result DeploymentOperationsListResult, err error) { req, err := lastResults.deploymentOperationsListResultPreparer(ctx) if err != nil { - return result, autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listAtSubscriptionScopeNextResults", nil, "Failure preparing next results request") + return result, autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "listAtSubscriptionScopeNextResults", nil, "Failure preparing next results request") } if req == nil { return @@ -448,19 +448,19 @@ func (client DeploymentOperationsClient) listAtSubscriptionScopeNextResults(ctx resp, err := client.ListAtSubscriptionScopeSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listAtSubscriptionScopeNextResults", resp, "Failure sending next results request") + return result, autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "listAtSubscriptionScopeNextResults", resp, "Failure sending next results request") } result, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsClient", "listAtSubscriptionScopeNextResults", resp, "Failure responding to next results request") + err = autorest.NewErrorWithError(err, "resources.DeploymentOperationsGroupClient", "listAtSubscriptionScopeNextResults", resp, "Failure responding to next results request") } return } // ListAtSubscriptionScopeComplete enumerates all values, automatically crossing page boundaries as required. -func (client DeploymentOperationsClient) ListAtSubscriptionScopeComplete(ctx context.Context, deploymentName string, top *int32) (result DeploymentOperationsListResultIterator, err error) { +func (client DeploymentOperationsGroupClient) ListAtSubscriptionScopeComplete(ctx context.Context, deploymentName string, top *int32) (result DeploymentOperationsListResultIterator, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentOperationsClient.ListAtSubscriptionScope") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentOperationsGroupClient.ListAtSubscriptionScope") defer func() { sc := -1 if result.Response().Response.Response != nil { diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/deployments.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/deploymentsgroup.go similarity index 71% rename from vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/deployments.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/deploymentsgroup.go index 636a55f9fcd0..7e73d3a31d09 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/deployments.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/deploymentsgroup.go @@ -26,19 +26,19 @@ import ( "net/http" ) -// DeploymentsClient is the provides operations for working with resources and resource groups. -type DeploymentsClient struct { +// DeploymentsGroupClient is the provides operations for working with resources and resource groups. +type DeploymentsGroupClient struct { BaseClient } -// NewDeploymentsClient creates an instance of the DeploymentsClient client. -func NewDeploymentsClient(subscriptionID string) DeploymentsClient { - return NewDeploymentsClientWithBaseURI(DefaultBaseURI, subscriptionID) +// NewDeploymentsGroupClient creates an instance of the DeploymentsGroupClient client. +func NewDeploymentsGroupClient(subscriptionID string) DeploymentsGroupClient { + return NewDeploymentsGroupClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewDeploymentsClientWithBaseURI creates an instance of the DeploymentsClient client. -func NewDeploymentsClientWithBaseURI(baseURI string, subscriptionID string) DeploymentsClient { - return DeploymentsClient{NewWithBaseURI(baseURI, subscriptionID)} +// NewDeploymentsGroupClientWithBaseURI creates an instance of the DeploymentsGroupClient client. +func NewDeploymentsGroupClientWithBaseURI(baseURI string, subscriptionID string) DeploymentsGroupClient { + return DeploymentsGroupClient{NewWithBaseURI(baseURI, subscriptionID)} } // Cancel you can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is @@ -47,9 +47,9 @@ func NewDeploymentsClientWithBaseURI(baseURI string, subscriptionID string) Depl // Parameters: // resourceGroupName - the name of the resource group. The name is case insensitive. // deploymentName - the name of the deployment to cancel. -func (client DeploymentsClient) Cancel(ctx context.Context, resourceGroupName string, deploymentName string) (result autorest.Response, err error) { +func (client DeploymentsGroupClient) Cancel(ctx context.Context, resourceGroupName string, deploymentName string) (result autorest.Response, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.Cancel") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.Cancel") defer func() { sc := -1 if result.Response != nil { @@ -67,32 +67,32 @@ func (client DeploymentsClient) Cancel(ctx context.Context, resourceGroupName st Constraints: []validation.Constraint{{Target: "deploymentName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "deploymentName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "deploymentName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.DeploymentsClient", "Cancel", err.Error()) + return result, validation.NewError("resources.DeploymentsGroupClient", "Cancel", err.Error()) } req, err := client.CancelPreparer(ctx, resourceGroupName, deploymentName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Cancel", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "Cancel", nil, "Failure preparing request") return } resp, err := client.CancelSender(req) if err != nil { result.Response = resp - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Cancel", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "Cancel", resp, "Failure sending request") return } result, err = client.CancelResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Cancel", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "Cancel", resp, "Failure responding to request") } return } // CancelPreparer prepares the Cancel request. -func (client DeploymentsClient) CancelPreparer(ctx context.Context, resourceGroupName string, deploymentName string) (*http.Request, error) { +func (client DeploymentsGroupClient) CancelPreparer(ctx context.Context, resourceGroupName string, deploymentName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -114,14 +114,14 @@ func (client DeploymentsClient) CancelPreparer(ctx context.Context, resourceGrou // CancelSender sends the Cancel request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentsClient) CancelSender(req *http.Request) (*http.Response, error) { +func (client DeploymentsGroupClient) CancelSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // CancelResponder handles the response to the Cancel request. The method always // closes the http.Response Body. -func (client DeploymentsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error) { +func (client DeploymentsGroupClient) CancelResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -136,9 +136,9 @@ func (client DeploymentsClient) CancelResponder(resp *http.Response) (result aut // currently running template deployment and leaves the resources partially deployed. // Parameters: // deploymentName - the name of the deployment to cancel. -func (client DeploymentsClient) CancelAtSubscriptionScope(ctx context.Context, deploymentName string) (result autorest.Response, err error) { +func (client DeploymentsGroupClient) CancelAtSubscriptionScope(ctx context.Context, deploymentName string) (result autorest.Response, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.CancelAtSubscriptionScope") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.CancelAtSubscriptionScope") defer func() { sc := -1 if result.Response != nil { @@ -152,32 +152,32 @@ func (client DeploymentsClient) CancelAtSubscriptionScope(ctx context.Context, d Constraints: []validation.Constraint{{Target: "deploymentName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "deploymentName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "deploymentName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.DeploymentsClient", "CancelAtSubscriptionScope", err.Error()) + return result, validation.NewError("resources.DeploymentsGroupClient", "CancelAtSubscriptionScope", err.Error()) } req, err := client.CancelAtSubscriptionScopePreparer(ctx, deploymentName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CancelAtSubscriptionScope", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "CancelAtSubscriptionScope", nil, "Failure preparing request") return } resp, err := client.CancelAtSubscriptionScopeSender(req) if err != nil { result.Response = resp - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CancelAtSubscriptionScope", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "CancelAtSubscriptionScope", resp, "Failure sending request") return } result, err = client.CancelAtSubscriptionScopeResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CancelAtSubscriptionScope", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "CancelAtSubscriptionScope", resp, "Failure responding to request") } return } // CancelAtSubscriptionScopePreparer prepares the CancelAtSubscriptionScope request. -func (client DeploymentsClient) CancelAtSubscriptionScopePreparer(ctx context.Context, deploymentName string) (*http.Request, error) { +func (client DeploymentsGroupClient) CancelAtSubscriptionScopePreparer(ctx context.Context, deploymentName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -198,14 +198,14 @@ func (client DeploymentsClient) CancelAtSubscriptionScopePreparer(ctx context.Co // CancelAtSubscriptionScopeSender sends the CancelAtSubscriptionScope request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentsClient) CancelAtSubscriptionScopeSender(req *http.Request) (*http.Response, error) { +func (client DeploymentsGroupClient) CancelAtSubscriptionScopeSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // CancelAtSubscriptionScopeResponder handles the response to the CancelAtSubscriptionScope request. The method always // closes the http.Response Body. -func (client DeploymentsClient) CancelAtSubscriptionScopeResponder(resp *http.Response) (result autorest.Response, err error) { +func (client DeploymentsGroupClient) CancelAtSubscriptionScopeResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -220,9 +220,9 @@ func (client DeploymentsClient) CancelAtSubscriptionScopeResponder(resp *http.Re // resourceGroupName - the name of the resource group with the deployment to check. The name is case // insensitive. // deploymentName - the name of the deployment to check. -func (client DeploymentsClient) CheckExistence(ctx context.Context, resourceGroupName string, deploymentName string) (result autorest.Response, err error) { +func (client DeploymentsGroupClient) CheckExistence(ctx context.Context, resourceGroupName string, deploymentName string) (result autorest.Response, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.CheckExistence") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.CheckExistence") defer func() { sc := -1 if result.Response != nil { @@ -240,32 +240,32 @@ func (client DeploymentsClient) CheckExistence(ctx context.Context, resourceGrou Constraints: []validation.Constraint{{Target: "deploymentName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "deploymentName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "deploymentName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.DeploymentsClient", "CheckExistence", err.Error()) + return result, validation.NewError("resources.DeploymentsGroupClient", "CheckExistence", err.Error()) } req, err := client.CheckExistencePreparer(ctx, resourceGroupName, deploymentName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistence", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "CheckExistence", nil, "Failure preparing request") return } resp, err := client.CheckExistenceSender(req) if err != nil { result.Response = resp - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistence", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "CheckExistence", resp, "Failure sending request") return } result, err = client.CheckExistenceResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistence", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "CheckExistence", resp, "Failure responding to request") } return } // CheckExistencePreparer prepares the CheckExistence request. -func (client DeploymentsClient) CheckExistencePreparer(ctx context.Context, resourceGroupName string, deploymentName string) (*http.Request, error) { +func (client DeploymentsGroupClient) CheckExistencePreparer(ctx context.Context, resourceGroupName string, deploymentName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -287,14 +287,14 @@ func (client DeploymentsClient) CheckExistencePreparer(ctx context.Context, reso // CheckExistenceSender sends the CheckExistence request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentsClient) CheckExistenceSender(req *http.Request) (*http.Response, error) { +func (client DeploymentsGroupClient) CheckExistenceSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // CheckExistenceResponder handles the response to the CheckExistence request. The method always // closes the http.Response Body. -func (client DeploymentsClient) CheckExistenceResponder(resp *http.Response) (result autorest.Response, err error) { +func (client DeploymentsGroupClient) CheckExistenceResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -307,9 +307,9 @@ func (client DeploymentsClient) CheckExistenceResponder(resp *http.Response) (re // CheckExistenceAtSubscriptionScope checks whether the deployment exists. // Parameters: // deploymentName - the name of the deployment to check. -func (client DeploymentsClient) CheckExistenceAtSubscriptionScope(ctx context.Context, deploymentName string) (result autorest.Response, err error) { +func (client DeploymentsGroupClient) CheckExistenceAtSubscriptionScope(ctx context.Context, deploymentName string) (result autorest.Response, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.CheckExistenceAtSubscriptionScope") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.CheckExistenceAtSubscriptionScope") defer func() { sc := -1 if result.Response != nil { @@ -323,32 +323,32 @@ func (client DeploymentsClient) CheckExistenceAtSubscriptionScope(ctx context.Co Constraints: []validation.Constraint{{Target: "deploymentName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "deploymentName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "deploymentName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.DeploymentsClient", "CheckExistenceAtSubscriptionScope", err.Error()) + return result, validation.NewError("resources.DeploymentsGroupClient", "CheckExistenceAtSubscriptionScope", err.Error()) } req, err := client.CheckExistenceAtSubscriptionScopePreparer(ctx, deploymentName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistenceAtSubscriptionScope", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "CheckExistenceAtSubscriptionScope", nil, "Failure preparing request") return } resp, err := client.CheckExistenceAtSubscriptionScopeSender(req) if err != nil { result.Response = resp - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistenceAtSubscriptionScope", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "CheckExistenceAtSubscriptionScope", resp, "Failure sending request") return } result, err = client.CheckExistenceAtSubscriptionScopeResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CheckExistenceAtSubscriptionScope", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "CheckExistenceAtSubscriptionScope", resp, "Failure responding to request") } return } // CheckExistenceAtSubscriptionScopePreparer prepares the CheckExistenceAtSubscriptionScope request. -func (client DeploymentsClient) CheckExistenceAtSubscriptionScopePreparer(ctx context.Context, deploymentName string) (*http.Request, error) { +func (client DeploymentsGroupClient) CheckExistenceAtSubscriptionScopePreparer(ctx context.Context, deploymentName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -369,14 +369,14 @@ func (client DeploymentsClient) CheckExistenceAtSubscriptionScopePreparer(ctx co // CheckExistenceAtSubscriptionScopeSender sends the CheckExistenceAtSubscriptionScope request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentsClient) CheckExistenceAtSubscriptionScopeSender(req *http.Request) (*http.Response, error) { +func (client DeploymentsGroupClient) CheckExistenceAtSubscriptionScopeSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // CheckExistenceAtSubscriptionScopeResponder handles the response to the CheckExistenceAtSubscriptionScope request. The method always // closes the http.Response Body. -func (client DeploymentsClient) CheckExistenceAtSubscriptionScopeResponder(resp *http.Response) (result autorest.Response, err error) { +func (client DeploymentsGroupClient) CheckExistenceAtSubscriptionScopeResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -392,9 +392,9 @@ func (client DeploymentsClient) CheckExistenceAtSubscriptionScopeResponder(resp // The resource group must already exist. // deploymentName - the name of the deployment. // parameters - additional parameters supplied to the operation. -func (client DeploymentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, deploymentName string, parameters Deployment) (result DeploymentsCreateOrUpdateFuture, err error) { +func (client DeploymentsGroupClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, deploymentName string, parameters Deployment) (result DeploymentsGroupCreateOrUpdateFuture, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.CreateOrUpdate") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.CreateOrUpdate") defer func() { sc := -1 if result.Response() != nil { @@ -419,18 +419,18 @@ func (client DeploymentsClient) CreateOrUpdate(ctx context.Context, resourceGrou {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.NewError("resources.DeploymentsClient", "CreateOrUpdate", err.Error()) + return result, validation.NewError("resources.DeploymentsGroupClient", "CreateOrUpdate", err.Error()) } req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, deploymentName, parameters) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CreateOrUpdate", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "CreateOrUpdate", nil, "Failure preparing request") return } result, err = client.CreateOrUpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CreateOrUpdate", result.Response(), "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "CreateOrUpdate", result.Response(), "Failure sending request") return } @@ -438,7 +438,7 @@ func (client DeploymentsClient) CreateOrUpdate(ctx context.Context, resourceGrou } // CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client DeploymentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, deploymentName string, parameters Deployment) (*http.Request, error) { +func (client DeploymentsGroupClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, deploymentName string, parameters Deployment) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -462,7 +462,7 @@ func (client DeploymentsClient) CreateOrUpdatePreparer(ctx context.Context, reso // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentsClient) CreateOrUpdateSender(req *http.Request) (future DeploymentsCreateOrUpdateFuture, err error) { +func (client DeploymentsGroupClient) CreateOrUpdateSender(req *http.Request) (future DeploymentsGroupCreateOrUpdateFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) @@ -475,7 +475,7 @@ func (client DeploymentsClient) CreateOrUpdateSender(req *http.Request) (future // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. -func (client DeploymentsClient) CreateOrUpdateResponder(resp *http.Response) (result DeploymentExtended, err error) { +func (client DeploymentsGroupClient) CreateOrUpdateResponder(resp *http.Response) (result DeploymentExtended, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -491,9 +491,9 @@ func (client DeploymentsClient) CreateOrUpdateResponder(resp *http.Response) (re // Parameters: // deploymentName - the name of the deployment. // parameters - additional parameters supplied to the operation. -func (client DeploymentsClient) CreateOrUpdateAtSubscriptionScope(ctx context.Context, deploymentName string, parameters Deployment) (result DeploymentsCreateOrUpdateAtSubscriptionScopeFuture, err error) { +func (client DeploymentsGroupClient) CreateOrUpdateAtSubscriptionScope(ctx context.Context, deploymentName string, parameters Deployment) (result DeploymentsGroupCreateOrUpdateAtSubscriptionScopeFuture, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.CreateOrUpdateAtSubscriptionScope") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.CreateOrUpdateAtSubscriptionScope") defer func() { sc := -1 if result.Response() != nil { @@ -514,18 +514,18 @@ func (client DeploymentsClient) CreateOrUpdateAtSubscriptionScope(ctx context.Co {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.NewError("resources.DeploymentsClient", "CreateOrUpdateAtSubscriptionScope", err.Error()) + return result, validation.NewError("resources.DeploymentsGroupClient", "CreateOrUpdateAtSubscriptionScope", err.Error()) } req, err := client.CreateOrUpdateAtSubscriptionScopePreparer(ctx, deploymentName, parameters) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CreateOrUpdateAtSubscriptionScope", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "CreateOrUpdateAtSubscriptionScope", nil, "Failure preparing request") return } result, err = client.CreateOrUpdateAtSubscriptionScopeSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "CreateOrUpdateAtSubscriptionScope", result.Response(), "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "CreateOrUpdateAtSubscriptionScope", result.Response(), "Failure sending request") return } @@ -533,7 +533,7 @@ func (client DeploymentsClient) CreateOrUpdateAtSubscriptionScope(ctx context.Co } // CreateOrUpdateAtSubscriptionScopePreparer prepares the CreateOrUpdateAtSubscriptionScope request. -func (client DeploymentsClient) CreateOrUpdateAtSubscriptionScopePreparer(ctx context.Context, deploymentName string, parameters Deployment) (*http.Request, error) { +func (client DeploymentsGroupClient) CreateOrUpdateAtSubscriptionScopePreparer(ctx context.Context, deploymentName string, parameters Deployment) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -556,7 +556,7 @@ func (client DeploymentsClient) CreateOrUpdateAtSubscriptionScopePreparer(ctx co // CreateOrUpdateAtSubscriptionScopeSender sends the CreateOrUpdateAtSubscriptionScope request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentsClient) CreateOrUpdateAtSubscriptionScopeSender(req *http.Request) (future DeploymentsCreateOrUpdateAtSubscriptionScopeFuture, err error) { +func (client DeploymentsGroupClient) CreateOrUpdateAtSubscriptionScopeSender(req *http.Request) (future DeploymentsGroupCreateOrUpdateAtSubscriptionScopeFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) @@ -569,7 +569,7 @@ func (client DeploymentsClient) CreateOrUpdateAtSubscriptionScopeSender(req *htt // CreateOrUpdateAtSubscriptionScopeResponder handles the response to the CreateOrUpdateAtSubscriptionScope request. The method always // closes the http.Response Body. -func (client DeploymentsClient) CreateOrUpdateAtSubscriptionScopeResponder(resp *http.Response) (result DeploymentExtended, err error) { +func (client DeploymentsGroupClient) CreateOrUpdateAtSubscriptionScopeResponder(resp *http.Response) (result DeploymentExtended, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -591,9 +591,9 @@ func (client DeploymentsClient) CreateOrUpdateAtSubscriptionScopeResponder(resp // resourceGroupName - the name of the resource group with the deployment to delete. The name is case // insensitive. // deploymentName - the name of the deployment to delete. -func (client DeploymentsClient) Delete(ctx context.Context, resourceGroupName string, deploymentName string) (result DeploymentsDeleteFuture, err error) { +func (client DeploymentsGroupClient) Delete(ctx context.Context, resourceGroupName string, deploymentName string) (result DeploymentsGroupDeleteFuture, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.Delete") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.Delete") defer func() { sc := -1 if result.Response() != nil { @@ -611,18 +611,18 @@ func (client DeploymentsClient) Delete(ctx context.Context, resourceGroupName st Constraints: []validation.Constraint{{Target: "deploymentName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "deploymentName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "deploymentName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.DeploymentsClient", "Delete", err.Error()) + return result, validation.NewError("resources.DeploymentsGroupClient", "Delete", err.Error()) } req, err := client.DeletePreparer(ctx, resourceGroupName, deploymentName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Delete", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "Delete", nil, "Failure preparing request") return } result, err = client.DeleteSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Delete", result.Response(), "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "Delete", result.Response(), "Failure sending request") return } @@ -630,7 +630,7 @@ func (client DeploymentsClient) Delete(ctx context.Context, resourceGroupName st } // DeletePreparer prepares the Delete request. -func (client DeploymentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, deploymentName string) (*http.Request, error) { +func (client DeploymentsGroupClient) DeletePreparer(ctx context.Context, resourceGroupName string, deploymentName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -652,7 +652,7 @@ func (client DeploymentsClient) DeletePreparer(ctx context.Context, resourceGrou // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentsClient) DeleteSender(req *http.Request) (future DeploymentsDeleteFuture, err error) { +func (client DeploymentsGroupClient) DeleteSender(req *http.Request) (future DeploymentsGroupDeleteFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) @@ -665,7 +665,7 @@ func (client DeploymentsClient) DeleteSender(req *http.Request) (future Deployme // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. -func (client DeploymentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { +func (client DeploymentsGroupClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -683,9 +683,9 @@ func (client DeploymentsClient) DeleteResponder(resp *http.Response) (result aut // success. If the asynchronous request failed, the URI in the Location header returns an error-level status code. // Parameters: // deploymentName - the name of the deployment to delete. -func (client DeploymentsClient) DeleteAtSubscriptionScope(ctx context.Context, deploymentName string) (result DeploymentsDeleteAtSubscriptionScopeFuture, err error) { +func (client DeploymentsGroupClient) DeleteAtSubscriptionScope(ctx context.Context, deploymentName string) (result DeploymentsGroupDeleteAtSubscriptionScopeFuture, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.DeleteAtSubscriptionScope") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.DeleteAtSubscriptionScope") defer func() { sc := -1 if result.Response() != nil { @@ -699,18 +699,18 @@ func (client DeploymentsClient) DeleteAtSubscriptionScope(ctx context.Context, d Constraints: []validation.Constraint{{Target: "deploymentName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "deploymentName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "deploymentName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.DeploymentsClient", "DeleteAtSubscriptionScope", err.Error()) + return result, validation.NewError("resources.DeploymentsGroupClient", "DeleteAtSubscriptionScope", err.Error()) } req, err := client.DeleteAtSubscriptionScopePreparer(ctx, deploymentName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "DeleteAtSubscriptionScope", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "DeleteAtSubscriptionScope", nil, "Failure preparing request") return } result, err = client.DeleteAtSubscriptionScopeSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "DeleteAtSubscriptionScope", result.Response(), "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "DeleteAtSubscriptionScope", result.Response(), "Failure sending request") return } @@ -718,7 +718,7 @@ func (client DeploymentsClient) DeleteAtSubscriptionScope(ctx context.Context, d } // DeleteAtSubscriptionScopePreparer prepares the DeleteAtSubscriptionScope request. -func (client DeploymentsClient) DeleteAtSubscriptionScopePreparer(ctx context.Context, deploymentName string) (*http.Request, error) { +func (client DeploymentsGroupClient) DeleteAtSubscriptionScopePreparer(ctx context.Context, deploymentName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -739,7 +739,7 @@ func (client DeploymentsClient) DeleteAtSubscriptionScopePreparer(ctx context.Co // DeleteAtSubscriptionScopeSender sends the DeleteAtSubscriptionScope request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentsClient) DeleteAtSubscriptionScopeSender(req *http.Request) (future DeploymentsDeleteAtSubscriptionScopeFuture, err error) { +func (client DeploymentsGroupClient) DeleteAtSubscriptionScopeSender(req *http.Request) (future DeploymentsGroupDeleteAtSubscriptionScopeFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) @@ -752,7 +752,7 @@ func (client DeploymentsClient) DeleteAtSubscriptionScopeSender(req *http.Reques // DeleteAtSubscriptionScopeResponder handles the response to the DeleteAtSubscriptionScope request. The method always // closes the http.Response Body. -func (client DeploymentsClient) DeleteAtSubscriptionScopeResponder(resp *http.Response) (result autorest.Response, err error) { +func (client DeploymentsGroupClient) DeleteAtSubscriptionScopeResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -766,9 +766,9 @@ func (client DeploymentsClient) DeleteAtSubscriptionScopeResponder(resp *http.Re // Parameters: // resourceGroupName - the name of the resource group. The name is case insensitive. // deploymentName - the name of the deployment from which to get the template. -func (client DeploymentsClient) ExportTemplate(ctx context.Context, resourceGroupName string, deploymentName string) (result DeploymentExportResult, err error) { +func (client DeploymentsGroupClient) ExportTemplate(ctx context.Context, resourceGroupName string, deploymentName string) (result DeploymentExportResult, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.ExportTemplate") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.ExportTemplate") defer func() { sc := -1 if result.Response.Response != nil { @@ -786,32 +786,32 @@ func (client DeploymentsClient) ExportTemplate(ctx context.Context, resourceGrou Constraints: []validation.Constraint{{Target: "deploymentName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "deploymentName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "deploymentName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.DeploymentsClient", "ExportTemplate", err.Error()) + return result, validation.NewError("resources.DeploymentsGroupClient", "ExportTemplate", err.Error()) } req, err := client.ExportTemplatePreparer(ctx, resourceGroupName, deploymentName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplate", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "ExportTemplate", nil, "Failure preparing request") return } resp, err := client.ExportTemplateSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplate", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "ExportTemplate", resp, "Failure sending request") return } result, err = client.ExportTemplateResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplate", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "ExportTemplate", resp, "Failure responding to request") } return } // ExportTemplatePreparer prepares the ExportTemplate request. -func (client DeploymentsClient) ExportTemplatePreparer(ctx context.Context, resourceGroupName string, deploymentName string) (*http.Request, error) { +func (client DeploymentsGroupClient) ExportTemplatePreparer(ctx context.Context, resourceGroupName string, deploymentName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -833,14 +833,14 @@ func (client DeploymentsClient) ExportTemplatePreparer(ctx context.Context, reso // ExportTemplateSender sends the ExportTemplate request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentsClient) ExportTemplateSender(req *http.Request) (*http.Response, error) { +func (client DeploymentsGroupClient) ExportTemplateSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ExportTemplateResponder handles the response to the ExportTemplate request. The method always // closes the http.Response Body. -func (client DeploymentsClient) ExportTemplateResponder(resp *http.Response) (result DeploymentExportResult, err error) { +func (client DeploymentsGroupClient) ExportTemplateResponder(resp *http.Response) (result DeploymentExportResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -854,9 +854,9 @@ func (client DeploymentsClient) ExportTemplateResponder(resp *http.Response) (re // ExportTemplateAtSubscriptionScope exports the template used for specified deployment. // Parameters: // deploymentName - the name of the deployment from which to get the template. -func (client DeploymentsClient) ExportTemplateAtSubscriptionScope(ctx context.Context, deploymentName string) (result DeploymentExportResult, err error) { +func (client DeploymentsGroupClient) ExportTemplateAtSubscriptionScope(ctx context.Context, deploymentName string) (result DeploymentExportResult, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.ExportTemplateAtSubscriptionScope") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.ExportTemplateAtSubscriptionScope") defer func() { sc := -1 if result.Response.Response != nil { @@ -870,32 +870,32 @@ func (client DeploymentsClient) ExportTemplateAtSubscriptionScope(ctx context.Co Constraints: []validation.Constraint{{Target: "deploymentName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "deploymentName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "deploymentName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.DeploymentsClient", "ExportTemplateAtSubscriptionScope", err.Error()) + return result, validation.NewError("resources.DeploymentsGroupClient", "ExportTemplateAtSubscriptionScope", err.Error()) } req, err := client.ExportTemplateAtSubscriptionScopePreparer(ctx, deploymentName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplateAtSubscriptionScope", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "ExportTemplateAtSubscriptionScope", nil, "Failure preparing request") return } resp, err := client.ExportTemplateAtSubscriptionScopeSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplateAtSubscriptionScope", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "ExportTemplateAtSubscriptionScope", resp, "Failure sending request") return } result, err = client.ExportTemplateAtSubscriptionScopeResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ExportTemplateAtSubscriptionScope", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "ExportTemplateAtSubscriptionScope", resp, "Failure responding to request") } return } // ExportTemplateAtSubscriptionScopePreparer prepares the ExportTemplateAtSubscriptionScope request. -func (client DeploymentsClient) ExportTemplateAtSubscriptionScopePreparer(ctx context.Context, deploymentName string) (*http.Request, error) { +func (client DeploymentsGroupClient) ExportTemplateAtSubscriptionScopePreparer(ctx context.Context, deploymentName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -916,14 +916,14 @@ func (client DeploymentsClient) ExportTemplateAtSubscriptionScopePreparer(ctx co // ExportTemplateAtSubscriptionScopeSender sends the ExportTemplateAtSubscriptionScope request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentsClient) ExportTemplateAtSubscriptionScopeSender(req *http.Request) (*http.Response, error) { +func (client DeploymentsGroupClient) ExportTemplateAtSubscriptionScopeSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ExportTemplateAtSubscriptionScopeResponder handles the response to the ExportTemplateAtSubscriptionScope request. The method always // closes the http.Response Body. -func (client DeploymentsClient) ExportTemplateAtSubscriptionScopeResponder(resp *http.Response) (result DeploymentExportResult, err error) { +func (client DeploymentsGroupClient) ExportTemplateAtSubscriptionScopeResponder(resp *http.Response) (result DeploymentExportResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -938,9 +938,9 @@ func (client DeploymentsClient) ExportTemplateAtSubscriptionScopeResponder(resp // Parameters: // resourceGroupName - the name of the resource group. The name is case insensitive. // deploymentName - the name of the deployment to get. -func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName string, deploymentName string) (result DeploymentExtended, err error) { +func (client DeploymentsGroupClient) Get(ctx context.Context, resourceGroupName string, deploymentName string) (result DeploymentExtended, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.Get") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.Get") defer func() { sc := -1 if result.Response.Response != nil { @@ -958,32 +958,32 @@ func (client DeploymentsClient) Get(ctx context.Context, resourceGroupName strin Constraints: []validation.Constraint{{Target: "deploymentName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "deploymentName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "deploymentName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.DeploymentsClient", "Get", err.Error()) + return result, validation.NewError("resources.DeploymentsGroupClient", "Get", err.Error()) } req, err := client.GetPreparer(ctx, resourceGroupName, deploymentName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Get", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "Get", nil, "Failure preparing request") return } resp, err := client.GetSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Get", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "Get", resp, "Failure sending request") return } result, err = client.GetResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Get", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "Get", resp, "Failure responding to request") } return } // GetPreparer prepares the Get request. -func (client DeploymentsClient) GetPreparer(ctx context.Context, resourceGroupName string, deploymentName string) (*http.Request, error) { +func (client DeploymentsGroupClient) GetPreparer(ctx context.Context, resourceGroupName string, deploymentName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -1005,14 +1005,14 @@ func (client DeploymentsClient) GetPreparer(ctx context.Context, resourceGroupNa // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentsClient) GetSender(req *http.Request) (*http.Response, error) { +func (client DeploymentsGroupClient) GetSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. -func (client DeploymentsClient) GetResponder(resp *http.Response) (result DeploymentExtended, err error) { +func (client DeploymentsGroupClient) GetResponder(resp *http.Response) (result DeploymentExtended, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -1026,9 +1026,9 @@ func (client DeploymentsClient) GetResponder(resp *http.Response) (result Deploy // GetAtSubscriptionScope gets a deployment. // Parameters: // deploymentName - the name of the deployment to get. -func (client DeploymentsClient) GetAtSubscriptionScope(ctx context.Context, deploymentName string) (result DeploymentExtended, err error) { +func (client DeploymentsGroupClient) GetAtSubscriptionScope(ctx context.Context, deploymentName string) (result DeploymentExtended, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.GetAtSubscriptionScope") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.GetAtSubscriptionScope") defer func() { sc := -1 if result.Response.Response != nil { @@ -1042,32 +1042,32 @@ func (client DeploymentsClient) GetAtSubscriptionScope(ctx context.Context, depl Constraints: []validation.Constraint{{Target: "deploymentName", Name: validation.MaxLength, Rule: 64, Chain: nil}, {Target: "deploymentName", Name: validation.MinLength, Rule: 1, Chain: nil}, {Target: "deploymentName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.DeploymentsClient", "GetAtSubscriptionScope", err.Error()) + return result, validation.NewError("resources.DeploymentsGroupClient", "GetAtSubscriptionScope", err.Error()) } req, err := client.GetAtSubscriptionScopePreparer(ctx, deploymentName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "GetAtSubscriptionScope", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "GetAtSubscriptionScope", nil, "Failure preparing request") return } resp, err := client.GetAtSubscriptionScopeSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "GetAtSubscriptionScope", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "GetAtSubscriptionScope", resp, "Failure sending request") return } result, err = client.GetAtSubscriptionScopeResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "GetAtSubscriptionScope", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "GetAtSubscriptionScope", resp, "Failure responding to request") } return } // GetAtSubscriptionScopePreparer prepares the GetAtSubscriptionScope request. -func (client DeploymentsClient) GetAtSubscriptionScopePreparer(ctx context.Context, deploymentName string) (*http.Request, error) { +func (client DeploymentsGroupClient) GetAtSubscriptionScopePreparer(ctx context.Context, deploymentName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -1088,14 +1088,14 @@ func (client DeploymentsClient) GetAtSubscriptionScopePreparer(ctx context.Conte // GetAtSubscriptionScopeSender sends the GetAtSubscriptionScope request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentsClient) GetAtSubscriptionScopeSender(req *http.Request) (*http.Response, error) { +func (client DeploymentsGroupClient) GetAtSubscriptionScopeSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // GetAtSubscriptionScopeResponder handles the response to the GetAtSubscriptionScope request. The method always // closes the http.Response Body. -func (client DeploymentsClient) GetAtSubscriptionScopeResponder(resp *http.Response) (result DeploymentExtended, err error) { +func (client DeploymentsGroupClient) GetAtSubscriptionScopeResponder(resp *http.Response) (result DeploymentExtended, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -1111,9 +1111,9 @@ func (client DeploymentsClient) GetAtSubscriptionScopeResponder(resp *http.Respo // filter - the filter to apply on the operation. For example, you can use $filter=provisioningState eq // '{state}'. // top - the number of results to get. If null is passed, returns all deployments. -func (client DeploymentsClient) ListAtSubscriptionScope(ctx context.Context, filter string, top *int32) (result DeploymentListResultPage, err error) { +func (client DeploymentsGroupClient) ListAtSubscriptionScope(ctx context.Context, filter string, top *int32) (result DeploymentListResultPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.ListAtSubscriptionScope") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.ListAtSubscriptionScope") defer func() { sc := -1 if result.dlr.Response.Response != nil { @@ -1125,27 +1125,27 @@ func (client DeploymentsClient) ListAtSubscriptionScope(ctx context.Context, fil result.fn = client.listAtSubscriptionScopeNextResults req, err := client.ListAtSubscriptionScopePreparer(ctx, filter, top) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListAtSubscriptionScope", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "ListAtSubscriptionScope", nil, "Failure preparing request") return } resp, err := client.ListAtSubscriptionScopeSender(req) if err != nil { result.dlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListAtSubscriptionScope", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "ListAtSubscriptionScope", resp, "Failure sending request") return } result.dlr, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListAtSubscriptionScope", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "ListAtSubscriptionScope", resp, "Failure responding to request") } return } // ListAtSubscriptionScopePreparer prepares the ListAtSubscriptionScope request. -func (client DeploymentsClient) ListAtSubscriptionScopePreparer(ctx context.Context, filter string, top *int32) (*http.Request, error) { +func (client DeploymentsGroupClient) ListAtSubscriptionScopePreparer(ctx context.Context, filter string, top *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ "subscriptionId": autorest.Encode("path", client.SubscriptionID), } @@ -1171,14 +1171,14 @@ func (client DeploymentsClient) ListAtSubscriptionScopePreparer(ctx context.Cont // ListAtSubscriptionScopeSender sends the ListAtSubscriptionScope request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentsClient) ListAtSubscriptionScopeSender(req *http.Request) (*http.Response, error) { +func (client DeploymentsGroupClient) ListAtSubscriptionScopeSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ListAtSubscriptionScopeResponder handles the response to the ListAtSubscriptionScope request. The method always // closes the http.Response Body. -func (client DeploymentsClient) ListAtSubscriptionScopeResponder(resp *http.Response) (result DeploymentListResult, err error) { +func (client DeploymentsGroupClient) ListAtSubscriptionScopeResponder(resp *http.Response) (result DeploymentListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -1190,10 +1190,10 @@ func (client DeploymentsClient) ListAtSubscriptionScopeResponder(resp *http.Resp } // listAtSubscriptionScopeNextResults retrieves the next set of results, if any. -func (client DeploymentsClient) listAtSubscriptionScopeNextResults(ctx context.Context, lastResults DeploymentListResult) (result DeploymentListResult, err error) { +func (client DeploymentsGroupClient) listAtSubscriptionScopeNextResults(ctx context.Context, lastResults DeploymentListResult) (result DeploymentListResult, err error) { req, err := lastResults.deploymentListResultPreparer(ctx) if err != nil { - return result, autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listAtSubscriptionScopeNextResults", nil, "Failure preparing next results request") + return result, autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "listAtSubscriptionScopeNextResults", nil, "Failure preparing next results request") } if req == nil { return @@ -1201,19 +1201,19 @@ func (client DeploymentsClient) listAtSubscriptionScopeNextResults(ctx context.C resp, err := client.ListAtSubscriptionScopeSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listAtSubscriptionScopeNextResults", resp, "Failure sending next results request") + return result, autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "listAtSubscriptionScopeNextResults", resp, "Failure sending next results request") } result, err = client.ListAtSubscriptionScopeResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listAtSubscriptionScopeNextResults", resp, "Failure responding to next results request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "listAtSubscriptionScopeNextResults", resp, "Failure responding to next results request") } return } // ListAtSubscriptionScopeComplete enumerates all values, automatically crossing page boundaries as required. -func (client DeploymentsClient) ListAtSubscriptionScopeComplete(ctx context.Context, filter string, top *int32) (result DeploymentListResultIterator, err error) { +func (client DeploymentsGroupClient) ListAtSubscriptionScopeComplete(ctx context.Context, filter string, top *int32) (result DeploymentListResultIterator, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.ListAtSubscriptionScope") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.ListAtSubscriptionScope") defer func() { sc := -1 if result.Response().Response.Response != nil { @@ -1233,9 +1233,9 @@ func (client DeploymentsClient) ListAtSubscriptionScopeComplete(ctx context.Cont // filter - the filter to apply on the operation. For example, you can use $filter=provisioningState eq // '{state}'. // top - the number of results to get. If null is passed, returns all deployments. -func (client DeploymentsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, top *int32) (result DeploymentListResultPage, err error) { +func (client DeploymentsGroupClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, top *int32) (result DeploymentListResultPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.ListByResourceGroup") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.ListByResourceGroup") defer func() { sc := -1 if result.dlr.Response.Response != nil { @@ -1249,33 +1249,33 @@ func (client DeploymentsClient) ListByResourceGroup(ctx context.Context, resourc 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: `^[-\p{L}\._\(\)\w]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.DeploymentsClient", "ListByResourceGroup", err.Error()) + return result, validation.NewError("resources.DeploymentsGroupClient", "ListByResourceGroup", err.Error()) } result.fn = client.listByResourceGroupNextResults req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName, filter, top) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListByResourceGroup", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "ListByResourceGroup", nil, "Failure preparing request") return } resp, err := client.ListByResourceGroupSender(req) if err != nil { result.dlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListByResourceGroup", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "ListByResourceGroup", resp, "Failure sending request") return } result.dlr, err = client.ListByResourceGroupResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ListByResourceGroup", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "ListByResourceGroup", resp, "Failure responding to request") } return } // ListByResourceGroupPreparer prepares the ListByResourceGroup request. -func (client DeploymentsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string, top *int32) (*http.Request, error) { +func (client DeploymentsGroupClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string, top *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -1302,14 +1302,14 @@ func (client DeploymentsClient) ListByResourceGroupPreparer(ctx context.Context, // ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { +func (client DeploymentsGroupClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always // closes the http.Response Body. -func (client DeploymentsClient) ListByResourceGroupResponder(resp *http.Response) (result DeploymentListResult, err error) { +func (client DeploymentsGroupClient) ListByResourceGroupResponder(resp *http.Response) (result DeploymentListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -1321,10 +1321,10 @@ func (client DeploymentsClient) ListByResourceGroupResponder(resp *http.Response } // listByResourceGroupNextResults retrieves the next set of results, if any. -func (client DeploymentsClient) listByResourceGroupNextResults(ctx context.Context, lastResults DeploymentListResult) (result DeploymentListResult, err error) { +func (client DeploymentsGroupClient) listByResourceGroupNextResults(ctx context.Context, lastResults DeploymentListResult) (result DeploymentListResult, err error) { req, err := lastResults.deploymentListResultPreparer(ctx) if err != nil { - return result, autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + return result, autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") } if req == nil { return @@ -1332,19 +1332,19 @@ func (client DeploymentsClient) listByResourceGroupNextResults(ctx context.Conte resp, err := client.ListByResourceGroupSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + return result, autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") } result, err = client.ListByResourceGroupResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") } return } // ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. -func (client DeploymentsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string, top *int32) (result DeploymentListResultIterator, err error) { +func (client DeploymentsGroupClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string, top *int32) (result DeploymentListResultIterator, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.ListByResourceGroup") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.ListByResourceGroup") defer func() { sc := -1 if result.Response().Response.Response != nil { @@ -1364,9 +1364,9 @@ func (client DeploymentsClient) ListByResourceGroupComplete(ctx context.Context, // insensitive. // deploymentName - the name of the deployment. // parameters - parameters to validate. -func (client DeploymentsClient) Validate(ctx context.Context, resourceGroupName string, deploymentName string, parameters Deployment) (result DeploymentValidateResult, err error) { +func (client DeploymentsGroupClient) Validate(ctx context.Context, resourceGroupName string, deploymentName string, parameters Deployment) (result DeploymentValidateResult, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.Validate") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.Validate") defer func() { sc := -1 if result.Response.Response != nil { @@ -1391,32 +1391,32 @@ func (client DeploymentsClient) Validate(ctx context.Context, resourceGroupName {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.NewError("resources.DeploymentsClient", "Validate", err.Error()) + return result, validation.NewError("resources.DeploymentsGroupClient", "Validate", err.Error()) } req, err := client.ValidatePreparer(ctx, resourceGroupName, deploymentName, parameters) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Validate", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "Validate", nil, "Failure preparing request") return } resp, err := client.ValidateSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Validate", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "Validate", resp, "Failure sending request") return } result, err = client.ValidateResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "Validate", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "Validate", resp, "Failure responding to request") } return } // ValidatePreparer prepares the Validate request. -func (client DeploymentsClient) ValidatePreparer(ctx context.Context, resourceGroupName string, deploymentName string, parameters Deployment) (*http.Request, error) { +func (client DeploymentsGroupClient) ValidatePreparer(ctx context.Context, resourceGroupName string, deploymentName string, parameters Deployment) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -1440,14 +1440,14 @@ func (client DeploymentsClient) ValidatePreparer(ctx context.Context, resourceGr // ValidateSender sends the Validate request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentsClient) ValidateSender(req *http.Request) (*http.Response, error) { +func (client DeploymentsGroupClient) ValidateSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ValidateResponder handles the response to the Validate request. The method always // closes the http.Response Body. -func (client DeploymentsClient) ValidateResponder(resp *http.Response) (result DeploymentValidateResult, err error) { +func (client DeploymentsGroupClient) ValidateResponder(resp *http.Response) (result DeploymentValidateResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -1463,9 +1463,9 @@ func (client DeploymentsClient) ValidateResponder(resp *http.Response) (result D // Parameters: // deploymentName - the name of the deployment. // parameters - parameters to validate. -func (client DeploymentsClient) ValidateAtSubscriptionScope(ctx context.Context, deploymentName string, parameters Deployment) (result DeploymentValidateResult, err error) { +func (client DeploymentsGroupClient) ValidateAtSubscriptionScope(ctx context.Context, deploymentName string, parameters Deployment) (result DeploymentValidateResult, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsClient.ValidateAtSubscriptionScope") + ctx = tracing.StartSpan(ctx, fqdn+"/DeploymentsGroupClient.ValidateAtSubscriptionScope") defer func() { sc := -1 if result.Response.Response != nil { @@ -1486,32 +1486,32 @@ func (client DeploymentsClient) ValidateAtSubscriptionScope(ctx context.Context, {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.NewError("resources.DeploymentsClient", "ValidateAtSubscriptionScope", err.Error()) + return result, validation.NewError("resources.DeploymentsGroupClient", "ValidateAtSubscriptionScope", err.Error()) } req, err := client.ValidateAtSubscriptionScopePreparer(ctx, deploymentName, parameters) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ValidateAtSubscriptionScope", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "ValidateAtSubscriptionScope", nil, "Failure preparing request") return } resp, err := client.ValidateAtSubscriptionScopeSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ValidateAtSubscriptionScope", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "ValidateAtSubscriptionScope", resp, "Failure sending request") return } result, err = client.ValidateAtSubscriptionScopeResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsClient", "ValidateAtSubscriptionScope", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupClient", "ValidateAtSubscriptionScope", resp, "Failure responding to request") } return } // ValidateAtSubscriptionScopePreparer prepares the ValidateAtSubscriptionScope request. -func (client DeploymentsClient) ValidateAtSubscriptionScopePreparer(ctx context.Context, deploymentName string, parameters Deployment) (*http.Request, error) { +func (client DeploymentsGroupClient) ValidateAtSubscriptionScopePreparer(ctx context.Context, deploymentName string, parameters Deployment) (*http.Request, error) { pathParameters := map[string]interface{}{ "deploymentName": autorest.Encode("path", deploymentName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -1534,14 +1534,14 @@ func (client DeploymentsClient) ValidateAtSubscriptionScopePreparer(ctx context. // ValidateAtSubscriptionScopeSender sends the ValidateAtSubscriptionScope request. The method will close the // http.Response Body if it receives an error. -func (client DeploymentsClient) ValidateAtSubscriptionScopeSender(req *http.Request) (*http.Response, error) { +func (client DeploymentsGroupClient) ValidateAtSubscriptionScopeSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ValidateAtSubscriptionScopeResponder handles the response to the ValidateAtSubscriptionScope request. The method always // closes the http.Response Body. -func (client DeploymentsClient) ValidateAtSubscriptionScopeResponder(resp *http.Response) (result DeploymentValidateResult, err error) { +func (client DeploymentsGroupClient) ValidateAtSubscriptionScopeResponder(resp *http.Response) (result DeploymentValidateResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/groups.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/groupsgroup.go similarity index 70% rename from vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/groups.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/groupsgroup.go index 360ce42a2049..6dcaed5eaff7 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/groups.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/groupsgroup.go @@ -26,27 +26,27 @@ import ( "net/http" ) -// GroupsClient is the provides operations for working with resources and resource groups. -type GroupsClient struct { +// GroupsGroupClient is the provides operations for working with resources and resource groups. +type GroupsGroupClient struct { BaseClient } -// NewGroupsClient creates an instance of the GroupsClient client. -func NewGroupsClient(subscriptionID string) GroupsClient { - return NewGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID) +// NewGroupsGroupClient creates an instance of the GroupsGroupClient client. +func NewGroupsGroupClient(subscriptionID string) GroupsGroupClient { + return NewGroupsGroupClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewGroupsClientWithBaseURI creates an instance of the GroupsClient client. -func NewGroupsClientWithBaseURI(baseURI string, subscriptionID string) GroupsClient { - return GroupsClient{NewWithBaseURI(baseURI, subscriptionID)} +// NewGroupsGroupClientWithBaseURI creates an instance of the GroupsGroupClient client. +func NewGroupsGroupClientWithBaseURI(baseURI string, subscriptionID string) GroupsGroupClient { + return GroupsGroupClient{NewWithBaseURI(baseURI, subscriptionID)} } // CheckExistence checks whether a resource group exists. // Parameters: // resourceGroupName - the name of the resource group to check. The name is case insensitive. -func (client GroupsClient) CheckExistence(ctx context.Context, resourceGroupName string) (result autorest.Response, err error) { +func (client GroupsGroupClient) CheckExistence(ctx context.Context, resourceGroupName string) (result autorest.Response, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupsClient.CheckExistence") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupsGroupClient.CheckExistence") defer func() { sc := -1 if result.Response != nil { @@ -60,32 +60,32 @@ func (client GroupsClient) CheckExistence(ctx context.Context, 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: `^[-\p{L}\._\(\)\w]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.GroupsClient", "CheckExistence", err.Error()) + return result, validation.NewError("resources.GroupsGroupClient", "CheckExistence", err.Error()) } req, err := client.CheckExistencePreparer(ctx, resourceGroupName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CheckExistence", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "CheckExistence", nil, "Failure preparing request") return } resp, err := client.CheckExistenceSender(req) if err != nil { result.Response = resp - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CheckExistence", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "CheckExistence", resp, "Failure sending request") return } result, err = client.CheckExistenceResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CheckExistence", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "CheckExistence", resp, "Failure responding to request") } return } // CheckExistencePreparer prepares the CheckExistence request. -func (client GroupsClient) CheckExistencePreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { +func (client GroupsGroupClient) CheckExistencePreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -106,14 +106,14 @@ func (client GroupsClient) CheckExistencePreparer(ctx context.Context, resourceG // CheckExistenceSender sends the CheckExistence request. The method will close the // http.Response Body if it receives an error. -func (client GroupsClient) CheckExistenceSender(req *http.Request) (*http.Response, error) { +func (client GroupsGroupClient) CheckExistenceSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // CheckExistenceResponder handles the response to the CheckExistence request. The method always // closes the http.Response Body. -func (client GroupsClient) CheckExistenceResponder(resp *http.Response) (result autorest.Response, err error) { +func (client GroupsGroupClient) CheckExistenceResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -129,9 +129,9 @@ func (client GroupsClient) CheckExistenceResponder(resp *http.Response) (result // underscore, parentheses, hyphen, period (except at end), and Unicode characters that match the allowed // characters. // parameters - parameters supplied to the create or update a resource group. -func (client GroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, parameters Group) (result Group, err error) { +func (client GroupsGroupClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, parameters Group) (result Group, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupsClient.CreateOrUpdate") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupsGroupClient.CreateOrUpdate") defer func() { sc := -1 if result.Response.Response != nil { @@ -147,32 +147,32 @@ func (client GroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\p{L}\._\(\)\w]+$`, Chain: nil}}}, {TargetValue: parameters, Constraints: []validation.Constraint{{Target: "parameters.Location", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.GroupsClient", "CreateOrUpdate", err.Error()) + return result, validation.NewError("resources.GroupsGroupClient", "CreateOrUpdate", err.Error()) } req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, parameters) if err != nil { - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CreateOrUpdate", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "CreateOrUpdate", nil, "Failure preparing request") return } resp, err := client.CreateOrUpdateSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CreateOrUpdate", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "CreateOrUpdate", resp, "Failure sending request") return } result, err = client.CreateOrUpdateResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "CreateOrUpdate", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "CreateOrUpdate", resp, "Failure responding to request") } return } // CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client GroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, parameters Group) (*http.Request, error) { +func (client GroupsGroupClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, parameters Group) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -183,6 +183,9 @@ func (client GroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceG "api-version": APIVersion, } + parameters.ID = nil + parameters.Name = nil + parameters.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -195,14 +198,14 @@ func (client GroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceG // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. -func (client GroupsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { +func (client GroupsGroupClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. -func (client GroupsClient) CreateOrUpdateResponder(resp *http.Response) (result Group, err error) { +func (client GroupsGroupClient) CreateOrUpdateResponder(resp *http.Response) (result Group, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -217,9 +220,9 @@ func (client GroupsClient) CreateOrUpdateResponder(resp *http.Response) (result // all of its template deployments and currently stored operations. // Parameters: // resourceGroupName - the name of the resource group to delete. The name is case insensitive. -func (client GroupsClient) Delete(ctx context.Context, resourceGroupName string) (result GroupsDeleteFuture, err error) { +func (client GroupsGroupClient) Delete(ctx context.Context, resourceGroupName string) (result GroupsGroupDeleteFuture, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupsClient.Delete") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupsGroupClient.Delete") defer func() { sc := -1 if result.Response() != nil { @@ -233,18 +236,18 @@ func (client GroupsClient) Delete(ctx context.Context, resourceGroupName string) 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: `^[-\p{L}\._\(\)\w]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.GroupsClient", "Delete", err.Error()) + return result, validation.NewError("resources.GroupsGroupClient", "Delete", err.Error()) } req, err := client.DeletePreparer(ctx, resourceGroupName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Delete", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "Delete", nil, "Failure preparing request") return } result, err = client.DeleteSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Delete", result.Response(), "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "Delete", result.Response(), "Failure sending request") return } @@ -252,7 +255,7 @@ func (client GroupsClient) Delete(ctx context.Context, resourceGroupName string) } // DeletePreparer prepares the Delete request. -func (client GroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { +func (client GroupsGroupClient) DeletePreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -273,7 +276,7 @@ func (client GroupsClient) DeletePreparer(ctx context.Context, resourceGroupName // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. -func (client GroupsClient) DeleteSender(req *http.Request) (future GroupsDeleteFuture, err error) { +func (client GroupsGroupClient) DeleteSender(req *http.Request) (future GroupsGroupDeleteFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) @@ -286,7 +289,7 @@ func (client GroupsClient) DeleteSender(req *http.Request) (future GroupsDeleteF // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. -func (client GroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { +func (client GroupsGroupClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -300,9 +303,9 @@ func (client GroupsClient) DeleteResponder(resp *http.Response) (result autorest // Parameters: // resourceGroupName - the name of the resource group to export as a template. // parameters - parameters for exporting the template. -func (client GroupsClient) ExportTemplate(ctx context.Context, resourceGroupName string, parameters ExportTemplateRequest) (result GroupExportResult, err error) { +func (client GroupsGroupClient) ExportTemplate(ctx context.Context, resourceGroupName string, parameters ExportTemplateRequest) (result GroupExportResult, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupsClient.ExportTemplate") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupsGroupClient.ExportTemplate") defer func() { sc := -1 if result.Response.Response != nil { @@ -316,32 +319,32 @@ func (client GroupsClient) ExportTemplate(ctx context.Context, 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: `^[-\p{L}\._\(\)\w]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.GroupsClient", "ExportTemplate", err.Error()) + return result, validation.NewError("resources.GroupsGroupClient", "ExportTemplate", err.Error()) } req, err := client.ExportTemplatePreparer(ctx, resourceGroupName, parameters) if err != nil { - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "ExportTemplate", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "ExportTemplate", nil, "Failure preparing request") return } resp, err := client.ExportTemplateSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "ExportTemplate", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "ExportTemplate", resp, "Failure sending request") return } result, err = client.ExportTemplateResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "ExportTemplate", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "ExportTemplate", resp, "Failure responding to request") } return } // ExportTemplatePreparer prepares the ExportTemplate request. -func (client GroupsClient) ExportTemplatePreparer(ctx context.Context, resourceGroupName string, parameters ExportTemplateRequest) (*http.Request, error) { +func (client GroupsGroupClient) ExportTemplatePreparer(ctx context.Context, resourceGroupName string, parameters ExportTemplateRequest) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -364,14 +367,14 @@ func (client GroupsClient) ExportTemplatePreparer(ctx context.Context, resourceG // ExportTemplateSender sends the ExportTemplate request. The method will close the // http.Response Body if it receives an error. -func (client GroupsClient) ExportTemplateSender(req *http.Request) (*http.Response, error) { +func (client GroupsGroupClient) ExportTemplateSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ExportTemplateResponder handles the response to the ExportTemplate request. The method always // closes the http.Response Body. -func (client GroupsClient) ExportTemplateResponder(resp *http.Response) (result GroupExportResult, err error) { +func (client GroupsGroupClient) ExportTemplateResponder(resp *http.Response) (result GroupExportResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -385,9 +388,9 @@ func (client GroupsClient) ExportTemplateResponder(resp *http.Response) (result // Get gets a resource group. // Parameters: // resourceGroupName - the name of the resource group to get. The name is case insensitive. -func (client GroupsClient) Get(ctx context.Context, resourceGroupName string) (result Group, err error) { +func (client GroupsGroupClient) Get(ctx context.Context, resourceGroupName string) (result Group, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupsClient.Get") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupsGroupClient.Get") defer func() { sc := -1 if result.Response.Response != nil { @@ -401,32 +404,32 @@ func (client GroupsClient) Get(ctx context.Context, resourceGroupName string) (r 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: `^[-\p{L}\._\(\)\w]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.GroupsClient", "Get", err.Error()) + return result, validation.NewError("resources.GroupsGroupClient", "Get", err.Error()) } req, err := client.GetPreparer(ctx, resourceGroupName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Get", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "Get", nil, "Failure preparing request") return } resp, err := client.GetSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Get", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "Get", resp, "Failure sending request") return } result, err = client.GetResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Get", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "Get", resp, "Failure responding to request") } return } // GetPreparer prepares the Get request. -func (client GroupsClient) GetPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { +func (client GroupsGroupClient) GetPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -447,14 +450,14 @@ func (client GroupsClient) GetPreparer(ctx context.Context, resourceGroupName st // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. -func (client GroupsClient) GetSender(req *http.Request) (*http.Response, error) { +func (client GroupsGroupClient) GetSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. -func (client GroupsClient) GetResponder(resp *http.Response) (result Group, err error) { +func (client GroupsGroupClient) GetResponder(resp *http.Response) (result Group, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -470,9 +473,9 @@ func (client GroupsClient) GetResponder(resp *http.Response) (result Group, err // filter - the filter to apply on the operation.

You can filter by tag names and values. For example, // to filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1' // top - the number of results to return. If null is passed, returns all resource groups. -func (client GroupsClient) List(ctx context.Context, filter string, top *int32) (result GroupListResultPage, err error) { +func (client GroupsGroupClient) List(ctx context.Context, filter string, top *int32) (result GroupListResultPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupsClient.List") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupsGroupClient.List") defer func() { sc := -1 if result.glr.Response.Response != nil { @@ -484,27 +487,27 @@ func (client GroupsClient) List(ctx context.Context, filter string, top *int32) result.fn = client.listNextResults req, err := client.ListPreparer(ctx, filter, top) if err != nil { - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "List", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "List", nil, "Failure preparing request") return } resp, err := client.ListSender(req) if err != nil { result.glr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "List", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "List", resp, "Failure sending request") return } result.glr, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "List", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "List", resp, "Failure responding to request") } return } // ListPreparer prepares the List request. -func (client GroupsClient) ListPreparer(ctx context.Context, filter string, top *int32) (*http.Request, error) { +func (client GroupsGroupClient) ListPreparer(ctx context.Context, filter string, top *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ "subscriptionId": autorest.Encode("path", client.SubscriptionID), } @@ -530,14 +533,14 @@ func (client GroupsClient) ListPreparer(ctx context.Context, filter string, top // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. -func (client GroupsClient) ListSender(req *http.Request) (*http.Response, error) { +func (client GroupsGroupClient) ListSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ListResponder handles the response to the List request. The method always // closes the http.Response Body. -func (client GroupsClient) ListResponder(resp *http.Response) (result GroupListResult, err error) { +func (client GroupsGroupClient) ListResponder(resp *http.Response) (result GroupListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -549,10 +552,10 @@ func (client GroupsClient) ListResponder(resp *http.Response) (result GroupListR } // listNextResults retrieves the next set of results, if any. -func (client GroupsClient) listNextResults(ctx context.Context, lastResults GroupListResult) (result GroupListResult, err error) { +func (client GroupsGroupClient) listNextResults(ctx context.Context, lastResults GroupListResult) (result GroupListResult, err error) { req, err := lastResults.groupListResultPreparer(ctx) if err != nil { - return result, autorest.NewErrorWithError(err, "resources.GroupsClient", "listNextResults", nil, "Failure preparing next results request") + return result, autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "listNextResults", nil, "Failure preparing next results request") } if req == nil { return @@ -560,19 +563,19 @@ func (client GroupsClient) listNextResults(ctx context.Context, lastResults Grou resp, err := client.ListSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "resources.GroupsClient", "listNextResults", resp, "Failure sending next results request") + return result, autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "listNextResults", resp, "Failure sending next results request") } result, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "listNextResults", resp, "Failure responding to next results request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "listNextResults", resp, "Failure responding to next results request") } return } // ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client GroupsClient) ListComplete(ctx context.Context, filter string, top *int32) (result GroupListResultIterator, err error) { +func (client GroupsGroupClient) ListComplete(ctx context.Context, filter string, top *int32) (result GroupListResultIterator, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupsClient.List") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupsGroupClient.List") defer func() { sc := -1 if result.Response().Response.Response != nil { @@ -590,9 +593,9 @@ func (client GroupsClient) ListComplete(ctx context.Context, filter string, top // Parameters: // resourceGroupName - the name of the resource group to update. The name is case insensitive. // parameters - parameters supplied to update a resource group. -func (client GroupsClient) Update(ctx context.Context, resourceGroupName string, parameters GroupPatchable) (result Group, err error) { +func (client GroupsGroupClient) Update(ctx context.Context, resourceGroupName string, parameters GroupPatchable) (result Group, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupsClient.Update") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupsGroupClient.Update") defer func() { sc := -1 if result.Response.Response != nil { @@ -606,32 +609,32 @@ func (client GroupsClient) Update(ctx context.Context, resourceGroupName string, 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: `^[-\p{L}\._\(\)\w]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.GroupsClient", "Update", err.Error()) + return result, validation.NewError("resources.GroupsGroupClient", "Update", err.Error()) } req, err := client.UpdatePreparer(ctx, resourceGroupName, parameters) if err != nil { - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Update", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "Update", nil, "Failure preparing request") return } resp, err := client.UpdateSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Update", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "Update", resp, "Failure sending request") return } result, err = client.UpdateResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.GroupsClient", "Update", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupClient", "Update", resp, "Failure responding to request") } return } // UpdatePreparer prepares the Update request. -func (client GroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, parameters GroupPatchable) (*http.Request, error) { +func (client GroupsGroupClient) UpdatePreparer(ctx context.Context, resourceGroupName string, parameters GroupPatchable) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -654,14 +657,14 @@ func (client GroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. -func (client GroupsClient) UpdateSender(req *http.Request) (*http.Response, error) { +func (client GroupsGroupClient) UpdateSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. -func (client GroupsClient) UpdateResponder(resp *http.Response) (result Group, err error) { +func (client GroupsGroupClient) UpdateResponder(resp *http.Response) (result Group, err error) { err = autorest.Respond( resp, client.ByInspecting(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/models.go index 720db90802bc..8e6295ce672c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/models.go @@ -106,114 +106,12 @@ type BasicDependency struct { ResourceName *string `json:"resourceName,omitempty"` } -// CreateOrUpdateByIDFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type CreateOrUpdateByIDFuture struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *CreateOrUpdateByIDFuture) Result(client Client) (gr GenericResource, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.CreateOrUpdateByIDFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("resources.CreateOrUpdateByIDFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if gr.Response.Response, err = future.GetResult(sender); err == nil && gr.Response.Response.StatusCode != http.StatusNoContent { - gr, err = client.CreateOrUpdateByIDResponder(gr.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.CreateOrUpdateByIDFuture", "Result", gr.Response.Response, "Failure responding to request") - } - } - return -} - -// CreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type CreateOrUpdateFuture struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *CreateOrUpdateFuture) Result(client Client) (gr GenericResource, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.CreateOrUpdateFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("resources.CreateOrUpdateFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if gr.Response.Response, err = future.GetResult(sender); err == nil && gr.Response.Response.StatusCode != http.StatusNoContent { - gr, err = client.CreateOrUpdateResponder(gr.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.CreateOrUpdateFuture", "Result", gr.Response.Response, "Failure responding to request") - } - } - return -} - // DebugSetting ... type DebugSetting struct { // DetailLevel - Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment operations. DetailLevel *string `json:"detailLevel,omitempty"` } -// DeleteByIDFuture an abstraction for monitoring and retrieving the results of a long-running operation. -type DeleteByIDFuture struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *DeleteByIDFuture) Result(client Client) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeleteByIDFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("resources.DeleteByIDFuture") - return - } - ar.Response = future.Response() - return -} - -// DeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. -type DeleteFuture struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *DeleteFuture) Result(client Client) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeleteFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("resources.DeleteFuture") - return - } - ar.Response = future.Response() - return -} - // Dependency deployment dependency information. type Dependency struct { // DependsOn - The list of dependencies. @@ -244,11 +142,11 @@ type DeploymentExportResult struct { // DeploymentExtended deployment information. type DeploymentExtended struct { autorest.Response `json:"-"` - // ID - The ID of the deployment. + // ID - READ-ONLY; The ID of the deployment. ID *string `json:"id,omitempty"` - // Name - The name of the deployment. + // Name - READ-ONLY; The name of the deployment. Name *string `json:"name,omitempty"` - // Type - The type of the deployment. + // Type - READ-ONLY; The type of the deployment. Type *string `json:"type,omitempty"` // Location - the location of the deployment. Location *string `json:"location,omitempty"` @@ -267,7 +165,7 @@ type DeploymentListResult struct { autorest.Response `json:"-"` // Value - An array of deployments. Value *[]DeploymentExtended `json:"value,omitempty"` - // NextLink - The URL to use for getting the next set of results. + // NextLink - READ-ONLY; The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -411,9 +309,9 @@ func NewDeploymentListResultPage(getNextPage func(context.Context, DeploymentLis // DeploymentOperation deployment operation information. type DeploymentOperation struct { autorest.Response `json:"-"` - // ID - Full deployment operation ID. + // ID - READ-ONLY; Full deployment operation ID. ID *string `json:"id,omitempty"` - // OperationID - Deployment operation ID. + // OperationID - READ-ONLY; Deployment operation ID. OperationID *string `json:"operationId,omitempty"` // Properties - Deployment properties. Properties *DeploymentOperationProperties `json:"properties,omitempty"` @@ -421,21 +319,21 @@ type DeploymentOperation struct { // DeploymentOperationProperties deployment operation properties. type DeploymentOperationProperties struct { - // ProvisioningState - The state of the provisioning. + // ProvisioningState - READ-ONLY; The state of the provisioning. ProvisioningState *string `json:"provisioningState,omitempty"` - // Timestamp - The date and time of the operation. + // Timestamp - READ-ONLY; The date and time of the operation. Timestamp *date.Time `json:"timestamp,omitempty"` - // ServiceRequestID - Deployment operation service request id. + // ServiceRequestID - READ-ONLY; Deployment operation service request id. ServiceRequestID *string `json:"serviceRequestId,omitempty"` - // StatusCode - Operation status code. + // StatusCode - READ-ONLY; Operation status code. StatusCode *string `json:"statusCode,omitempty"` - // StatusMessage - Operation status message. + // StatusMessage - READ-ONLY; Operation status message. StatusMessage interface{} `json:"statusMessage,omitempty"` - // TargetResource - The target resource. + // TargetResource - READ-ONLY; The target resource. TargetResource *TargetResource `json:"targetResource,omitempty"` - // Request - The HTTP request message. + // Request - READ-ONLY; The HTTP request message. Request *HTTPMessage `json:"request,omitempty"` - // Response - The HTTP response message. + // Response - READ-ONLY; The HTTP response message. Response *HTTPMessage `json:"response,omitempty"` } @@ -444,7 +342,7 @@ type DeploymentOperationsListResult struct { autorest.Response `json:"-"` // Value - An array of deployment operations. Value *[]DeploymentOperation `json:"value,omitempty"` - // NextLink - The URL to use for getting the next set of results. + // NextLink - READ-ONLY; The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -606,11 +504,11 @@ type DeploymentProperties struct { // DeploymentPropertiesExtended deployment properties with additional details. type DeploymentPropertiesExtended struct { - // ProvisioningState - The state of the provisioning. + // ProvisioningState - READ-ONLY; The state of the provisioning. ProvisioningState *string `json:"provisioningState,omitempty"` - // CorrelationID - The correlation ID of the deployment. + // CorrelationID - READ-ONLY; The correlation ID of the deployment. CorrelationID *string `json:"correlationId,omitempty"` - // Timestamp - The timestamp of the template deployment. + // Timestamp - READ-ONLY; The timestamp of the template deployment. Timestamp *date.Time `json:"timestamp,omitempty"` // Outputs - Key/value pairs that represent deployment output. Outputs interface{} `json:"outputs,omitempty"` @@ -634,104 +532,104 @@ type DeploymentPropertiesExtended struct { OnErrorDeployment *OnErrorDeploymentExtended `json:"onErrorDeployment,omitempty"` } -// DeploymentsCreateOrUpdateAtSubscriptionScopeFuture an abstraction for monitoring and retrieving the +// DeploymentsGroupCreateOrUpdateAtSubscriptionScopeFuture an abstraction for monitoring and retrieving the // results of a long-running operation. -type DeploymentsCreateOrUpdateAtSubscriptionScopeFuture struct { +type DeploymentsGroupCreateOrUpdateAtSubscriptionScopeFuture struct { azure.Future } // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. -func (future *DeploymentsCreateOrUpdateAtSubscriptionScopeFuture) Result(client DeploymentsClient) (de DeploymentExtended, err error) { +func (future *DeploymentsGroupCreateOrUpdateAtSubscriptionScopeFuture) Result(client DeploymentsGroupClient) (de DeploymentExtended, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsCreateOrUpdateAtSubscriptionScopeFuture", "Result", future.Response(), "Polling failure") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupCreateOrUpdateAtSubscriptionScopeFuture", "Result", future.Response(), "Polling failure") return } if !done { - err = azure.NewAsyncOpIncompleteError("resources.DeploymentsCreateOrUpdateAtSubscriptionScopeFuture") + err = azure.NewAsyncOpIncompleteError("resources.DeploymentsGroupCreateOrUpdateAtSubscriptionScopeFuture") return } sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) if de.Response.Response, err = future.GetResult(sender); err == nil && de.Response.Response.StatusCode != http.StatusNoContent { de, err = client.CreateOrUpdateAtSubscriptionScopeResponder(de.Response.Response) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsCreateOrUpdateAtSubscriptionScopeFuture", "Result", de.Response.Response, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupCreateOrUpdateAtSubscriptionScopeFuture", "Result", de.Response.Response, "Failure responding to request") } } return } -// DeploymentsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// DeploymentsGroupCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. -type DeploymentsCreateOrUpdateFuture struct { +type DeploymentsGroupCreateOrUpdateFuture struct { azure.Future } // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. -func (future *DeploymentsCreateOrUpdateFuture) Result(client DeploymentsClient) (de DeploymentExtended, err error) { +func (future *DeploymentsGroupCreateOrUpdateFuture) Result(client DeploymentsGroupClient) (de DeploymentExtended, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return } if !done { - err = azure.NewAsyncOpIncompleteError("resources.DeploymentsCreateOrUpdateFuture") + err = azure.NewAsyncOpIncompleteError("resources.DeploymentsGroupCreateOrUpdateFuture") return } sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) if de.Response.Response, err = future.GetResult(sender); err == nil && de.Response.Response.StatusCode != http.StatusNoContent { de, err = client.CreateOrUpdateResponder(de.Response.Response) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsCreateOrUpdateFuture", "Result", de.Response.Response, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupCreateOrUpdateFuture", "Result", de.Response.Response, "Failure responding to request") } } return } -// DeploymentsDeleteAtSubscriptionScopeFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type DeploymentsDeleteAtSubscriptionScopeFuture struct { +// DeploymentsGroupDeleteAtSubscriptionScopeFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type DeploymentsGroupDeleteAtSubscriptionScopeFuture struct { azure.Future } // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. -func (future *DeploymentsDeleteAtSubscriptionScopeFuture) Result(client DeploymentsClient) (ar autorest.Response, err error) { +func (future *DeploymentsGroupDeleteAtSubscriptionScopeFuture) Result(client DeploymentsGroupClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsDeleteAtSubscriptionScopeFuture", "Result", future.Response(), "Polling failure") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupDeleteAtSubscriptionScopeFuture", "Result", future.Response(), "Polling failure") return } if !done { - err = azure.NewAsyncOpIncompleteError("resources.DeploymentsDeleteAtSubscriptionScopeFuture") + err = azure.NewAsyncOpIncompleteError("resources.DeploymentsGroupDeleteAtSubscriptionScopeFuture") return } ar.Response = future.Response() return } -// DeploymentsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// DeploymentsGroupDeleteFuture an abstraction for monitoring and retrieving the results of a long-running // operation. -type DeploymentsDeleteFuture struct { +type DeploymentsGroupDeleteFuture struct { azure.Future } // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. -func (future *DeploymentsDeleteFuture) Result(client DeploymentsClient) (ar autorest.Response, err error) { +func (future *DeploymentsGroupDeleteFuture) Result(client DeploymentsGroupClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { - err = autorest.NewErrorWithError(err, "resources.DeploymentsDeleteFuture", "Result", future.Response(), "Polling failure") + err = autorest.NewErrorWithError(err, "resources.DeploymentsGroupDeleteFuture", "Result", future.Response(), "Polling failure") return } if !done { - err = azure.NewAsyncOpIncompleteError("resources.DeploymentsDeleteFuture") + err = azure.NewAsyncOpIncompleteError("resources.DeploymentsGroupDeleteFuture") return } ar.Response = future.Response() @@ -770,11 +668,11 @@ type GenericResource struct { Sku *Sku `json:"sku,omitempty"` // Identity - The identity of the resource. Identity *Identity `json:"identity,omitempty"` - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -803,15 +701,6 @@ func (gr GenericResource) MarshalJSON() ([]byte, error) { if gr.Identity != nil { objectMap["identity"] = gr.Identity } - if gr.ID != nil { - objectMap["id"] = gr.ID - } - if gr.Name != nil { - objectMap["name"] = gr.Name - } - if gr.Type != nil { - objectMap["type"] = gr.Type - } if gr.Location != nil { objectMap["location"] = gr.Location } @@ -834,11 +723,11 @@ type GenericResourceFilter struct { // Group resource group information. type Group struct { autorest.Response `json:"-"` - // ID - The ID of the resource group. + // ID - READ-ONLY; The ID of the resource group. ID *string `json:"id,omitempty"` - // Name - The name of the resource group. + // Name - READ-ONLY; The name of the resource group. Name *string `json:"name,omitempty"` - // Type - The type of the resource group. + // Type - READ-ONLY; The type of the resource group. Type *string `json:"type,omitempty"` Properties *GroupProperties `json:"properties,omitempty"` // Location - The location of the resource group. It cannot be changed after the resource group has been created. It must be one of the supported Azure locations. @@ -852,15 +741,6 @@ type Group struct { // MarshalJSON is the custom marshaler for Group. func (g Group) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if g.ID != nil { - objectMap["id"] = g.ID - } - if g.Name != nil { - objectMap["name"] = g.Name - } - if g.Type != nil { - objectMap["type"] = g.Type - } if g.Properties != nil { objectMap["properties"] = g.Properties } @@ -876,6 +756,109 @@ func (g Group) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// GroupCreateOrUpdateByIDFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type GroupCreateOrUpdateByIDFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *GroupCreateOrUpdateByIDFuture) Result(client GroupClient) (gr GenericResource, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "resources.GroupCreateOrUpdateByIDFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("resources.GroupCreateOrUpdateByIDFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if gr.Response.Response, err = future.GetResult(sender); err == nil && gr.Response.Response.StatusCode != http.StatusNoContent { + gr, err = client.CreateOrUpdateByIDResponder(gr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "resources.GroupCreateOrUpdateByIDFuture", "Result", gr.Response.Response, "Failure responding to request") + } + } + return +} + +// GroupCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type GroupCreateOrUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *GroupCreateOrUpdateFuture) Result(client GroupClient) (gr GenericResource, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "resources.GroupCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("resources.GroupCreateOrUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if gr.Response.Response, err = future.GetResult(sender); err == nil && gr.Response.Response.StatusCode != http.StatusNoContent { + gr, err = client.CreateOrUpdateResponder(gr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "resources.GroupCreateOrUpdateFuture", "Result", gr.Response.Response, "Failure responding to request") + } + } + return +} + +// GroupDeleteByIDFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type GroupDeleteByIDFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *GroupDeleteByIDFuture) Result(client GroupClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "resources.GroupDeleteByIDFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("resources.GroupDeleteByIDFuture") + return + } + ar.Response = future.Response() + return +} + +// GroupDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type GroupDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *GroupDeleteFuture) Result(client GroupClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "resources.GroupDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("resources.GroupDeleteFuture") + return + } + ar.Response = future.Response() + return +} + // GroupExportResult resource group export result. type GroupExportResult struct { autorest.Response `json:"-"` @@ -898,7 +881,7 @@ type GroupListResult struct { autorest.Response `json:"-"` // Value - An array of resource groups. Value *[]Group `json:"value,omitempty"` - // NextLink - The URL to use for getting the next set of results. + // NextLink - READ-ONLY; The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1039,6 +1022,29 @@ func NewGroupListResultPage(getNextPage func(context.Context, GroupListResult) ( return GroupListResultPage{fn: getNextPage} } +// GroupMoveResourcesFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type GroupMoveResourcesFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *GroupMoveResourcesFuture) Result(client GroupClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "resources.GroupMoveResourcesFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("resources.GroupMoveResourcesFuture") + return + } + ar.Response = future.Response() + return +} + // GroupPatchable resource group information. type GroupPatchable struct { // Name - The name of the resource group. @@ -1070,26 +1076,107 @@ func (gp GroupPatchable) MarshalJSON() ([]byte, error) { // GroupProperties the resource group properties. type GroupProperties struct { - // ProvisioningState - The provisioning state. + // ProvisioningState - READ-ONLY; The provisioning state. ProvisioningState *string `json:"provisioningState,omitempty"` } -// GroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. -type GroupsDeleteFuture struct { +// GroupsGroupDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type GroupsGroupDeleteFuture struct { azure.Future } // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. -func (future *GroupsDeleteFuture) Result(client GroupsClient) (ar autorest.Response, err error) { +func (future *GroupsGroupDeleteFuture) Result(client GroupsGroupClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { - err = autorest.NewErrorWithError(err, "resources.GroupsDeleteFuture", "Result", future.Response(), "Polling failure") + err = autorest.NewErrorWithError(err, "resources.GroupsGroupDeleteFuture", "Result", future.Response(), "Polling failure") return } if !done { - err = azure.NewAsyncOpIncompleteError("resources.GroupsDeleteFuture") + err = azure.NewAsyncOpIncompleteError("resources.GroupsGroupDeleteFuture") + return + } + ar.Response = future.Response() + return +} + +// GroupUpdateByIDFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type GroupUpdateByIDFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *GroupUpdateByIDFuture) Result(client GroupClient) (gr GenericResource, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "resources.GroupUpdateByIDFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("resources.GroupUpdateByIDFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if gr.Response.Response, err = future.GetResult(sender); err == nil && gr.Response.Response.StatusCode != http.StatusNoContent { + gr, err = client.UpdateByIDResponder(gr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "resources.GroupUpdateByIDFuture", "Result", gr.Response.Response, "Failure responding to request") + } + } + return +} + +// GroupUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type GroupUpdateFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *GroupUpdateFuture) Result(client GroupClient) (gr GenericResource, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "resources.GroupUpdateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("resources.GroupUpdateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if gr.Response.Response, err = future.GetResult(sender); err == nil && gr.Response.Response.StatusCode != http.StatusNoContent { + gr, err = client.UpdateResponder(gr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "resources.GroupUpdateFuture", "Result", gr.Response.Response, "Failure responding to request") + } + } + return +} + +// GroupValidateMoveResourcesFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type GroupValidateMoveResourcesFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *GroupValidateMoveResourcesFuture) Result(client GroupClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "resources.GroupValidateMoveResourcesFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("resources.GroupValidateMoveResourcesFuture") return } ar.Response = future.Response() @@ -1104,9 +1191,9 @@ type HTTPMessage struct { // Identity identity for the resource. type Identity struct { - // PrincipalID - The principal ID of resource identity. + // PrincipalID - READ-ONLY; The principal ID of resource identity. PrincipalID *string `json:"principalId,omitempty"` - // TenantID - The tenant ID of resource. + // TenantID - READ-ONLY; The tenant ID of resource. TenantID *string `json:"tenantId,omitempty"` // Type - The identity type. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssignedUserAssigned', 'None' Type ResourceIdentityType `json:"type,omitempty"` @@ -1117,12 +1204,6 @@ type Identity struct { // MarshalJSON is the custom marshaler for Identity. func (i Identity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if i.PrincipalID != nil { - objectMap["principalId"] = i.PrincipalID - } - if i.TenantID != nil { - objectMap["tenantId"] = i.TenantID - } if i.Type != "" { objectMap["type"] = i.Type } @@ -1134,9 +1215,9 @@ func (i Identity) MarshalJSON() ([]byte, error) { // IdentityUserAssignedIdentitiesValue ... type IdentityUserAssignedIdentitiesValue struct { - // PrincipalID - The principal id of user assigned identity. + // PrincipalID - READ-ONLY; The principal id of user assigned identity. PrincipalID *string `json:"principalId,omitempty"` - // ClientID - The client id of user assigned identity. + // ClientID - READ-ONLY; The client id of user assigned identity. ClientID *string `json:"clientId,omitempty"` } @@ -1145,7 +1226,7 @@ type ListResult struct { autorest.Response `json:"-"` // Value - An array of resources. Value *[]GenericResource `json:"value,omitempty"` - // NextLink - The URL to use for getting the next set of results. + // NextLink - READ-ONLY; The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1288,13 +1369,13 @@ func NewListResultPage(getNextPage func(context.Context, ListResult) (ListResult // ManagementErrorWithDetails the detailed error message of resource management. type ManagementErrorWithDetails struct { - // Code - The error code returned when exporting the template. + // Code - READ-ONLY; The error code returned when exporting the template. Code *string `json:"code,omitempty"` - // Message - The error message describing the export error. + // Message - READ-ONLY; The error message describing the export error. Message *string `json:"message,omitempty"` - // Target - The target of the error. + // Target - READ-ONLY; The target of the error. Target *string `json:"target,omitempty"` - // Details - Validation error. + // Details - READ-ONLY; Validation error. Details *[]ManagementErrorWithDetails `json:"details,omitempty"` } @@ -1306,29 +1387,6 @@ type MoveInfo struct { TargetResourceGroup *string `json:"targetResourceGroup,omitempty"` } -// MoveResourcesFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type MoveResourcesFuture struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *MoveResourcesFuture) Result(client Client) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.MoveResourcesFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("resources.MoveResourcesFuture") - return - } - ar.Response = future.Response() - return -} - // OnErrorDeployment deployment on error behavior. type OnErrorDeployment struct { // Type - The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. Possible values include: 'LastSuccessful', 'SpecificDeployment' @@ -1339,7 +1397,7 @@ type OnErrorDeployment struct { // OnErrorDeploymentExtended deployment on error behavior with additional details. type OnErrorDeploymentExtended struct { - // ProvisioningState - The state of the provisioning for the on error deployment. + // ProvisioningState - READ-ONLY; The state of the provisioning for the on error deployment. ProvisioningState *string `json:"provisioningState,omitempty"` // Type - The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. Possible values include: 'LastSuccessful', 'SpecificDeployment' Type OnErrorDeploymentType `json:"type,omitempty"` @@ -1539,13 +1597,13 @@ type Plan struct { // Provider resource provider information. type Provider struct { autorest.Response `json:"-"` - // ID - The provider ID. + // ID - READ-ONLY; The provider ID. ID *string `json:"id,omitempty"` // Namespace - The namespace of the resource provider. Namespace *string `json:"namespace,omitempty"` - // RegistrationState - The registration state of the provider. + // RegistrationState - READ-ONLY; The registration state of the provider. RegistrationState *string `json:"registrationState,omitempty"` - // ResourceTypes - The collection of provider resource types. + // ResourceTypes - READ-ONLY; The collection of provider resource types. ResourceTypes *[]ProviderResourceType `json:"resourceTypes,omitempty"` } @@ -1554,7 +1612,7 @@ type ProviderListResult struct { autorest.Response `json:"-"` // Value - An array of resource providers. Value *[]Provider `json:"value,omitempty"` - // NextLink - The URL to use for getting the next set of results. + // NextLink - READ-ONLY; The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1746,11 +1804,11 @@ func (prt ProviderResourceType) MarshalJSON() ([]byte, error) { // Resource specified resource. type Resource struct { - // ID - Resource ID + // ID - READ-ONLY; Resource ID ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` @@ -1761,15 +1819,6 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -1812,7 +1861,7 @@ type TagCount struct { // TagDetails tag details. type TagDetails struct { autorest.Response `json:"-"` - // ID - The tag ID. + // ID - READ-ONLY; The tag ID. ID *string `json:"id,omitempty"` // TagName - The tag name. TagName *string `json:"tagName,omitempty"` @@ -1827,7 +1876,7 @@ type TagsListResult struct { autorest.Response `json:"-"` // Value - An array of tags. Value *[]TagDetails `json:"value,omitempty"` - // NextLink - The URL to use for getting the next set of results. + // NextLink - READ-ONLY; The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` } @@ -1971,7 +2020,7 @@ func NewTagsListResultPage(getNextPage func(context.Context, TagsListResult) (Ta // TagValue tag information. type TagValue struct { autorest.Response `json:"-"` - // ID - The tag ID. + // ID - READ-ONLY; The tag ID. ID *string `json:"id,omitempty"` // TagValue - The tag value. TagValue *string `json:"tagValue,omitempty"` @@ -1996,82 +2045,3 @@ type TemplateLink struct { // ContentVersion - If included, must match the ContentVersion in the template. ContentVersion *string `json:"contentVersion,omitempty"` } - -// UpdateByIDFuture an abstraction for monitoring and retrieving the results of a long-running operation. -type UpdateByIDFuture struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *UpdateByIDFuture) Result(client Client) (gr GenericResource, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.UpdateByIDFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("resources.UpdateByIDFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if gr.Response.Response, err = future.GetResult(sender); err == nil && gr.Response.Response.StatusCode != http.StatusNoContent { - gr, err = client.UpdateByIDResponder(gr.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.UpdateByIDFuture", "Result", gr.Response.Response, "Failure responding to request") - } - } - return -} - -// UpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation. -type UpdateFuture struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *UpdateFuture) Result(client Client) (gr GenericResource, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.UpdateFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("resources.UpdateFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if gr.Response.Response, err = future.GetResult(sender); err == nil && gr.Response.Response.StatusCode != http.StatusNoContent { - gr, err = client.UpdateResponder(gr.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.UpdateFuture", "Result", gr.Response.Response, "Failure responding to request") - } - } - return -} - -// ValidateMoveResourcesFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type ValidateMoveResourcesFuture struct { - azure.Future -} - -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *ValidateMoveResourcesFuture) Result(client Client) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.ValidateMoveResourcesFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("resources.ValidateMoveResourcesFuture") - return - } - ar.Response = future.Response() - return -} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/operations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/operationsgroup.go similarity index 61% rename from vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/operations.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/operationsgroup.go index 51e85d5d5007..f9e3dc836d52 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/operations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/operationsgroup.go @@ -25,25 +25,25 @@ import ( "net/http" ) -// OperationsClient is the provides operations for working with resources and resource groups. -type OperationsClient struct { +// OperationsGroupClient is the provides operations for working with resources and resource groups. +type OperationsGroupClient struct { BaseClient } -// NewOperationsClient creates an instance of the OperationsClient client. -func NewOperationsClient(subscriptionID string) OperationsClient { - return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +// NewOperationsGroupClient creates an instance of the OperationsGroupClient client. +func NewOperationsGroupClient(subscriptionID string) OperationsGroupClient { + return NewOperationsGroupClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client. -func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { - return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} +// NewOperationsGroupClientWithBaseURI creates an instance of the OperationsGroupClient client. +func NewOperationsGroupClientWithBaseURI(baseURI string, subscriptionID string) OperationsGroupClient { + return OperationsGroupClient{NewWithBaseURI(baseURI, subscriptionID)} } // List lists all of the available Microsoft.Resources REST API operations. -func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error) { +func (client OperationsGroupClient) List(ctx context.Context) (result OperationListResultPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsGroupClient.List") defer func() { sc := -1 if result.olr.Response.Response != nil { @@ -55,27 +55,27 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.fn = client.listNextResults req, err := client.ListPreparer(ctx) if err != nil { - err = autorest.NewErrorWithError(err, "resources.OperationsClient", "List", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.OperationsGroupClient", "List", nil, "Failure preparing request") return } resp, err := client.ListSender(req) if err != nil { result.olr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.OperationsClient", "List", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.OperationsGroupClient", "List", resp, "Failure sending request") return } result.olr, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.OperationsClient", "List", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.OperationsGroupClient", "List", resp, "Failure responding to request") } return } // ListPreparer prepares the List request. -func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { +func (client OperationsGroupClient) ListPreparer(ctx context.Context) (*http.Request, error) { const APIVersion = "2018-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, @@ -91,14 +91,14 @@ func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. -func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) { +func (client OperationsGroupClient) ListSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // ListResponder handles the response to the List request. The method always // closes the http.Response Body. -func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { +func (client OperationsGroupClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -110,10 +110,10 @@ func (client OperationsClient) ListResponder(resp *http.Response) (result Operat } // listNextResults retrieves the next set of results, if any. -func (client OperationsClient) listNextResults(ctx context.Context, lastResults OperationListResult) (result OperationListResult, err error) { +func (client OperationsGroupClient) listNextResults(ctx context.Context, lastResults OperationListResult) (result OperationListResult, err error) { req, err := lastResults.operationListResultPreparer(ctx) if err != nil { - return result, autorest.NewErrorWithError(err, "resources.OperationsClient", "listNextResults", nil, "Failure preparing next results request") + return result, autorest.NewErrorWithError(err, "resources.OperationsGroupClient", "listNextResults", nil, "Failure preparing next results request") } if req == nil { return @@ -121,19 +121,19 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults resp, err := client.ListSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "resources.OperationsClient", "listNextResults", resp, "Failure sending next results request") + return result, autorest.NewErrorWithError(err, "resources.OperationsGroupClient", "listNextResults", resp, "Failure sending next results request") } result, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + err = autorest.NewErrorWithError(err, "resources.OperationsGroupClient", "listNextResults", resp, "Failure responding to next results request") } return } // ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error) { +func (client OperationsGroupClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") + ctx = tracing.StartSpan(ctx, fqdn+"/OperationsGroupClient.List") defer func() { sc := -1 if result.Response().Response.Response != nil { diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/providers.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/providersgroup.go similarity index 67% rename from vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/providers.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/providersgroup.go index 6a8b75dfa25b..329762344d39 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/providers.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/providersgroup.go @@ -25,19 +25,19 @@ import ( "net/http" ) -// ProvidersClient is the provides operations for working with resources and resource groups. -type ProvidersClient struct { +// ProvidersGroupClient is the provides operations for working with resources and resource groups. +type ProvidersGroupClient struct { BaseClient } -// NewProvidersClient creates an instance of the ProvidersClient client. -func NewProvidersClient(subscriptionID string) ProvidersClient { - return NewProvidersClientWithBaseURI(DefaultBaseURI, subscriptionID) +// NewProvidersGroupClient creates an instance of the ProvidersGroupClient client. +func NewProvidersGroupClient(subscriptionID string) ProvidersGroupClient { + return NewProvidersGroupClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewProvidersClientWithBaseURI creates an instance of the ProvidersClient client. -func NewProvidersClientWithBaseURI(baseURI string, subscriptionID string) ProvidersClient { - return ProvidersClient{NewWithBaseURI(baseURI, subscriptionID)} +// NewProvidersGroupClientWithBaseURI creates an instance of the ProvidersGroupClient client. +func NewProvidersGroupClientWithBaseURI(baseURI string, subscriptionID string) ProvidersGroupClient { + return ProvidersGroupClient{NewWithBaseURI(baseURI, subscriptionID)} } // Get gets the specified resource provider. @@ -45,9 +45,9 @@ func NewProvidersClientWithBaseURI(baseURI string, subscriptionID string) Provid // resourceProviderNamespace - the namespace of the resource provider. // expand - the $expand query parameter. For example, to include property aliases in response, use // $expand=resourceTypes/aliases. -func (client ProvidersClient) Get(ctx context.Context, resourceProviderNamespace string, expand string) (result Provider, err error) { +func (client ProvidersGroupClient) Get(ctx context.Context, resourceProviderNamespace string, expand string) (result Provider, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProvidersClient.Get") + ctx = tracing.StartSpan(ctx, fqdn+"/ProvidersGroupClient.Get") defer func() { sc := -1 if result.Response.Response != nil { @@ -58,27 +58,27 @@ func (client ProvidersClient) Get(ctx context.Context, resourceProviderNamespace } req, err := client.GetPreparer(ctx, resourceProviderNamespace, expand) if err != nil { - err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Get", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.ProvidersGroupClient", "Get", nil, "Failure preparing request") return } resp, err := client.GetSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Get", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.ProvidersGroupClient", "Get", resp, "Failure sending request") return } result, err = client.GetResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Get", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.ProvidersGroupClient", "Get", resp, "Failure responding to request") } return } // GetPreparer prepares the Get request. -func (client ProvidersClient) GetPreparer(ctx context.Context, resourceProviderNamespace string, expand string) (*http.Request, error) { +func (client ProvidersGroupClient) GetPreparer(ctx context.Context, resourceProviderNamespace string, expand string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceProviderNamespace": autorest.Encode("path", resourceProviderNamespace), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -102,14 +102,14 @@ func (client ProvidersClient) GetPreparer(ctx context.Context, resourceProviderN // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. -func (client ProvidersClient) GetSender(req *http.Request) (*http.Response, error) { +func (client ProvidersGroupClient) GetSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. -func (client ProvidersClient) GetResponder(resp *http.Response) (result Provider, err error) { +func (client ProvidersGroupClient) GetResponder(resp *http.Response) (result Provider, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -126,9 +126,9 @@ func (client ProvidersClient) GetResponder(resp *http.Response) (result Provider // expand - the properties to include in the results. For example, use &$expand=metadata in the query string to // retrieve resource provider metadata. To include property aliases in response, use // $expand=resourceTypes/aliases. -func (client ProvidersClient) List(ctx context.Context, top *int32, expand string) (result ProviderListResultPage, err error) { +func (client ProvidersGroupClient) List(ctx context.Context, top *int32, expand string) (result ProviderListResultPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProvidersClient.List") + ctx = tracing.StartSpan(ctx, fqdn+"/ProvidersGroupClient.List") defer func() { sc := -1 if result.plr.Response.Response != nil { @@ -140,27 +140,27 @@ func (client ProvidersClient) List(ctx context.Context, top *int32, expand strin result.fn = client.listNextResults req, err := client.ListPreparer(ctx, top, expand) if err != nil { - err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "List", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.ProvidersGroupClient", "List", nil, "Failure preparing request") return } resp, err := client.ListSender(req) if err != nil { result.plr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "List", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.ProvidersGroupClient", "List", resp, "Failure sending request") return } result.plr, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "List", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.ProvidersGroupClient", "List", resp, "Failure responding to request") } return } // ListPreparer prepares the List request. -func (client ProvidersClient) ListPreparer(ctx context.Context, top *int32, expand string) (*http.Request, error) { +func (client ProvidersGroupClient) ListPreparer(ctx context.Context, top *int32, expand string) (*http.Request, error) { pathParameters := map[string]interface{}{ "subscriptionId": autorest.Encode("path", client.SubscriptionID), } @@ -186,14 +186,14 @@ func (client ProvidersClient) ListPreparer(ctx context.Context, top *int32, expa // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. -func (client ProvidersClient) ListSender(req *http.Request) (*http.Response, error) { +func (client ProvidersGroupClient) ListSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ListResponder handles the response to the List request. The method always // closes the http.Response Body. -func (client ProvidersClient) ListResponder(resp *http.Response) (result ProviderListResult, err error) { +func (client ProvidersGroupClient) ListResponder(resp *http.Response) (result ProviderListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -205,10 +205,10 @@ func (client ProvidersClient) ListResponder(resp *http.Response) (result Provide } // listNextResults retrieves the next set of results, if any. -func (client ProvidersClient) listNextResults(ctx context.Context, lastResults ProviderListResult) (result ProviderListResult, err error) { +func (client ProvidersGroupClient) listNextResults(ctx context.Context, lastResults ProviderListResult) (result ProviderListResult, err error) { req, err := lastResults.providerListResultPreparer(ctx) if err != nil { - return result, autorest.NewErrorWithError(err, "resources.ProvidersClient", "listNextResults", nil, "Failure preparing next results request") + return result, autorest.NewErrorWithError(err, "resources.ProvidersGroupClient", "listNextResults", nil, "Failure preparing next results request") } if req == nil { return @@ -216,19 +216,19 @@ func (client ProvidersClient) listNextResults(ctx context.Context, lastResults P resp, err := client.ListSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "resources.ProvidersClient", "listNextResults", resp, "Failure sending next results request") + return result, autorest.NewErrorWithError(err, "resources.ProvidersGroupClient", "listNextResults", resp, "Failure sending next results request") } result, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "listNextResults", resp, "Failure responding to next results request") + err = autorest.NewErrorWithError(err, "resources.ProvidersGroupClient", "listNextResults", resp, "Failure responding to next results request") } return } // ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client ProvidersClient) ListComplete(ctx context.Context, top *int32, expand string) (result ProviderListResultIterator, err error) { +func (client ProvidersGroupClient) ListComplete(ctx context.Context, top *int32, expand string) (result ProviderListResultIterator, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProvidersClient.List") + ctx = tracing.StartSpan(ctx, fqdn+"/ProvidersGroupClient.List") defer func() { sc := -1 if result.Response().Response.Response != nil { @@ -244,9 +244,9 @@ func (client ProvidersClient) ListComplete(ctx context.Context, top *int32, expa // Register registers a subscription with a resource provider. // Parameters: // resourceProviderNamespace - the namespace of the resource provider to register. -func (client ProvidersClient) Register(ctx context.Context, resourceProviderNamespace string) (result Provider, err error) { +func (client ProvidersGroupClient) Register(ctx context.Context, resourceProviderNamespace string) (result Provider, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProvidersClient.Register") + ctx = tracing.StartSpan(ctx, fqdn+"/ProvidersGroupClient.Register") defer func() { sc := -1 if result.Response.Response != nil { @@ -257,27 +257,27 @@ func (client ProvidersClient) Register(ctx context.Context, resourceProviderName } req, err := client.RegisterPreparer(ctx, resourceProviderNamespace) if err != nil { - err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Register", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.ProvidersGroupClient", "Register", nil, "Failure preparing request") return } resp, err := client.RegisterSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Register", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.ProvidersGroupClient", "Register", resp, "Failure sending request") return } result, err = client.RegisterResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Register", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.ProvidersGroupClient", "Register", resp, "Failure responding to request") } return } // RegisterPreparer prepares the Register request. -func (client ProvidersClient) RegisterPreparer(ctx context.Context, resourceProviderNamespace string) (*http.Request, error) { +func (client ProvidersGroupClient) RegisterPreparer(ctx context.Context, resourceProviderNamespace string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceProviderNamespace": autorest.Encode("path", resourceProviderNamespace), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -298,14 +298,14 @@ func (client ProvidersClient) RegisterPreparer(ctx context.Context, resourceProv // RegisterSender sends the Register request. The method will close the // http.Response Body if it receives an error. -func (client ProvidersClient) RegisterSender(req *http.Request) (*http.Response, error) { +func (client ProvidersGroupClient) RegisterSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // RegisterResponder handles the response to the Register request. The method always // closes the http.Response Body. -func (client ProvidersClient) RegisterResponder(resp *http.Response) (result Provider, err error) { +func (client ProvidersGroupClient) RegisterResponder(resp *http.Response) (result Provider, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -319,9 +319,9 @@ func (client ProvidersClient) RegisterResponder(resp *http.Response) (result Pro // Unregister unregisters a subscription from a resource provider. // Parameters: // resourceProviderNamespace - the namespace of the resource provider to unregister. -func (client ProvidersClient) Unregister(ctx context.Context, resourceProviderNamespace string) (result Provider, err error) { +func (client ProvidersGroupClient) Unregister(ctx context.Context, resourceProviderNamespace string) (result Provider, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProvidersClient.Unregister") + ctx = tracing.StartSpan(ctx, fqdn+"/ProvidersGroupClient.Unregister") defer func() { sc := -1 if result.Response.Response != nil { @@ -332,27 +332,27 @@ func (client ProvidersClient) Unregister(ctx context.Context, resourceProviderNa } req, err := client.UnregisterPreparer(ctx, resourceProviderNamespace) if err != nil { - err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Unregister", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.ProvidersGroupClient", "Unregister", nil, "Failure preparing request") return } resp, err := client.UnregisterSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Unregister", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.ProvidersGroupClient", "Unregister", resp, "Failure sending request") return } result, err = client.UnregisterResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.ProvidersClient", "Unregister", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.ProvidersGroupClient", "Unregister", resp, "Failure responding to request") } return } // UnregisterPreparer prepares the Unregister request. -func (client ProvidersClient) UnregisterPreparer(ctx context.Context, resourceProviderNamespace string) (*http.Request, error) { +func (client ProvidersGroupClient) UnregisterPreparer(ctx context.Context, resourceProviderNamespace string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceProviderNamespace": autorest.Encode("path", resourceProviderNamespace), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -373,14 +373,14 @@ func (client ProvidersClient) UnregisterPreparer(ctx context.Context, resourcePr // UnregisterSender sends the Unregister request. The method will close the // http.Response Body if it receives an error. -func (client ProvidersClient) UnregisterSender(req *http.Request) (*http.Response, error) { +func (client ProvidersGroupClient) UnregisterSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // UnregisterResponder handles the response to the Unregister request. The method always // closes the http.Response Body. -func (client ProvidersClient) UnregisterResponder(resp *http.Response) (result Provider, err error) { +func (client ProvidersGroupClient) UnregisterResponder(resp *http.Response) (result Provider, err error) { err = autorest.Respond( resp, client.ByInspecting(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/resources.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/resourcesgroup.go similarity index 73% rename from vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/resources.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/resourcesgroup.go index 4c363fc9a83e..e29712cdc329 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/resources.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/resourcesgroup.go @@ -26,19 +26,19 @@ import ( "net/http" ) -// Client is the provides operations for working with resources and resource groups. -type Client struct { +// GroupClient is the provides operations for working with resources and resource groups. +type GroupClient struct { BaseClient } -// NewClient creates an instance of the Client client. -func NewClient(subscriptionID string) Client { - return NewClientWithBaseURI(DefaultBaseURI, subscriptionID) +// NewGroupClient creates an instance of the GroupClient client. +func NewGroupClient(subscriptionID string) GroupClient { + return NewGroupClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewClientWithBaseURI creates an instance of the Client client. -func NewClientWithBaseURI(baseURI string, subscriptionID string) Client { - return Client{NewWithBaseURI(baseURI, subscriptionID)} +// NewGroupClientWithBaseURI creates an instance of the GroupClient client. +func NewGroupClientWithBaseURI(baseURI string, subscriptionID string) GroupClient { + return GroupClient{NewWithBaseURI(baseURI, subscriptionID)} } // CheckExistence checks whether a resource exists. @@ -49,9 +49,9 @@ func NewClientWithBaseURI(baseURI string, subscriptionID string) Client { // parentResourcePath - the parent resource identity. // resourceType - the resource type. // resourceName - the name of the resource to check whether it exists. -func (client Client) CheckExistence(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (result autorest.Response, err error) { +func (client GroupClient) CheckExistence(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (result autorest.Response, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.CheckExistence") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.CheckExistence") defer func() { sc := -1 if result.Response != nil { @@ -65,32 +65,32 @@ func (client Client) CheckExistence(ctx context.Context, resourceGroupName strin 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: `^[-\p{L}\._\(\)\w]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.Client", "CheckExistence", err.Error()) + return result, validation.NewError("resources.GroupClient", "CheckExistence", err.Error()) } req, err := client.CheckExistencePreparer(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistence", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "CheckExistence", nil, "Failure preparing request") return } resp, err := client.CheckExistenceSender(req) if err != nil { result.Response = resp - err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistence", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "CheckExistence", resp, "Failure sending request") return } result, err = client.CheckExistenceResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistence", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "CheckExistence", resp, "Failure responding to request") } return } // CheckExistencePreparer prepares the CheckExistence request. -func (client Client) CheckExistencePreparer(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (*http.Request, error) { +func (client GroupClient) CheckExistencePreparer(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "parentResourcePath": parentResourcePath, "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -115,14 +115,14 @@ func (client Client) CheckExistencePreparer(ctx context.Context, resourceGroupNa // CheckExistenceSender sends the CheckExistence request. The method will close the // http.Response Body if it receives an error. -func (client Client) CheckExistenceSender(req *http.Request) (*http.Response, error) { +func (client GroupClient) CheckExistenceSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // CheckExistenceResponder handles the response to the CheckExistence request. The method always // closes the http.Response Body. -func (client Client) CheckExistenceResponder(resp *http.Response) (result autorest.Response, err error) { +func (client GroupClient) CheckExistenceResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -137,9 +137,9 @@ func (client Client) CheckExistenceResponder(resp *http.Response) (result autore // resourceID - the fully qualified ID of the resource, including the resource name and resource type. Use the // format, // /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name} -func (client Client) CheckExistenceByID(ctx context.Context, resourceID string) (result autorest.Response, err error) { +func (client GroupClient) CheckExistenceByID(ctx context.Context, resourceID string) (result autorest.Response, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.CheckExistenceByID") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.CheckExistenceByID") defer func() { sc := -1 if result.Response != nil { @@ -150,27 +150,27 @@ func (client Client) CheckExistenceByID(ctx context.Context, resourceID string) } req, err := client.CheckExistenceByIDPreparer(ctx, resourceID) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistenceByID", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "CheckExistenceByID", nil, "Failure preparing request") return } resp, err := client.CheckExistenceByIDSender(req) if err != nil { result.Response = resp - err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistenceByID", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "CheckExistenceByID", resp, "Failure sending request") return } result, err = client.CheckExistenceByIDResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "CheckExistenceByID", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "CheckExistenceByID", resp, "Failure responding to request") } return } // CheckExistenceByIDPreparer prepares the CheckExistenceByID request. -func (client Client) CheckExistenceByIDPreparer(ctx context.Context, resourceID string) (*http.Request, error) { +func (client GroupClient) CheckExistenceByIDPreparer(ctx context.Context, resourceID string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceId": resourceID, } @@ -190,14 +190,14 @@ func (client Client) CheckExistenceByIDPreparer(ctx context.Context, resourceID // CheckExistenceByIDSender sends the CheckExistenceByID request. The method will close the // http.Response Body if it receives an error. -func (client Client) CheckExistenceByIDSender(req *http.Request) (*http.Response, error) { +func (client GroupClient) CheckExistenceByIDSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // CheckExistenceByIDResponder handles the response to the CheckExistenceByID request. The method always // closes the http.Response Body. -func (client Client) CheckExistenceByIDResponder(resp *http.Response) (result autorest.Response, err error) { +func (client GroupClient) CheckExistenceByIDResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -215,9 +215,9 @@ func (client Client) CheckExistenceByIDResponder(resp *http.Response) (result au // resourceType - the resource type of the resource to create. // resourceName - the name of the resource to create. // parameters - parameters for creating or updating the resource. -func (client Client) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, parameters GenericResource) (result CreateOrUpdateFuture, err error) { +func (client GroupClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, parameters GenericResource) (result GroupCreateOrUpdateFuture, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.CreateOrUpdate") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.CreateOrUpdate") defer func() { sc := -1 if result.Response() != nil { @@ -234,18 +234,18 @@ func (client Client) CreateOrUpdate(ctx context.Context, resourceGroupName strin {TargetValue: parameters, Constraints: []validation.Constraint{{Target: "parameters.Kind", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "parameters.Kind", Name: validation.Pattern, Rule: `^[-\w\._,\(\)]+$`, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("resources.Client", "CreateOrUpdate", err.Error()) + return result, validation.NewError("resources.GroupClient", "CreateOrUpdate", err.Error()) } req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "CreateOrUpdate", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "CreateOrUpdate", nil, "Failure preparing request") return } result, err = client.CreateOrUpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "CreateOrUpdate", result.Response(), "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "CreateOrUpdate", result.Response(), "Failure sending request") return } @@ -253,7 +253,7 @@ func (client Client) CreateOrUpdate(ctx context.Context, resourceGroupName strin } // CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client Client) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, parameters GenericResource) (*http.Request, error) { +func (client GroupClient) CreateOrUpdatePreparer(ctx context.Context, 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), @@ -280,7 +280,7 @@ func (client Client) CreateOrUpdatePreparer(ctx context.Context, resourceGroupNa // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. -func (client Client) CreateOrUpdateSender(req *http.Request) (future CreateOrUpdateFuture, err error) { +func (client GroupClient) CreateOrUpdateSender(req *http.Request) (future GroupCreateOrUpdateFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) @@ -293,7 +293,7 @@ func (client Client) CreateOrUpdateSender(req *http.Request) (future CreateOrUpd // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. -func (client Client) CreateOrUpdateResponder(resp *http.Response) (result GenericResource, err error) { +func (client GroupClient) CreateOrUpdateResponder(resp *http.Response) (result GenericResource, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -310,9 +310,9 @@ func (client Client) CreateOrUpdateResponder(resp *http.Response) (result Generi // format, // /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name} // parameters - create or update resource parameters. -func (client Client) CreateOrUpdateByID(ctx context.Context, resourceID string, parameters GenericResource) (result CreateOrUpdateByIDFuture, err error) { +func (client GroupClient) CreateOrUpdateByID(ctx context.Context, resourceID string, parameters GenericResource) (result GroupCreateOrUpdateByIDFuture, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.CreateOrUpdateByID") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.CreateOrUpdateByID") defer func() { sc := -1 if result.Response() != nil { @@ -325,18 +325,18 @@ func (client Client) CreateOrUpdateByID(ctx context.Context, resourceID string, {TargetValue: parameters, Constraints: []validation.Constraint{{Target: "parameters.Kind", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "parameters.Kind", Name: validation.Pattern, Rule: `^[-\w\._,\(\)]+$`, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("resources.Client", "CreateOrUpdateByID", err.Error()) + return result, validation.NewError("resources.GroupClient", "CreateOrUpdateByID", err.Error()) } req, err := client.CreateOrUpdateByIDPreparer(ctx, resourceID, parameters) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "CreateOrUpdateByID", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "CreateOrUpdateByID", nil, "Failure preparing request") return } result, err = client.CreateOrUpdateByIDSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "CreateOrUpdateByID", result.Response(), "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "CreateOrUpdateByID", result.Response(), "Failure sending request") return } @@ -344,7 +344,7 @@ func (client Client) CreateOrUpdateByID(ctx context.Context, resourceID string, } // CreateOrUpdateByIDPreparer prepares the CreateOrUpdateByID request. -func (client Client) CreateOrUpdateByIDPreparer(ctx context.Context, resourceID string, parameters GenericResource) (*http.Request, error) { +func (client GroupClient) CreateOrUpdateByIDPreparer(ctx context.Context, resourceID string, parameters GenericResource) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceId": resourceID, } @@ -366,7 +366,7 @@ func (client Client) CreateOrUpdateByIDPreparer(ctx context.Context, resourceID // CreateOrUpdateByIDSender sends the CreateOrUpdateByID request. The method will close the // http.Response Body if it receives an error. -func (client Client) CreateOrUpdateByIDSender(req *http.Request) (future CreateOrUpdateByIDFuture, err error) { +func (client GroupClient) CreateOrUpdateByIDSender(req *http.Request) (future GroupCreateOrUpdateByIDFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) @@ -379,7 +379,7 @@ func (client Client) CreateOrUpdateByIDSender(req *http.Request) (future CreateO // CreateOrUpdateByIDResponder handles the response to the CreateOrUpdateByID request. The method always // closes the http.Response Body. -func (client Client) CreateOrUpdateByIDResponder(resp *http.Response) (result GenericResource, err error) { +func (client GroupClient) CreateOrUpdateByIDResponder(resp *http.Response) (result GenericResource, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -398,9 +398,9 @@ func (client Client) CreateOrUpdateByIDResponder(resp *http.Response) (result Ge // parentResourcePath - the parent resource identity. // resourceType - the resource type. // resourceName - the name of the resource to delete. -func (client Client) Delete(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (result DeleteFuture, err error) { +func (client GroupClient) Delete(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (result GroupDeleteFuture, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.Delete") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.Delete") defer func() { sc := -1 if result.Response() != nil { @@ -414,18 +414,18 @@ func (client Client) Delete(ctx context.Context, resourceGroupName string, resou 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: `^[-\p{L}\._\(\)\w]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.Client", "Delete", err.Error()) + return result, validation.NewError("resources.GroupClient", "Delete", err.Error()) } req, err := client.DeletePreparer(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "Delete", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "Delete", nil, "Failure preparing request") return } result, err = client.DeleteSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "Delete", result.Response(), "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "Delete", result.Response(), "Failure sending request") return } @@ -433,7 +433,7 @@ func (client Client) Delete(ctx context.Context, resourceGroupName string, resou } // DeletePreparer prepares the Delete request. -func (client Client) DeletePreparer(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (*http.Request, error) { +func (client GroupClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "parentResourcePath": parentResourcePath, "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -458,7 +458,7 @@ func (client Client) DeletePreparer(ctx context.Context, resourceGroupName strin // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. -func (client Client) DeleteSender(req *http.Request) (future DeleteFuture, err error) { +func (client GroupClient) DeleteSender(req *http.Request) (future GroupDeleteFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) @@ -471,7 +471,7 @@ func (client Client) DeleteSender(req *http.Request) (future DeleteFuture, err e // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. -func (client Client) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { +func (client GroupClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -486,9 +486,9 @@ func (client Client) DeleteResponder(resp *http.Response) (result autorest.Respo // resourceID - the fully qualified ID of the resource, including the resource name and resource type. Use the // format, // /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name} -func (client Client) DeleteByID(ctx context.Context, resourceID string) (result DeleteByIDFuture, err error) { +func (client GroupClient) DeleteByID(ctx context.Context, resourceID string) (result GroupDeleteByIDFuture, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.DeleteByID") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.DeleteByID") defer func() { sc := -1 if result.Response() != nil { @@ -499,13 +499,13 @@ func (client Client) DeleteByID(ctx context.Context, resourceID string) (result } req, err := client.DeleteByIDPreparer(ctx, resourceID) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "DeleteByID", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "DeleteByID", nil, "Failure preparing request") return } result, err = client.DeleteByIDSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "DeleteByID", result.Response(), "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "DeleteByID", result.Response(), "Failure sending request") return } @@ -513,7 +513,7 @@ func (client Client) DeleteByID(ctx context.Context, resourceID string) (result } // DeleteByIDPreparer prepares the DeleteByID request. -func (client Client) DeleteByIDPreparer(ctx context.Context, resourceID string) (*http.Request, error) { +func (client GroupClient) DeleteByIDPreparer(ctx context.Context, resourceID string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceId": resourceID, } @@ -533,7 +533,7 @@ func (client Client) DeleteByIDPreparer(ctx context.Context, resourceID string) // DeleteByIDSender sends the DeleteByID request. The method will close the // http.Response Body if it receives an error. -func (client Client) DeleteByIDSender(req *http.Request) (future DeleteByIDFuture, err error) { +func (client GroupClient) DeleteByIDSender(req *http.Request) (future GroupDeleteByIDFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) @@ -546,7 +546,7 @@ func (client Client) DeleteByIDSender(req *http.Request) (future DeleteByIDFutur // DeleteByIDResponder handles the response to the DeleteByID request. The method always // closes the http.Response Body. -func (client Client) DeleteByIDResponder(resp *http.Response) (result autorest.Response, err error) { +func (client GroupClient) DeleteByIDResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -564,9 +564,9 @@ func (client Client) DeleteByIDResponder(resp *http.Response) (result autorest.R // parentResourcePath - the parent resource identity. // resourceType - the resource type of the resource. // resourceName - the name of the resource to get. -func (client Client) Get(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (result GenericResource, err error) { +func (client GroupClient) Get(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (result GenericResource, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.Get") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.Get") defer func() { sc := -1 if result.Response.Response != nil { @@ -580,32 +580,32 @@ func (client Client) Get(ctx context.Context, resourceGroupName string, resource 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: `^[-\p{L}\._\(\)\w]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.Client", "Get", err.Error()) + return result, validation.NewError("resources.GroupClient", "Get", err.Error()) } req, err := client.GetPreparer(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "Get", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "Get", nil, "Failure preparing request") return } resp, err := client.GetSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.Client", "Get", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "Get", resp, "Failure sending request") return } result, err = client.GetResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "Get", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "Get", resp, "Failure responding to request") } return } // GetPreparer prepares the Get request. -func (client Client) GetPreparer(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (*http.Request, error) { +func (client GroupClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "parentResourcePath": parentResourcePath, "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -630,14 +630,14 @@ func (client Client) GetPreparer(ctx context.Context, resourceGroupName string, // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. -func (client Client) GetSender(req *http.Request) (*http.Response, error) { +func (client GroupClient) GetSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. -func (client Client) GetResponder(resp *http.Response) (result GenericResource, err error) { +func (client GroupClient) GetResponder(resp *http.Response) (result GenericResource, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -653,9 +653,9 @@ func (client Client) GetResponder(resp *http.Response) (result GenericResource, // resourceID - the fully qualified ID of the resource, including the resource name and resource type. Use the // format, // /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name} -func (client Client) GetByID(ctx context.Context, resourceID string) (result GenericResource, err error) { +func (client GroupClient) GetByID(ctx context.Context, resourceID string) (result GenericResource, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.GetByID") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.GetByID") defer func() { sc := -1 if result.Response.Response != nil { @@ -666,27 +666,27 @@ func (client Client) GetByID(ctx context.Context, resourceID string) (result Gen } req, err := client.GetByIDPreparer(ctx, resourceID) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "GetByID", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "GetByID", nil, "Failure preparing request") return } resp, err := client.GetByIDSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.Client", "GetByID", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "GetByID", resp, "Failure sending request") return } result, err = client.GetByIDResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "GetByID", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "GetByID", resp, "Failure responding to request") } return } // GetByIDPreparer prepares the GetByID request. -func (client Client) GetByIDPreparer(ctx context.Context, resourceID string) (*http.Request, error) { +func (client GroupClient) GetByIDPreparer(ctx context.Context, resourceID string) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceId": resourceID, } @@ -706,14 +706,14 @@ func (client Client) GetByIDPreparer(ctx context.Context, resourceID string) (*h // GetByIDSender sends the GetByID request. The method will close the // http.Response Body if it receives an error. -func (client Client) GetByIDSender(req *http.Request) (*http.Response, error) { +func (client GroupClient) GetByIDSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetByIDResponder handles the response to the GetByID request. The method always // closes the http.Response Body. -func (client Client) GetByIDResponder(resp *http.Response) (result GenericResource, err error) { +func (client GroupClient) GetByIDResponder(resp *http.Response) (result GenericResource, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -740,9 +740,9 @@ func (client Client) GetByIDResponder(resp *http.Response) (result GenericResour // expand - the $expand query parameter. You can expand createdTime and changedTime. For example, to expand // both properties, use $expand=changedTime,createdTime // top - the number of results to return. If null is passed, returns all resource groups. -func (client Client) List(ctx context.Context, filter string, expand string, top *int32) (result ListResultPage, err error) { +func (client GroupClient) List(ctx context.Context, filter string, expand string, top *int32) (result ListResultPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.List") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.List") defer func() { sc := -1 if result.lr.Response.Response != nil { @@ -754,27 +754,27 @@ func (client Client) List(ctx context.Context, filter string, expand string, top result.fn = client.listNextResults req, err := client.ListPreparer(ctx, filter, expand, top) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "List", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "List", nil, "Failure preparing request") return } resp, err := client.ListSender(req) if err != nil { result.lr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.Client", "List", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "List", resp, "Failure sending request") return } result.lr, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "List", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "List", resp, "Failure responding to request") } return } // ListPreparer prepares the List request. -func (client Client) ListPreparer(ctx context.Context, filter string, expand string, top *int32) (*http.Request, error) { +func (client GroupClient) ListPreparer(ctx context.Context, filter string, expand string, top *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ "subscriptionId": autorest.Encode("path", client.SubscriptionID), } @@ -803,14 +803,14 @@ func (client Client) ListPreparer(ctx context.Context, filter string, expand str // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. -func (client Client) ListSender(req *http.Request) (*http.Response, error) { +func (client GroupClient) ListSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ListResponder handles the response to the List request. The method always // closes the http.Response Body. -func (client Client) ListResponder(resp *http.Response) (result ListResult, err error) { +func (client GroupClient) ListResponder(resp *http.Response) (result ListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -822,10 +822,10 @@ func (client Client) ListResponder(resp *http.Response) (result ListResult, err } // listNextResults retrieves the next set of results, if any. -func (client Client) listNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) { +func (client GroupClient) listNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) { req, err := lastResults.listResultPreparer(ctx) if err != nil { - return result, autorest.NewErrorWithError(err, "resources.Client", "listNextResults", nil, "Failure preparing next results request") + return result, autorest.NewErrorWithError(err, "resources.GroupClient", "listNextResults", nil, "Failure preparing next results request") } if req == nil { return @@ -833,19 +833,19 @@ func (client Client) listNextResults(ctx context.Context, lastResults ListResult resp, err := client.ListSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "resources.Client", "listNextResults", resp, "Failure sending next results request") + return result, autorest.NewErrorWithError(err, "resources.GroupClient", "listNextResults", resp, "Failure sending next results request") } result, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "listNextResults", resp, "Failure responding to next results request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "listNextResults", resp, "Failure responding to next results request") } return } // ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client Client) ListComplete(ctx context.Context, filter string, expand string, top *int32) (result ListResultIterator, err error) { +func (client GroupClient) ListComplete(ctx context.Context, filter string, expand string, top *int32) (result ListResultIterator, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.List") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.List") defer func() { sc := -1 if result.Response().Response.Response != nil { @@ -875,9 +875,9 @@ func (client Client) ListComplete(ctx context.Context, filter string, expand str // expand - the $expand query parameter. You can expand createdTime and changedTime. For example, to expand // both properties, use $expand=changedTime,createdTime // top - the number of results to return. If null is passed, returns all resources. -func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, expand string, top *int32) (result ListResultPage, err error) { +func (client GroupClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, expand string, top *int32) (result ListResultPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.ListByResourceGroup") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.ListByResourceGroup") defer func() { sc := -1 if result.lr.Response.Response != nil { @@ -891,33 +891,33 @@ func (client Client) ListByResourceGroup(ctx context.Context, 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: `^[-\p{L}\._\(\)\w]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.Client", "ListByResourceGroup", err.Error()) + return result, validation.NewError("resources.GroupClient", "ListByResourceGroup", err.Error()) } result.fn = client.listByResourceGroupNextResults req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName, filter, expand, top) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "ListByResourceGroup", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "ListByResourceGroup", nil, "Failure preparing request") return } resp, err := client.ListByResourceGroupSender(req) if err != nil { result.lr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.Client", "ListByResourceGroup", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "ListByResourceGroup", resp, "Failure sending request") return } result.lr, err = client.ListByResourceGroupResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "ListByResourceGroup", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "ListByResourceGroup", resp, "Failure responding to request") } return } // ListByResourceGroupPreparer prepares the ListByResourceGroup request. -func (client Client) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string, expand string, top *int32) (*http.Request, error) { +func (client GroupClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string, expand string, top *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -947,14 +947,14 @@ func (client Client) ListByResourceGroupPreparer(ctx context.Context, resourceGr // ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the // http.Response Body if it receives an error. -func (client Client) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { +func (client GroupClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always // closes the http.Response Body. -func (client Client) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error) { +func (client GroupClient) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -966,10 +966,10 @@ func (client Client) ListByResourceGroupResponder(resp *http.Response) (result L } // listByResourceGroupNextResults retrieves the next set of results, if any. -func (client Client) listByResourceGroupNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) { +func (client GroupClient) listByResourceGroupNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) { req, err := lastResults.listResultPreparer(ctx) if err != nil { - return result, autorest.NewErrorWithError(err, "resources.Client", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + return result, autorest.NewErrorWithError(err, "resources.GroupClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") } if req == nil { return @@ -977,19 +977,19 @@ func (client Client) listByResourceGroupNextResults(ctx context.Context, lastRes resp, err := client.ListByResourceGroupSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "resources.Client", "listByResourceGroupNextResults", resp, "Failure sending next results request") + return result, autorest.NewErrorWithError(err, "resources.GroupClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") } result, err = client.ListByResourceGroupResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") } return } // ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. -func (client Client) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string, expand string, top *int32) (result ListResultIterator, err error) { +func (client GroupClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string, expand string, top *int32) (result ListResultIterator, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.ListByResourceGroup") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.ListByResourceGroup") defer func() { sc := -1 if result.Response().Response.Response != nil { @@ -1008,9 +1008,9 @@ func (client Client) ListByResourceGroupComplete(ctx context.Context, resourceGr // Parameters: // sourceResourceGroupName - the name of the resource group containing the resources to move. // parameters - parameters for moving resources. -func (client Client) MoveResources(ctx context.Context, sourceResourceGroupName string, parameters MoveInfo) (result MoveResourcesFuture, err error) { +func (client GroupClient) MoveResources(ctx context.Context, sourceResourceGroupName string, parameters MoveInfo) (result GroupMoveResourcesFuture, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.MoveResources") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.MoveResources") defer func() { sc := -1 if result.Response() != nil { @@ -1024,18 +1024,18 @@ func (client Client) MoveResources(ctx context.Context, 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: `^[-\p{L}\._\(\)\w]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.Client", "MoveResources", err.Error()) + return result, validation.NewError("resources.GroupClient", "MoveResources", err.Error()) } req, err := client.MoveResourcesPreparer(ctx, sourceResourceGroupName, parameters) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "MoveResources", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "MoveResources", nil, "Failure preparing request") return } result, err = client.MoveResourcesSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "MoveResources", result.Response(), "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "MoveResources", result.Response(), "Failure sending request") return } @@ -1043,7 +1043,7 @@ func (client Client) MoveResources(ctx context.Context, sourceResourceGroupName } // MoveResourcesPreparer prepares the MoveResources request. -func (client Client) MoveResourcesPreparer(ctx context.Context, sourceResourceGroupName string, parameters MoveInfo) (*http.Request, error) { +func (client GroupClient) MoveResourcesPreparer(ctx context.Context, sourceResourceGroupName string, parameters MoveInfo) (*http.Request, error) { pathParameters := map[string]interface{}{ "sourceResourceGroupName": autorest.Encode("path", sourceResourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -1066,7 +1066,7 @@ func (client Client) MoveResourcesPreparer(ctx context.Context, sourceResourceGr // MoveResourcesSender sends the MoveResources request. The method will close the // http.Response Body if it receives an error. -func (client Client) MoveResourcesSender(req *http.Request) (future MoveResourcesFuture, err error) { +func (client GroupClient) MoveResourcesSender(req *http.Request) (future GroupMoveResourcesFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) @@ -1079,7 +1079,7 @@ func (client Client) MoveResourcesSender(req *http.Request) (future MoveResource // MoveResourcesResponder handles the response to the MoveResources request. The method always // closes the http.Response Body. -func (client Client) MoveResourcesResponder(resp *http.Response) (result autorest.Response, err error) { +func (client GroupClient) MoveResourcesResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -1097,9 +1097,9 @@ func (client Client) MoveResourcesResponder(resp *http.Response) (result autores // resourceType - the resource type of the resource to update. // resourceName - the name of the resource to update. // parameters - parameters for updating the resource. -func (client Client) Update(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, parameters GenericResource) (result UpdateFuture, err error) { +func (client GroupClient) Update(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, parameters GenericResource) (result GroupUpdateFuture, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.Update") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.Update") defer func() { sc := -1 if result.Response() != nil { @@ -1113,18 +1113,18 @@ func (client Client) Update(ctx context.Context, resourceGroupName string, resou 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: `^[-\p{L}\._\(\)\w]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.Client", "Update", err.Error()) + return result, validation.NewError("resources.GroupClient", "Update", err.Error()) } req, err := client.UpdatePreparer(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "Update", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "Update", nil, "Failure preparing request") return } result, err = client.UpdateSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "Update", result.Response(), "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "Update", result.Response(), "Failure sending request") return } @@ -1132,7 +1132,7 @@ func (client Client) Update(ctx context.Context, resourceGroupName string, resou } // UpdatePreparer prepares the Update request. -func (client Client) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, parameters GenericResource) (*http.Request, error) { +func (client GroupClient) UpdatePreparer(ctx context.Context, 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), @@ -1159,7 +1159,7 @@ func (client Client) UpdatePreparer(ctx context.Context, resourceGroupName strin // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. -func (client Client) UpdateSender(req *http.Request) (future UpdateFuture, err error) { +func (client GroupClient) UpdateSender(req *http.Request) (future GroupUpdateFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) @@ -1172,7 +1172,7 @@ func (client Client) UpdateSender(req *http.Request) (future UpdateFuture, err e // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. -func (client Client) UpdateResponder(resp *http.Response) (result GenericResource, err error) { +func (client GroupClient) UpdateResponder(resp *http.Response) (result GenericResource, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -1189,9 +1189,9 @@ func (client Client) UpdateResponder(resp *http.Response) (result GenericResourc // format, // /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name} // parameters - update resource parameters. -func (client Client) UpdateByID(ctx context.Context, resourceID string, parameters GenericResource) (result UpdateByIDFuture, err error) { +func (client GroupClient) UpdateByID(ctx context.Context, resourceID string, parameters GenericResource) (result GroupUpdateByIDFuture, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.UpdateByID") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.UpdateByID") defer func() { sc := -1 if result.Response() != nil { @@ -1202,13 +1202,13 @@ func (client Client) UpdateByID(ctx context.Context, resourceID string, paramete } req, err := client.UpdateByIDPreparer(ctx, resourceID, parameters) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "UpdateByID", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "UpdateByID", nil, "Failure preparing request") return } result, err = client.UpdateByIDSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "UpdateByID", result.Response(), "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "UpdateByID", result.Response(), "Failure sending request") return } @@ -1216,7 +1216,7 @@ func (client Client) UpdateByID(ctx context.Context, resourceID string, paramete } // UpdateByIDPreparer prepares the UpdateByID request. -func (client Client) UpdateByIDPreparer(ctx context.Context, resourceID string, parameters GenericResource) (*http.Request, error) { +func (client GroupClient) UpdateByIDPreparer(ctx context.Context, resourceID string, parameters GenericResource) (*http.Request, error) { pathParameters := map[string]interface{}{ "resourceId": resourceID, } @@ -1238,7 +1238,7 @@ func (client Client) UpdateByIDPreparer(ctx context.Context, resourceID string, // UpdateByIDSender sends the UpdateByID request. The method will close the // http.Response Body if it receives an error. -func (client Client) UpdateByIDSender(req *http.Request) (future UpdateByIDFuture, err error) { +func (client GroupClient) UpdateByIDSender(req *http.Request) (future GroupUpdateByIDFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) @@ -1251,7 +1251,7 @@ func (client Client) UpdateByIDSender(req *http.Request) (future UpdateByIDFutur // UpdateByIDResponder handles the response to the UpdateByID request. The method always // closes the http.Response Body. -func (client Client) UpdateByIDResponder(resp *http.Response) (result GenericResource, err error) { +func (client GroupClient) UpdateByIDResponder(resp *http.Response) (result GenericResource, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -1270,9 +1270,9 @@ func (client Client) UpdateByIDResponder(resp *http.Response) (result GenericRes // Parameters: // sourceResourceGroupName - the name of the resource group containing the resources to validate for move. // parameters - parameters for moving resources. -func (client Client) ValidateMoveResources(ctx context.Context, sourceResourceGroupName string, parameters MoveInfo) (result ValidateMoveResourcesFuture, err error) { +func (client GroupClient) ValidateMoveResources(ctx context.Context, sourceResourceGroupName string, parameters MoveInfo) (result GroupValidateMoveResourcesFuture, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/Client.ValidateMoveResources") + ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.ValidateMoveResources") defer func() { sc := -1 if result.Response() != nil { @@ -1286,18 +1286,18 @@ func (client Client) ValidateMoveResources(ctx context.Context, sourceResourceGr 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: `^[-\p{L}\._\(\)\w]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("resources.Client", "ValidateMoveResources", err.Error()) + return result, validation.NewError("resources.GroupClient", "ValidateMoveResources", err.Error()) } req, err := client.ValidateMoveResourcesPreparer(ctx, sourceResourceGroupName, parameters) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "ValidateMoveResources", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "ValidateMoveResources", nil, "Failure preparing request") return } result, err = client.ValidateMoveResourcesSender(req) if err != nil { - err = autorest.NewErrorWithError(err, "resources.Client", "ValidateMoveResources", result.Response(), "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.GroupClient", "ValidateMoveResources", result.Response(), "Failure sending request") return } @@ -1305,7 +1305,7 @@ func (client Client) ValidateMoveResources(ctx context.Context, sourceResourceGr } // ValidateMoveResourcesPreparer prepares the ValidateMoveResources request. -func (client Client) ValidateMoveResourcesPreparer(ctx context.Context, sourceResourceGroupName string, parameters MoveInfo) (*http.Request, error) { +func (client GroupClient) ValidateMoveResourcesPreparer(ctx context.Context, sourceResourceGroupName string, parameters MoveInfo) (*http.Request, error) { pathParameters := map[string]interface{}{ "sourceResourceGroupName": autorest.Encode("path", sourceResourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), @@ -1328,7 +1328,7 @@ func (client Client) ValidateMoveResourcesPreparer(ctx context.Context, sourceRe // ValidateMoveResourcesSender sends the ValidateMoveResources request. The method will close the // http.Response Body if it receives an error. -func (client Client) ValidateMoveResourcesSender(req *http.Request) (future ValidateMoveResourcesFuture, err error) { +func (client GroupClient) ValidateMoveResourcesSender(req *http.Request) (future GroupValidateMoveResourcesFuture, err error) { var resp *http.Response resp, err = autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) @@ -1341,7 +1341,7 @@ func (client Client) ValidateMoveResourcesSender(req *http.Request) (future Vali // ValidateMoveResourcesResponder handles the response to the ValidateMoveResources request. The method always // closes the http.Response Body. -func (client Client) ValidateMoveResourcesResponder(resp *http.Response) (result autorest.Response, err error) { +func (client GroupClient) ValidateMoveResourcesResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/tags.go b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/tagsgroup.go similarity index 67% rename from vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/tags.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/tagsgroup.go index a703382e7e9b..2091adb387c8 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/tags.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources/tagsgroup.go @@ -25,28 +25,28 @@ import ( "net/http" ) -// TagsClient is the provides operations for working with resources and resource groups. -type TagsClient struct { +// TagsGroupClient is the provides operations for working with resources and resource groups. +type TagsGroupClient struct { BaseClient } -// NewTagsClient creates an instance of the TagsClient client. -func NewTagsClient(subscriptionID string) TagsClient { - return NewTagsClientWithBaseURI(DefaultBaseURI, subscriptionID) +// NewTagsGroupClient creates an instance of the TagsGroupClient client. +func NewTagsGroupClient(subscriptionID string) TagsGroupClient { + return NewTagsGroupClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewTagsClientWithBaseURI creates an instance of the TagsClient client. -func NewTagsClientWithBaseURI(baseURI string, subscriptionID string) TagsClient { - return TagsClient{NewWithBaseURI(baseURI, subscriptionID)} +// NewTagsGroupClientWithBaseURI creates an instance of the TagsGroupClient client. +func NewTagsGroupClientWithBaseURI(baseURI string, subscriptionID string) TagsGroupClient { + return TagsGroupClient{NewWithBaseURI(baseURI, subscriptionID)} } // CreateOrUpdate the tag name can have a maximum of 512 characters and is case insensitive. Tag names created by Azure // have prefixes of microsoft, azure, or windows. You cannot create tags with one of these prefixes. // Parameters: // tagName - the name of the tag to create. -func (client TagsClient) CreateOrUpdate(ctx context.Context, tagName string) (result TagDetails, err error) { +func (client TagsGroupClient) CreateOrUpdate(ctx context.Context, tagName string) (result TagDetails, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagsClient.CreateOrUpdate") + ctx = tracing.StartSpan(ctx, fqdn+"/TagsGroupClient.CreateOrUpdate") defer func() { sc := -1 if result.Response.Response != nil { @@ -57,27 +57,27 @@ func (client TagsClient) CreateOrUpdate(ctx context.Context, tagName string) (re } req, err := client.CreateOrUpdatePreparer(ctx, tagName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdate", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.TagsGroupClient", "CreateOrUpdate", nil, "Failure preparing request") return } resp, err := client.CreateOrUpdateSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdate", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.TagsGroupClient", "CreateOrUpdate", resp, "Failure sending request") return } result, err = client.CreateOrUpdateResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdate", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.TagsGroupClient", "CreateOrUpdate", resp, "Failure responding to request") } return } // CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client TagsClient) CreateOrUpdatePreparer(ctx context.Context, tagName string) (*http.Request, error) { +func (client TagsGroupClient) CreateOrUpdatePreparer(ctx context.Context, tagName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "subscriptionId": autorest.Encode("path", client.SubscriptionID), "tagName": autorest.Encode("path", tagName), @@ -98,14 +98,14 @@ func (client TagsClient) CreateOrUpdatePreparer(ctx context.Context, tagName str // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. -func (client TagsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { +func (client TagsGroupClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. -func (client TagsClient) CreateOrUpdateResponder(resp *http.Response) (result TagDetails, err error) { +func (client TagsGroupClient) CreateOrUpdateResponder(resp *http.Response) (result TagDetails, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -120,9 +120,9 @@ func (client TagsClient) CreateOrUpdateResponder(resp *http.Response) (result Ta // Parameters: // tagName - the name of the tag. // tagValue - the value of the tag to create. -func (client TagsClient) CreateOrUpdateValue(ctx context.Context, tagName string, tagValue string) (result TagValue, err error) { +func (client TagsGroupClient) CreateOrUpdateValue(ctx context.Context, tagName string, tagValue string) (result TagValue, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagsClient.CreateOrUpdateValue") + ctx = tracing.StartSpan(ctx, fqdn+"/TagsGroupClient.CreateOrUpdateValue") defer func() { sc := -1 if result.Response.Response != nil { @@ -133,27 +133,27 @@ func (client TagsClient) CreateOrUpdateValue(ctx context.Context, tagName string } req, err := client.CreateOrUpdateValuePreparer(ctx, tagName, tagValue) if err != nil { - err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdateValue", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.TagsGroupClient", "CreateOrUpdateValue", nil, "Failure preparing request") return } resp, err := client.CreateOrUpdateValueSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdateValue", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.TagsGroupClient", "CreateOrUpdateValue", resp, "Failure sending request") return } result, err = client.CreateOrUpdateValueResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.TagsClient", "CreateOrUpdateValue", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.TagsGroupClient", "CreateOrUpdateValue", resp, "Failure responding to request") } return } // CreateOrUpdateValuePreparer prepares the CreateOrUpdateValue request. -func (client TagsClient) CreateOrUpdateValuePreparer(ctx context.Context, tagName string, tagValue string) (*http.Request, error) { +func (client TagsGroupClient) CreateOrUpdateValuePreparer(ctx context.Context, tagName string, tagValue string) (*http.Request, error) { pathParameters := map[string]interface{}{ "subscriptionId": autorest.Encode("path", client.SubscriptionID), "tagName": autorest.Encode("path", tagName), @@ -175,14 +175,14 @@ func (client TagsClient) CreateOrUpdateValuePreparer(ctx context.Context, tagNam // CreateOrUpdateValueSender sends the CreateOrUpdateValue request. The method will close the // http.Response Body if it receives an error. -func (client TagsClient) CreateOrUpdateValueSender(req *http.Request) (*http.Response, error) { +func (client TagsGroupClient) CreateOrUpdateValueSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // CreateOrUpdateValueResponder handles the response to the CreateOrUpdateValue request. The method always // closes the http.Response Body. -func (client TagsClient) CreateOrUpdateValueResponder(resp *http.Response) (result TagValue, err error) { +func (client TagsGroupClient) CreateOrUpdateValueResponder(resp *http.Response) (result TagValue, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -196,9 +196,9 @@ func (client TagsClient) CreateOrUpdateValueResponder(resp *http.Response) (resu // Delete you must remove all values from a resource tag before you can delete it. // Parameters: // tagName - the name of the tag. -func (client TagsClient) Delete(ctx context.Context, tagName string) (result autorest.Response, err error) { +func (client TagsGroupClient) Delete(ctx context.Context, tagName string) (result autorest.Response, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagsClient.Delete") + ctx = tracing.StartSpan(ctx, fqdn+"/TagsGroupClient.Delete") defer func() { sc := -1 if result.Response != nil { @@ -209,27 +209,27 @@ func (client TagsClient) Delete(ctx context.Context, tagName string) (result aut } req, err := client.DeletePreparer(ctx, tagName) if err != nil { - err = autorest.NewErrorWithError(err, "resources.TagsClient", "Delete", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.TagsGroupClient", "Delete", nil, "Failure preparing request") return } resp, err := client.DeleteSender(req) if err != nil { result.Response = resp - err = autorest.NewErrorWithError(err, "resources.TagsClient", "Delete", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.TagsGroupClient", "Delete", resp, "Failure sending request") return } result, err = client.DeleteResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.TagsClient", "Delete", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.TagsGroupClient", "Delete", resp, "Failure responding to request") } return } // DeletePreparer prepares the Delete request. -func (client TagsClient) DeletePreparer(ctx context.Context, tagName string) (*http.Request, error) { +func (client TagsGroupClient) DeletePreparer(ctx context.Context, tagName string) (*http.Request, error) { pathParameters := map[string]interface{}{ "subscriptionId": autorest.Encode("path", client.SubscriptionID), "tagName": autorest.Encode("path", tagName), @@ -250,14 +250,14 @@ func (client TagsClient) DeletePreparer(ctx context.Context, tagName string) (*h // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. -func (client TagsClient) DeleteSender(req *http.Request) (*http.Response, error) { +func (client TagsGroupClient) DeleteSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. -func (client TagsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { +func (client TagsGroupClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -271,9 +271,9 @@ func (client TagsClient) DeleteResponder(resp *http.Response) (result autorest.R // Parameters: // tagName - the name of the tag. // tagValue - the value of the tag to delete. -func (client TagsClient) DeleteValue(ctx context.Context, tagName string, tagValue string) (result autorest.Response, err error) { +func (client TagsGroupClient) DeleteValue(ctx context.Context, tagName string, tagValue string) (result autorest.Response, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagsClient.DeleteValue") + ctx = tracing.StartSpan(ctx, fqdn+"/TagsGroupClient.DeleteValue") defer func() { sc := -1 if result.Response != nil { @@ -284,27 +284,27 @@ func (client TagsClient) DeleteValue(ctx context.Context, tagName string, tagVal } req, err := client.DeleteValuePreparer(ctx, tagName, tagValue) if err != nil { - err = autorest.NewErrorWithError(err, "resources.TagsClient", "DeleteValue", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.TagsGroupClient", "DeleteValue", nil, "Failure preparing request") return } resp, err := client.DeleteValueSender(req) if err != nil { result.Response = resp - err = autorest.NewErrorWithError(err, "resources.TagsClient", "DeleteValue", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.TagsGroupClient", "DeleteValue", resp, "Failure sending request") return } result, err = client.DeleteValueResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.TagsClient", "DeleteValue", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.TagsGroupClient", "DeleteValue", resp, "Failure responding to request") } return } // DeleteValuePreparer prepares the DeleteValue request. -func (client TagsClient) DeleteValuePreparer(ctx context.Context, tagName string, tagValue string) (*http.Request, error) { +func (client TagsGroupClient) DeleteValuePreparer(ctx context.Context, tagName string, tagValue string) (*http.Request, error) { pathParameters := map[string]interface{}{ "subscriptionId": autorest.Encode("path", client.SubscriptionID), "tagName": autorest.Encode("path", tagName), @@ -326,14 +326,14 @@ func (client TagsClient) DeleteValuePreparer(ctx context.Context, tagName string // DeleteValueSender sends the DeleteValue request. The method will close the // http.Response Body if it receives an error. -func (client TagsClient) DeleteValueSender(req *http.Request) (*http.Response, error) { +func (client TagsGroupClient) DeleteValueSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // DeleteValueResponder handles the response to the DeleteValue request. The method always // closes the http.Response Body. -func (client TagsClient) DeleteValueResponder(resp *http.Response) (result autorest.Response, err error) { +func (client TagsGroupClient) DeleteValueResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -344,9 +344,9 @@ func (client TagsClient) DeleteValueResponder(resp *http.Response) (result autor } // List gets the names and values of all resource tags that are defined in a subscription. -func (client TagsClient) List(ctx context.Context) (result TagsListResultPage, err error) { +func (client TagsGroupClient) List(ctx context.Context) (result TagsListResultPage, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagsClient.List") + ctx = tracing.StartSpan(ctx, fqdn+"/TagsGroupClient.List") defer func() { sc := -1 if result.tlr.Response.Response != nil { @@ -358,27 +358,27 @@ func (client TagsClient) List(ctx context.Context) (result TagsListResultPage, e result.fn = client.listNextResults req, err := client.ListPreparer(ctx) if err != nil { - err = autorest.NewErrorWithError(err, "resources.TagsClient", "List", nil, "Failure preparing request") + err = autorest.NewErrorWithError(err, "resources.TagsGroupClient", "List", nil, "Failure preparing request") return } resp, err := client.ListSender(req) if err != nil { result.tlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "resources.TagsClient", "List", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "resources.TagsGroupClient", "List", resp, "Failure sending request") return } result.tlr, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.TagsClient", "List", resp, "Failure responding to request") + err = autorest.NewErrorWithError(err, "resources.TagsGroupClient", "List", resp, "Failure responding to request") } return } // ListPreparer prepares the List request. -func (client TagsClient) ListPreparer(ctx context.Context) (*http.Request, error) { +func (client TagsGroupClient) ListPreparer(ctx context.Context) (*http.Request, error) { pathParameters := map[string]interface{}{ "subscriptionId": autorest.Encode("path", client.SubscriptionID), } @@ -398,14 +398,14 @@ func (client TagsClient) ListPreparer(ctx context.Context) (*http.Request, error // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. -func (client TagsClient) ListSender(req *http.Request) (*http.Response, error) { +func (client TagsGroupClient) ListSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, azure.DoRetryWithRegistration(client.Client)) } // ListResponder handles the response to the List request. The method always // closes the http.Response Body. -func (client TagsClient) ListResponder(resp *http.Response) (result TagsListResult, err error) { +func (client TagsGroupClient) ListResponder(resp *http.Response) (result TagsListResult, err error) { err = autorest.Respond( resp, client.ByInspecting(), @@ -417,10 +417,10 @@ func (client TagsClient) ListResponder(resp *http.Response) (result TagsListResu } // listNextResults retrieves the next set of results, if any. -func (client TagsClient) listNextResults(ctx context.Context, lastResults TagsListResult) (result TagsListResult, err error) { +func (client TagsGroupClient) listNextResults(ctx context.Context, lastResults TagsListResult) (result TagsListResult, err error) { req, err := lastResults.tagsListResultPreparer(ctx) if err != nil { - return result, autorest.NewErrorWithError(err, "resources.TagsClient", "listNextResults", nil, "Failure preparing next results request") + return result, autorest.NewErrorWithError(err, "resources.TagsGroupClient", "listNextResults", nil, "Failure preparing next results request") } if req == nil { return @@ -428,19 +428,19 @@ func (client TagsClient) listNextResults(ctx context.Context, lastResults TagsLi resp, err := client.ListSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "resources.TagsClient", "listNextResults", resp, "Failure sending next results request") + return result, autorest.NewErrorWithError(err, "resources.TagsGroupClient", "listNextResults", resp, "Failure sending next results request") } result, err = client.ListResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "resources.TagsClient", "listNextResults", resp, "Failure responding to next results request") + err = autorest.NewErrorWithError(err, "resources.TagsGroupClient", "listNextResults", resp, "Failure responding to next results request") } return } // ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client TagsClient) ListComplete(ctx context.Context) (result TagsListResultIterator, err error) { +func (client TagsGroupClient) ListComplete(ctx context.Context) (result TagsListResultIterator, err error) { if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagsClient.List") + ctx = tracing.StartSpan(ctx, fqdn+"/TagsGroupClient.List") defer func() { sc := -1 if result.Response().Response.Response != nil { diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/scheduler/mgmt/2016-03-01/scheduler/jobcollections.go b/vendor/github.com/Azure/azure-sdk-for-go/services/scheduler/mgmt/2016-03-01/scheduler/jobcollections.go index ed4ef3f391ee..bfba4f089703 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/scheduler/mgmt/2016-03-01/scheduler/jobcollections.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/scheduler/mgmt/2016-03-01/scheduler/jobcollections.go @@ -95,6 +95,8 @@ func (client JobCollectionsClient) CreateOrUpdatePreparer(ctx context.Context, r "api-version": APIVersion, } + jobCollection.ID = nil + jobCollection.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -733,6 +735,8 @@ func (client JobCollectionsClient) PatchPreparer(ctx context.Context, resourceGr "api-version": APIVersion, } + jobCollection.ID = nil + jobCollection.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPatch(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/scheduler/mgmt/2016-03-01/scheduler/jobs.go b/vendor/github.com/Azure/azure-sdk-for-go/services/scheduler/mgmt/2016-03-01/scheduler/jobs.go index 2465cf046f12..ed4097d8b743 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/scheduler/mgmt/2016-03-01/scheduler/jobs.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/scheduler/mgmt/2016-03-01/scheduler/jobs.go @@ -98,6 +98,9 @@ func (client JobsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGro "api-version": APIVersion, } + job.ID = nil + job.Type = nil + job.Name = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -633,6 +636,9 @@ func (client JobsClient) PatchPreparer(ctx context.Context, resourceGroupName st "api-version": APIVersion, } + job.ID = nil + job.Type = nil + job.Name = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPatch(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/scheduler/mgmt/2016-03-01/scheduler/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/scheduler/mgmt/2016-03-01/scheduler/models.go index bb0119b3eb33..7f79963bba05 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/scheduler/mgmt/2016-03-01/scheduler/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/scheduler/mgmt/2016-03-01/scheduler/models.go @@ -654,9 +654,9 @@ type JobAction struct { // JobCollectionDefinition ... type JobCollectionDefinition struct { autorest.Response `json:"-"` - // ID - Gets the job collection resource identifier. + // ID - READ-ONLY; Gets the job collection resource identifier. ID *string `json:"id,omitempty"` - // Type - Gets the job collection resource type. + // Type - READ-ONLY; Gets the job collection resource type. Type *string `json:"type,omitempty"` // Name - Gets or sets the job collection resource name. Name *string `json:"name,omitempty"` @@ -672,12 +672,6 @@ type JobCollectionDefinition struct { // MarshalJSON is the custom marshaler for JobCollectionDefinition. func (jcd JobCollectionDefinition) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if jcd.ID != nil { - objectMap["id"] = jcd.ID - } - if jcd.Type != nil { - objectMap["type"] = jcd.Type - } if jcd.Name != nil { objectMap["name"] = jcd.Name } @@ -697,7 +691,7 @@ func (jcd JobCollectionDefinition) MarshalJSON() ([]byte, error) { // JobCollectionListResult ... type JobCollectionListResult struct { autorest.Response `json:"-"` - // Value - Gets the job collections. + // Value - READ-ONLY; Gets the job collections. Value *[]JobCollectionDefinition `json:"value,omitempty"` // NextLink - Gets or sets the URL to get the next set of job collections. NextLink *string `json:"nextLink,omitempty"` @@ -882,7 +876,7 @@ type JobCollectionsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *JobCollectionsDeleteFuture) Result(client JobCollectionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -907,7 +901,7 @@ type JobCollectionsDisableFuture struct { // If the operation has not completed it will return an error. func (future *JobCollectionsDisableFuture) Result(client JobCollectionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsDisableFuture", "Result", future.Response(), "Polling failure") return @@ -931,7 +925,7 @@ type JobCollectionsEnableFuture struct { // If the operation has not completed it will return an error. func (future *JobCollectionsEnableFuture) Result(client JobCollectionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "scheduler.JobCollectionsEnableFuture", "Result", future.Response(), "Polling failure") return @@ -948,11 +942,11 @@ func (future *JobCollectionsEnableFuture) Result(client JobCollectionsClient) (a // JobDefinition ... type JobDefinition struct { autorest.Response `json:"-"` - // ID - Gets the job resource identifier. + // ID - READ-ONLY; Gets the job resource identifier. ID *string `json:"id,omitempty"` - // Type - Gets the job resource type. + // Type - READ-ONLY; Gets the job resource type. Type *string `json:"type,omitempty"` - // Name - Gets the job resource name. + // Name - READ-ONLY; Gets the job resource name. Name *string `json:"name,omitempty"` // Properties - Gets or sets the job properties. Properties *JobProperties `json:"properties,omitempty"` @@ -978,34 +972,34 @@ type JobErrorAction struct { // Deprecated: Please use github.com/Azure/azure-sdk-for-go/services/logic/mgmt/2016-06-01/logic instead. // JobHistoryDefinition ... type JobHistoryDefinition struct { - // ID - Gets the job history identifier. + // ID - READ-ONLY; Gets the job history identifier. ID *string `json:"id,omitempty"` - // Type - Gets the job history resource type. + // Type - READ-ONLY; Gets the job history resource type. Type *string `json:"type,omitempty"` - // Name - Gets the job history name. + // Name - READ-ONLY; Gets the job history name. Name *string `json:"name,omitempty"` - // Properties - Gets or sets the job history properties. + // Properties - READ-ONLY; Gets or sets the job history properties. Properties *JobHistoryDefinitionProperties `json:"properties,omitempty"` } // Deprecated: Please use github.com/Azure/azure-sdk-for-go/services/logic/mgmt/2016-06-01/logic instead. // JobHistoryDefinitionProperties ... type JobHistoryDefinitionProperties struct { - // StartTime - Gets the start time for this job. + // StartTime - READ-ONLY; Gets the start time for this job. StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - Gets the end time for this job. + // EndTime - READ-ONLY; Gets the end time for this job. EndTime *date.Time `json:"endTime,omitempty"` - // ExpectedExecutionTime - Gets the expected execution time for this job. + // ExpectedExecutionTime - READ-ONLY; Gets the expected execution time for this job. ExpectedExecutionTime *date.Time `json:"expectedExecutionTime,omitempty"` - // ActionName - Gets the job history action name. Possible values include: 'MainAction', 'ErrorAction' + // ActionName - READ-ONLY; Gets the job history action name. Possible values include: 'MainAction', 'ErrorAction' ActionName JobHistoryActionName `json:"actionName,omitempty"` - // Status - Gets the job history status. Possible values include: 'Completed', 'Failed', 'Postponed' + // Status - READ-ONLY; Gets the job history status. Possible values include: 'Completed', 'Failed', 'Postponed' Status JobExecutionStatus `json:"status,omitempty"` - // Message - Gets the message for the job history. + // Message - READ-ONLY; Gets the message for the job history. Message *string `json:"message,omitempty"` - // RetryCount - Gets the retry count for job. + // RetryCount - READ-ONLY; Gets the retry count for job. RetryCount *int32 `json:"retryCount,omitempty"` - // RepeatCount - Gets the repeat count for the job. + // RepeatCount - READ-ONLY; Gets the repeat count for the job. RepeatCount *int32 `json:"repeatCount,omitempty"` } @@ -1348,7 +1342,7 @@ type JobProperties struct { Recurrence *JobRecurrence `json:"recurrence,omitempty"` // State - Gets or set the job state. Possible values include: 'JobStateEnabled', 'JobStateDisabled', 'JobStateFaulted', 'JobStateCompleted' State JobState `json:"state,omitempty"` - // Status - Gets the job status. + // Status - READ-ONLY; Gets the job status. Status *JobStatus `json:"status,omitempty"` } @@ -1400,15 +1394,15 @@ type JobStateFilter struct { // Deprecated: Please use github.com/Azure/azure-sdk-for-go/services/logic/mgmt/2016-06-01/logic instead. // JobStatus ... type JobStatus struct { - // ExecutionCount - Gets the number of times this job has executed. + // ExecutionCount - READ-ONLY; Gets the number of times this job has executed. ExecutionCount *int32 `json:"executionCount,omitempty"` - // FailureCount - Gets the number of times this job has failed. + // FailureCount - READ-ONLY; Gets the number of times this job has failed. FailureCount *int32 `json:"failureCount,omitempty"` - // FaultedCount - Gets the number of faulted occurrences (occurrences that were retried and failed as many times as the retry policy states). + // FaultedCount - READ-ONLY; Gets the number of faulted occurrences (occurrences that were retried and failed as many times as the retry policy states). FaultedCount *int32 `json:"faultedCount,omitempty"` - // LastExecutionTime - Gets the time the last occurrence executed in ISO-8601 format. Could be empty if job has not run yet. + // LastExecutionTime - READ-ONLY; Gets the time the last occurrence executed in ISO-8601 format. Could be empty if job has not run yet. LastExecutionTime *date.Time `json:"lastExecutionTime,omitempty"` - // NextExecutionTime - Gets the time of the next occurrence in ISO-8601 format. Could be empty if the job is completed. + // NextExecutionTime - READ-ONLY; Gets the time of the next occurrence in ISO-8601 format. Could be empty if the job is completed. NextExecutionTime *date.Time `json:"nextExecutionTime,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/search/mgmt/2015-08-19/search/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/search/mgmt/2015-08-19/search/models.go index ff492d21ddc2..6b65eba75efa 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/search/mgmt/2015-08-19/search/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/search/mgmt/2015-08-19/search/models.go @@ -18,6 +18,7 @@ package search // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( + "context" "encoding/json" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" @@ -57,6 +58,21 @@ func PossibleHostingModeValues() []HostingMode { return []HostingMode{Default, HighDensity} } +// IdentityType enumerates the values for identity type. +type IdentityType string + +const ( + // None ... + None IdentityType = "None" + // SystemAssigned ... + SystemAssigned IdentityType = "SystemAssigned" +) + +// PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type. +func PossibleIdentityTypeValues() []IdentityType { + return []IdentityType{None, SystemAssigned} +} + // ProvisioningState enumerates the values for provisioning state. type ProvisioningState string @@ -111,11 +127,15 @@ const ( Standard2 SkuName = "standard2" // Standard3 ... Standard3 SkuName = "standard3" + // StorageOptimizedL1 ... + StorageOptimizedL1 SkuName = "storage_optimized_l1" + // StorageOptimizedL2 ... + StorageOptimizedL2 SkuName = "storage_optimized_l2" ) // PossibleSkuNameValues returns an array of possible values for the SkuName const type. func PossibleSkuNameValues() []SkuName { - return []SkuName{Basic, Free, Standard, Standard2, Standard3} + return []SkuName{Basic, Free, Standard, Standard2, Standard3, StorageOptimizedL1, StorageOptimizedL2} } // UnavailableNameReason enumerates the values for unavailable name reason. @@ -137,9 +157,9 @@ func PossibleUnavailableNameReasonValues() []UnavailableNameReason { // service. type AdminKeyResult struct { autorest.Response `json:"-"` - // PrimaryKey - The primary admin API key of the Search service. + // PrimaryKey - READ-ONLY; The primary admin API key of the Search service. PrimaryKey *string `json:"primaryKey,omitempty"` - // SecondaryKey - The secondary admin API key of the Search service. + // SecondaryKey - READ-ONLY; The secondary admin API key of the Search service. SecondaryKey *string `json:"secondaryKey,omitempty"` } @@ -154,11 +174,11 @@ type CheckNameAvailabilityInput struct { // CheckNameAvailabilityOutput output of check name availability API. type CheckNameAvailabilityOutput struct { autorest.Response `json:"-"` - // IsNameAvailable - A value indicating whether the name is available. + // IsNameAvailable - READ-ONLY; A value indicating whether the name is available. IsNameAvailable *bool `json:"nameAvailable,omitempty"` - // Reason - The reason why the name is not available. 'Invalid' indicates the name provided does not match the naming requirements (incorrect length, unsupported characters, etc.). 'AlreadyExists' indicates that the name is already in use and is therefore unavailable. Possible values include: 'Invalid', 'AlreadyExists' + // Reason - READ-ONLY; The reason why the name is not available. 'Invalid' indicates the name provided does not match the naming requirements (incorrect length, unsupported characters, etc.). 'AlreadyExists' indicates that the name is already in use and is therefore unavailable. Possible values include: 'Invalid', 'AlreadyExists' Reason UnavailableNameReason `json:"reason,omitempty"` - // Message - A message that explains why the name is invalid and provides resource naming requirements. Available only if 'Invalid' is returned in the 'reason' property. + // Message - READ-ONLY; A message that explains why the name is invalid and provides resource naming requirements. Available only if 'Invalid' is returned in the 'reason' property. Message *string `json:"message,omitempty"` } @@ -182,38 +202,38 @@ type CloudErrorBody struct { // Identity identity for the resource. type Identity struct { - // PrincipalID - The principal ID of resource identity. + // PrincipalID - READ-ONLY; The principal ID of resource identity. PrincipalID *string `json:"principalId,omitempty"` - // TenantID - The tenant ID of resource. + // TenantID - READ-ONLY; The tenant ID of resource. TenantID *string `json:"tenantId,omitempty"` - // Type - The identity type. - Type *string `json:"type,omitempty"` + // Type - The identity type. Possible values include: 'None', 'SystemAssigned' + Type IdentityType `json:"type,omitempty"` } // ListQueryKeysResult response containing the query API keys for a given Azure Search service. type ListQueryKeysResult struct { autorest.Response `json:"-"` - // Value - The query keys for the Azure Search service. + // Value - READ-ONLY; The query keys for the Azure Search service. Value *[]QueryKey `json:"value,omitempty"` } // Operation describes a REST API operation. type Operation struct { - // Name - The name of the operation. This name is of the form {provider}/{resource}/{operation}. + // Name - READ-ONLY; The name of the operation. This name is of the form {provider}/{resource}/{operation}. Name *string `json:"name,omitempty"` - // Display - The object that describes the operation. + // Display - READ-ONLY; The object that describes the operation. Display *OperationDisplay `json:"display,omitempty"` } // OperationDisplay the object that describes the operation. type OperationDisplay struct { - // Provider - The friendly name of the resource provider. + // Provider - READ-ONLY; The friendly name of the resource provider. Provider *string `json:"provider,omitempty"` - // Operation - The operation type: read, write, delete, listKeys/action, etc. + // Operation - READ-ONLY; The operation type: read, write, delete, listKeys/action, etc. Operation *string `json:"operation,omitempty"` - // Resource - The resource type on which the operation is performed. + // Resource - READ-ONLY; The resource type on which the operation is performed. Resource *string `json:"resource,omitempty"` - // Description - The friendly name of the operation. + // Description - READ-ONLY; The friendly name of the operation. Description *string `json:"description,omitempty"` } @@ -221,9 +241,9 @@ type OperationDisplay struct { // operations and a URL to get the next set of results. type OperationListResult struct { autorest.Response `json:"-"` - // Value - The list of operations supported by the resource provider. + // Value - READ-ONLY; The list of operations supported by the resource provider. Value *[]Operation `json:"value,omitempty"` - // NextLink - The URL to get the next set of operation list results, if any. + // NextLink - READ-ONLY; The URL to get the next set of operation list results, if any. NextLink *string `json:"nextLink,omitempty"` } @@ -231,19 +251,19 @@ type OperationListResult struct { // only. type QueryKey struct { autorest.Response `json:"-"` - // Name - The name of the query API key; may be empty. + // Name - READ-ONLY; The name of the query API key; may be empty. Name *string `json:"name,omitempty"` - // Key - The value of the query API key. + // Key - READ-ONLY; The value of the query API key. Key *string `json:"key,omitempty"` } // Resource base type for all Azure resources. type Resource struct { - // ID - The ID of the resource. This can be used with the Azure Resource Manager to link resources together. + // ID - READ-ONLY; The ID of the resource. This can be used with the Azure Resource Manager to link resources together. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` // Location - The geographic location of the resource. This must be one of the supported and registered Azure Geo Regions (for example, West US, East US, Southeast Asia, and so forth). This property is required when creating a new resource. Location *string `json:"location,omitempty"` @@ -256,15 +276,6 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -284,11 +295,11 @@ type Service struct { *ServiceProperties `json:"properties,omitempty"` // Sku - The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service. Sku *Sku `json:"sku,omitempty"` - // ID - The ID of the resource. This can be used with the Azure Resource Manager to link resources together. + // ID - READ-ONLY; The ID of the resource. This can be used with the Azure Resource Manager to link resources together. ID *string `json:"id,omitempty"` - // Name - The name of the resource. + // Name - READ-ONLY; The name of the resource. Name *string `json:"name,omitempty"` - // Type - The resource type. + // Type - READ-ONLY; The resource type. Type *string `json:"type,omitempty"` // Location - The geographic location of the resource. This must be one of the supported and registered Azure Geo Regions (for example, West US, East US, Southeast Asia, and so forth). This property is required when creating a new resource. Location *string `json:"location,omitempty"` @@ -307,15 +318,6 @@ func (s Service) MarshalJSON() ([]byte, error) { if s.Sku != nil { objectMap["sku"] = s.Sku } - if s.ID != nil { - objectMap["id"] = s.ID - } - if s.Name != nil { - objectMap["name"] = s.Name - } - if s.Type != nil { - objectMap["type"] = s.Type - } if s.Location != nil { objectMap["location"] = s.Location } @@ -418,7 +420,7 @@ func (s *Service) UnmarshalJSON(body []byte) error { // ServiceListResult response containing a list of Azure Search services. type ServiceListResult struct { autorest.Response `json:"-"` - // Value - The list of Search services. + // Value - READ-ONLY; The list of Search services. Value *[]Service `json:"value,omitempty"` } @@ -430,11 +432,11 @@ type ServiceProperties struct { PartitionCount *int32 `json:"partitionCount,omitempty"` // HostingMode - Applicable only for the standard3 SKU. You can set this property to enable up to 3 high density partitions that allow up to 1000 indexes, which is much higher than the maximum indexes allowed for any other SKU. For the standard3 SKU, the value is either 'default' or 'highDensity'. For all other SKUs, this value must be 'default'. Possible values include: 'Default', 'HighDensity' HostingMode HostingMode `json:"hostingMode,omitempty"` - // Status - The status of the Search service. Possible values include: 'running': The Search service is running and no provisioning operations are underway. 'provisioning': The Search service is being provisioned or scaled up or down. 'deleting': The Search service is being deleted. 'degraded': The Search service is degraded. This can occur when the underlying search units are not healthy. The Search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The Search service is disabled. In this state, the service will reject all API requests. 'error': The Search service is in an error state. If your service is in the degraded, disabled, or error states, it means the Azure Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. Possible values include: 'ServiceStatusRunning', 'ServiceStatusProvisioning', 'ServiceStatusDeleting', 'ServiceStatusDegraded', 'ServiceStatusDisabled', 'ServiceStatusError' + // Status - READ-ONLY; The status of the Search service. Possible values include: 'running': The Search service is running and no provisioning operations are underway. 'provisioning': The Search service is being provisioned or scaled up or down. 'deleting': The Search service is being deleted. 'degraded': The Search service is degraded. This can occur when the underlying search units are not healthy. The Search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The Search service is disabled. In this state, the service will reject all API requests. 'error': The Search service is in an error state. If your service is in the degraded, disabled, or error states, it means the Azure Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. Possible values include: 'ServiceStatusRunning', 'ServiceStatusProvisioning', 'ServiceStatusDeleting', 'ServiceStatusDegraded', 'ServiceStatusDisabled', 'ServiceStatusError' Status ServiceStatus `json:"status,omitempty"` - // StatusDetails - The details of the Search service status. + // StatusDetails - READ-ONLY; The details of the Search service status. StatusDetails *string `json:"statusDetails,omitempty"` - // ProvisioningState - The state of the last provisioning operation performed on the Search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either 'succeeded' or 'failed'. Client applications can poll provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as 'succeeded' directly in the call to Create Search service. This is because the free service uses capacity that is already set up. Possible values include: 'Succeeded', 'Provisioning', 'Failed' + // ProvisioningState - READ-ONLY; The state of the last provisioning operation performed on the Search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either 'succeeded' or 'failed'. Client applications can poll provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as 'succeeded' directly in the call to Create Search service. This is because the free service uses capacity that is already set up. Possible values include: 'Succeeded', 'Provisioning', 'Failed' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } @@ -448,7 +450,7 @@ type ServicesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServicesCreateOrUpdateFuture) Result(client ServicesClient) (s Service, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "search.ServicesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -469,6 +471,6 @@ func (future *ServicesCreateOrUpdateFuture) Result(client ServicesClient) (s Ser // Sku defines the SKU of an Azure Search Service, which determines price tier and capacity limits. type Sku struct { - // Name - The SKU of the Search service. Valid values include: 'free': Shared service. 'basic': Dedicated service with up to 3 replicas. 'standard': Dedicated service with up to 12 partitions and 12 replicas. 'standard2': Similar to standard, but with more capacity per search unit. 'standard3': Offers maximum capacity per search unit with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). Possible values include: 'Free', 'Basic', 'Standard', 'Standard2', 'Standard3' + // Name - The SKU of the Search service. Valid values include: 'free': Shared service. 'basic': Dedicated service with up to 3 replicas. 'standard': Dedicated service with up to 12 partitions and 12 replicas. 'standard2': Similar to standard, but with more capacity per search unit. 'standard3': The largest Standard offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). 'storage_optimized_l1': Supports 1TB per partition, up to 12 partitions. 'storage_optimized_l2': Supports 2TB per partition, up to 12 partitions.'. Possible values include: 'Free', 'Basic', 'Standard', 'Standard2', 'Standard3', 'StorageOptimizedL1', 'StorageOptimizedL2' Name SkuName `json:"name,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/servicebus/mgmt/2017-04-01/servicebus/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/servicebus/mgmt/2017-04-01/servicebus/models.go index f4d7a295dc55..8af2acb1c652 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/servicebus/mgmt/2017-04-01/servicebus/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/servicebus/mgmt/2017-04-01/servicebus/models.go @@ -48,6 +48,21 @@ func PossibleAccessRightsValues() []AccessRights { return []AccessRights{Listen, Manage, Send} } +// DefaultAction enumerates the values for default action. +type DefaultAction string + +const ( + // Allow ... + Allow DefaultAction = "Allow" + // Deny ... + Deny DefaultAction = "Deny" +) + +// PossibleDefaultActionValues returns an array of possible values for the DefaultAction const type. +func PossibleDefaultActionValues() []DefaultAction { + return []DefaultAction{Allow, Deny} +} + // EncodingCaptureDescription enumerates the values for encoding capture description. type EncodingCaptureDescription string @@ -158,6 +173,19 @@ func PossibleNameSpaceTypeValues() []NameSpaceType { return []NameSpaceType{EventHub, Messaging, Mixed, NotificationHub, Relay} } +// NetworkRuleIPAction enumerates the values for network rule ip action. +type NetworkRuleIPAction string + +const ( + // NetworkRuleIPActionAllow ... + NetworkRuleIPActionAllow NetworkRuleIPAction = "Allow" +) + +// PossibleNetworkRuleIPActionValues returns an array of possible values for the NetworkRuleIPAction const type. +func PossibleNetworkRuleIPActionValues() []NetworkRuleIPAction { + return []NetworkRuleIPAction{NetworkRuleIPActionAllow} +} + // ProvisioningStateDR enumerates the values for provisioning state dr. type ProvisioningStateDR string @@ -252,19 +280,19 @@ func PossibleUnavailableReasonValues() []UnavailableReason { // AccessKeys namespace/ServiceBus Connection String type AccessKeys struct { autorest.Response `json:"-"` - // PrimaryConnectionString - Primary connection string of the created namespace authorization rule. + // PrimaryConnectionString - READ-ONLY; Primary connection string of the created namespace authorization rule. PrimaryConnectionString *string `json:"primaryConnectionString,omitempty"` - // SecondaryConnectionString - Secondary connection string of the created namespace authorization rule. + // SecondaryConnectionString - READ-ONLY; Secondary connection string of the created namespace authorization rule. SecondaryConnectionString *string `json:"secondaryConnectionString,omitempty"` - // AliasPrimaryConnectionString - Primary connection string of the alias if GEO DR is enabled + // AliasPrimaryConnectionString - READ-ONLY; Primary connection string of the alias if GEO DR is enabled AliasPrimaryConnectionString *string `json:"aliasPrimaryConnectionString,omitempty"` - // AliasSecondaryConnectionString - Secondary connection string of the alias if GEO DR is enabled + // AliasSecondaryConnectionString - READ-ONLY; Secondary connection string of the alias if GEO DR is enabled AliasSecondaryConnectionString *string `json:"aliasSecondaryConnectionString,omitempty"` - // PrimaryKey - A base64-encoded 256-bit primary key for signing and validating the SAS token. + // PrimaryKey - READ-ONLY; A base64-encoded 256-bit primary key for signing and validating the SAS token. PrimaryKey *string `json:"primaryKey,omitempty"` - // SecondaryKey - A base64-encoded 256-bit primary key for signing and validating the SAS token. + // SecondaryKey - READ-ONLY; A base64-encoded 256-bit primary key for signing and validating the SAS token. SecondaryKey *string `json:"secondaryKey,omitempty"` - // KeyName - A string that describes the authorization rule. + // KeyName - READ-ONLY; A string that describes the authorization rule. KeyName *string `json:"keyName,omitempty"` } @@ -284,11 +312,11 @@ type ArmDisasterRecovery struct { autorest.Response `json:"-"` // ArmDisasterRecoveryProperties - Properties required to the Create Or Update Alias(Disaster Recovery configurations) *ArmDisasterRecoveryProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -298,15 +326,6 @@ func (adr ArmDisasterRecovery) MarshalJSON() ([]byte, error) { if adr.ArmDisasterRecoveryProperties != nil { objectMap["properties"] = adr.ArmDisasterRecoveryProperties } - if adr.ID != nil { - objectMap["id"] = adr.ID - } - if adr.Name != nil { - objectMap["name"] = adr.Name - } - if adr.Type != nil { - objectMap["type"] = adr.Type - } return json.Marshal(objectMap) } @@ -366,7 +385,7 @@ type ArmDisasterRecoveryListResult struct { autorest.Response `json:"-"` // Value - List of Alias(Disaster Recovery configurations) Value *[]ArmDisasterRecovery `json:"value,omitempty"` - // NextLink - Link to the next set of results. Not empty if Value contains incomplete list of Alias(Disaster Recovery configuration) + // NextLink - READ-ONLY; Link to the next set of results. Not empty if Value contains incomplete list of Alias(Disaster Recovery configuration) NextLink *string `json:"nextLink,omitempty"` } @@ -511,15 +530,15 @@ func NewArmDisasterRecoveryListResultPage(getNextPage func(context.Context, ArmD // ArmDisasterRecoveryProperties properties required to the Create Or Update Alias(Disaster Recovery // configurations) type ArmDisasterRecoveryProperties struct { - // ProvisioningState - Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' or 'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed' + // ProvisioningState - READ-ONLY; Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' or 'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed' ProvisioningState ProvisioningStateDR `json:"provisioningState,omitempty"` - // PendingReplicationOperationsCount - Number of entities pending to be replicated. + // PendingReplicationOperationsCount - READ-ONLY; Number of entities pending to be replicated. PendingReplicationOperationsCount *int64 `json:"pendingReplicationOperationsCount,omitempty"` // PartnerNamespace - ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing PartnerNamespace *string `json:"partnerNamespace,omitempty"` // AlternateName - Primary/Secondary eventhub namespace name, which is part of GEO DR pairing AlternateName *string `json:"alternateName,omitempty"` - // Role - role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'. Possible values include: 'Primary', 'PrimaryNotReplicating', 'Secondary' + // Role - READ-ONLY; role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'. Possible values include: 'Primary', 'PrimaryNotReplicating', 'Secondary' Role RoleDisasterRecovery `json:"role,omitempty"` } @@ -552,7 +571,7 @@ type CheckNameAvailability struct { // CheckNameAvailabilityResult description of a Check Name availability request properties. type CheckNameAvailabilityResult struct { autorest.Response `json:"-"` - // Message - The detailed info regarding the reason associated with the namespace. + // Message - READ-ONLY; The detailed info regarding the reason associated with the namespace. Message *string `json:"message,omitempty"` // NameAvailable - Value indicating namespace is availability, true if the namespace is available; otherwise, false. NameAvailable *bool `json:"nameAvailable,omitempty"` @@ -697,11 +716,11 @@ type ErrorResponse struct { type Eventhub struct { // EventhubProperties - Properties supplied to the Create Or Update Event Hub operation. *EventhubProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -711,15 +730,6 @@ func (e Eventhub) MarshalJSON() ([]byte, error) { if e.EventhubProperties != nil { objectMap["properties"] = e.EventhubProperties } - if e.ID != nil { - objectMap["id"] = e.ID - } - if e.Name != nil { - objectMap["name"] = e.Name - } - if e.Type != nil { - objectMap["type"] = e.Type - } return json.Marshal(objectMap) } @@ -779,7 +789,7 @@ type EventHubListResult struct { autorest.Response `json:"-"` // Value - Result of the List EventHubs operation. Value *[]Eventhub `json:"value,omitempty"` - // NextLink - Link to the next set of results. Not empty if Value contains incomplete list of EventHubs. + // NextLink - READ-ONLY; Link to the next set of results. Not empty if Value contains incomplete list of EventHubs. NextLink *string `json:"nextLink,omitempty"` } @@ -922,11 +932,11 @@ func NewEventHubListResultPage(getNextPage func(context.Context, EventHubListRes // EventhubProperties properties supplied to the Create Or Update Event Hub operation. type EventhubProperties struct { - // PartitionIds - Current number of shards on the Event Hub. + // PartitionIds - READ-ONLY; Current number of shards on the Event Hub. PartitionIds *[]string `json:"partitionIds,omitempty"` - // CreatedAt - Exact time the Event Hub was created. + // CreatedAt - READ-ONLY; Exact time the Event Hub was created. CreatedAt *date.Time `json:"createdAt,omitempty"` - // UpdatedAt - The exact time the message was updated. + // UpdatedAt - READ-ONLY; The exact time the message was updated. UpdatedAt *date.Time `json:"updatedAt,omitempty"` // MessageRetentionInDays - Number of days to retain the events for this Event Hub, value should be 1 to 7 days MessageRetentionInDays *int64 `json:"messageRetentionInDays,omitempty"` @@ -1134,15 +1144,15 @@ type IPFilterRuleProperties struct { // MessageCountDetails message Count Details. type MessageCountDetails struct { - // ActiveMessageCount - Number of active messages in the queue, topic, or subscription. + // ActiveMessageCount - READ-ONLY; Number of active messages in the queue, topic, or subscription. ActiveMessageCount *int64 `json:"activeMessageCount,omitempty"` - // DeadLetterMessageCount - Number of messages that are dead lettered. + // DeadLetterMessageCount - READ-ONLY; Number of messages that are dead lettered. DeadLetterMessageCount *int64 `json:"deadLetterMessageCount,omitempty"` - // ScheduledMessageCount - Number of scheduled messages. + // ScheduledMessageCount - READ-ONLY; Number of scheduled messages. ScheduledMessageCount *int64 `json:"scheduledMessageCount,omitempty"` - // TransferMessageCount - Number of messages transferred to another queue, topic, or subscription. + // TransferMessageCount - READ-ONLY; Number of messages transferred to another queue, topic, or subscription. TransferMessageCount *int64 `json:"transferMessageCount,omitempty"` - // TransferDeadLetterMessageCount - Number of messages transferred into dead letters. + // TransferDeadLetterMessageCount - READ-ONLY; Number of messages transferred into dead letters. TransferDeadLetterMessageCount *int64 `json:"transferDeadLetterMessageCount,omitempty"` } @@ -1151,7 +1161,7 @@ type MigrationConfigListResult struct { autorest.Response `json:"-"` // Value - List of Migration Configs Value *[]MigrationConfigProperties `json:"value,omitempty"` - // NextLink - Link to the next set of results. Not empty if Value contains incomplete list of migrationConfigurations + // NextLink - READ-ONLY; Link to the next set of results. Not empty if Value contains incomplete list of migrationConfigurations NextLink *string `json:"nextLink,omitempty"` } @@ -1298,11 +1308,11 @@ type MigrationConfigProperties struct { autorest.Response `json:"-"` // MigrationConfigPropertiesProperties - Properties required to the Create Migration Configuration *MigrationConfigPropertiesProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -1312,15 +1322,6 @@ func (mcp MigrationConfigProperties) MarshalJSON() ([]byte, error) { if mcp.MigrationConfigPropertiesProperties != nil { objectMap["properties"] = mcp.MigrationConfigPropertiesProperties } - if mcp.ID != nil { - objectMap["id"] = mcp.ID - } - if mcp.Name != nil { - objectMap["name"] = mcp.Name - } - if mcp.Type != nil { - objectMap["type"] = mcp.Type - } return json.Marshal(objectMap) } @@ -1377,15 +1378,15 @@ func (mcp *MigrationConfigProperties) UnmarshalJSON(body []byte) error { // MigrationConfigPropertiesProperties properties required to the Create Migration Configuration type MigrationConfigPropertiesProperties struct { - // ProvisioningState - Provisioning state of Migration Configuration + // ProvisioningState - READ-ONLY; Provisioning state of Migration Configuration ProvisioningState *string `json:"provisioningState,omitempty"` - // PendingReplicationOperationsCount - Number of entities pending to be replicated. + // PendingReplicationOperationsCount - READ-ONLY; Number of entities pending to be replicated. PendingReplicationOperationsCount *int64 `json:"pendingReplicationOperationsCount,omitempty"` // TargetNamespace - Existing premium Namespace ARM Id name which has no entities, will be used for migration TargetNamespace *string `json:"targetNamespace,omitempty"` // PostMigrationName - Name to access Standard Namespace after migration PostMigrationName *string `json:"postMigrationName,omitempty"` - // MigrationState - State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating, Syncing, Active + // MigrationState - READ-ONLY; State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating, Syncing, Active MigrationState *string `json:"migrationState,omitempty"` } @@ -1399,7 +1400,7 @@ type MigrationConfigsCreateAndStartMigrationFuture struct { // If the operation has not completed it will return an error. func (future *MigrationConfigsCreateAndStartMigrationFuture) Result(client MigrationConfigsClient) (mcp MigrationConfigProperties, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.MigrationConfigsCreateAndStartMigrationFuture", "Result", future.Response(), "Polling failure") return @@ -1428,7 +1429,7 @@ type NamespacesCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *NamespacesCreateOrUpdateFuture) Result(client NamespacesClient) (sn SBNamespace, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1457,7 +1458,7 @@ type NamespacesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *NamespacesDeleteFuture) Result(client NamespacesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.NamespacesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1470,9 +1471,108 @@ func (future *NamespacesDeleteFuture) Result(client NamespacesClient) (ar autore return } +// NetworkRuleSet description of NetworkRuleSet resource. +type NetworkRuleSet struct { + autorest.Response `json:"-"` + // NetworkRuleSetProperties - NetworkRuleSet properties + *NetworkRuleSetProperties `json:"properties,omitempty"` + // ID - READ-ONLY; Resource Id + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; Resource name + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; Resource type + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for NetworkRuleSet. +func (nrs NetworkRuleSet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if nrs.NetworkRuleSetProperties != nil { + objectMap["properties"] = nrs.NetworkRuleSetProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for NetworkRuleSet struct. +func (nrs *NetworkRuleSet) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var networkRuleSetProperties NetworkRuleSetProperties + err = json.Unmarshal(*v, &networkRuleSetProperties) + if err != nil { + return err + } + nrs.NetworkRuleSetProperties = &networkRuleSetProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + nrs.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + nrs.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + nrs.Type = &typeVar + } + } + } + + return nil +} + +// NetworkRuleSetProperties networkRuleSet properties +type NetworkRuleSetProperties struct { + // DefaultAction - Default Action for Network Rule Set. Possible values include: 'Allow', 'Deny' + DefaultAction DefaultAction `json:"defaultAction,omitempty"` + // VirtualNetworkRules - List VirtualNetwork Rules + VirtualNetworkRules *[]NWRuleSetVirtualNetworkRules `json:"virtualNetworkRules,omitempty"` + // IPRules - List of IpRules + IPRules *[]NWRuleSetIPRules `json:"ipRules,omitempty"` +} + +// NWRuleSetIPRules description of NetWorkRuleSet - IpRules resource. +type NWRuleSetIPRules struct { + // IPMask - IP Mask + IPMask *string `json:"ipMask,omitempty"` + // Action - The IP Filter Action. Possible values include: 'NetworkRuleIPActionAllow' + Action NetworkRuleIPAction `json:"action,omitempty"` +} + +// NWRuleSetVirtualNetworkRules description of VirtualNetworkRules - NetworkRules resource. +type NWRuleSetVirtualNetworkRules struct { + // Subnet - Subnet properties + Subnet *Subnet `json:"subnet,omitempty"` + // IgnoreMissingVnetServiceEndpoint - Value that indicates whether to ignore missing VNet Service Endpoint + IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty"` +} + // Operation a ServiceBus REST API operation type Operation struct { - // Name - Operation name: {provider}/{resource}/{operation} + // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // Display - The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` @@ -1480,11 +1580,11 @@ type Operation struct { // OperationDisplay the object that represents the operation. type OperationDisplay struct { - // Provider - Service provider: Microsoft.ServiceBus + // Provider - READ-ONLY; Service provider: Microsoft.ServiceBus Provider *string `json:"provider,omitempty"` - // Resource - Resource on which the operation is performed: Invoice, etc. + // Resource - READ-ONLY; Resource on which the operation is performed: Invoice, etc. Resource *string `json:"resource,omitempty"` - // Operation - Operation type: Read, write, delete, etc. + // Operation - READ-ONLY; Operation type: Read, write, delete, etc. Operation *string `json:"operation,omitempty"` } @@ -1492,9 +1592,9 @@ type OperationDisplay struct { // operations and a URL link to get the next set of results. type OperationListResult struct { autorest.Response `json:"-"` - // Value - List of ServiceBus operations supported by the Microsoft.ServiceBus resource provider. + // Value - READ-ONLY; List of ServiceBus operations supported by the Microsoft.ServiceBus resource provider. Value *[]Operation `json:"value,omitempty"` - // NextLink - URL to get the next set of operation list results if there are any. + // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` } @@ -1642,11 +1742,11 @@ type PremiumMessagingRegions struct { Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -1662,15 +1762,6 @@ func (pmr PremiumMessagingRegions) MarshalJSON() ([]byte, error) { if pmr.Tags != nil { objectMap["tags"] = pmr.Tags } - if pmr.ID != nil { - objectMap["id"] = pmr.ID - } - if pmr.Name != nil { - objectMap["name"] = pmr.Name - } - if pmr.Type != nil { - objectMap["type"] = pmr.Type - } return json.Marshal(objectMap) } @@ -1679,7 +1770,7 @@ type PremiumMessagingRegionsListResult struct { autorest.Response `json:"-"` // Value - Result of the List PremiumMessagingRegions type. Value *[]PremiumMessagingRegions `json:"value,omitempty"` - // NextLink - Link to the next set of results. Not empty if Value contains incomplete list of PremiumMessagingRegions. + // NextLink - READ-ONLY; Link to the next set of results. Not empty if Value contains incomplete list of PremiumMessagingRegions. NextLink *string `json:"nextLink,omitempty"` } @@ -1823,9 +1914,9 @@ func NewPremiumMessagingRegionsListResultPage(getNextPage func(context.Context, // PremiumMessagingRegionsProperties ... type PremiumMessagingRegionsProperties struct { - // Code - Region code + // Code - READ-ONLY; Region code Code *string `json:"code,omitempty"` - // FullName - Full name of the region + // FullName - READ-ONLY; Full name of the region FullName *string `json:"fullName,omitempty"` } @@ -1840,11 +1931,11 @@ type RegenerateAccessKeyParameters struct { // Resource the Resource definition for other than namespace. type Resource struct { - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -1854,11 +1945,11 @@ type ResourceNamespacePatch struct { Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -1871,15 +1962,6 @@ func (rnp ResourceNamespacePatch) MarshalJSON() ([]byte, error) { if rnp.Tags != nil { objectMap["tags"] = rnp.Tags } - if rnp.ID != nil { - objectMap["id"] = rnp.ID - } - if rnp.Name != nil { - objectMap["name"] = rnp.Name - } - if rnp.Type != nil { - objectMap["type"] = rnp.Type - } return json.Marshal(objectMap) } @@ -1888,11 +1970,11 @@ type Rule struct { autorest.Response `json:"-"` // Ruleproperties - Properties of Rule resource *Ruleproperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -1902,15 +1984,6 @@ func (r Rule) MarshalJSON() ([]byte, error) { if r.Ruleproperties != nil { objectMap["properties"] = r.Ruleproperties } - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } return json.Marshal(objectMap) } @@ -2128,11 +2201,11 @@ type SBAuthorizationRule struct { autorest.Response `json:"-"` // SBAuthorizationRuleProperties - AuthorizationRule properties. *SBAuthorizationRuleProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -2142,15 +2215,6 @@ func (sar SBAuthorizationRule) MarshalJSON() ([]byte, error) { if sar.SBAuthorizationRuleProperties != nil { objectMap["properties"] = sar.SBAuthorizationRuleProperties } - if sar.ID != nil { - objectMap["id"] = sar.ID - } - if sar.Name != nil { - objectMap["name"] = sar.Name - } - if sar.Type != nil { - objectMap["type"] = sar.Type - } return json.Marshal(objectMap) } @@ -2369,11 +2433,11 @@ type SBNamespace struct { Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -2392,15 +2456,6 @@ func (sn SBNamespace) MarshalJSON() ([]byte, error) { if sn.Tags != nil { objectMap["tags"] = sn.Tags } - if sn.ID != nil { - objectMap["id"] = sn.ID - } - if sn.Name != nil { - objectMap["name"] = sn.Name - } - if sn.Type != nil { - objectMap["type"] = sn.Type - } return json.Marshal(objectMap) } @@ -2636,15 +2691,15 @@ type SBNamespaceMigrate struct { // SBNamespaceProperties properties of the namespace. type SBNamespaceProperties struct { - // ProvisioningState - Provisioning state of the namespace. + // ProvisioningState - READ-ONLY; Provisioning state of the namespace. ProvisioningState *string `json:"provisioningState,omitempty"` - // CreatedAt - The time the namespace was created. + // CreatedAt - READ-ONLY; The time the namespace was created. CreatedAt *date.Time `json:"createdAt,omitempty"` - // UpdatedAt - The time the namespace was updated. + // UpdatedAt - READ-ONLY; The time the namespace was updated. UpdatedAt *date.Time `json:"updatedAt,omitempty"` - // ServiceBusEndpoint - Endpoint you can use to perform Service Bus operations. + // ServiceBusEndpoint - READ-ONLY; Endpoint you can use to perform Service Bus operations. ServiceBusEndpoint *string `json:"serviceBusEndpoint,omitempty"` - // MetricID - Identifier for Azure Insights metrics + // MetricID - READ-ONLY; Identifier for Azure Insights metrics MetricID *string `json:"metricId,omitempty"` } @@ -2658,11 +2713,11 @@ type SBNamespaceUpdateParameters struct { Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -2681,15 +2736,6 @@ func (snup SBNamespaceUpdateParameters) MarshalJSON() ([]byte, error) { if snup.Tags != nil { objectMap["tags"] = snup.Tags } - if snup.ID != nil { - objectMap["id"] = snup.ID - } - if snup.Name != nil { - objectMap["name"] = snup.Name - } - if snup.Type != nil { - objectMap["type"] = snup.Type - } return json.Marshal(objectMap) } @@ -2776,11 +2822,11 @@ type SBQueue struct { autorest.Response `json:"-"` // SBQueueProperties - Queue Properties *SBQueueProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -2790,15 +2836,6 @@ func (sq SBQueue) MarshalJSON() ([]byte, error) { if sq.SBQueueProperties != nil { objectMap["properties"] = sq.SBQueueProperties } - if sq.ID != nil { - objectMap["id"] = sq.ID - } - if sq.Name != nil { - objectMap["name"] = sq.Name - } - if sq.Type != nil { - objectMap["type"] = sq.Type - } return json.Marshal(objectMap) } @@ -3001,17 +3038,17 @@ func NewSBQueueListResultPage(getNextPage func(context.Context, SBQueueListResul // SBQueueProperties the Queue Properties definition. type SBQueueProperties struct { - // CountDetails - Message Count Details. + // CountDetails - READ-ONLY; Message Count Details. CountDetails *MessageCountDetails `json:"countDetails,omitempty"` - // CreatedAt - The exact time the message was created. + // CreatedAt - READ-ONLY; The exact time the message was created. CreatedAt *date.Time `json:"createdAt,omitempty"` - // UpdatedAt - The exact time the message was updated. + // UpdatedAt - READ-ONLY; The exact time the message was updated. UpdatedAt *date.Time `json:"updatedAt,omitempty"` - // AccessedAt - Last time a message was sent, or the last time there was a receive request to this queue. + // AccessedAt - READ-ONLY; Last time a message was sent, or the last time there was a receive request to this queue. AccessedAt *date.Time `json:"accessedAt,omitempty"` - // SizeInBytes - The size of the queue, in bytes. + // SizeInBytes - READ-ONLY; The size of the queue, in bytes. SizeInBytes *int64 `json:"sizeInBytes,omitempty"` - // MessageCount - The number of messages in the queue. + // MessageCount - READ-ONLY; The number of messages in the queue. MessageCount *int64 `json:"messageCount,omitempty"` // LockDuration - ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute. LockDuration *string `json:"lockDuration,omitempty"` @@ -3060,11 +3097,11 @@ type SBSubscription struct { autorest.Response `json:"-"` // SBSubscriptionProperties - Properties of subscriptions resource. *SBSubscriptionProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -3074,15 +3111,6 @@ func (ss SBSubscription) MarshalJSON() ([]byte, error) { if ss.SBSubscriptionProperties != nil { objectMap["properties"] = ss.SBSubscriptionProperties } - if ss.ID != nil { - objectMap["id"] = ss.ID - } - if ss.Name != nil { - objectMap["name"] = ss.Name - } - if ss.Type != nil { - objectMap["type"] = ss.Type - } return json.Marshal(objectMap) } @@ -3285,15 +3313,15 @@ func NewSBSubscriptionListResultPage(getNextPage func(context.Context, SBSubscri // SBSubscriptionProperties description of Subscription Resource. type SBSubscriptionProperties struct { - // MessageCount - Number of messages. + // MessageCount - READ-ONLY; Number of messages. MessageCount *int64 `json:"messageCount,omitempty"` - // CreatedAt - Exact time the message was created. + // CreatedAt - READ-ONLY; Exact time the message was created. CreatedAt *date.Time `json:"createdAt,omitempty"` - // AccessedAt - Last time there was a receive request to this subscription. + // AccessedAt - READ-ONLY; Last time there was a receive request to this subscription. AccessedAt *date.Time `json:"accessedAt,omitempty"` - // UpdatedAt - The exact time the message was updated. + // UpdatedAt - READ-ONLY; The exact time the message was updated. UpdatedAt *date.Time `json:"updatedAt,omitempty"` - // CountDetails - Message count details + // CountDetails - READ-ONLY; Message count details CountDetails *MessageCountDetails `json:"countDetails,omitempty"` // LockDuration - ISO 8061 lock duration timespan for the subscription. The default value is 1 minute. LockDuration *string `json:"lockDuration,omitempty"` @@ -3326,11 +3354,11 @@ type SBTopic struct { autorest.Response `json:"-"` // SBTopicProperties - Properties of topic resource. *SBTopicProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -3340,15 +3368,6 @@ func (st SBTopic) MarshalJSON() ([]byte, error) { if st.SBTopicProperties != nil { objectMap["properties"] = st.SBTopicProperties } - if st.ID != nil { - objectMap["id"] = st.ID - } - if st.Name != nil { - objectMap["name"] = st.Name - } - if st.Type != nil { - objectMap["type"] = st.Type - } return json.Marshal(objectMap) } @@ -3551,17 +3570,17 @@ func NewSBTopicListResultPage(getNextPage func(context.Context, SBTopicListResul // SBTopicProperties the Topic Properties definition. type SBTopicProperties struct { - // SizeInBytes - Size of the topic, in bytes. + // SizeInBytes - READ-ONLY; Size of the topic, in bytes. SizeInBytes *int64 `json:"sizeInBytes,omitempty"` - // CreatedAt - Exact time the message was created. + // CreatedAt - READ-ONLY; Exact time the message was created. CreatedAt *date.Time `json:"createdAt,omitempty"` - // UpdatedAt - The exact time the message was updated. + // UpdatedAt - READ-ONLY; The exact time the message was updated. UpdatedAt *date.Time `json:"updatedAt,omitempty"` - // AccessedAt - Last time the message was sent, or a request was received, for this topic. + // AccessedAt - READ-ONLY; Last time the message was sent, or a request was received, for this topic. AccessedAt *date.Time `json:"accessedAt,omitempty"` - // SubscriptionCount - Number of subscriptions. + // SubscriptionCount - READ-ONLY; Number of subscriptions. SubscriptionCount *int32 `json:"subscriptionCount,omitempty"` - // CountDetails - Message count details + // CountDetails - READ-ONLY; Message count details CountDetails *MessageCountDetails `json:"countDetails,omitempty"` // DefaultMessageTimeToLive - ISO 8601 Default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself. DefaultMessageTimeToLive *string `json:"defaultMessageTimeToLive,omitempty"` @@ -3590,7 +3609,7 @@ type SBTopicProperties struct { type SQLFilter struct { // SQLExpression - The SQL expression. e.g. MyProperty='ABC' SQLExpression *string `json:"sqlExpression,omitempty"` - // CompatibilityLevel - This property is reserved for future use. An integer value showing the compatibility level, currently hard-coded to 20. + // CompatibilityLevel - READ-ONLY; This property is reserved for future use. An integer value showing the compatibility level, currently hard-coded to 20. CompatibilityLevel *int32 `json:"compatibilityLevel,omitempty"` // RequiresPreprocessing - Value that indicates whether the rule action requires preprocessing. RequiresPreprocessing *bool `json:"requiresPreprocessing,omitempty"` @@ -3607,17 +3626,23 @@ type SQLRuleAction struct { RequiresPreprocessing *bool `json:"requiresPreprocessing,omitempty"` } +// Subnet properties supplied for Subnet +type Subnet struct { + // ID - Resource ID of Virtual Network Subnet + ID *string `json:"id,omitempty"` +} + // TrackedResource the Resource definition. type TrackedResource struct { // Location - The Geo-location where the resource lives Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -3630,15 +3655,6 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Tags != nil { objectMap["tags"] = tr.Tags } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/servicebus/mgmt/2017-04-01/servicebus/namespaces.go b/vendor/github.com/Azure/azure-sdk-for-go/services/servicebus/mgmt/2017-04-01/servicebus/namespaces.go index 94fec92556a0..e8bcc473945c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/servicebus/mgmt/2017-04-01/servicebus/namespaces.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/servicebus/mgmt/2017-04-01/servicebus/namespaces.go @@ -309,6 +309,96 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRuleResponder(resp *ht return } +// CreateOrUpdateNetworkRuleSet create or update NetworkRuleSet for a Namespace. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// namespaceName - the namespace name +// parameters - the Namespace IpFilterRule. +func (client NamespacesClient) CreateOrUpdateNetworkRuleSet(ctx context.Context, resourceGroupName string, namespaceName string, parameters NetworkRuleSet) (result NetworkRuleSet, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NamespacesClient.CreateOrUpdateNetworkRuleSet") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: namespaceName, + Constraints: []validation.Constraint{{Target: "namespaceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "namespaceName", Name: validation.MinLength, Rule: 6, Chain: nil}}}}); err != nil { + return result, validation.NewError("servicebus.NamespacesClient", "CreateOrUpdateNetworkRuleSet", err.Error()) + } + + req, err := client.CreateOrUpdateNetworkRuleSetPreparer(ctx, resourceGroupName, namespaceName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "CreateOrUpdateNetworkRuleSet", nil, "Failure preparing request") + return + } + + resp, err := client.CreateOrUpdateNetworkRuleSetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "CreateOrUpdateNetworkRuleSet", resp, "Failure sending request") + return + } + + result, err = client.CreateOrUpdateNetworkRuleSetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "CreateOrUpdateNetworkRuleSet", resp, "Failure responding to request") + } + + return +} + +// CreateOrUpdateNetworkRuleSetPreparer prepares the CreateOrUpdateNetworkRuleSet request. +func (client NamespacesClient) CreateOrUpdateNetworkRuleSetPreparer(ctx context.Context, resourceGroupName string, namespaceName string, parameters NetworkRuleSet) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "namespaceName": autorest.Encode("path", namespaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2017-04-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/networkRuleSets/default", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateOrUpdateNetworkRuleSetSender sends the CreateOrUpdateNetworkRuleSet request. The method will close the +// http.Response Body if it receives an error. +func (client NamespacesClient) CreateOrUpdateNetworkRuleSetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// CreateOrUpdateNetworkRuleSetResponder handles the response to the CreateOrUpdateNetworkRuleSet request. The method always +// closes the http.Response Body. +func (client NamespacesClient) CreateOrUpdateNetworkRuleSetResponder(resp *http.Response) (result NetworkRuleSet, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + // Delete deletes an existing namespace. This operation also removes all associated resources under the namespace. // Parameters: // resourceGroupName - name of the Resource group within the Azure subscription. @@ -665,6 +755,93 @@ func (client NamespacesClient) GetAuthorizationRuleResponder(resp *http.Response return } +// GetNetworkRuleSet gets NetworkRuleSet for a Namespace. +// Parameters: +// resourceGroupName - name of the Resource group within the Azure subscription. +// namespaceName - the namespace name +func (client NamespacesClient) GetNetworkRuleSet(ctx context.Context, resourceGroupName string, namespaceName string) (result NetworkRuleSet, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/NamespacesClient.GetNetworkRuleSet") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: namespaceName, + Constraints: []validation.Constraint{{Target: "namespaceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "namespaceName", Name: validation.MinLength, Rule: 6, Chain: nil}}}}); err != nil { + return result, validation.NewError("servicebus.NamespacesClient", "GetNetworkRuleSet", err.Error()) + } + + req, err := client.GetNetworkRuleSetPreparer(ctx, resourceGroupName, namespaceName) + if err != nil { + err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "GetNetworkRuleSet", nil, "Failure preparing request") + return + } + + resp, err := client.GetNetworkRuleSetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "GetNetworkRuleSet", resp, "Failure sending request") + return + } + + result, err = client.GetNetworkRuleSetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicebus.NamespacesClient", "GetNetworkRuleSet", resp, "Failure responding to request") + } + + return +} + +// GetNetworkRuleSetPreparer prepares the GetNetworkRuleSet request. +func (client NamespacesClient) GetNetworkRuleSetPreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "namespaceName": autorest.Encode("path", namespaceName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2017-04-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/networkRuleSets/default", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetNetworkRuleSetSender sends the GetNetworkRuleSet request. The method will close the +// http.Response Body if it receives an error. +func (client NamespacesClient) GetNetworkRuleSetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetNetworkRuleSetResponder handles the response to the GetNetworkRuleSet request. The method always +// closes the http.Response Body. +func (client NamespacesClient) GetNetworkRuleSetResponder(resp *http.Response) (result NetworkRuleSet, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + // List gets all the available namespaces within the subscription, irrespective of the resource groups. func (client NamespacesClient) List(ctx context.Context) (result SBNamespaceListResultPage, err error) { if tracing.IsEnabled() { diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/servicefabric/mgmt/2018-02-01/servicefabric/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/servicefabric/mgmt/2018-02-01/servicefabric/models.go index 1bef986368c8..59c7ac8ac80b 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/servicefabric/mgmt/2018-02-01/servicefabric/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/servicefabric/mgmt/2018-02-01/servicefabric/models.go @@ -18,12 +18,14 @@ package servicefabric // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( + "context" "encoding/json" + "net/http" + "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/date" "github.com/Azure/go-autorest/autorest/to" - "net/http" ) // ClusterState enumerates the values for cluster state. @@ -840,7 +842,7 @@ type ApplicationsCreateFuture struct { // If the operation has not completed it will return an error. func (future *ApplicationsCreateFuture) Result(client ApplicationsClient) (ar ApplicationResource, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsCreateFuture", "Result", future.Response(), "Polling failure") return @@ -868,7 +870,7 @@ type ApplicationsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ApplicationsDeleteFuture) Result(client ApplicationsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -890,7 +892,7 @@ type ApplicationsUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ApplicationsUpdateFuture) Result(client ApplicationsClient) (aru ApplicationResourceUpdate, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -1027,7 +1029,7 @@ type ApplicationTypesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ApplicationTypesDeleteFuture) Result(client ApplicationTypesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1179,7 +1181,7 @@ type ApplicationTypeVersionsCreateFuture struct { // If the operation has not completed it will return an error. func (future *ApplicationTypeVersionsCreateFuture) Result(client ApplicationTypeVersionsClient) (atvr ApplicationTypeVersionResource, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypeVersionsCreateFuture", "Result", future.Response(), "Polling failure") return @@ -1208,7 +1210,7 @@ type ApplicationTypeVersionsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ApplicationTypeVersionsDeleteFuture) Result(client ApplicationTypeVersionsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypeVersionsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -1639,7 +1641,7 @@ type ClustersCreateFuture struct { // If the operation has not completed it will return an error. func (future *ClustersCreateFuture) Result(client ClustersClient) (c Cluster, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersCreateFuture", "Result", future.Response(), "Polling failure") return @@ -1667,7 +1669,7 @@ type ClustersUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ClustersUpdateFuture) Result(client ClustersClient) (c Cluster, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ClustersUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -3003,7 +3005,7 @@ type ServicesCreateFuture struct { // If the operation has not completed it will return an error. func (future *ServicesCreateFuture) Result(client ServicesClient) (sr ServiceResource, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ServicesCreateFuture", "Result", future.Response(), "Polling failure") return @@ -3031,7 +3033,7 @@ type ServicesDeleteFuture struct { // If the operation has not completed it will return an error. func (future *ServicesDeleteFuture) Result(client ServicesClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ServicesDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -3053,7 +3055,7 @@ type ServicesUpdateFuture struct { // If the operation has not completed it will return an error. func (future *ServicesUpdateFuture) Result(client ServicesClient) (sru ServiceResourceUpdate, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.ServicesUpdateFuture", "Result", future.Response(), "Polling failure") return diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2018-02-01/storage/blobcontainers.go b/vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2018-02-01/storage/blobcontainers.go index 03098697cfae..26a613558b4f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2018-02-01/storage/blobcontainers.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2018-02-01/storage/blobcontainers.go @@ -116,6 +116,7 @@ func (client BlobContainersClient) ClearLegalHoldPreparer(ctx context.Context, r "api-version": APIVersion, } + legalHold.HasLegalHold = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPost(), @@ -903,6 +904,112 @@ func (client BlobContainersClient) GetImmutabilityPolicyResponder(resp *http.Res return } +// Lease the Lease Container operation establishes and manages a lock on a container for delete operations. The lock +// duration can be 15 to 60 seconds, or can be infinite. +// Parameters: +// resourceGroupName - the name of the resource group within the user's subscription. The name is case +// insensitive. +// accountName - the name of the storage account within the specified resource group. Storage account names +// must be between 3 and 24 characters in length and use numbers and lower-case letters only. +// containerName - the name of the blob container within the specified storage account. Blob container names +// must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every +// dash (-) character must be immediately preceded and followed by a letter or number. +// parameters - lease Container request body. +func (client BlobContainersClient) Lease(ctx context.Context, resourceGroupName string, accountName string, containerName string, parameters *LeaseContainerRequest) (result LeaseContainerResponse, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/BlobContainersClient.Lease") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: containerName, + Constraints: []validation.Constraint{{Target: "containerName", Name: validation.MaxLength, Rule: 63, Chain: nil}, + {Target: "containerName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("storage.BlobContainersClient", "Lease", err.Error()) + } + + req, err := client.LeasePreparer(ctx, resourceGroupName, accountName, containerName, parameters) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Lease", nil, "Failure preparing request") + return + } + + resp, err := client.LeaseSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Lease", resp, "Failure sending request") + return + } + + result, err = client.LeaseResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "storage.BlobContainersClient", "Lease", resp, "Failure responding to request") + } + + return +} + +// LeasePreparer prepares the Lease request. +func (client BlobContainersClient) LeasePreparer(ctx context.Context, resourceGroupName string, accountName string, containerName string, parameters *LeaseContainerRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "accountName": autorest.Encode("path", accountName), + "containerName": autorest.Encode("path", containerName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease", pathParameters), + autorest.WithQueryParameters(queryParameters)) + if parameters != nil { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithJSON(parameters)) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// LeaseSender sends the Lease request. The method will close the +// http.Response Body if it receives an error. +func (client BlobContainersClient) LeaseSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// LeaseResponder handles the response to the Lease request. The method always +// closes the http.Response Body. +func (client BlobContainersClient) LeaseResponder(resp *http.Response) (result LeaseContainerResponse, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + // List lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation // token. // Parameters: @@ -1175,6 +1282,7 @@ func (client BlobContainersClient) SetLegalHoldPreparer(ctx context.Context, res "api-version": APIVersion, } + legalHold.HasLegalHold = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPost(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2018-02-01/storage/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2018-02-01/storage/models.go index 59b9eafd1d42..16fb62938e38 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2018-02-01/storage/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2018-02-01/storage/models.go @@ -18,6 +18,7 @@ package storage // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( + "context" "encoding/json" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" @@ -71,6 +72,27 @@ func PossibleActionValues() []Action { return []Action{Allow} } +// Action1 enumerates the values for action 1. +type Action1 string + +const ( + // Acquire ... + Acquire Action1 = "Acquire" + // Break ... + Break Action1 = "Break" + // Change ... + Change Action1 = "Change" + // Release ... + Release Action1 = "Release" + // Renew ... + Renew Action1 = "Renew" +) + +// PossibleAction1Values returns an array of possible values for the Action1 const type. +func PossibleAction1Values() []Action1 { + return []Action1{Acquire, Break, Change, Release, Renew} +} + // Bypass enumerates the values for bypass. type Bypass string @@ -479,9 +501,9 @@ func PossibleUsageUnitValues() []UsageUnit { // Account the storage account. type Account struct { autorest.Response `json:"-"` - // Sku - Gets the SKU. + // Sku - READ-ONLY; Gets the SKU. Sku *Sku `json:"sku,omitempty"` - // Kind - Gets the Kind. Possible values include: 'Storage', 'StorageV2', 'BlobStorage' + // Kind - READ-ONLY; Gets the Kind. Possible values include: 'Storage', 'StorageV2', 'BlobStorage' Kind Kind `json:"kind,omitempty"` // Identity - The identity of the resource. Identity *Identity `json:"identity,omitempty"` @@ -491,23 +513,17 @@ type Account struct { Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` - // ID - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for Account. func (a Account) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if a.Sku != nil { - objectMap["sku"] = a.Sku - } - if a.Kind != "" { - objectMap["kind"] = a.Kind - } if a.Identity != nil { objectMap["identity"] = a.Identity } @@ -520,15 +536,6 @@ func (a Account) MarshalJSON() ([]byte, error) { if a.Location != nil { objectMap["location"] = a.Location } - if a.ID != nil { - objectMap["id"] = a.ID - } - if a.Name != nil { - objectMap["name"] = a.Name - } - if a.Type != nil { - objectMap["type"] = a.Type - } return json.Marshal(objectMap) } @@ -748,57 +755,57 @@ func (acp *AccountCreateParameters) UnmarshalJSON(body []byte) error { // AccountKey an access key for the storage account. type AccountKey struct { - // KeyName - Name of the key. + // KeyName - READ-ONLY; Name of the key. KeyName *string `json:"keyName,omitempty"` - // Value - Base 64-encoded value of the key. + // Value - READ-ONLY; Base 64-encoded value of the key. Value *string `json:"value,omitempty"` - // Permissions - Permissions for the key -- read-only or full permissions. Possible values include: 'Read', 'Full' + // Permissions - READ-ONLY; Permissions for the key -- read-only or full permissions. Possible values include: 'Read', 'Full' Permissions KeyPermission `json:"permissions,omitempty"` } // AccountListKeysResult the response from the ListKeys operation. type AccountListKeysResult struct { autorest.Response `json:"-"` - // Keys - Gets the list of storage account keys and their properties for the specified storage account. + // Keys - READ-ONLY; Gets the list of storage account keys and their properties for the specified storage account. Keys *[]AccountKey `json:"keys,omitempty"` } // AccountListResult the response from the List Storage Accounts operation. type AccountListResult struct { autorest.Response `json:"-"` - // Value - Gets the list of storage accounts and their properties. + // Value - READ-ONLY; Gets the list of storage accounts and their properties. Value *[]Account `json:"value,omitempty"` } // AccountProperties properties of the storage account. type AccountProperties struct { - // ProvisioningState - Gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded' + // ProvisioningState - READ-ONLY; Gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` - // PrimaryEndpoints - Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint. + // PrimaryEndpoints - READ-ONLY; Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint. PrimaryEndpoints *Endpoints `json:"primaryEndpoints,omitempty"` - // PrimaryLocation - Gets the location of the primary data center for the storage account. + // PrimaryLocation - READ-ONLY; Gets the location of the primary data center for the storage account. PrimaryLocation *string `json:"primaryLocation,omitempty"` - // StatusOfPrimary - Gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: 'Available', 'Unavailable' + // StatusOfPrimary - READ-ONLY; Gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: 'Available', 'Unavailable' StatusOfPrimary AccountStatus `json:"statusOfPrimary,omitempty"` - // LastGeoFailoverTime - Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is Standard_GRS or Standard_RAGRS. + // LastGeoFailoverTime - READ-ONLY; Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is Standard_GRS or Standard_RAGRS. LastGeoFailoverTime *date.Time `json:"lastGeoFailoverTime,omitempty"` - // SecondaryLocation - Gets the location of the geo-replicated secondary for the storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS. + // SecondaryLocation - READ-ONLY; Gets the location of the geo-replicated secondary for the storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS. SecondaryLocation *string `json:"secondaryLocation,omitempty"` - // StatusOfSecondary - Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS. Possible values include: 'Available', 'Unavailable' + // StatusOfSecondary - READ-ONLY; Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS. Possible values include: 'Available', 'Unavailable' StatusOfSecondary AccountStatus `json:"statusOfSecondary,omitempty"` - // CreationTime - Gets the creation date and time of the storage account in UTC. + // CreationTime - READ-ONLY; Gets the creation date and time of the storage account in UTC. CreationTime *date.Time `json:"creationTime,omitempty"` - // CustomDomain - Gets the custom domain the user assigned to this storage account. + // CustomDomain - READ-ONLY; Gets the custom domain the user assigned to this storage account. CustomDomain *CustomDomain `json:"customDomain,omitempty"` - // SecondaryEndpoints - Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS. + // SecondaryEndpoints - READ-ONLY; Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS. SecondaryEndpoints *Endpoints `json:"secondaryEndpoints,omitempty"` - // Encryption - Gets the encryption settings on the account. If unspecified, the account is unencrypted. + // Encryption - READ-ONLY; Gets the encryption settings on the account. If unspecified, the account is unencrypted. Encryption *Encryption `json:"encryption,omitempty"` - // AccessTier - Required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool' + // AccessTier - READ-ONLY; Required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool' AccessTier AccessTier `json:"accessTier,omitempty"` // EnableHTTPSTrafficOnly - Allows https traffic only to storage service if sets to true. EnableHTTPSTrafficOnly *bool `json:"supportsHttpsTrafficOnly,omitempty"` - // NetworkRuleSet - Network rule set + // NetworkRuleSet - READ-ONLY; Network rule set NetworkRuleSet *NetworkRuleSet `json:"networkAcls,omitempty"` // IsHnsEnabled - Account HierarchicalNamespace enabled if sets to true. IsHnsEnabled *bool `json:"isHnsEnabled,omitempty"` @@ -870,7 +877,7 @@ type AccountsCreateFuture struct { // If the operation has not completed it will return an error. func (future *AccountsCreateFuture) Result(client AccountsClient) (a Account, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "storage.AccountsCreateFuture", "Result", future.Response(), "Polling failure") return @@ -987,13 +994,13 @@ func (aup *AccountUpdateParameters) UnmarshalJSON(body []byte) error { // AzureEntityResource the resource model definition for a Azure Resource Manager resource with an etag. type AzureEntityResource struct { - // Etag - Resource Etag. + // Etag - READ-ONLY; Resource Etag. Etag *string `json:"etag,omitempty"` - // ID - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` } @@ -1002,13 +1009,13 @@ type BlobContainer struct { autorest.Response `json:"-"` // ContainerProperties - Properties of the blob container. *ContainerProperties `json:"properties,omitempty"` - // Etag - Resource Etag. + // Etag - READ-ONLY; Resource Etag. Etag *string `json:"etag,omitempty"` - // ID - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` } @@ -1018,18 +1025,6 @@ func (bc BlobContainer) MarshalJSON() ([]byte, error) { if bc.ContainerProperties != nil { objectMap["properties"] = bc.ContainerProperties } - if bc.Etag != nil { - objectMap["etag"] = bc.Etag - } - if bc.ID != nil { - objectMap["id"] = bc.ID - } - if bc.Name != nil { - objectMap["name"] = bc.Name - } - if bc.Type != nil { - objectMap["type"] = bc.Type - } return json.Marshal(objectMap) } @@ -1096,11 +1091,11 @@ func (bc *BlobContainer) UnmarshalJSON(body []byte) error { // CheckNameAvailabilityResult the CheckNameAvailability operation response. type CheckNameAvailabilityResult struct { autorest.Response `json:"-"` - // NameAvailable - Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used. + // NameAvailable - READ-ONLY; Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used. NameAvailable *bool `json:"nameAvailable,omitempty"` - // Reason - Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'AccountNameInvalid', 'AlreadyExists' + // Reason - READ-ONLY; Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'AccountNameInvalid', 'AlreadyExists' Reason Reason `json:"reason,omitempty"` - // Message - Gets an error message explaining the Reason value in more detail. + // Message - READ-ONLY; Gets an error message explaining the Reason value in more detail. Message *string `json:"message,omitempty"` } @@ -1108,23 +1103,23 @@ type CheckNameAvailabilityResult struct { type ContainerProperties struct { // PublicAccess - Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: 'PublicAccessContainer', 'PublicAccessBlob', 'PublicAccessNone' PublicAccess PublicAccess `json:"publicAccess,omitempty"` - // LastModifiedTime - Returns the date and time the container was last modified. + // LastModifiedTime - READ-ONLY; Returns the date and time the container was last modified. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` - // LeaseStatus - The lease status of the container. Possible values include: 'LeaseStatusLocked', 'LeaseStatusUnlocked' + // LeaseStatus - READ-ONLY; The lease status of the container. Possible values include: 'LeaseStatusLocked', 'LeaseStatusUnlocked' LeaseStatus LeaseStatus `json:"leaseStatus,omitempty"` - // LeaseState - Lease state of the container. Possible values include: 'LeaseStateAvailable', 'LeaseStateLeased', 'LeaseStateExpired', 'LeaseStateBreaking', 'LeaseStateBroken' + // LeaseState - READ-ONLY; Lease state of the container. Possible values include: 'LeaseStateAvailable', 'LeaseStateLeased', 'LeaseStateExpired', 'LeaseStateBreaking', 'LeaseStateBroken' LeaseState LeaseState `json:"leaseState,omitempty"` - // LeaseDuration - Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. Possible values include: 'Infinite', 'Fixed' + // LeaseDuration - READ-ONLY; Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. Possible values include: 'Infinite', 'Fixed' LeaseDuration LeaseDuration `json:"leaseDuration,omitempty"` // Metadata - A name-value pair to associate with the container as metadata. Metadata map[string]*string `json:"metadata"` - // ImmutabilityPolicy - The ImmutabilityPolicy property of the container. + // ImmutabilityPolicy - READ-ONLY; The ImmutabilityPolicy property of the container. ImmutabilityPolicy *ImmutabilityPolicyProperties `json:"immutabilityPolicy,omitempty"` - // LegalHold - The LegalHold property of the container. + // LegalHold - READ-ONLY; The LegalHold property of the container. LegalHold *LegalHoldProperties `json:"legalHold,omitempty"` - // HasLegalHold - The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. + // HasLegalHold - READ-ONLY; The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. HasLegalHold *bool `json:"hasLegalHold,omitempty"` - // HasImmutabilityPolicy - The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container. + // HasImmutabilityPolicy - READ-ONLY; The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container. HasImmutabilityPolicy *bool `json:"hasImmutabilityPolicy,omitempty"` } @@ -1134,33 +1129,9 @@ func (cp ContainerProperties) MarshalJSON() ([]byte, error) { if cp.PublicAccess != "" { objectMap["publicAccess"] = cp.PublicAccess } - if cp.LastModifiedTime != nil { - objectMap["lastModifiedTime"] = cp.LastModifiedTime - } - if cp.LeaseStatus != "" { - objectMap["leaseStatus"] = cp.LeaseStatus - } - if cp.LeaseState != "" { - objectMap["leaseState"] = cp.LeaseState - } - if cp.LeaseDuration != "" { - objectMap["leaseDuration"] = cp.LeaseDuration - } if cp.Metadata != nil { objectMap["metadata"] = cp.Metadata } - if cp.ImmutabilityPolicy != nil { - objectMap["immutabilityPolicy"] = cp.ImmutabilityPolicy - } - if cp.LegalHold != nil { - objectMap["legalHold"] = cp.LegalHold - } - if cp.HasLegalHold != nil { - objectMap["hasLegalHold"] = cp.HasLegalHold - } - if cp.HasImmutabilityPolicy != nil { - objectMap["hasImmutabilityPolicy"] = cp.HasImmutabilityPolicy - } return json.Marshal(objectMap) } @@ -1194,7 +1165,7 @@ type Encryption struct { type EncryptionService struct { // Enabled - A boolean indicating whether or not the service encrypts the data as it is stored. Enabled *bool `json:"enabled,omitempty"` - // LastEnabledTime - Gets a rough estimate of the date/time when the encryption was last enabled by the user. Only returned when encryption is enabled. There might be some unencrypted blobs which were written after this time, as it is just a rough estimate. + // LastEnabledTime - READ-ONLY; Gets a rough estimate of the date/time when the encryption was last enabled by the user. Only returned when encryption is enabled. There might be some unencrypted blobs which were written after this time, as it is just a rough estimate. LastEnabledTime *date.Time `json:"lastEnabledTime,omitempty"` } @@ -1204,34 +1175,34 @@ type EncryptionServices struct { Blob *EncryptionService `json:"blob,omitempty"` // File - The encryption function of the file storage service. File *EncryptionService `json:"file,omitempty"` - // Table - The encryption function of the table storage service. + // Table - READ-ONLY; The encryption function of the table storage service. Table *EncryptionService `json:"table,omitempty"` - // Queue - The encryption function of the queue storage service. + // Queue - READ-ONLY; The encryption function of the queue storage service. Queue *EncryptionService `json:"queue,omitempty"` } // Endpoints the URIs that are used to perform a retrieval of a public blob, queue, table, web or dfs // object. type Endpoints struct { - // Blob - Gets the blob endpoint. + // Blob - READ-ONLY; Gets the blob endpoint. Blob *string `json:"blob,omitempty"` - // Queue - Gets the queue endpoint. + // Queue - READ-ONLY; Gets the queue endpoint. Queue *string `json:"queue,omitempty"` - // Table - Gets the table endpoint. + // Table - READ-ONLY; Gets the table endpoint. Table *string `json:"table,omitempty"` - // File - Gets the file endpoint. + // File - READ-ONLY; Gets the file endpoint. File *string `json:"file,omitempty"` - // Web - Gets the web endpoint. + // Web - READ-ONLY; Gets the web endpoint. Web *string `json:"web,omitempty"` - // Dfs - Gets the dfs endpoint. + // Dfs - READ-ONLY; Gets the dfs endpoint. Dfs *string `json:"dfs,omitempty"` } // Identity identity for the resource. type Identity struct { - // PrincipalID - The principal ID of resource identity. + // PrincipalID - READ-ONLY; The principal ID of resource identity. PrincipalID *string `json:"principalId,omitempty"` - // TenantID - The tenant ID of resource. + // TenantID - READ-ONLY; The tenant ID of resource. TenantID *string `json:"tenantId,omitempty"` // Type - The identity type. Type *string `json:"type,omitempty"` @@ -1243,13 +1214,13 @@ type ImmutabilityPolicy struct { autorest.Response `json:"-"` // ImmutabilityPolicyProperty - The properties of an ImmutabilityPolicy of a blob container. *ImmutabilityPolicyProperty `json:"properties,omitempty"` - // Etag - Resource Etag. + // Etag - READ-ONLY; Resource Etag. Etag *string `json:"etag,omitempty"` - // ID - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` } @@ -1259,18 +1230,6 @@ func (IP ImmutabilityPolicy) MarshalJSON() ([]byte, error) { if IP.ImmutabilityPolicyProperty != nil { objectMap["properties"] = IP.ImmutabilityPolicyProperty } - if IP.Etag != nil { - objectMap["etag"] = IP.Etag - } - if IP.ID != nil { - objectMap["id"] = IP.ID - } - if IP.Name != nil { - objectMap["name"] = IP.Name - } - if IP.Type != nil { - objectMap["type"] = IP.Type - } return json.Marshal(objectMap) } @@ -1338,9 +1297,9 @@ func (IP *ImmutabilityPolicy) UnmarshalJSON(body []byte) error { type ImmutabilityPolicyProperties struct { // ImmutabilityPolicyProperty - The properties of an ImmutabilityPolicy of a blob container. *ImmutabilityPolicyProperty `json:"properties,omitempty"` - // Etag - ImmutabilityPolicy Etag. + // Etag - READ-ONLY; ImmutabilityPolicy Etag. Etag *string `json:"etag,omitempty"` - // UpdateHistory - The ImmutabilityPolicy update history of the blob container. + // UpdateHistory - READ-ONLY; The ImmutabilityPolicy update history of the blob container. UpdateHistory *[]UpdateHistoryProperty `json:"updateHistory,omitempty"` } @@ -1350,12 +1309,6 @@ func (ipp ImmutabilityPolicyProperties) MarshalJSON() ([]byte, error) { if ipp.ImmutabilityPolicyProperty != nil { objectMap["properties"] = ipp.ImmutabilityPolicyProperty } - if ipp.Etag != nil { - objectMap["etag"] = ipp.Etag - } - if ipp.UpdateHistory != nil { - objectMap["updateHistory"] = ipp.UpdateHistory - } return json.Marshal(objectMap) } @@ -1405,7 +1358,7 @@ func (ipp *ImmutabilityPolicyProperties) UnmarshalJSON(body []byte) error { type ImmutabilityPolicyProperty struct { // ImmutabilityPeriodSinceCreationInDays - The immutability period for the blobs in the container since the policy creation, in days. ImmutabilityPeriodSinceCreationInDays *int32 `json:"immutabilityPeriodSinceCreationInDays,omitempty"` - // State - The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Possible values include: 'Locked', 'Unlocked' + // State - READ-ONLY; The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Possible values include: 'Locked', 'Unlocked' State ImmutabilityPolicyState `json:"state,omitempty"` } @@ -1427,10 +1380,33 @@ type KeyVaultProperties struct { KeyVaultURI *string `json:"keyvaulturi,omitempty"` } +// LeaseContainerRequest lease Container request schema. +type LeaseContainerRequest struct { + // Action - Specifies the lease action. Can be one of the available actions. Possible values include: 'Acquire', 'Renew', 'Change', 'Release', 'Break' + Action Action1 `json:"action,omitempty"` + // LeaseID - Identifies the lease. Can be specified in any valid GUID string format. + LeaseID *string `json:"leaseId,omitempty"` + // BreakPeriod - Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60. + BreakPeriod *int32 `json:"breakPeriod,omitempty"` + // LeaseDuration - Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires. + LeaseDuration *int32 `json:"leaseDuration,omitempty"` + // ProposedLeaseID - Optional for acquire, required for change. Proposed lease ID, in a GUID string format. + ProposedLeaseID *string `json:"proposedLeaseId,omitempty"` +} + +// LeaseContainerResponse lease Container response schema. +type LeaseContainerResponse struct { + autorest.Response `json:"-"` + // LeaseID - Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease. + LeaseID *string `json:"leaseId,omitempty"` + // LeaseTimeSeconds - Approximate time remaining in the lease period, in seconds. + LeaseTimeSeconds *string `json:"leaseTimeSeconds,omitempty"` +} + // LegalHold the LegalHold property of a blob container. type LegalHold struct { autorest.Response `json:"-"` - // HasLegalHold - The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. + // HasLegalHold - READ-ONLY; The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. HasLegalHold *bool `json:"hasLegalHold,omitempty"` // Tags - Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. Tags *[]string `json:"tags,omitempty"` @@ -1438,7 +1414,7 @@ type LegalHold struct { // LegalHoldProperties the LegalHold property of a blob container. type LegalHoldProperties struct { - // HasLegalHold - The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. + // HasLegalHold - READ-ONLY; The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account. HasLegalHold *bool `json:"hasLegalHold,omitempty"` // Tags - The list of LegalHold tags of a blob container. Tags *[]TagProperty `json:"tags,omitempty"` @@ -1447,7 +1423,7 @@ type LegalHoldProperties struct { // ListAccountSasResponse the List SAS credentials operation response. type ListAccountSasResponse struct { autorest.Response `json:"-"` - // AccountSasToken - List SAS credentials of storage account. + // AccountSasToken - READ-ONLY; List SAS credentials of storage account. AccountSasToken *string `json:"accountSasToken,omitempty"` } @@ -1455,13 +1431,13 @@ type ListAccountSasResponse struct { type ListContainerItem struct { // ContainerProperties - The blob container properties be listed out. *ContainerProperties `json:"properties,omitempty"` - // Etag - Resource Etag. + // Etag - READ-ONLY; Resource Etag. Etag *string `json:"etag,omitempty"` - // ID - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` } @@ -1471,18 +1447,6 @@ func (lci ListContainerItem) MarshalJSON() ([]byte, error) { if lci.ContainerProperties != nil { objectMap["properties"] = lci.ContainerProperties } - if lci.Etag != nil { - objectMap["etag"] = lci.Etag - } - if lci.ID != nil { - objectMap["id"] = lci.ID - } - if lci.Name != nil { - objectMap["name"] = lci.Name - } - if lci.Type != nil { - objectMap["type"] = lci.Type - } return json.Marshal(objectMap) } @@ -1556,7 +1520,7 @@ type ListContainerItems struct { // ListServiceSasResponse the List service SAS credentials operation response. type ListServiceSasResponse struct { autorest.Response `json:"-"` - // ServiceSasToken - List service SAS credentials of specific resource. + // ServiceSasToken - READ-ONLY; List service SAS credentials of specific resource. ServiceSasToken *string `json:"serviceSasToken,omitempty"` } @@ -1704,29 +1668,29 @@ type OperationProperties struct { // ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than // required location and tags type ProxyResource struct { - // ID - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` } // Resource ... type Resource struct { - // ID - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` } // Restriction the restriction because of which SKU cannot be used. type Restriction struct { - // Type - The type of restrictions. As of now only possible value for this is location. + // Type - READ-ONLY; The type of restrictions. As of now only possible value for this is location. Type *string `json:"type,omitempty"` - // Values - The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. + // Values - READ-ONLY; The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. Values *[]string `json:"values,omitempty"` // ReasonCode - The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Possible values include: 'QuotaID', 'NotAvailableForSubscription' ReasonCode ReasonCode `json:"reasonCode,omitempty"` @@ -1782,15 +1746,15 @@ type ServiceSpecification struct { type Sku struct { // Name - Gets or sets the sku name. Required for account creation; optional for update. Note that in older versions, sku name was called accountType. Possible values include: 'StandardLRS', 'StandardGRS', 'StandardRAGRS', 'StandardZRS', 'PremiumLRS' Name SkuName `json:"name,omitempty"` - // Tier - Gets the sku tier. This is based on the SKU name. Possible values include: 'Standard', 'Premium' + // Tier - READ-ONLY; Gets the sku tier. This is based on the SKU name. Possible values include: 'Standard', 'Premium' Tier SkuTier `json:"tier,omitempty"` - // ResourceType - The type of the resource, usually it is 'storageAccounts'. + // ResourceType - READ-ONLY; The type of the resource, usually it is 'storageAccounts'. ResourceType *string `json:"resourceType,omitempty"` - // Kind - Indicates the type of storage account. Possible values include: 'Storage', 'StorageV2', 'BlobStorage' + // Kind - READ-ONLY; Indicates the type of storage account. Possible values include: 'Storage', 'StorageV2', 'BlobStorage' Kind Kind `json:"kind,omitempty"` - // Locations - The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). + // Locations - READ-ONLY; The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). Locations *[]string `json:"locations,omitempty"` - // Capabilities - The capability information in the specified sku, including file encryption, network acls, change notification, etc. + // Capabilities - READ-ONLY; The capability information in the specified sku, including file encryption, network acls, change notification, etc. Capabilities *[]SKUCapability `json:"capabilities,omitempty"` // Restrictions - The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. Restrictions *[]Restriction `json:"restrictions,omitempty"` @@ -1799,30 +1763,30 @@ type Sku struct { // SKUCapability the capability information in the specified sku, including file encryption, network acls, // change notification, etc. type SKUCapability struct { - // Name - The name of capability, The capability information in the specified sku, including file encryption, network acls, change notification, etc. + // Name - READ-ONLY; The name of capability, The capability information in the specified sku, including file encryption, network acls, change notification, etc. Name *string `json:"name,omitempty"` - // Value - A string value to indicate states of given capability. Possibly 'true' or 'false'. + // Value - READ-ONLY; A string value to indicate states of given capability. Possibly 'true' or 'false'. Value *string `json:"value,omitempty"` } // SkuListResult the response from the List Storage SKUs operation. type SkuListResult struct { autorest.Response `json:"-"` - // Value - Get the list result of storage SKUs and their properties. + // Value - READ-ONLY; Get the list result of storage SKUs and their properties. Value *[]Sku `json:"value,omitempty"` } // TagProperty a tag of the LegalHold of a blob container. type TagProperty struct { - // Tag - The tag value. + // Tag - READ-ONLY; The tag value. Tag *string `json:"tag,omitempty"` - // Timestamp - Returns the date and time the tag was added. + // Timestamp - READ-ONLY; Returns the date and time the tag was added. Timestamp *date.Time `json:"timestamp,omitempty"` - // ObjectIdentifier - Returns the Object ID of the user who added the tag. + // ObjectIdentifier - READ-ONLY; Returns the Object ID of the user who added the tag. ObjectIdentifier *string `json:"objectIdentifier,omitempty"` - // TenantID - Returns the Tenant ID that issued the token for the user who added the tag. + // TenantID - READ-ONLY; Returns the Tenant ID that issued the token for the user who added the tag. TenantID *string `json:"tenantId,omitempty"` - // Upn - Returns the User Principal Name of the user who added the tag. + // Upn - READ-ONLY; Returns the User Principal Name of the user who added the tag. Upn *string `json:"upn,omitempty"` } @@ -1832,11 +1796,11 @@ type TrackedResource struct { Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` - // ID - Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` - // Name - The name of the resource + // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` } @@ -1849,43 +1813,34 @@ func (tr TrackedResource) MarshalJSON() ([]byte, error) { if tr.Location != nil { objectMap["location"] = tr.Location } - if tr.ID != nil { - objectMap["id"] = tr.ID - } - if tr.Name != nil { - objectMap["name"] = tr.Name - } - if tr.Type != nil { - objectMap["type"] = tr.Type - } return json.Marshal(objectMap) } // UpdateHistoryProperty an update history of the ImmutabilityPolicy of a blob container. type UpdateHistoryProperty struct { - // Update - The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend. Possible values include: 'Put', 'Lock', 'Extend' + // Update - READ-ONLY; The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend. Possible values include: 'Put', 'Lock', 'Extend' Update ImmutabilityPolicyUpdateType `json:"update,omitempty"` - // ImmutabilityPeriodSinceCreationInDays - The immutability period for the blobs in the container since the policy creation, in days. + // ImmutabilityPeriodSinceCreationInDays - READ-ONLY; The immutability period for the blobs in the container since the policy creation, in days. ImmutabilityPeriodSinceCreationInDays *int32 `json:"immutabilityPeriodSinceCreationInDays,omitempty"` - // Timestamp - Returns the date and time the ImmutabilityPolicy was updated. + // Timestamp - READ-ONLY; Returns the date and time the ImmutabilityPolicy was updated. Timestamp *date.Time `json:"timestamp,omitempty"` - // ObjectIdentifier - Returns the Object ID of the user who updated the ImmutabilityPolicy. + // ObjectIdentifier - READ-ONLY; Returns the Object ID of the user who updated the ImmutabilityPolicy. ObjectIdentifier *string `json:"objectIdentifier,omitempty"` - // TenantID - Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy. + // TenantID - READ-ONLY; Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy. TenantID *string `json:"tenantId,omitempty"` - // Upn - Returns the User Principal Name of the user who updated the ImmutabilityPolicy. + // Upn - READ-ONLY; Returns the User Principal Name of the user who updated the ImmutabilityPolicy. Upn *string `json:"upn,omitempty"` } // Usage describes Storage Resource Usage. type Usage struct { - // Unit - Gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond' + // Unit - READ-ONLY; Gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond' Unit UsageUnit `json:"unit,omitempty"` - // CurrentValue - Gets the current count of the allocated resources in the subscription. + // CurrentValue - READ-ONLY; Gets the current count of the allocated resources in the subscription. CurrentValue *int32 `json:"currentValue,omitempty"` - // Limit - Gets the maximum count of the resources that can be allocated in the subscription. + // Limit - READ-ONLY; Gets the maximum count of the resources that can be allocated in the subscription. Limit *int32 `json:"limit,omitempty"` - // Name - Gets the name of the type of usage. + // Name - READ-ONLY; Gets the name of the type of usage. Name *UsageName `json:"name,omitempty"` } @@ -1898,9 +1853,9 @@ type UsageListResult struct { // UsageName the usage names that can be used; currently limited to StorageAccount. type UsageName struct { - // Value - Gets a string describing the resource name. + // Value - READ-ONLY; Gets a string describing the resource name. Value *string `json:"value,omitempty"` - // LocalizedValue - Gets a localized string describing the resource name. + // LocalizedValue - READ-ONLY; Gets a localized string describing the resource name. LocalizedValue *string `json:"localizedValue,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/streamanalytics/mgmt/2016-03-01/streamanalytics/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/streamanalytics/mgmt/2016-03-01/streamanalytics/models.go index ef8ab4736aa9..08baacfad078 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/streamanalytics/mgmt/2016-03-01/streamanalytics/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/streamanalytics/mgmt/2016-03-01/streamanalytics/models.go @@ -1347,18 +1347,18 @@ type CsvSerializationProperties struct { // DiagnosticCondition condition applicable to the resource, or to the job overall, that warrant customer // attention. type DiagnosticCondition struct { - // Since - The UTC timestamp of when the condition started. Customers should be able to find a corresponding event in the ops log around this time. + // Since - READ-ONLY; The UTC timestamp of when the condition started. Customers should be able to find a corresponding event in the ops log around this time. Since *string `json:"since,omitempty"` - // Code - The opaque diagnostic code. + // Code - READ-ONLY; The opaque diagnostic code. Code *string `json:"code,omitempty"` - // Message - The human-readable message describing the condition in detail. Localized in the Accept-Language of the client request. + // Message - READ-ONLY; The human-readable message describing the condition in detail. Localized in the Accept-Language of the client request. Message *string `json:"message,omitempty"` } // Diagnostics describes conditions applicable to the Input, Output, or the job overall, that warrant // customer attention. type Diagnostics struct { - // Conditions - A collection of zero or more conditions applicable to the resource, or to the job overall, that warrant customer attention. + // Conditions - READ-ONLY; A collection of zero or more conditions applicable to the resource, or to the job overall, that warrant customer attention. Conditions *[]DiagnosticCondition `json:"conditions,omitempty"` } @@ -1489,9 +1489,9 @@ type DocumentDbOutputDataSourceProperties struct { // ErrorResponse describes the error that occurred. type ErrorResponse struct { - // Code - Error code associated with the error that occurred. + // Code - READ-ONLY; Error code associated with the error that occurred. Code *string `json:"code,omitempty"` - // Message - Describes the error in detail. + // Message - READ-ONLY; Describes the error in detail. Message *string `json:"message,omitempty"` } @@ -1730,11 +1730,11 @@ type Function struct { autorest.Response `json:"-"` // Properties - The properties that are associated with a function. Properties BasicFunctionProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -1885,9 +1885,9 @@ type FunctionInput struct { // FunctionListResult object containing a list of functions under a streaming job. type FunctionListResult struct { autorest.Response `json:"-"` - // Value - A list of functions under a streaming job. Populated by a 'List' operation. + // Value - READ-ONLY; A list of functions under a streaming job. Populated by a 'List' operation. Value *[]Function `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -2042,7 +2042,7 @@ type BasicFunctionProperties interface { // FunctionProperties the properties that are associated with a function. type FunctionProperties struct { - // Etag - The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + // Etag - READ-ONLY; The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. Etag *string `json:"etag,omitempty"` // Type - Possible values include: 'TypeFunctionProperties', 'TypeScalar' Type TypeBasicFunctionProperties `json:"type,omitempty"` @@ -2089,9 +2089,6 @@ func unmarshalBasicFunctionPropertiesArray(body []byte) ([]BasicFunctionProperti func (fp FunctionProperties) MarshalJSON() ([]byte, error) { fp.Type = TypeFunctionProperties objectMap := make(map[string]interface{}) - if fp.Etag != nil { - objectMap["etag"] = fp.Etag - } if fp.Type != "" { objectMap["type"] = fp.Type } @@ -2209,7 +2206,7 @@ type FunctionsTestFuture struct { // If the operation has not completed it will return an error. func (future *FunctionsTestFuture) Result(client FunctionsClient) (rts ResourceTestStatus, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.FunctionsTestFuture", "Result", future.Response(), "Polling failure") return @@ -2234,11 +2231,11 @@ type Input struct { autorest.Response `json:"-"` // Properties - The properties that are associated with an input. Required on PUT (CreateOrReplace) requests. Properties BasicInputProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -2295,9 +2292,9 @@ func (i *Input) UnmarshalJSON(body []byte) error { // InputListResult object containing a list of inputs under a streaming job. type InputListResult struct { autorest.Response `json:"-"` - // Value - A list of inputs under a streaming job. Populated by a 'List' operation. + // Value - READ-ONLY; A list of inputs under a streaming job. Populated by a 'List' operation. Value *[]Input `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -2449,9 +2446,9 @@ type BasicInputProperties interface { type InputProperties struct { // Serialization - Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace) requests. Serialization BasicSerialization `json:"serialization,omitempty"` - // Diagnostics - Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention. + // Diagnostics - READ-ONLY; Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention. Diagnostics *Diagnostics `json:"diagnostics,omitempty"` - // Etag - The current entity tag for the input. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + // Etag - READ-ONLY; The current entity tag for the input. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. Etag *string `json:"etag,omitempty"` // Type - Possible values include: 'TypeInputProperties', 'TypeReference', 'TypeStream' Type TypeBasicInputProperties `json:"type,omitempty"` @@ -2503,12 +2500,6 @@ func (IP InputProperties) MarshalJSON() ([]byte, error) { IP.Type = TypeInputProperties objectMap := make(map[string]interface{}) objectMap["serialization"] = IP.Serialization - if IP.Diagnostics != nil { - objectMap["diagnostics"] = IP.Diagnostics - } - if IP.Etag != nil { - objectMap["etag"] = IP.Etag - } if IP.Type != "" { objectMap["type"] = IP.Type } @@ -2594,7 +2585,7 @@ type InputsTestFuture struct { // If the operation has not completed it will return an error. func (future *InputsTestFuture) Result(client InputsClient) (rts ResourceTestStatus, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.InputsTestFuture", "Result", future.Response(), "Polling failure") return @@ -2972,21 +2963,21 @@ type OAuthBasedDataSourceProperties struct { // Operation a Stream Analytics REST API operation type Operation struct { - // Name - The name of the operation being performed on this particular object. + // Name - READ-ONLY; The name of the operation being performed on this particular object. Name *string `json:"name,omitempty"` - // Display - Contains the localized display information for this particular operation / action. + // Display - READ-ONLY; Contains the localized display information for this particular operation / action. Display *OperationDisplay `json:"display,omitempty"` } // OperationDisplay contains the localized display information for this particular operation / action. type OperationDisplay struct { - // Provider - The localized friendly form of the resource provider name. + // Provider - READ-ONLY; The localized friendly form of the resource provider name. Provider *string `json:"provider,omitempty"` - // Resource - The localized friendly form of the resource type related to this action/operation. + // Resource - READ-ONLY; The localized friendly form of the resource type related to this action/operation. Resource *string `json:"resource,omitempty"` - // Operation - The localized friendly name for the operation. + // Operation - READ-ONLY; The localized friendly name for the operation. Operation *string `json:"operation,omitempty"` - // Description - The localized friendly description for the operation. + // Description - READ-ONLY; The localized friendly description for the operation. Description *string `json:"description,omitempty"` } @@ -2994,9 +2985,9 @@ type OperationDisplay struct { // operations and a URL link to get the next set of results. type OperationListResult struct { autorest.Response `json:"-"` - // Value - List of Stream Analytics operations supported by the Microsoft.StreamAnalytics resource provider. + // Value - READ-ONLY; List of Stream Analytics operations supported by the Microsoft.StreamAnalytics resource provider. Value *[]Operation `json:"value,omitempty"` - // NextLink - URL to get the next set of operation list results if there are any. + // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` } @@ -3143,11 +3134,11 @@ type Output struct { autorest.Response `json:"-"` // OutputProperties - The properties that are associated with an output. Required on PUT (CreateOrReplace) requests. *OutputProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -3157,15 +3148,9 @@ func (o Output) MarshalJSON() ([]byte, error) { if o.OutputProperties != nil { objectMap["properties"] = o.OutputProperties } - if o.ID != nil { - objectMap["id"] = o.ID - } if o.Name != nil { objectMap["name"] = o.Name } - if o.Type != nil { - objectMap["type"] = o.Type - } return json.Marshal(objectMap) } @@ -3377,9 +3362,9 @@ func (ods OutputDataSource) AsBasicOutputDataSource() (BasicOutputDataSource, bo // OutputListResult object containing a list of outputs under a streaming job. type OutputListResult struct { autorest.Response `json:"-"` - // Value - A list of outputs under a streaming job. Populated by a 'List' operation. + // Value - READ-ONLY; A list of outputs under a streaming job. Populated by a 'List' operation. Value *[]Output `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -3526,9 +3511,9 @@ type OutputProperties struct { Datasource BasicOutputDataSource `json:"datasource,omitempty"` // Serialization - Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace) requests. Serialization BasicSerialization `json:"serialization,omitempty"` - // Diagnostics - Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention. + // Diagnostics - READ-ONLY; Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention. Diagnostics *Diagnostics `json:"diagnostics,omitempty"` - // Etag - The current entity tag for the output. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + // Etag - READ-ONLY; The current entity tag for the output. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. Etag *string `json:"etag,omitempty"` } @@ -3590,7 +3575,7 @@ type OutputsTestFuture struct { // If the operation has not completed it will return an error. func (future *OutputsTestFuture) Result(client OutputsClient) (rts ResourceTestStatus, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.OutputsTestFuture", "Result", future.Response(), "Polling failure") return @@ -3816,9 +3801,9 @@ type ReferenceInputProperties struct { Datasource BasicReferenceInputDataSource `json:"datasource,omitempty"` // Serialization - Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace) requests. Serialization BasicSerialization `json:"serialization,omitempty"` - // Diagnostics - Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention. + // Diagnostics - READ-ONLY; Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention. Diagnostics *Diagnostics `json:"diagnostics,omitempty"` - // Etag - The current entity tag for the input. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + // Etag - READ-ONLY; The current entity tag for the input. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. Etag *string `json:"etag,omitempty"` // Type - Possible values include: 'TypeInputProperties', 'TypeReference', 'TypeStream' Type TypeBasicInputProperties `json:"type,omitempty"` @@ -3830,12 +3815,6 @@ func (rip ReferenceInputProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) objectMap["datasource"] = rip.Datasource objectMap["serialization"] = rip.Serialization - if rip.Diagnostics != nil { - objectMap["diagnostics"] = rip.Diagnostics - } - if rip.Etag != nil { - objectMap["etag"] = rip.Etag - } if rip.Type != "" { objectMap["type"] = rip.Type } @@ -3922,11 +3901,11 @@ func (rip *ReferenceInputProperties) UnmarshalJSON(body []byte) error { // Resource the base resource model definition. type Resource struct { - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location. Required on PUT (CreateOrReplace) requests. Location *string `json:"location,omitempty"` @@ -3937,15 +3916,6 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Location != nil { objectMap["location"] = r.Location } @@ -3959,9 +3929,9 @@ func (r Resource) MarshalJSON() ([]byte, error) { // applicable. type ResourceTestStatus struct { autorest.Response `json:"-"` - // Status - The status of the test operation. + // Status - READ-ONLY; The status of the test operation. Status *string `json:"status,omitempty"` - // Error - Describes the error that occurred. + // Error - READ-ONLY; Describes the error that occurred. Error *ErrorResponse `json:"error,omitempty"` } @@ -4020,7 +3990,7 @@ func (sfc *ScalarFunctionConfiguration) UnmarshalJSON(body []byte) error { type ScalarFunctionProperties struct { // ScalarFunctionConfiguration - Describes the configuration of the scalar function. *ScalarFunctionConfiguration `json:"properties,omitempty"` - // Etag - The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + // Etag - READ-ONLY; The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. Etag *string `json:"etag,omitempty"` // Type - Possible values include: 'TypeFunctionProperties', 'TypeScalar' Type TypeBasicFunctionProperties `json:"type,omitempty"` @@ -4033,9 +4003,6 @@ func (sfp ScalarFunctionProperties) MarshalJSON() ([]byte, error) { if sfp.ScalarFunctionConfiguration != nil { objectMap["properties"] = sfp.ScalarFunctionConfiguration } - if sfp.Etag != nil { - objectMap["etag"] = sfp.Etag - } if sfp.Type != "" { objectMap["type"] = sfp.Type } @@ -4481,11 +4448,11 @@ type StreamingJob struct { autorest.Response `json:"-"` // StreamingJobProperties - The properties that are associated with a streaming job. Required on PUT (CreateOrReplace) requests. *StreamingJobProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` - // Name - Resource name + // Name - READ-ONLY; Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // Location - Resource location. Required on PUT (CreateOrReplace) requests. Location *string `json:"location,omitempty"` @@ -4499,15 +4466,6 @@ func (sj StreamingJob) MarshalJSON() ([]byte, error) { if sj.StreamingJobProperties != nil { objectMap["properties"] = sj.StreamingJobProperties } - if sj.ID != nil { - objectMap["id"] = sj.ID - } - if sj.Name != nil { - objectMap["name"] = sj.Name - } - if sj.Type != nil { - objectMap["type"] = sj.Type - } if sj.Location != nil { objectMap["location"] = sj.Location } @@ -4589,9 +4547,9 @@ func (sj *StreamingJob) UnmarshalJSON(body []byte) error { // StreamingJobListResult object containing a list of streaming jobs. type StreamingJobListResult struct { autorest.Response `json:"-"` - // Value - A list of streaming jobs. Populated by a 'List' operation. + // Value - READ-ONLY; A list of streaming jobs. Populated by a 'List' operation. Value *[]StreamingJob `json:"value,omitempty"` - // NextLink - The link (url) to the next page of results. + // NextLink - READ-ONLY; The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` } @@ -4736,17 +4694,17 @@ func NewStreamingJobListResultPage(getNextPage func(context.Context, StreamingJo type StreamingJobProperties struct { // Sku - Describes the SKU of the streaming job. Required on PUT (CreateOrReplace) requests. Sku *Sku `json:"sku,omitempty"` - // JobID - A GUID uniquely identifying the streaming job. This GUID is generated upon creation of the streaming job. + // JobID - READ-ONLY; A GUID uniquely identifying the streaming job. This GUID is generated upon creation of the streaming job. JobID *string `json:"jobId,omitempty"` - // ProvisioningState - Describes the provisioning status of the streaming job. + // ProvisioningState - READ-ONLY; Describes the provisioning status of the streaming job. ProvisioningState *string `json:"provisioningState,omitempty"` - // JobState - Describes the state of the streaming job. + // JobState - READ-ONLY; Describes the state of the streaming job. JobState *string `json:"jobState,omitempty"` // OutputStartMode - This property should only be utilized when it is desired that the job be started immediately upon creation. Value may be JobStartTime, CustomTime, or LastOutputEventTime to indicate whether the starting point of the output event stream should start whenever the job is started, start at a custom user time stamp specified via the outputStartTime property, or start from the last event output time. Possible values include: 'JobStartTime', 'CustomTime', 'LastOutputEventTime' OutputStartMode OutputStartMode `json:"outputStartMode,omitempty"` // OutputStartTime - Value is either an ISO-8601 formatted time stamp that indicates the starting point of the output event stream, or null to indicate that the output event stream will start whenever the streaming job is started. This property must have a value if outputStartMode is set to CustomTime. OutputStartTime *date.Time `json:"outputStartTime,omitempty"` - // LastOutputEventTime - Value is either an ISO-8601 formatted timestamp indicating the last output event time of the streaming job or null indicating that output has not yet been produced. In case of multiple outputs or multiple streams, this shows the latest value in that set. + // LastOutputEventTime - READ-ONLY; Value is either an ISO-8601 formatted timestamp indicating the last output event time of the streaming job or null indicating that output has not yet been produced. In case of multiple outputs or multiple streams, this shows the latest value in that set. LastOutputEventTime *date.Time `json:"lastOutputEventTime,omitempty"` // EventsOutOfOrderPolicy - Indicates the policy to apply to events that arrive out of order in the input event stream. Possible values include: 'Adjust', 'Drop' EventsOutOfOrderPolicy EventsOutOfOrderPolicy `json:"eventsOutOfOrderPolicy,omitempty"` @@ -4760,7 +4718,7 @@ type StreamingJobProperties struct { DataLocale *string `json:"dataLocale,omitempty"` // CompatibilityLevel - Controls certain runtime behaviors of the streaming job. Possible values include: 'OneFullStopZero' CompatibilityLevel CompatibilityLevel `json:"compatibilityLevel,omitempty"` - // CreatedDate - Value is an ISO-8601 formatted UTC timestamp indicating when the streaming job was created. + // CreatedDate - READ-ONLY; Value is an ISO-8601 formatted UTC timestamp indicating when the streaming job was created. CreatedDate *date.Time `json:"createdDate,omitempty"` // Inputs - A list of one or more inputs to the streaming job. The name property for each input is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual input. Inputs *[]Input `json:"inputs,omitempty"` @@ -4770,7 +4728,7 @@ type StreamingJobProperties struct { Outputs *[]Output `json:"outputs,omitempty"` // Functions - A list of one or more functions for the streaming job. The name property for each function is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual transformation. Functions *[]Function `json:"functions,omitempty"` - // Etag - The current entity tag for the streaming job. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + // Etag - READ-ONLY; The current entity tag for the streaming job. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. Etag *string `json:"etag,omitempty"` } @@ -4784,7 +4742,7 @@ type StreamingJobsCreateOrReplaceFuture struct { // If the operation has not completed it will return an error. func (future *StreamingJobsCreateOrReplaceFuture) Result(client StreamingJobsClient) (sj StreamingJob, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.StreamingJobsCreateOrReplaceFuture", "Result", future.Response(), "Polling failure") return @@ -4813,7 +4771,7 @@ type StreamingJobsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *StreamingJobsDeleteFuture) Result(client StreamingJobsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.StreamingJobsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -4836,7 +4794,7 @@ type StreamingJobsStartFuture struct { // If the operation has not completed it will return an error. func (future *StreamingJobsStartFuture) Result(client StreamingJobsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.StreamingJobsStartFuture", "Result", future.Response(), "Polling failure") return @@ -4859,7 +4817,7 @@ type StreamingJobsStopFuture struct { // If the operation has not completed it will return an error. func (future *StreamingJobsStopFuture) Result(client StreamingJobsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "streamanalytics.StreamingJobsStopFuture", "Result", future.Response(), "Polling failure") return @@ -4972,9 +4930,9 @@ type StreamInputProperties struct { Datasource BasicStreamInputDataSource `json:"datasource,omitempty"` // Serialization - Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace) requests. Serialization BasicSerialization `json:"serialization,omitempty"` - // Diagnostics - Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention. + // Diagnostics - READ-ONLY; Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention. Diagnostics *Diagnostics `json:"diagnostics,omitempty"` - // Etag - The current entity tag for the input. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + // Etag - READ-ONLY; The current entity tag for the input. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. Etag *string `json:"etag,omitempty"` // Type - Possible values include: 'TypeInputProperties', 'TypeReference', 'TypeStream' Type TypeBasicInputProperties `json:"type,omitempty"` @@ -4986,12 +4944,6 @@ func (sip StreamInputProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) objectMap["datasource"] = sip.Datasource objectMap["serialization"] = sip.Serialization - if sip.Diagnostics != nil { - objectMap["diagnostics"] = sip.Diagnostics - } - if sip.Etag != nil { - objectMap["etag"] = sip.Etag - } if sip.Type != "" { objectMap["type"] = sip.Type } @@ -5078,41 +5030,32 @@ func (sip *StreamInputProperties) UnmarshalJSON(body []byte) error { // SubResource the base sub-resource model definition. type SubResource struct { - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } // SubscriptionQuota describes the current quota for the subscription. type SubscriptionQuota struct { - // SubscriptionQuotaProperties - Describes the properties of the quota. + // SubscriptionQuotaProperties - READ-ONLY; Describes the properties of the quota. *SubscriptionQuotaProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } // MarshalJSON is the custom marshaler for SubscriptionQuota. func (sq SubscriptionQuota) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if sq.SubscriptionQuotaProperties != nil { - objectMap["properties"] = sq.SubscriptionQuotaProperties - } - if sq.ID != nil { - objectMap["id"] = sq.ID - } if sq.Name != nil { objectMap["name"] = sq.Name } - if sq.Type != nil { - objectMap["type"] = sq.Type - } return json.Marshal(objectMap) } @@ -5169,9 +5112,9 @@ func (sq *SubscriptionQuota) UnmarshalJSON(body []byte) error { // SubscriptionQuotaProperties describes the properties of the quota. type SubscriptionQuotaProperties struct { - // MaxCount - The max permitted usage of this resource. + // MaxCount - READ-ONLY; The max permitted usage of this resource. MaxCount *int32 `json:"maxCount,omitempty"` - // CurrentCount - The current usage of this resource. + // CurrentCount - READ-ONLY; The current usage of this resource. CurrentCount *int32 `json:"currentCount,omitempty"` } @@ -5179,7 +5122,7 @@ type SubscriptionQuotaProperties struct { // subscription in a particular region. type SubscriptionQuotasListResult struct { autorest.Response `json:"-"` - // Value - List of quotas for the subscription in a particular region. + // Value - READ-ONLY; List of quotas for the subscription in a particular region. Value *[]SubscriptionQuota `json:"value,omitempty"` } @@ -5189,11 +5132,11 @@ type Transformation struct { autorest.Response `json:"-"` // TransformationProperties - The properties that are associated with a transformation. Required on PUT (CreateOrReplace) requests. *TransformationProperties `json:"properties,omitempty"` - // ID - Resource Id + // ID - READ-ONLY; Resource Id ID *string `json:"id,omitempty"` // Name - Resource name Name *string `json:"name,omitempty"` - // Type - Resource type + // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` } @@ -5203,15 +5146,9 @@ func (t Transformation) MarshalJSON() ([]byte, error) { if t.TransformationProperties != nil { objectMap["properties"] = t.TransformationProperties } - if t.ID != nil { - objectMap["id"] = t.ID - } if t.Name != nil { objectMap["name"] = t.Name } - if t.Type != nil { - objectMap["type"] = t.Type - } return json.Marshal(objectMap) } @@ -5272,6 +5209,6 @@ type TransformationProperties struct { StreamingUnits *int32 `json:"streamingUnits,omitempty"` // Query - Specifies the query that will be run in the streaming job. You can learn more about the Stream Analytics Query Language (SAQL) here: https://msdn.microsoft.com/library/azure/dn834998 . Required on PUT (CreateOrReplace) requests. Query *string `json:"query,omitempty"` - // Etag - The current entity tag for the transformation. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + // Etag - READ-ONLY; The current entity tag for the transformation. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. Etag *string `json:"etag,omitempty"` } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/trafficmanager/mgmt/2018-04-01/trafficmanager/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/trafficmanager/mgmt/2018-04-01/trafficmanager/models.go index 48dbbabd7159..705b6767b4b2 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/trafficmanager/mgmt/2018-04-01/trafficmanager/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/trafficmanager/mgmt/2018-04-01/trafficmanager/models.go @@ -185,7 +185,7 @@ type CloudErrorBody struct { // DeleteOperationResult the result of the request or operation. type DeleteOperationResult struct { autorest.Response `json:"-"` - // OperationResult - The result of the operation or request. + // OperationResult - READ-ONLY; The result of the operation or request. OperationResult *bool `json:"boolean,omitempty"` } @@ -193,7 +193,7 @@ type DeleteOperationResult struct { type DNSConfig struct { // RelativeName - The relative DNS name provided by this Traffic Manager profile. This value is combined with the DNS domain name used by Azure Traffic Manager to form the fully-qualified domain name (FQDN) of the profile. RelativeName *string `json:"relativeName,omitempty"` - // Fqdn - The fully-qualified domain name (FQDN) of the Traffic Manager profile. This is formed from the concatenation of the RelativeName with the DNS domain used by Azure Traffic Manager. + // Fqdn - READ-ONLY; The fully-qualified domain name (FQDN) of the Traffic Manager profile. This is formed from the concatenation of the RelativeName with the DNS domain used by Azure Traffic Manager. Fqdn *string `json:"fqdn,omitempty"` // TTL - The DNS Time-To-Live (TTL), in seconds. This informs the local DNS resolvers and DNS clients how long to cache DNS responses provided by this Traffic Manager profile. TTL *int64 `json:"ttl,omitempty"` diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/appserviceenvironments.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/appserviceenvironments.go index a954295efb90..d4fc9b11a129 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/appserviceenvironments.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/appserviceenvironments.go @@ -93,6 +93,8 @@ func (client AppServiceEnvironmentsClient) ChangeVnetPreparer(ctx context.Contex "api-version": APIVersion, } + vnetInfo.Name = nil + vnetInfo.Type = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPost(), @@ -705,6 +707,130 @@ func (client AppServiceEnvironmentsClient) GetDiagnosticsItemResponder(resp *htt return } +// GetInboundNetworkDependenciesEndpoints get the network endpoints of all inbound dependencies of an App Service +// Environment. +// Parameters: +// resourceGroupName - name of the resource group to which the resource belongs. +// name - name of the App Service Environment. +func (client AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpoints(ctx context.Context, resourceGroupName string, name string) (result InboundEnvironmentEndpointCollectionPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.GetInboundNetworkDependenciesEndpoints") + defer func() { + sc := -1 + if result.ieec.Response.Response != nil { + sc = result.ieec.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("web.AppServiceEnvironmentsClient", "GetInboundNetworkDependenciesEndpoints", err.Error()) + } + + result.fn = client.getInboundNetworkDependenciesEndpointsNextResults + req, err := client.GetInboundNetworkDependenciesEndpointsPreparer(ctx, resourceGroupName, name) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetInboundNetworkDependenciesEndpoints", nil, "Failure preparing request") + return + } + + resp, err := client.GetInboundNetworkDependenciesEndpointsSender(req) + if err != nil { + result.ieec.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetInboundNetworkDependenciesEndpoints", resp, "Failure sending request") + return + } + + result.ieec, err = client.GetInboundNetworkDependenciesEndpointsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetInboundNetworkDependenciesEndpoints", resp, "Failure responding to request") + } + + return +} + +// GetInboundNetworkDependenciesEndpointsPreparer prepares the GetInboundNetworkDependenciesEndpoints request. +func (client AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpointsPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/inboundNetworkDependenciesEndpoints", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetInboundNetworkDependenciesEndpointsSender sends the GetInboundNetworkDependenciesEndpoints request. The method will close the +// http.Response Body if it receives an error. +func (client AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpointsSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetInboundNetworkDependenciesEndpointsResponder handles the response to the GetInboundNetworkDependenciesEndpoints request. The method always +// closes the http.Response Body. +func (client AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpointsResponder(resp *http.Response) (result InboundEnvironmentEndpointCollection, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// getInboundNetworkDependenciesEndpointsNextResults retrieves the next set of results, if any. +func (client AppServiceEnvironmentsClient) getInboundNetworkDependenciesEndpointsNextResults(ctx context.Context, lastResults InboundEnvironmentEndpointCollection) (result InboundEnvironmentEndpointCollection, err error) { + req, err := lastResults.inboundEnvironmentEndpointCollectionPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "getInboundNetworkDependenciesEndpointsNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.GetInboundNetworkDependenciesEndpointsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "getInboundNetworkDependenciesEndpointsNextResults", resp, "Failure sending next results request") + } + result, err = client.GetInboundNetworkDependenciesEndpointsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "getInboundNetworkDependenciesEndpointsNextResults", resp, "Failure responding to next results request") + } + return +} + +// GetInboundNetworkDependenciesEndpointsComplete enumerates all values, automatically crossing page boundaries as required. +func (client AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpointsComplete(ctx context.Context, resourceGroupName string, name string) (result InboundEnvironmentEndpointCollectionIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.GetInboundNetworkDependenciesEndpoints") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.GetInboundNetworkDependenciesEndpoints(ctx, resourceGroupName, name) + return +} + // GetMultiRolePool get properties of a multi-role pool. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. @@ -790,6 +916,130 @@ func (client AppServiceEnvironmentsClient) GetMultiRolePoolResponder(resp *http. return } +// GetOutboundNetworkDependenciesEndpoints get the network endpoints of all outbound dependencies of an App Service +// Environment. +// Parameters: +// resourceGroupName - name of the resource group to which the resource belongs. +// name - name of the App Service Environment. +func (client AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpoints(ctx context.Context, resourceGroupName string, name string) (result OutboundEnvironmentEndpointCollectionPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.GetOutboundNetworkDependenciesEndpoints") + defer func() { + sc := -1 + if result.oeec.Response.Response != nil { + sc = result.oeec.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: resourceGroupName, + Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("web.AppServiceEnvironmentsClient", "GetOutboundNetworkDependenciesEndpoints", err.Error()) + } + + result.fn = client.getOutboundNetworkDependenciesEndpointsNextResults + req, err := client.GetOutboundNetworkDependenciesEndpointsPreparer(ctx, resourceGroupName, name) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetOutboundNetworkDependenciesEndpoints", nil, "Failure preparing request") + return + } + + resp, err := client.GetOutboundNetworkDependenciesEndpointsSender(req) + if err != nil { + result.oeec.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetOutboundNetworkDependenciesEndpoints", resp, "Failure sending request") + return + } + + result.oeec, err = client.GetOutboundNetworkDependenciesEndpointsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "GetOutboundNetworkDependenciesEndpoints", resp, "Failure responding to request") + } + + return +} + +// GetOutboundNetworkDependenciesEndpointsPreparer prepares the GetOutboundNetworkDependenciesEndpoints request. +func (client AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpointsPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "name": autorest.Encode("path", name), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/outboundNetworkDependenciesEndpoints", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetOutboundNetworkDependenciesEndpointsSender sends the GetOutboundNetworkDependenciesEndpoints request. The method will close the +// http.Response Body if it receives an error. +func (client AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpointsSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetOutboundNetworkDependenciesEndpointsResponder handles the response to the GetOutboundNetworkDependenciesEndpoints request. The method always +// closes the http.Response Body. +func (client AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpointsResponder(resp *http.Response) (result OutboundEnvironmentEndpointCollection, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// getOutboundNetworkDependenciesEndpointsNextResults retrieves the next set of results, if any. +func (client AppServiceEnvironmentsClient) getOutboundNetworkDependenciesEndpointsNextResults(ctx context.Context, lastResults OutboundEnvironmentEndpointCollection) (result OutboundEnvironmentEndpointCollection, err error) { + req, err := lastResults.outboundEnvironmentEndpointCollectionPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "getOutboundNetworkDependenciesEndpointsNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.GetOutboundNetworkDependenciesEndpointsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "getOutboundNetworkDependenciesEndpointsNextResults", resp, "Failure sending next results request") + } + result, err = client.GetOutboundNetworkDependenciesEndpointsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsClient", "getOutboundNetworkDependenciesEndpointsNextResults", resp, "Failure responding to next results request") + } + return +} + +// GetOutboundNetworkDependenciesEndpointsComplete enumerates all values, automatically crossing page boundaries as required. +func (client AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpointsComplete(ctx context.Context, resourceGroupName string, name string) (result OutboundEnvironmentEndpointCollectionIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/AppServiceEnvironmentsClient.GetOutboundNetworkDependenciesEndpoints") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.GetOutboundNetworkDependenciesEndpoints(ctx, resourceGroupName, name) + return +} + // GetWorkerPool get properties of a worker pool. // Parameters: // resourceGroupName - name of the resource group to which the resource belongs. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/appserviceplans.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/appserviceplans.go index 9da24c8b858d..b75e4c6bfdaf 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/appserviceplans.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/appserviceplans.go @@ -122,7 +122,7 @@ func (client AppServicePlansClient) CreateOrUpdateResponder(resp *http.Response) err = autorest.Respond( resp, client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/models.go index d5af9ab4b30d..a4ad3ce316f6 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/web/mgmt/2018-02-01/web/models.go @@ -806,15 +806,19 @@ func PossibleManagedPipelineModeValues() []ManagedPipelineMode { type ManagedServiceIdentityType string const ( - // SystemAssigned ... - SystemAssigned ManagedServiceIdentityType = "SystemAssigned" - // UserAssigned ... - UserAssigned ManagedServiceIdentityType = "UserAssigned" + // ManagedServiceIdentityTypeNone ... + ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" + // ManagedServiceIdentityTypeSystemAssigned ... + ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" + // ManagedServiceIdentityTypeSystemAssignedUserAssigned ... + ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = "SystemAssigned, UserAssigned" + // ManagedServiceIdentityTypeUserAssigned ... + ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned" ) // PossibleManagedServiceIdentityTypeValues returns an array of possible values for the ManagedServiceIdentityType const type. func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType { - return []ManagedServiceIdentityType{SystemAssigned, UserAssigned} + return []ManagedServiceIdentityType{ManagedServiceIdentityTypeNone, ManagedServiceIdentityTypeSystemAssigned, ManagedServiceIdentityTypeSystemAssignedUserAssigned, ManagedServiceIdentityTypeUserAssigned} } // MSDeployLogEntryType enumerates the values for ms deploy log entry type. @@ -1374,13 +1378,13 @@ type AnalysisData struct { type AnalysisDefinition struct { // AnalysisDefinitionProperties - AnalysisDefinition resource specific properties *AnalysisDefinitionProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1390,18 +1394,9 @@ func (ad AnalysisDefinition) MarshalJSON() ([]byte, error) { if ad.AnalysisDefinitionProperties != nil { objectMap["properties"] = ad.AnalysisDefinitionProperties } - if ad.ID != nil { - objectMap["id"] = ad.ID - } - if ad.Name != nil { - objectMap["name"] = ad.Name - } if ad.Kind != nil { objectMap["kind"] = ad.Kind } - if ad.Type != nil { - objectMap["type"] = ad.Type - } return json.Marshal(objectMap) } @@ -1467,7 +1462,7 @@ func (ad *AnalysisDefinition) UnmarshalJSON(body []byte) error { // AnalysisDefinitionProperties analysisDefinition resource specific properties type AnalysisDefinitionProperties struct { - // Description - Description of the Analysis + // Description - READ-ONLY; Description of the Analysis Description *string `json:"description,omitempty"` } @@ -1482,7 +1477,7 @@ type AppCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]Site `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -1628,7 +1623,7 @@ type AppInstanceCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]SiteInstance `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -1798,7 +1793,7 @@ type ApplicationStackCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]ApplicationStack `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -1949,7 +1944,7 @@ type AppsCreateFunctionFuture struct { // If the operation has not completed it will return an error. func (future *AppsCreateFunctionFuture) Result(client AppsClient) (fe FunctionEnvelope, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsCreateFunctionFuture", "Result", future.Response(), "Polling failure") return @@ -1978,7 +1973,7 @@ type AppsCreateInstanceFunctionSlotFuture struct { // If the operation has not completed it will return an error. func (future *AppsCreateInstanceFunctionSlotFuture) Result(client AppsClient) (fe FunctionEnvelope, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsCreateInstanceFunctionSlotFuture", "Result", future.Response(), "Polling failure") return @@ -2007,7 +2002,7 @@ type AppsCreateInstanceMSDeployOperationFuture struct { // If the operation has not completed it will return an error. func (future *AppsCreateInstanceMSDeployOperationFuture) Result(client AppsClient) (mds MSDeployStatus, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsCreateInstanceMSDeployOperationFuture", "Result", future.Response(), "Polling failure") return @@ -2036,7 +2031,7 @@ type AppsCreateInstanceMSDeployOperationSlotFuture struct { // If the operation has not completed it will return an error. func (future *AppsCreateInstanceMSDeployOperationSlotFuture) Result(client AppsClient) (mds MSDeployStatus, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsCreateInstanceMSDeployOperationSlotFuture", "Result", future.Response(), "Polling failure") return @@ -2065,7 +2060,7 @@ type AppsCreateMSDeployOperationFuture struct { // If the operation has not completed it will return an error. func (future *AppsCreateMSDeployOperationFuture) Result(client AppsClient) (mds MSDeployStatus, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsCreateMSDeployOperationFuture", "Result", future.Response(), "Polling failure") return @@ -2094,7 +2089,7 @@ type AppsCreateMSDeployOperationSlotFuture struct { // If the operation has not completed it will return an error. func (future *AppsCreateMSDeployOperationSlotFuture) Result(client AppsClient) (mds MSDeployStatus, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsCreateMSDeployOperationSlotFuture", "Result", future.Response(), "Polling failure") return @@ -2123,7 +2118,7 @@ type AppsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *AppsCreateOrUpdateFuture) Result(client AppsClient) (s Site, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -2152,7 +2147,7 @@ type AppsCreateOrUpdateSlotFuture struct { // If the operation has not completed it will return an error. func (future *AppsCreateOrUpdateSlotFuture) Result(client AppsClient) (s Site, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsCreateOrUpdateSlotFuture", "Result", future.Response(), "Polling failure") return @@ -2181,7 +2176,7 @@ type AppsCreateOrUpdateSourceControlFuture struct { // If the operation has not completed it will return an error. func (future *AppsCreateOrUpdateSourceControlFuture) Result(client AppsClient) (ssc SiteSourceControl, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsCreateOrUpdateSourceControlFuture", "Result", future.Response(), "Polling failure") return @@ -2210,7 +2205,7 @@ type AppsCreateOrUpdateSourceControlSlotFuture struct { // If the operation has not completed it will return an error. func (future *AppsCreateOrUpdateSourceControlSlotFuture) Result(client AppsClient) (ssc SiteSourceControl, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsCreateOrUpdateSourceControlSlotFuture", "Result", future.Response(), "Polling failure") return @@ -2235,7 +2230,7 @@ type AppServiceCertificate struct { KeyVaultID *string `json:"keyVaultId,omitempty"` // KeyVaultSecretName - Key Vault secret name. KeyVaultSecretName *string `json:"keyVaultSecretName,omitempty"` - // ProvisioningState - Status of the Key Vault secret. Possible values include: 'KeyVaultSecretStatusInitialized', 'KeyVaultSecretStatusWaitingOnCertificateOrder', 'KeyVaultSecretStatusSucceeded', 'KeyVaultSecretStatusCertificateOrderFailed', 'KeyVaultSecretStatusOperationNotPermittedOnKeyVault', 'KeyVaultSecretStatusAzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultSecretStatusKeyVaultDoesNotExist', 'KeyVaultSecretStatusKeyVaultSecretDoesNotExist', 'KeyVaultSecretStatusUnknownError', 'KeyVaultSecretStatusExternalPrivateKey', 'KeyVaultSecretStatusUnknown' + // ProvisioningState - READ-ONLY; Status of the Key Vault secret. Possible values include: 'KeyVaultSecretStatusInitialized', 'KeyVaultSecretStatusWaitingOnCertificateOrder', 'KeyVaultSecretStatusSucceeded', 'KeyVaultSecretStatusCertificateOrderFailed', 'KeyVaultSecretStatusOperationNotPermittedOnKeyVault', 'KeyVaultSecretStatusAzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultSecretStatusKeyVaultDoesNotExist', 'KeyVaultSecretStatusKeyVaultSecretDoesNotExist', 'KeyVaultSecretStatusUnknownError', 'KeyVaultSecretStatusExternalPrivateKey', 'KeyVaultSecretStatusUnknown' ProvisioningState KeyVaultSecretStatus `json:"provisioningState,omitempty"` } @@ -2244,7 +2239,7 @@ type AppServiceCertificateCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]AppServiceCertificateResource `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -2391,15 +2386,15 @@ type AppServiceCertificateOrder struct { autorest.Response `json:"-"` // AppServiceCertificateOrderProperties - AppServiceCertificateOrder resource specific properties *AppServiceCertificateOrderProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` // Location - Resource Location. Location *string `json:"location,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` @@ -2411,21 +2406,12 @@ func (asco AppServiceCertificateOrder) MarshalJSON() ([]byte, error) { if asco.AppServiceCertificateOrderProperties != nil { objectMap["properties"] = asco.AppServiceCertificateOrderProperties } - if asco.ID != nil { - objectMap["id"] = asco.ID - } - if asco.Name != nil { - objectMap["name"] = asco.Name - } if asco.Kind != nil { objectMap["kind"] = asco.Kind } if asco.Location != nil { objectMap["location"] = asco.Location } - if asco.Type != nil { - objectMap["type"] = asco.Type - } if asco.Tags != nil { objectMap["tags"] = asco.Tags } @@ -2515,7 +2501,7 @@ type AppServiceCertificateOrderCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]AppServiceCertificateOrder `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -2662,13 +2648,13 @@ func NewAppServiceCertificateOrderCollectionPage(getNextPage func(context.Contex type AppServiceCertificateOrderPatchResource struct { // AppServiceCertificateOrderPatchResourceProperties - AppServiceCertificateOrderPatchResource resource specific properties *AppServiceCertificateOrderPatchResourceProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -2678,18 +2664,9 @@ func (ascopr AppServiceCertificateOrderPatchResource) MarshalJSON() ([]byte, err if ascopr.AppServiceCertificateOrderPatchResourceProperties != nil { objectMap["properties"] = ascopr.AppServiceCertificateOrderPatchResourceProperties } - if ascopr.ID != nil { - objectMap["id"] = ascopr.ID - } - if ascopr.Name != nil { - objectMap["name"] = ascopr.Name - } if ascopr.Kind != nil { objectMap["kind"] = ascopr.Kind } - if ascopr.Type != nil { - objectMap["type"] = ascopr.Type - } return json.Marshal(objectMap) } @@ -2760,7 +2737,7 @@ type AppServiceCertificateOrderPatchResourceProperties struct { Certificates map[string]*AppServiceCertificate `json:"certificates"` // DistinguishedName - Certificate distinguished name. DistinguishedName *string `json:"distinguishedName,omitempty"` - // DomainVerificationToken - Domain verification token. + // DomainVerificationToken - READ-ONLY; Domain verification token. DomainVerificationToken *string `json:"domainVerificationToken,omitempty"` // ValidityInYears - Duration in years (must be between 1 and 3). ValidityInYears *int32 `json:"validityInYears,omitempty"` @@ -2770,29 +2747,29 @@ type AppServiceCertificateOrderPatchResourceProperties struct { ProductType CertificateProductType `json:"productType,omitempty"` // AutoRenew - true if the certificate should be automatically renewed when it expires; otherwise, false. AutoRenew *bool `json:"autoRenew,omitempty"` - // ProvisioningState - Status of certificate order. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateInProgress', 'ProvisioningStateDeleting' + // ProvisioningState - READ-ONLY; Status of certificate order. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateInProgress', 'ProvisioningStateDeleting' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` - // Status - Current order status. Possible values include: 'Pendingissuance', 'Issued', 'Revoked', 'Canceled', 'Denied', 'Pendingrevocation', 'PendingRekey', 'Unused', 'Expired', 'NotSubmitted' + // Status - READ-ONLY; Current order status. Possible values include: 'Pendingissuance', 'Issued', 'Revoked', 'Canceled', 'Denied', 'Pendingrevocation', 'PendingRekey', 'Unused', 'Expired', 'NotSubmitted' Status CertificateOrderStatus `json:"status,omitempty"` - // SignedCertificate - Signed certificate. + // SignedCertificate - READ-ONLY; Signed certificate. SignedCertificate *CertificateDetails `json:"signedCertificate,omitempty"` // Csr - Last CSR that was created for this order. Csr *string `json:"csr,omitempty"` - // Intermediate - Intermediate certificate. + // Intermediate - READ-ONLY; Intermediate certificate. Intermediate *CertificateDetails `json:"intermediate,omitempty"` - // Root - Root certificate. + // Root - READ-ONLY; Root certificate. Root *CertificateDetails `json:"root,omitempty"` - // SerialNumber - Current serial number of the certificate. + // SerialNumber - READ-ONLY; Current serial number of the certificate. SerialNumber *string `json:"serialNumber,omitempty"` - // LastCertificateIssuanceTime - Certificate last issuance time. + // LastCertificateIssuanceTime - READ-ONLY; Certificate last issuance time. LastCertificateIssuanceTime *date.Time `json:"lastCertificateIssuanceTime,omitempty"` - // ExpirationTime - Certificate expiration time. + // ExpirationTime - READ-ONLY; Certificate expiration time. ExpirationTime *date.Time `json:"expirationTime,omitempty"` - // IsPrivateKeyExternal - true if private key is external; otherwise, false. + // IsPrivateKeyExternal - READ-ONLY; true if private key is external; otherwise, false. IsPrivateKeyExternal *bool `json:"isPrivateKeyExternal,omitempty"` - // AppServiceCertificateNotRenewableReasons - Reasons why App Service Certificate is not renewable at the current moment. + // AppServiceCertificateNotRenewableReasons - READ-ONLY; Reasons why App Service Certificate is not renewable at the current moment. AppServiceCertificateNotRenewableReasons *[]string `json:"appServiceCertificateNotRenewableReasons,omitempty"` - // NextAutoRenewalTimeStamp - Time stamp when the certificate would be auto renewed next + // NextAutoRenewalTimeStamp - READ-ONLY; Time stamp when the certificate would be auto renewed next NextAutoRenewalTimeStamp *date.Time `json:"nextAutoRenewalTimeStamp,omitempty"` } @@ -2805,9 +2782,6 @@ func (ascopr AppServiceCertificateOrderPatchResourceProperties) MarshalJSON() ([ if ascopr.DistinguishedName != nil { objectMap["distinguishedName"] = ascopr.DistinguishedName } - if ascopr.DomainVerificationToken != nil { - objectMap["domainVerificationToken"] = ascopr.DomainVerificationToken - } if ascopr.ValidityInYears != nil { objectMap["validityInYears"] = ascopr.ValidityInYears } @@ -2820,42 +2794,9 @@ func (ascopr AppServiceCertificateOrderPatchResourceProperties) MarshalJSON() ([ if ascopr.AutoRenew != nil { objectMap["autoRenew"] = ascopr.AutoRenew } - if ascopr.ProvisioningState != "" { - objectMap["provisioningState"] = ascopr.ProvisioningState - } - if ascopr.Status != "" { - objectMap["status"] = ascopr.Status - } - if ascopr.SignedCertificate != nil { - objectMap["signedCertificate"] = ascopr.SignedCertificate - } if ascopr.Csr != nil { objectMap["csr"] = ascopr.Csr } - if ascopr.Intermediate != nil { - objectMap["intermediate"] = ascopr.Intermediate - } - if ascopr.Root != nil { - objectMap["root"] = ascopr.Root - } - if ascopr.SerialNumber != nil { - objectMap["serialNumber"] = ascopr.SerialNumber - } - if ascopr.LastCertificateIssuanceTime != nil { - objectMap["lastCertificateIssuanceTime"] = ascopr.LastCertificateIssuanceTime - } - if ascopr.ExpirationTime != nil { - objectMap["expirationTime"] = ascopr.ExpirationTime - } - if ascopr.IsPrivateKeyExternal != nil { - objectMap["isPrivateKeyExternal"] = ascopr.IsPrivateKeyExternal - } - if ascopr.AppServiceCertificateNotRenewableReasons != nil { - objectMap["appServiceCertificateNotRenewableReasons"] = ascopr.AppServiceCertificateNotRenewableReasons - } - if ascopr.NextAutoRenewalTimeStamp != nil { - objectMap["nextAutoRenewalTimeStamp"] = ascopr.NextAutoRenewalTimeStamp - } return json.Marshal(objectMap) } @@ -2865,7 +2806,7 @@ type AppServiceCertificateOrderProperties struct { Certificates map[string]*AppServiceCertificate `json:"certificates"` // DistinguishedName - Certificate distinguished name. DistinguishedName *string `json:"distinguishedName,omitempty"` - // DomainVerificationToken - Domain verification token. + // DomainVerificationToken - READ-ONLY; Domain verification token. DomainVerificationToken *string `json:"domainVerificationToken,omitempty"` // ValidityInYears - Duration in years (must be between 1 and 3). ValidityInYears *int32 `json:"validityInYears,omitempty"` @@ -2875,29 +2816,29 @@ type AppServiceCertificateOrderProperties struct { ProductType CertificateProductType `json:"productType,omitempty"` // AutoRenew - true if the certificate should be automatically renewed when it expires; otherwise, false. AutoRenew *bool `json:"autoRenew,omitempty"` - // ProvisioningState - Status of certificate order. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateInProgress', 'ProvisioningStateDeleting' + // ProvisioningState - READ-ONLY; Status of certificate order. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateInProgress', 'ProvisioningStateDeleting' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` - // Status - Current order status. Possible values include: 'Pendingissuance', 'Issued', 'Revoked', 'Canceled', 'Denied', 'Pendingrevocation', 'PendingRekey', 'Unused', 'Expired', 'NotSubmitted' + // Status - READ-ONLY; Current order status. Possible values include: 'Pendingissuance', 'Issued', 'Revoked', 'Canceled', 'Denied', 'Pendingrevocation', 'PendingRekey', 'Unused', 'Expired', 'NotSubmitted' Status CertificateOrderStatus `json:"status,omitempty"` - // SignedCertificate - Signed certificate. + // SignedCertificate - READ-ONLY; Signed certificate. SignedCertificate *CertificateDetails `json:"signedCertificate,omitempty"` // Csr - Last CSR that was created for this order. Csr *string `json:"csr,omitempty"` - // Intermediate - Intermediate certificate. + // Intermediate - READ-ONLY; Intermediate certificate. Intermediate *CertificateDetails `json:"intermediate,omitempty"` - // Root - Root certificate. + // Root - READ-ONLY; Root certificate. Root *CertificateDetails `json:"root,omitempty"` - // SerialNumber - Current serial number of the certificate. + // SerialNumber - READ-ONLY; Current serial number of the certificate. SerialNumber *string `json:"serialNumber,omitempty"` - // LastCertificateIssuanceTime - Certificate last issuance time. + // LastCertificateIssuanceTime - READ-ONLY; Certificate last issuance time. LastCertificateIssuanceTime *date.Time `json:"lastCertificateIssuanceTime,omitempty"` - // ExpirationTime - Certificate expiration time. + // ExpirationTime - READ-ONLY; Certificate expiration time. ExpirationTime *date.Time `json:"expirationTime,omitempty"` - // IsPrivateKeyExternal - true if private key is external; otherwise, false. + // IsPrivateKeyExternal - READ-ONLY; true if private key is external; otherwise, false. IsPrivateKeyExternal *bool `json:"isPrivateKeyExternal,omitempty"` - // AppServiceCertificateNotRenewableReasons - Reasons why App Service Certificate is not renewable at the current moment. + // AppServiceCertificateNotRenewableReasons - READ-ONLY; Reasons why App Service Certificate is not renewable at the current moment. AppServiceCertificateNotRenewableReasons *[]string `json:"appServiceCertificateNotRenewableReasons,omitempty"` - // NextAutoRenewalTimeStamp - Time stamp when the certificate would be auto renewed next + // NextAutoRenewalTimeStamp - READ-ONLY; Time stamp when the certificate would be auto renewed next NextAutoRenewalTimeStamp *date.Time `json:"nextAutoRenewalTimeStamp,omitempty"` } @@ -2910,9 +2851,6 @@ func (asco AppServiceCertificateOrderProperties) MarshalJSON() ([]byte, error) { if asco.DistinguishedName != nil { objectMap["distinguishedName"] = asco.DistinguishedName } - if asco.DomainVerificationToken != nil { - objectMap["domainVerificationToken"] = asco.DomainVerificationToken - } if asco.ValidityInYears != nil { objectMap["validityInYears"] = asco.ValidityInYears } @@ -2925,42 +2863,9 @@ func (asco AppServiceCertificateOrderProperties) MarshalJSON() ([]byte, error) { if asco.AutoRenew != nil { objectMap["autoRenew"] = asco.AutoRenew } - if asco.ProvisioningState != "" { - objectMap["provisioningState"] = asco.ProvisioningState - } - if asco.Status != "" { - objectMap["status"] = asco.Status - } - if asco.SignedCertificate != nil { - objectMap["signedCertificate"] = asco.SignedCertificate - } if asco.Csr != nil { objectMap["csr"] = asco.Csr } - if asco.Intermediate != nil { - objectMap["intermediate"] = asco.Intermediate - } - if asco.Root != nil { - objectMap["root"] = asco.Root - } - if asco.SerialNumber != nil { - objectMap["serialNumber"] = asco.SerialNumber - } - if asco.LastCertificateIssuanceTime != nil { - objectMap["lastCertificateIssuanceTime"] = asco.LastCertificateIssuanceTime - } - if asco.ExpirationTime != nil { - objectMap["expirationTime"] = asco.ExpirationTime - } - if asco.IsPrivateKeyExternal != nil { - objectMap["isPrivateKeyExternal"] = asco.IsPrivateKeyExternal - } - if asco.AppServiceCertificateNotRenewableReasons != nil { - objectMap["appServiceCertificateNotRenewableReasons"] = asco.AppServiceCertificateNotRenewableReasons - } - if asco.NextAutoRenewalTimeStamp != nil { - objectMap["nextAutoRenewalTimeStamp"] = asco.NextAutoRenewalTimeStamp - } return json.Marshal(objectMap) } @@ -2974,7 +2879,7 @@ type AppServiceCertificateOrdersCreateOrUpdateCertificateFuture struct { // If the operation has not completed it will return an error. func (future *AppServiceCertificateOrdersCreateOrUpdateCertificateFuture) Result(client AppServiceCertificateOrdersClient) (ascr AppServiceCertificateResource, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersCreateOrUpdateCertificateFuture", "Result", future.Response(), "Polling failure") return @@ -3003,7 +2908,7 @@ type AppServiceCertificateOrdersCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *AppServiceCertificateOrdersCreateOrUpdateFuture) Result(client AppServiceCertificateOrdersClient) (asco AppServiceCertificateOrder, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceCertificateOrdersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -3027,13 +2932,13 @@ func (future *AppServiceCertificateOrdersCreateOrUpdateFuture) Result(client App type AppServiceCertificatePatchResource struct { // AppServiceCertificate - Core resource properties *AppServiceCertificate `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -3043,18 +2948,9 @@ func (ascpr AppServiceCertificatePatchResource) MarshalJSON() ([]byte, error) { if ascpr.AppServiceCertificate != nil { objectMap["properties"] = ascpr.AppServiceCertificate } - if ascpr.ID != nil { - objectMap["id"] = ascpr.ID - } - if ascpr.Name != nil { - objectMap["name"] = ascpr.Name - } if ascpr.Kind != nil { objectMap["kind"] = ascpr.Kind } - if ascpr.Type != nil { - objectMap["type"] = ascpr.Type - } return json.Marshal(objectMap) } @@ -3124,15 +3020,15 @@ type AppServiceCertificateResource struct { autorest.Response `json:"-"` // AppServiceCertificate - Core resource properties *AppServiceCertificate `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` // Location - Resource Location. Location *string `json:"location,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` @@ -3144,21 +3040,12 @@ func (ascr AppServiceCertificateResource) MarshalJSON() ([]byte, error) { if ascr.AppServiceCertificate != nil { objectMap["properties"] = ascr.AppServiceCertificate } - if ascr.ID != nil { - objectMap["id"] = ascr.ID - } - if ascr.Name != nil { - objectMap["name"] = ascr.Name - } if ascr.Kind != nil { objectMap["kind"] = ascr.Kind } if ascr.Location != nil { objectMap["location"] = ascr.Location } - if ascr.Type != nil { - objectMap["type"] = ascr.Type - } if ascr.Tags != nil { objectMap["tags"] = ascr.Tags } @@ -3249,9 +3136,9 @@ type AppServiceEnvironment struct { Name *string `json:"name,omitempty"` // Location - Location of the App Service Environment, e.g. "West US". Location *string `json:"location,omitempty"` - // ProvisioningState - Provisioning state of the App Service Environment. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateInProgress', 'ProvisioningStateDeleting' + // ProvisioningState - READ-ONLY; Provisioning state of the App Service Environment. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateInProgress', 'ProvisioningStateDeleting' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` - // Status - Current status of the App Service Environment. Possible values include: 'Preparing', 'Ready', 'Scaling', 'Deleting' + // Status - READ-ONLY; Current status of the App Service Environment. Possible values include: 'Preparing', 'Ready', 'Scaling', 'Deleting' Status HostingEnvironmentStatus `json:"status,omitempty"` // VnetName - Name of the Virtual Network for the App Service Environment. VnetName *string `json:"vnetName,omitempty"` @@ -3271,41 +3158,41 @@ type AppServiceEnvironment struct { WorkerPools *[]WorkerPool `json:"workerPools,omitempty"` // IpsslAddressCount - Number of IP SSL addresses reserved for the App Service Environment. IpsslAddressCount *int32 `json:"ipsslAddressCount,omitempty"` - // DatabaseEdition - Edition of the metadata database for the App Service Environment, e.g. "Standard". + // DatabaseEdition - READ-ONLY; Edition of the metadata database for the App Service Environment, e.g. "Standard". DatabaseEdition *string `json:"databaseEdition,omitempty"` - // DatabaseServiceObjective - Service objective of the metadata database for the App Service Environment, e.g. "S0". + // DatabaseServiceObjective - READ-ONLY; Service objective of the metadata database for the App Service Environment, e.g. "S0". DatabaseServiceObjective *string `json:"databaseServiceObjective,omitempty"` - // UpgradeDomains - Number of upgrade domains of the App Service Environment. + // UpgradeDomains - READ-ONLY; Number of upgrade domains of the App Service Environment. UpgradeDomains *int32 `json:"upgradeDomains,omitempty"` - // SubscriptionID - Subscription of the App Service Environment. + // SubscriptionID - READ-ONLY; Subscription of the App Service Environment. SubscriptionID *string `json:"subscriptionId,omitempty"` // DNSSuffix - DNS suffix of the App Service Environment. DNSSuffix *string `json:"dnsSuffix,omitempty"` - // LastAction - Last deployment action on the App Service Environment. + // LastAction - READ-ONLY; Last deployment action on the App Service Environment. LastAction *string `json:"lastAction,omitempty"` - // LastActionResult - Result of the last deployment action on the App Service Environment. + // LastActionResult - READ-ONLY; Result of the last deployment action on the App Service Environment. LastActionResult *string `json:"lastActionResult,omitempty"` - // AllowedMultiSizes - List of comma separated strings describing which VM sizes are allowed for front-ends. + // AllowedMultiSizes - READ-ONLY; List of comma separated strings describing which VM sizes are allowed for front-ends. AllowedMultiSizes *string `json:"allowedMultiSizes,omitempty"` - // AllowedWorkerSizes - List of comma separated strings describing which VM sizes are allowed for workers. + // AllowedWorkerSizes - READ-ONLY; List of comma separated strings describing which VM sizes are allowed for workers. AllowedWorkerSizes *string `json:"allowedWorkerSizes,omitempty"` - // MaximumNumberOfMachines - Maximum number of VMs in the App Service Environment. + // MaximumNumberOfMachines - READ-ONLY; Maximum number of VMs in the App Service Environment. MaximumNumberOfMachines *int32 `json:"maximumNumberOfMachines,omitempty"` - // VipMappings - Description of IP SSL mapping for the App Service Environment. + // VipMappings - READ-ONLY; Description of IP SSL mapping for the App Service Environment. VipMappings *[]VirtualIPMapping `json:"vipMappings,omitempty"` - // EnvironmentCapacities - Current total, used, and available worker capacities. + // EnvironmentCapacities - READ-ONLY; Current total, used, and available worker capacities. EnvironmentCapacities *[]StampCapacity `json:"environmentCapacities,omitempty"` // NetworkAccessControlList - Access control list for controlling traffic to the App Service Environment. NetworkAccessControlList *[]NetworkAccessControlEntry `json:"networkAccessControlList,omitempty"` - // EnvironmentIsHealthy - True/false indicating whether the App Service Environment is healthy. + // EnvironmentIsHealthy - READ-ONLY; True/false indicating whether the App Service Environment is healthy. EnvironmentIsHealthy *bool `json:"environmentIsHealthy,omitempty"` - // EnvironmentStatus - Detailed message about with results of the last check of the App Service Environment. + // EnvironmentStatus - READ-ONLY; Detailed message about with results of the last check of the App Service Environment. EnvironmentStatus *string `json:"environmentStatus,omitempty"` - // ResourceGroup - Resource group of the App Service Environment. + // ResourceGroup - READ-ONLY; Resource group of the App Service Environment. ResourceGroup *string `json:"resourceGroup,omitempty"` // FrontEndScaleFactor - Scale factor for front-ends. FrontEndScaleFactor *int32 `json:"frontEndScaleFactor,omitempty"` - // DefaultFrontEndScaleFactor - Default Scale Factor for FrontEnds. + // DefaultFrontEndScaleFactor - READ-ONLY; Default Scale Factor for FrontEnds. DefaultFrontEndScaleFactor *int32 `json:"defaultFrontEndScaleFactor,omitempty"` // APIManagementAccountID - API Management Account associated with the App Service Environment. APIManagementAccountID *string `json:"apiManagementAccountId,omitempty"` @@ -3332,7 +3219,7 @@ type AppServiceEnvironmentCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]AppServiceEnvironmentResource `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -3478,13 +3365,13 @@ func NewAppServiceEnvironmentCollectionPage(getNextPage func(context.Context, Ap type AppServiceEnvironmentPatchResource struct { // AppServiceEnvironment - Core resource properties *AppServiceEnvironment `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -3494,18 +3381,9 @@ func (asepr AppServiceEnvironmentPatchResource) MarshalJSON() ([]byte, error) { if asepr.AppServiceEnvironment != nil { objectMap["properties"] = asepr.AppServiceEnvironment } - if asepr.ID != nil { - objectMap["id"] = asepr.ID - } - if asepr.Name != nil { - objectMap["name"] = asepr.Name - } if asepr.Kind != nil { objectMap["kind"] = asepr.Kind } - if asepr.Type != nil { - objectMap["type"] = asepr.Type - } return json.Marshal(objectMap) } @@ -3574,15 +3452,15 @@ type AppServiceEnvironmentResource struct { autorest.Response `json:"-"` // AppServiceEnvironment - Core resource properties *AppServiceEnvironment `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` // Location - Resource Location. Location *string `json:"location,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` @@ -3594,21 +3472,12 @@ func (aser AppServiceEnvironmentResource) MarshalJSON() ([]byte, error) { if aser.AppServiceEnvironment != nil { objectMap["properties"] = aser.AppServiceEnvironment } - if aser.ID != nil { - objectMap["id"] = aser.ID - } - if aser.Name != nil { - objectMap["name"] = aser.Name - } if aser.Kind != nil { objectMap["kind"] = aser.Kind } if aser.Location != nil { objectMap["location"] = aser.Location } - if aser.Type != nil { - objectMap["type"] = aser.Type - } if aser.Tags != nil { objectMap["tags"] = aser.Tags } @@ -3703,7 +3572,7 @@ type AppServiceEnvironmentsChangeVnetAllFuture struct { // If the operation has not completed it will return an error. func (future *AppServiceEnvironmentsChangeVnetAllFuture) Result(client AppServiceEnvironmentsClient) (acp AppCollectionPage, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsChangeVnetAllFuture", "Result", future.Response(), "Polling failure") return @@ -3732,7 +3601,7 @@ type AppServiceEnvironmentsChangeVnetFuture struct { // If the operation has not completed it will return an error. func (future *AppServiceEnvironmentsChangeVnetFuture) Result(client AppServiceEnvironmentsClient) (acp AppCollectionPage, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsChangeVnetFuture", "Result", future.Response(), "Polling failure") return @@ -3761,7 +3630,7 @@ type AppServiceEnvironmentsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *AppServiceEnvironmentsCreateOrUpdateFuture) Result(client AppServiceEnvironmentsClient) (aser AppServiceEnvironmentResource, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -3790,7 +3659,7 @@ type AppServiceEnvironmentsCreateOrUpdateMultiRolePoolFuture struct { // If the operation has not completed it will return an error. func (future *AppServiceEnvironmentsCreateOrUpdateMultiRolePoolFuture) Result(client AppServiceEnvironmentsClient) (wpr WorkerPoolResource, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsCreateOrUpdateMultiRolePoolFuture", "Result", future.Response(), "Polling failure") return @@ -3819,7 +3688,7 @@ type AppServiceEnvironmentsCreateOrUpdateWorkerPoolFuture struct { // If the operation has not completed it will return an error. func (future *AppServiceEnvironmentsCreateOrUpdateWorkerPoolFuture) Result(client AppServiceEnvironmentsClient) (wpr WorkerPoolResource, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsCreateOrUpdateWorkerPoolFuture", "Result", future.Response(), "Polling failure") return @@ -3848,7 +3717,7 @@ type AppServiceEnvironmentsDeleteFuture struct { // If the operation has not completed it will return an error. func (future *AppServiceEnvironmentsDeleteFuture) Result(client AppServiceEnvironmentsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsDeleteFuture", "Result", future.Response(), "Polling failure") return @@ -3871,7 +3740,7 @@ type AppServiceEnvironmentsResumeAllFuture struct { // If the operation has not completed it will return an error. func (future *AppServiceEnvironmentsResumeAllFuture) Result(client AppServiceEnvironmentsClient) (acp AppCollectionPage, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsResumeAllFuture", "Result", future.Response(), "Polling failure") return @@ -3900,7 +3769,7 @@ type AppServiceEnvironmentsResumeFuture struct { // If the operation has not completed it will return an error. func (future *AppServiceEnvironmentsResumeFuture) Result(client AppServiceEnvironmentsClient) (acp AppCollectionPage, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsResumeFuture", "Result", future.Response(), "Polling failure") return @@ -3929,7 +3798,7 @@ type AppServiceEnvironmentsSuspendAllFuture struct { // If the operation has not completed it will return an error. func (future *AppServiceEnvironmentsSuspendAllFuture) Result(client AppServiceEnvironmentsClient) (acp AppCollectionPage, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsSuspendAllFuture", "Result", future.Response(), "Polling failure") return @@ -3958,7 +3827,7 @@ type AppServiceEnvironmentsSuspendFuture struct { // If the operation has not completed it will return an error. func (future *AppServiceEnvironmentsSuspendFuture) Result(client AppServiceEnvironmentsClient) (acp AppCollectionPage, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServiceEnvironmentsSuspendFuture", "Result", future.Response(), "Polling failure") return @@ -3983,15 +3852,15 @@ type AppServicePlan struct { // AppServicePlanProperties - AppServicePlan resource specific properties *AppServicePlanProperties `json:"properties,omitempty"` Sku *SkuDescription `json:"sku,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` // Location - Resource Location. Location *string `json:"location,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` @@ -4006,21 +3875,12 @@ func (asp AppServicePlan) MarshalJSON() ([]byte, error) { if asp.Sku != nil { objectMap["sku"] = asp.Sku } - if asp.ID != nil { - objectMap["id"] = asp.ID - } - if asp.Name != nil { - objectMap["name"] = asp.Name - } if asp.Kind != nil { objectMap["kind"] = asp.Kind } if asp.Location != nil { objectMap["location"] = asp.Location } - if asp.Type != nil { - objectMap["type"] = asp.Type - } if asp.Tags != nil { objectMap["tags"] = asp.Tags } @@ -4119,7 +3979,7 @@ type AppServicePlanCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]AppServicePlan `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -4264,13 +4124,13 @@ func NewAppServicePlanCollectionPage(getNextPage func(context.Context, AppServic type AppServicePlanPatchResource struct { // AppServicePlanPatchResourceProperties - AppServicePlanPatchResource resource specific properties *AppServicePlanPatchResourceProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -4280,18 +4140,9 @@ func (asppr AppServicePlanPatchResource) MarshalJSON() ([]byte, error) { if asppr.AppServicePlanPatchResourceProperties != nil { objectMap["properties"] = asppr.AppServicePlanPatchResourceProperties } - if asppr.ID != nil { - objectMap["id"] = asppr.ID - } - if asppr.Name != nil { - objectMap["name"] = asppr.Name - } if asppr.Kind != nil { objectMap["kind"] = asppr.Kind } - if asppr.Type != nil { - objectMap["type"] = asppr.Type - } return json.Marshal(objectMap) } @@ -4359,22 +4210,22 @@ func (asppr *AppServicePlanPatchResource) UnmarshalJSON(body []byte) error { type AppServicePlanPatchResourceProperties struct { // WorkerTierName - Target worker tier assigned to the App Service plan. WorkerTierName *string `json:"workerTierName,omitempty"` - // Status - App Service plan status. Possible values include: 'StatusOptionsReady', 'StatusOptionsPending', 'StatusOptionsCreating' + // Status - READ-ONLY; App Service plan status. Possible values include: 'StatusOptionsReady', 'StatusOptionsPending', 'StatusOptionsCreating' Status StatusOptions `json:"status,omitempty"` - // Subscription - App Service plan subscription. + // Subscription - READ-ONLY; App Service plan subscription. Subscription *string `json:"subscription,omitempty"` // HostingEnvironmentProfile - Specification for the App Service Environment to use for the App Service plan. HostingEnvironmentProfile *HostingEnvironmentProfile `json:"hostingEnvironmentProfile,omitempty"` - // MaximumNumberOfWorkers - Maximum number of instances that can be assigned to this App Service plan. + // MaximumNumberOfWorkers - READ-ONLY; Maximum number of instances that can be assigned to this App Service plan. MaximumNumberOfWorkers *int32 `json:"maximumNumberOfWorkers,omitempty"` - // GeoRegion - Geographical location for the App Service plan. + // GeoRegion - READ-ONLY; Geographical location for the App Service plan. GeoRegion *string `json:"geoRegion,omitempty"` // PerSiteScaling - If true, apps assigned to this App Service plan can be scaled independently. // If false, apps assigned to this App Service plan will scale to all instances of the plan. PerSiteScaling *bool `json:"perSiteScaling,omitempty"` // MaximumElasticWorkerCount - Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan MaximumElasticWorkerCount *int32 `json:"maximumElasticWorkerCount,omitempty"` - // NumberOfSites - Number of apps assigned to this App Service plan. + // NumberOfSites - READ-ONLY; Number of apps assigned to this App Service plan. NumberOfSites *int32 `json:"numberOfSites,omitempty"` // IsSpot - If true, this App Service Plan owns spot instances. IsSpot *bool `json:"isSpot,omitempty"` @@ -4382,7 +4233,7 @@ type AppServicePlanPatchResourceProperties struct { SpotExpirationTime *date.Time `json:"spotExpirationTime,omitempty"` // FreeOfferExpirationTime - The time when the server farm free offer expires. FreeOfferExpirationTime *date.Time `json:"freeOfferExpirationTime,omitempty"` - // ResourceGroup - Resource group of the App Service plan. + // ResourceGroup - READ-ONLY; Resource group of the App Service plan. ResourceGroup *string `json:"resourceGroup,omitempty"` // Reserved - If Linux app service plan true, false otherwise. Reserved *bool `json:"reserved,omitempty"` @@ -4394,7 +4245,7 @@ type AppServicePlanPatchResourceProperties struct { TargetWorkerCount *int32 `json:"targetWorkerCount,omitempty"` // TargetWorkerSizeID - Scaling worker size ID. TargetWorkerSizeID *int32 `json:"targetWorkerSizeId,omitempty"` - // ProvisioningState - Provisioning state of the App Service Environment. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateInProgress', 'ProvisioningStateDeleting' + // ProvisioningState - READ-ONLY; Provisioning state of the App Service Environment. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateInProgress', 'ProvisioningStateDeleting' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } @@ -4402,22 +4253,22 @@ type AppServicePlanPatchResourceProperties struct { type AppServicePlanProperties struct { // WorkerTierName - Target worker tier assigned to the App Service plan. WorkerTierName *string `json:"workerTierName,omitempty"` - // Status - App Service plan status. Possible values include: 'StatusOptionsReady', 'StatusOptionsPending', 'StatusOptionsCreating' + // Status - READ-ONLY; App Service plan status. Possible values include: 'StatusOptionsReady', 'StatusOptionsPending', 'StatusOptionsCreating' Status StatusOptions `json:"status,omitempty"` - // Subscription - App Service plan subscription. + // Subscription - READ-ONLY; App Service plan subscription. Subscription *string `json:"subscription,omitempty"` // HostingEnvironmentProfile - Specification for the App Service Environment to use for the App Service plan. HostingEnvironmentProfile *HostingEnvironmentProfile `json:"hostingEnvironmentProfile,omitempty"` - // MaximumNumberOfWorkers - Maximum number of instances that can be assigned to this App Service plan. + // MaximumNumberOfWorkers - READ-ONLY; Maximum number of instances that can be assigned to this App Service plan. MaximumNumberOfWorkers *int32 `json:"maximumNumberOfWorkers,omitempty"` - // GeoRegion - Geographical location for the App Service plan. + // GeoRegion - READ-ONLY; Geographical location for the App Service plan. GeoRegion *string `json:"geoRegion,omitempty"` // PerSiteScaling - If true, apps assigned to this App Service plan can be scaled independently. // If false, apps assigned to this App Service plan will scale to all instances of the plan. PerSiteScaling *bool `json:"perSiteScaling,omitempty"` // MaximumElasticWorkerCount - Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan MaximumElasticWorkerCount *int32 `json:"maximumElasticWorkerCount,omitempty"` - // NumberOfSites - Number of apps assigned to this App Service plan. + // NumberOfSites - READ-ONLY; Number of apps assigned to this App Service plan. NumberOfSites *int32 `json:"numberOfSites,omitempty"` // IsSpot - If true, this App Service Plan owns spot instances. IsSpot *bool `json:"isSpot,omitempty"` @@ -4425,7 +4276,7 @@ type AppServicePlanProperties struct { SpotExpirationTime *date.Time `json:"spotExpirationTime,omitempty"` // FreeOfferExpirationTime - The time when the server farm free offer expires. FreeOfferExpirationTime *date.Time `json:"freeOfferExpirationTime,omitempty"` - // ResourceGroup - Resource group of the App Service plan. + // ResourceGroup - READ-ONLY; Resource group of the App Service plan. ResourceGroup *string `json:"resourceGroup,omitempty"` // Reserved - If Linux app service plan true, false otherwise. Reserved *bool `json:"reserved,omitempty"` @@ -4437,7 +4288,7 @@ type AppServicePlanProperties struct { TargetWorkerCount *int32 `json:"targetWorkerCount,omitempty"` // TargetWorkerSizeID - Scaling worker size ID. TargetWorkerSizeID *int32 `json:"targetWorkerSizeId,omitempty"` - // ProvisioningState - Provisioning state of the App Service Environment. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateInProgress', 'ProvisioningStateDeleting' + // ProvisioningState - READ-ONLY; Provisioning state of the App Service Environment. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateInProgress', 'ProvisioningStateDeleting' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` } @@ -4451,7 +4302,7 @@ type AppServicePlansCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *AppServicePlansCreateOrUpdateFuture) Result(client AppServicePlansClient) (asp AppServicePlan, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppServicePlansCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -4480,7 +4331,7 @@ type AppsInstallSiteExtensionFuture struct { // If the operation has not completed it will return an error. func (future *AppsInstallSiteExtensionFuture) Result(client AppsClient) (sei SiteExtensionInfo, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsInstallSiteExtensionFuture", "Result", future.Response(), "Polling failure") return @@ -4509,7 +4360,7 @@ type AppsInstallSiteExtensionSlotFuture struct { // If the operation has not completed it will return an error. func (future *AppsInstallSiteExtensionSlotFuture) Result(client AppsClient) (sei SiteExtensionInfo, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsInstallSiteExtensionSlotFuture", "Result", future.Response(), "Polling failure") return @@ -4538,7 +4389,7 @@ type AppsListPublishingCredentialsFuture struct { // If the operation has not completed it will return an error. func (future *AppsListPublishingCredentialsFuture) Result(client AppsClient) (u User, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsListPublishingCredentialsFuture", "Result", future.Response(), "Polling failure") return @@ -4567,7 +4418,7 @@ type AppsListPublishingCredentialsSlotFuture struct { // If the operation has not completed it will return an error. func (future *AppsListPublishingCredentialsSlotFuture) Result(client AppsClient) (u User, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsListPublishingCredentialsSlotFuture", "Result", future.Response(), "Polling failure") return @@ -4596,7 +4447,7 @@ type AppsMigrateMySQLFuture struct { // If the operation has not completed it will return an error. func (future *AppsMigrateMySQLFuture) Result(client AppsClient) (o Operation, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsMigrateMySQLFuture", "Result", future.Response(), "Polling failure") return @@ -4625,7 +4476,7 @@ type AppsMigrateStorageFuture struct { // If the operation has not completed it will return an error. func (future *AppsMigrateStorageFuture) Result(client AppsClient) (smr StorageMigrationResponse, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsMigrateStorageFuture", "Result", future.Response(), "Polling failure") return @@ -4654,7 +4505,7 @@ type AppsRestoreFromBackupBlobFuture struct { // If the operation has not completed it will return an error. func (future *AppsRestoreFromBackupBlobFuture) Result(client AppsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsRestoreFromBackupBlobFuture", "Result", future.Response(), "Polling failure") return @@ -4677,7 +4528,7 @@ type AppsRestoreFromBackupBlobSlotFuture struct { // If the operation has not completed it will return an error. func (future *AppsRestoreFromBackupBlobSlotFuture) Result(client AppsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsRestoreFromBackupBlobSlotFuture", "Result", future.Response(), "Polling failure") return @@ -4700,7 +4551,7 @@ type AppsRestoreFromDeletedAppFuture struct { // If the operation has not completed it will return an error. func (future *AppsRestoreFromDeletedAppFuture) Result(client AppsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsRestoreFromDeletedAppFuture", "Result", future.Response(), "Polling failure") return @@ -4723,7 +4574,7 @@ type AppsRestoreFromDeletedAppSlotFuture struct { // If the operation has not completed it will return an error. func (future *AppsRestoreFromDeletedAppSlotFuture) Result(client AppsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsRestoreFromDeletedAppSlotFuture", "Result", future.Response(), "Polling failure") return @@ -4745,7 +4596,7 @@ type AppsRestoreFuture struct { // If the operation has not completed it will return an error. func (future *AppsRestoreFuture) Result(client AppsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsRestoreFuture", "Result", future.Response(), "Polling failure") return @@ -4768,7 +4619,7 @@ type AppsRestoreSlotFuture struct { // If the operation has not completed it will return an error. func (future *AppsRestoreSlotFuture) Result(client AppsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsRestoreSlotFuture", "Result", future.Response(), "Polling failure") return @@ -4791,7 +4642,7 @@ type AppsRestoreSnapshotFuture struct { // If the operation has not completed it will return an error. func (future *AppsRestoreSnapshotFuture) Result(client AppsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsRestoreSnapshotFuture", "Result", future.Response(), "Polling failure") return @@ -4814,7 +4665,7 @@ type AppsRestoreSnapshotSlotFuture struct { // If the operation has not completed it will return an error. func (future *AppsRestoreSnapshotSlotFuture) Result(client AppsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsRestoreSnapshotSlotFuture", "Result", future.Response(), "Polling failure") return @@ -4837,7 +4688,7 @@ type AppsStartNetworkTraceFuture struct { // If the operation has not completed it will return an error. func (future *AppsStartNetworkTraceFuture) Result(client AppsClient) (lnt ListNetworkTrace, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsStartNetworkTraceFuture", "Result", future.Response(), "Polling failure") return @@ -4866,7 +4717,7 @@ type AppsStartNetworkTraceSlotFuture struct { // If the operation has not completed it will return an error. func (future *AppsStartNetworkTraceSlotFuture) Result(client AppsClient) (lnt ListNetworkTrace, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsStartNetworkTraceSlotFuture", "Result", future.Response(), "Polling failure") return @@ -4895,7 +4746,7 @@ type AppsStartWebSiteNetworkTraceOperationFuture struct { // If the operation has not completed it will return an error. func (future *AppsStartWebSiteNetworkTraceOperationFuture) Result(client AppsClient) (lnt ListNetworkTrace, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsStartWebSiteNetworkTraceOperationFuture", "Result", future.Response(), "Polling failure") return @@ -4924,7 +4775,7 @@ type AppsStartWebSiteNetworkTraceOperationSlotFuture struct { // If the operation has not completed it will return an error. func (future *AppsStartWebSiteNetworkTraceOperationSlotFuture) Result(client AppsClient) (lnt ListNetworkTrace, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsStartWebSiteNetworkTraceOperationSlotFuture", "Result", future.Response(), "Polling failure") return @@ -4953,7 +4804,7 @@ type AppsSwapSlotSlotFuture struct { // If the operation has not completed it will return an error. func (future *AppsSwapSlotSlotFuture) Result(client AppsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsSwapSlotSlotFuture", "Result", future.Response(), "Polling failure") return @@ -4976,7 +4827,7 @@ type AppsSwapSlotWithProductionFuture struct { // If the operation has not completed it will return an error. func (future *AppsSwapSlotWithProductionFuture) Result(client AppsClient) (ar autorest.Response, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.AppsSwapSlotWithProductionFuture", "Result", future.Response(), "Polling failure") return @@ -5065,7 +4916,7 @@ type AzureStorageInfoValue struct { AccessKey *string `json:"accessKey,omitempty"` // MountPath - Path to mount the storage within the site's runtime environment. MountPath *string `json:"mountPath,omitempty"` - // State - State of the storage account. Possible values include: 'Ok', 'InvalidCredentials', 'InvalidShare' + // State - READ-ONLY; State of the storage account. Possible values include: 'Ok', 'InvalidCredentials', 'InvalidShare' State AzureStorageState `json:"state,omitempty"` } @@ -5074,13 +4925,13 @@ type AzureStoragePropertyDictionaryResource struct { autorest.Response `json:"-"` // Properties - Azure storage accounts. Properties map[string]*AzureStorageInfoValue `json:"properties"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -5090,18 +4941,9 @@ func (aspdr AzureStoragePropertyDictionaryResource) MarshalJSON() ([]byte, error if aspdr.Properties != nil { objectMap["properties"] = aspdr.Properties } - if aspdr.ID != nil { - objectMap["id"] = aspdr.ID - } - if aspdr.Name != nil { - objectMap["name"] = aspdr.Name - } if aspdr.Kind != nil { objectMap["kind"] = aspdr.Kind } - if aspdr.Type != nil { - objectMap["type"] = aspdr.Type - } return json.Marshal(objectMap) } @@ -5118,13 +4960,13 @@ type BackupItem struct { autorest.Response `json:"-"` // BackupItemProperties - BackupItem resource specific properties *BackupItemProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -5134,18 +4976,9 @@ func (bi BackupItem) MarshalJSON() ([]byte, error) { if bi.BackupItemProperties != nil { objectMap["properties"] = bi.BackupItemProperties } - if bi.ID != nil { - objectMap["id"] = bi.ID - } - if bi.Name != nil { - objectMap["name"] = bi.Name - } if bi.Kind != nil { objectMap["kind"] = bi.Kind } - if bi.Type != nil { - objectMap["type"] = bi.Type - } return json.Marshal(objectMap) } @@ -5214,7 +5047,7 @@ type BackupItemCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]BackupItem `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -5357,33 +5190,33 @@ func NewBackupItemCollectionPage(getNextPage func(context.Context, BackupItemCol // BackupItemProperties backupItem resource specific properties type BackupItemProperties struct { - // BackupID - Id of the backup. + // BackupID - READ-ONLY; Id of the backup. BackupID *int32 `json:"id,omitempty"` - // StorageAccountURL - SAS URL for the storage account container which contains this backup. + // StorageAccountURL - READ-ONLY; SAS URL for the storage account container which contains this backup. StorageAccountURL *string `json:"storageAccountUrl,omitempty"` - // BlobName - Name of the blob which contains data for this backup. + // BlobName - READ-ONLY; Name of the blob which contains data for this backup. BlobName *string `json:"blobName,omitempty"` - // Name - Name of this backup. + // Name - READ-ONLY; Name of this backup. Name *string `json:"name,omitempty"` - // Status - Backup status. Possible values include: 'InProgress', 'Failed', 'Succeeded', 'TimedOut', 'Created', 'Skipped', 'PartiallySucceeded', 'DeleteInProgress', 'DeleteFailed', 'Deleted' + // Status - READ-ONLY; Backup status. Possible values include: 'InProgress', 'Failed', 'Succeeded', 'TimedOut', 'Created', 'Skipped', 'PartiallySucceeded', 'DeleteInProgress', 'DeleteFailed', 'Deleted' Status BackupItemStatus `json:"status,omitempty"` - // SizeInBytes - Size of the backup in bytes. + // SizeInBytes - READ-ONLY; Size of the backup in bytes. SizeInBytes *int64 `json:"sizeInBytes,omitempty"` - // Created - Timestamp of the backup creation. + // Created - READ-ONLY; Timestamp of the backup creation. Created *date.Time `json:"created,omitempty"` - // Log - Details regarding this backup. Might contain an error message. + // Log - READ-ONLY; Details regarding this backup. Might contain an error message. Log *string `json:"log,omitempty"` - // Databases - List of databases included in the backup. + // Databases - READ-ONLY; List of databases included in the backup. Databases *[]DatabaseBackupSetting `json:"databases,omitempty"` - // Scheduled - True if this backup has been created due to a schedule being triggered. + // Scheduled - READ-ONLY; True if this backup has been created due to a schedule being triggered. Scheduled *bool `json:"scheduled,omitempty"` - // LastRestoreTimeStamp - Timestamp of a last restore operation which used this backup. + // LastRestoreTimeStamp - READ-ONLY; Timestamp of a last restore operation which used this backup. LastRestoreTimeStamp *date.Time `json:"lastRestoreTimeStamp,omitempty"` - // FinishedTimeStamp - Timestamp when this backup finished. + // FinishedTimeStamp - READ-ONLY; Timestamp when this backup finished. FinishedTimeStamp *date.Time `json:"finishedTimeStamp,omitempty"` - // CorrelationID - Unique correlation identifier. Please use this along with the timestamp while communicating with Azure support. + // CorrelationID - READ-ONLY; Unique correlation identifier. Please use this along with the timestamp while communicating with Azure support. CorrelationID *string `json:"correlationId,omitempty"` - // WebsiteSizeInBytes - Size of the original web app which has been backed up. + // WebsiteSizeInBytes - READ-ONLY; Size of the original web app which has been backed up. WebsiteSizeInBytes *int64 `json:"websiteSizeInBytes,omitempty"` } @@ -5392,13 +5225,13 @@ type BackupRequest struct { autorest.Response `json:"-"` // BackupRequestProperties - BackupRequest resource specific properties *BackupRequestProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -5408,18 +5241,9 @@ func (br BackupRequest) MarshalJSON() ([]byte, error) { if br.BackupRequestProperties != nil { objectMap["properties"] = br.BackupRequestProperties } - if br.ID != nil { - objectMap["id"] = br.ID - } - if br.Name != nil { - objectMap["name"] = br.Name - } if br.Kind != nil { objectMap["kind"] = br.Kind } - if br.Type != nil { - objectMap["type"] = br.Type - } return json.Marshal(objectMap) } @@ -5510,7 +5334,7 @@ type BackupSchedule struct { RetentionPeriodInDays *int32 `json:"retentionPeriodInDays,omitempty"` // StartTime - When the schedule should start working. StartTime *date.Time `json:"startTime,omitempty"` - // LastExecutionTime - Last time when this schedule was triggered. + // LastExecutionTime - READ-ONLY; Last time when this schedule was triggered. LastExecutionTime *date.Time `json:"lastExecutionTime,omitempty"` } @@ -5519,13 +5343,13 @@ type BackupSchedule struct { type BillingMeter struct { // BillingMeterProperties - BillingMeter resource specific properties *BillingMeterProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -5535,18 +5359,9 @@ func (bm BillingMeter) MarshalJSON() ([]byte, error) { if bm.BillingMeterProperties != nil { objectMap["properties"] = bm.BillingMeterProperties } - if bm.ID != nil { - objectMap["id"] = bm.ID - } - if bm.Name != nil { - objectMap["name"] = bm.Name - } if bm.Kind != nil { objectMap["kind"] = bm.Kind } - if bm.Type != nil { - objectMap["type"] = bm.Type - } return json.Marshal(objectMap) } @@ -5615,7 +5430,7 @@ type BillingMeterCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]BillingMeter `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -5787,15 +5602,15 @@ type Certificate struct { autorest.Response `json:"-"` // CertificateProperties - Certificate resource specific properties *CertificateProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` // Location - Resource Location. Location *string `json:"location,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` @@ -5807,21 +5622,12 @@ func (c Certificate) MarshalJSON() ([]byte, error) { if c.CertificateProperties != nil { objectMap["properties"] = c.CertificateProperties } - if c.ID != nil { - objectMap["id"] = c.ID - } - if c.Name != nil { - objectMap["name"] = c.Name - } if c.Kind != nil { objectMap["kind"] = c.Kind } if c.Location != nil { objectMap["location"] = c.Location } - if c.Type != nil { - objectMap["type"] = c.Type - } if c.Tags != nil { objectMap["tags"] = c.Tags } @@ -5911,7 +5717,7 @@ type CertificateCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]Certificate `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -6054,23 +5860,23 @@ func NewCertificateCollectionPage(getNextPage func(context.Context, CertificateC // CertificateDetails SSL certificate details. type CertificateDetails struct { - // Version - Certificate Version. + // Version - READ-ONLY; Certificate Version. Version *int32 `json:"version,omitempty"` - // SerialNumber - Certificate Serial Number. + // SerialNumber - READ-ONLY; Certificate Serial Number. SerialNumber *string `json:"serialNumber,omitempty"` - // Thumbprint - Certificate Thumbprint. + // Thumbprint - READ-ONLY; Certificate Thumbprint. Thumbprint *string `json:"thumbprint,omitempty"` - // Subject - Certificate Subject. + // Subject - READ-ONLY; Certificate Subject. Subject *string `json:"subject,omitempty"` - // NotBefore - Date Certificate is valid from. + // NotBefore - READ-ONLY; Date Certificate is valid from. NotBefore *date.Time `json:"notBefore,omitempty"` - // NotAfter - Date Certificate is valid to. + // NotAfter - READ-ONLY; Date Certificate is valid to. NotAfter *date.Time `json:"notAfter,omitempty"` - // SignatureAlgorithm - Certificate Signature algorithm. + // SignatureAlgorithm - READ-ONLY; Certificate Signature algorithm. SignatureAlgorithm *string `json:"signatureAlgorithm,omitempty"` - // Issuer - Certificate Issuer. + // Issuer - READ-ONLY; Certificate Issuer. Issuer *string `json:"issuer,omitempty"` - // RawData - Raw certificate data. + // RawData - READ-ONLY; Raw certificate data. RawData *string `json:"rawData,omitempty"` } @@ -6078,13 +5884,13 @@ type CertificateDetails struct { type CertificateEmail struct { // CertificateEmailProperties - CertificateEmail resource specific properties *CertificateEmailProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -6094,18 +5900,9 @@ func (ce CertificateEmail) MarshalJSON() ([]byte, error) { if ce.CertificateEmailProperties != nil { objectMap["properties"] = ce.CertificateEmailProperties } - if ce.ID != nil { - objectMap["id"] = ce.ID - } - if ce.Name != nil { - objectMap["name"] = ce.Name - } if ce.Kind != nil { objectMap["kind"] = ce.Kind } - if ce.Type != nil { - objectMap["type"] = ce.Type - } return json.Marshal(objectMap) } @@ -6181,13 +5978,13 @@ type CertificateEmailProperties struct { type CertificateOrderAction struct { // CertificateOrderActionProperties - CertificateOrderAction resource specific properties *CertificateOrderActionProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -6197,18 +5994,9 @@ func (coa CertificateOrderAction) MarshalJSON() ([]byte, error) { if coa.CertificateOrderActionProperties != nil { objectMap["properties"] = coa.CertificateOrderActionProperties } - if coa.ID != nil { - objectMap["id"] = coa.ID - } - if coa.Name != nil { - objectMap["name"] = coa.Name - } if coa.Kind != nil { objectMap["kind"] = coa.Kind } - if coa.Type != nil { - objectMap["type"] = coa.Type - } return json.Marshal(objectMap) } @@ -6274,9 +6062,9 @@ func (coa *CertificateOrderAction) UnmarshalJSON(body []byte) error { // CertificateOrderActionProperties certificateOrderAction resource specific properties type CertificateOrderActionProperties struct { - // ActionType - Action type. Possible values include: 'CertificateIssued', 'CertificateOrderCanceled', 'CertificateOrderCreated', 'CertificateRevoked', 'DomainValidationComplete', 'FraudDetected', 'OrgNameChange', 'OrgValidationComplete', 'SanDrop', 'FraudCleared', 'CertificateExpired', 'CertificateExpirationWarning', 'FraudDocumentationRequired', 'Unknown' + // ActionType - READ-ONLY; Action type. Possible values include: 'CertificateIssued', 'CertificateOrderCanceled', 'CertificateOrderCreated', 'CertificateRevoked', 'DomainValidationComplete', 'FraudDetected', 'OrgNameChange', 'OrgValidationComplete', 'SanDrop', 'FraudCleared', 'CertificateExpired', 'CertificateExpirationWarning', 'FraudDocumentationRequired', 'Unknown' ActionType CertificateOrderActionType `json:"actionType,omitempty"` - // CreatedAt - Time at which the certificate action was performed. + // CreatedAt - READ-ONLY; Time at which the certificate action was performed. CreatedAt *date.Time `json:"createdAt,omitempty"` } @@ -6284,13 +6072,13 @@ type CertificateOrderActionProperties struct { type CertificatePatchResource struct { // CertificatePatchResourceProperties - CertificatePatchResource resource specific properties *CertificatePatchResourceProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -6300,18 +6088,9 @@ func (cpr CertificatePatchResource) MarshalJSON() ([]byte, error) { if cpr.CertificatePatchResourceProperties != nil { objectMap["properties"] = cpr.CertificatePatchResourceProperties } - if cpr.ID != nil { - objectMap["id"] = cpr.ID - } - if cpr.Name != nil { - objectMap["name"] = cpr.Name - } if cpr.Kind != nil { objectMap["kind"] = cpr.Kind } - if cpr.Type != nil { - objectMap["type"] = cpr.Type - } return json.Marshal(objectMap) } @@ -6377,41 +6156,41 @@ func (cpr *CertificatePatchResource) UnmarshalJSON(body []byte) error { // CertificatePatchResourceProperties certificatePatchResource resource specific properties type CertificatePatchResourceProperties struct { - // FriendlyName - Friendly name of the certificate. + // FriendlyName - READ-ONLY; Friendly name of the certificate. FriendlyName *string `json:"friendlyName,omitempty"` - // SubjectName - Subject name of the certificate. + // SubjectName - READ-ONLY; Subject name of the certificate. SubjectName *string `json:"subjectName,omitempty"` // HostNames - Host names the certificate applies to. HostNames *[]string `json:"hostNames,omitempty"` // PfxBlob - Pfx blob. PfxBlob *[]byte `json:"pfxBlob,omitempty"` - // SiteName - App name. + // SiteName - READ-ONLY; App name. SiteName *string `json:"siteName,omitempty"` - // SelfLink - Self link. + // SelfLink - READ-ONLY; Self link. SelfLink *string `json:"selfLink,omitempty"` - // Issuer - Certificate issuer. + // Issuer - READ-ONLY; Certificate issuer. Issuer *string `json:"issuer,omitempty"` - // IssueDate - Certificate issue Date. + // IssueDate - READ-ONLY; Certificate issue Date. IssueDate *date.Time `json:"issueDate,omitempty"` - // ExpirationDate - Certificate expiration date. + // ExpirationDate - READ-ONLY; Certificate expiration date. ExpirationDate *date.Time `json:"expirationDate,omitempty"` // Password - Certificate password. Password *string `json:"password,omitempty"` - // Thumbprint - Certificate thumbprint. + // Thumbprint - READ-ONLY; Certificate thumbprint. Thumbprint *string `json:"thumbprint,omitempty"` - // Valid - Is the certificate valid?. + // Valid - READ-ONLY; Is the certificate valid?. Valid *bool `json:"valid,omitempty"` - // CerBlob - Raw bytes of .cer file + // CerBlob - READ-ONLY; Raw bytes of .cer file CerBlob *[]byte `json:"cerBlob,omitempty"` - // PublicKeyHash - Public key hash. + // PublicKeyHash - READ-ONLY; Public key hash. PublicKeyHash *string `json:"publicKeyHash,omitempty"` - // HostingEnvironmentProfile - Specification for the App Service Environment to use for the certificate. + // HostingEnvironmentProfile - READ-ONLY; Specification for the App Service Environment to use for the certificate. HostingEnvironmentProfile *HostingEnvironmentProfile `json:"hostingEnvironmentProfile,omitempty"` // KeyVaultID - Key Vault Csm resource Id. KeyVaultID *string `json:"keyVaultId,omitempty"` // KeyVaultSecretName - Key Vault secret name. KeyVaultSecretName *string `json:"keyVaultSecretName,omitempty"` - // KeyVaultSecretStatus - Status of the Key Vault secret. Possible values include: 'KeyVaultSecretStatusInitialized', 'KeyVaultSecretStatusWaitingOnCertificateOrder', 'KeyVaultSecretStatusSucceeded', 'KeyVaultSecretStatusCertificateOrderFailed', 'KeyVaultSecretStatusOperationNotPermittedOnKeyVault', 'KeyVaultSecretStatusAzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultSecretStatusKeyVaultDoesNotExist', 'KeyVaultSecretStatusKeyVaultSecretDoesNotExist', 'KeyVaultSecretStatusUnknownError', 'KeyVaultSecretStatusExternalPrivateKey', 'KeyVaultSecretStatusUnknown' + // KeyVaultSecretStatus - READ-ONLY; Status of the Key Vault secret. Possible values include: 'KeyVaultSecretStatusInitialized', 'KeyVaultSecretStatusWaitingOnCertificateOrder', 'KeyVaultSecretStatusSucceeded', 'KeyVaultSecretStatusCertificateOrderFailed', 'KeyVaultSecretStatusOperationNotPermittedOnKeyVault', 'KeyVaultSecretStatusAzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultSecretStatusKeyVaultDoesNotExist', 'KeyVaultSecretStatusKeyVaultSecretDoesNotExist', 'KeyVaultSecretStatusUnknownError', 'KeyVaultSecretStatusExternalPrivateKey', 'KeyVaultSecretStatusUnknown' KeyVaultSecretStatus KeyVaultSecretStatus `json:"keyVaultSecretStatus,omitempty"` // ServerFarmID - Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". ServerFarmID *string `json:"serverFarmId,omitempty"` @@ -6419,41 +6198,41 @@ type CertificatePatchResourceProperties struct { // CertificateProperties certificate resource specific properties type CertificateProperties struct { - // FriendlyName - Friendly name of the certificate. + // FriendlyName - READ-ONLY; Friendly name of the certificate. FriendlyName *string `json:"friendlyName,omitempty"` - // SubjectName - Subject name of the certificate. + // SubjectName - READ-ONLY; Subject name of the certificate. SubjectName *string `json:"subjectName,omitempty"` // HostNames - Host names the certificate applies to. HostNames *[]string `json:"hostNames,omitempty"` // PfxBlob - Pfx blob. PfxBlob *[]byte `json:"pfxBlob,omitempty"` - // SiteName - App name. + // SiteName - READ-ONLY; App name. SiteName *string `json:"siteName,omitempty"` - // SelfLink - Self link. + // SelfLink - READ-ONLY; Self link. SelfLink *string `json:"selfLink,omitempty"` - // Issuer - Certificate issuer. + // Issuer - READ-ONLY; Certificate issuer. Issuer *string `json:"issuer,omitempty"` - // IssueDate - Certificate issue Date. + // IssueDate - READ-ONLY; Certificate issue Date. IssueDate *date.Time `json:"issueDate,omitempty"` - // ExpirationDate - Certificate expiration date. + // ExpirationDate - READ-ONLY; Certificate expiration date. ExpirationDate *date.Time `json:"expirationDate,omitempty"` // Password - Certificate password. Password *string `json:"password,omitempty"` - // Thumbprint - Certificate thumbprint. + // Thumbprint - READ-ONLY; Certificate thumbprint. Thumbprint *string `json:"thumbprint,omitempty"` - // Valid - Is the certificate valid?. + // Valid - READ-ONLY; Is the certificate valid?. Valid *bool `json:"valid,omitempty"` - // CerBlob - Raw bytes of .cer file + // CerBlob - READ-ONLY; Raw bytes of .cer file CerBlob *[]byte `json:"cerBlob,omitempty"` - // PublicKeyHash - Public key hash. + // PublicKeyHash - READ-ONLY; Public key hash. PublicKeyHash *string `json:"publicKeyHash,omitempty"` - // HostingEnvironmentProfile - Specification for the App Service Environment to use for the certificate. + // HostingEnvironmentProfile - READ-ONLY; Specification for the App Service Environment to use for the certificate. HostingEnvironmentProfile *HostingEnvironmentProfile `json:"hostingEnvironmentProfile,omitempty"` // KeyVaultID - Key Vault Csm resource Id. KeyVaultID *string `json:"keyVaultId,omitempty"` // KeyVaultSecretName - Key Vault secret name. KeyVaultSecretName *string `json:"keyVaultSecretName,omitempty"` - // KeyVaultSecretStatus - Status of the Key Vault secret. Possible values include: 'KeyVaultSecretStatusInitialized', 'KeyVaultSecretStatusWaitingOnCertificateOrder', 'KeyVaultSecretStatusSucceeded', 'KeyVaultSecretStatusCertificateOrderFailed', 'KeyVaultSecretStatusOperationNotPermittedOnKeyVault', 'KeyVaultSecretStatusAzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultSecretStatusKeyVaultDoesNotExist', 'KeyVaultSecretStatusKeyVaultSecretDoesNotExist', 'KeyVaultSecretStatusUnknownError', 'KeyVaultSecretStatusExternalPrivateKey', 'KeyVaultSecretStatusUnknown' + // KeyVaultSecretStatus - READ-ONLY; Status of the Key Vault secret. Possible values include: 'KeyVaultSecretStatusInitialized', 'KeyVaultSecretStatusWaitingOnCertificateOrder', 'KeyVaultSecretStatusSucceeded', 'KeyVaultSecretStatusCertificateOrderFailed', 'KeyVaultSecretStatusOperationNotPermittedOnKeyVault', 'KeyVaultSecretStatusAzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultSecretStatusKeyVaultDoesNotExist', 'KeyVaultSecretStatusKeyVaultSecretDoesNotExist', 'KeyVaultSecretStatusUnknownError', 'KeyVaultSecretStatusExternalPrivateKey', 'KeyVaultSecretStatusUnknown' KeyVaultSecretStatus KeyVaultSecretStatus `json:"keyVaultSecretStatus,omitempty"` // ServerFarmID - Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". ServerFarmID *string `json:"serverFarmId,omitempty"` @@ -6529,13 +6308,13 @@ type ConnectionStringDictionary struct { autorest.Response `json:"-"` // Properties - Connection strings. Properties map[string]*ConnStringValueTypePair `json:"properties"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -6545,18 +6324,9 @@ func (csd ConnectionStringDictionary) MarshalJSON() ([]byte, error) { if csd.Properties != nil { objectMap["properties"] = csd.Properties } - if csd.ID != nil { - objectMap["id"] = csd.ID - } - if csd.Name != nil { - objectMap["name"] = csd.Name - } if csd.Kind != nil { objectMap["kind"] = csd.Kind } - if csd.Type != nil { - objectMap["type"] = csd.Type - } return json.Marshal(objectMap) } @@ -6607,13 +6377,13 @@ type ContinuousWebJob struct { autorest.Response `json:"-"` // ContinuousWebJobProperties - ContinuousWebJob resource specific properties *ContinuousWebJobProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -6623,18 +6393,9 @@ func (cwj ContinuousWebJob) MarshalJSON() ([]byte, error) { if cwj.ContinuousWebJobProperties != nil { objectMap["properties"] = cwj.ContinuousWebJobProperties } - if cwj.ID != nil { - objectMap["id"] = cwj.ID - } - if cwj.Name != nil { - objectMap["name"] = cwj.Name - } if cwj.Kind != nil { objectMap["kind"] = cwj.Kind } - if cwj.Type != nil { - objectMap["type"] = cwj.Type - } return json.Marshal(objectMap) } @@ -6703,7 +6464,7 @@ type ContinuousWebJobCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]ContinuousWebJob `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -6927,7 +6688,7 @@ type CsmOperationCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]CsmOperationDescription `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -7127,7 +6888,7 @@ type CsmUsageQuotaCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]CsmUsageQuota `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -7273,13 +7034,13 @@ type CustomHostnameAnalysisResult struct { autorest.Response `json:"-"` // CustomHostnameAnalysisResultProperties - CustomHostnameAnalysisResult resource specific properties *CustomHostnameAnalysisResultProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -7289,18 +7050,9 @@ func (char CustomHostnameAnalysisResult) MarshalJSON() ([]byte, error) { if char.CustomHostnameAnalysisResultProperties != nil { objectMap["properties"] = char.CustomHostnameAnalysisResultProperties } - if char.ID != nil { - objectMap["id"] = char.ID - } - if char.Name != nil { - objectMap["name"] = char.Name - } if char.Kind != nil { objectMap["kind"] = char.Kind } - if char.Type != nil { - objectMap["type"] = char.Type - } return json.Marshal(objectMap) } @@ -7366,17 +7118,17 @@ func (char *CustomHostnameAnalysisResult) UnmarshalJSON(body []byte) error { // CustomHostnameAnalysisResultProperties customHostnameAnalysisResult resource specific properties type CustomHostnameAnalysisResultProperties struct { - // IsHostnameAlreadyVerified - true if hostname is already verified; otherwise, false. + // IsHostnameAlreadyVerified - READ-ONLY; true if hostname is already verified; otherwise, false. IsHostnameAlreadyVerified *bool `json:"isHostnameAlreadyVerified,omitempty"` - // CustomDomainVerificationTest - DNS verification test result. Possible values include: 'DNSVerificationTestResultPassed', 'DNSVerificationTestResultFailed', 'DNSVerificationTestResultSkipped' + // CustomDomainVerificationTest - READ-ONLY; DNS verification test result. Possible values include: 'DNSVerificationTestResultPassed', 'DNSVerificationTestResultFailed', 'DNSVerificationTestResultSkipped' CustomDomainVerificationTest DNSVerificationTestResult `json:"customDomainVerificationTest,omitempty"` - // CustomDomainVerificationFailureInfo - Raw failure information if DNS verification fails. + // CustomDomainVerificationFailureInfo - READ-ONLY; Raw failure information if DNS verification fails. CustomDomainVerificationFailureInfo *ErrorEntity `json:"customDomainVerificationFailureInfo,omitempty"` - // HasConflictOnScaleUnit - true if there is a conflict on a scale unit; otherwise, false. + // HasConflictOnScaleUnit - READ-ONLY; true if there is a conflict on a scale unit; otherwise, false. HasConflictOnScaleUnit *bool `json:"hasConflictOnScaleUnit,omitempty"` - // HasConflictAcrossSubscription - true if there is a conflict across subscriptions; otherwise, false. + // HasConflictAcrossSubscription - READ-ONLY; true if there is a conflict across subscriptions; otherwise, false. HasConflictAcrossSubscription *bool `json:"hasConflictAcrossSubscription,omitempty"` - // ConflictingAppResourceID - Name of the conflicting app on scale unit if it's within the same subscription. + // ConflictingAppResourceID - READ-ONLY; Name of the conflicting app on scale unit if it's within the same subscription. ConflictingAppResourceID *string `json:"conflictingAppResourceId,omitempty"` // CNameRecords - CName records controller can see for this hostname. CNameRecords *[]string `json:"cNameRecords,omitempty"` @@ -7432,30 +7184,30 @@ type DataTableResponseObject struct { // DefaultErrorResponse app Service error response. type DefaultErrorResponse struct { - // Error - Error model. + // Error - READ-ONLY; Error model. Error *DefaultErrorResponseError `json:"error,omitempty"` } // DefaultErrorResponseError error model. type DefaultErrorResponseError struct { - // Code - Standardized string to programmatically identify the error. + // Code - READ-ONLY; Standardized string to programmatically identify the error. Code *string `json:"code,omitempty"` - // Message - Detailed error description and debugging information. + // Message - READ-ONLY; Detailed error description and debugging information. Message *string `json:"message,omitempty"` - // Target - Detailed error description and debugging information. + // Target - READ-ONLY; Detailed error description and debugging information. Target *string `json:"target,omitempty"` Details *[]DefaultErrorResponseErrorDetailsItem `json:"details,omitempty"` - // Innererror - More information to debug error. + // Innererror - READ-ONLY; More information to debug error. Innererror *string `json:"innererror,omitempty"` } // DefaultErrorResponseErrorDetailsItem detailed errors. type DefaultErrorResponseErrorDetailsItem struct { - // Code - Standardized string to programmatically identify the error. + // Code - READ-ONLY; Standardized string to programmatically identify the error. Code *string `json:"code,omitempty"` - // Message - Detailed error description and debugging information. + // Message - READ-ONLY; Detailed error description and debugging information. Message *string `json:"message,omitempty"` - // Target - Detailed error description and debugging information. + // Target - READ-ONLY; Detailed error description and debugging information. Target *string `json:"target,omitempty"` } @@ -7463,13 +7215,13 @@ type DefaultErrorResponseErrorDetailsItem struct { type DeletedAppRestoreRequest struct { // DeletedAppRestoreRequestProperties - DeletedAppRestoreRequest resource specific properties *DeletedAppRestoreRequestProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -7479,18 +7231,9 @@ func (darr DeletedAppRestoreRequest) MarshalJSON() ([]byte, error) { if darr.DeletedAppRestoreRequestProperties != nil { objectMap["properties"] = darr.DeletedAppRestoreRequestProperties } - if darr.ID != nil { - objectMap["id"] = darr.ID - } - if darr.Name != nil { - objectMap["name"] = darr.Name - } if darr.Kind != nil { objectMap["kind"] = darr.Kind } - if darr.Type != nil { - objectMap["type"] = darr.Type - } return json.Marshal(objectMap) } @@ -7572,13 +7315,13 @@ type DeletedAppRestoreRequestProperties struct { type DeletedSite struct { // DeletedSiteProperties - DeletedSite resource specific properties *DeletedSiteProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -7588,18 +7331,9 @@ func (ds DeletedSite) MarshalJSON() ([]byte, error) { if ds.DeletedSiteProperties != nil { objectMap["properties"] = ds.DeletedSiteProperties } - if ds.ID != nil { - objectMap["id"] = ds.ID - } - if ds.Name != nil { - objectMap["name"] = ds.Name - } if ds.Kind != nil { objectMap["kind"] = ds.Kind } - if ds.Type != nil { - objectMap["type"] = ds.Type - } return json.Marshal(objectMap) } @@ -7665,21 +7399,21 @@ func (ds *DeletedSite) UnmarshalJSON(body []byte) error { // DeletedSiteProperties deletedSite resource specific properties type DeletedSiteProperties struct { - // DeletedSiteID - Numeric id for the deleted site + // DeletedSiteID - READ-ONLY; Numeric id for the deleted site DeletedSiteID *int32 `json:"deletedSiteId,omitempty"` - // DeletedTimestamp - Time in UTC when the app was deleted. + // DeletedTimestamp - READ-ONLY; Time in UTC when the app was deleted. DeletedTimestamp *string `json:"deletedTimestamp,omitempty"` - // Subscription - Subscription containing the deleted site + // Subscription - READ-ONLY; Subscription containing the deleted site Subscription *string `json:"subscription,omitempty"` - // ResourceGroup - ResourceGroup that contained the deleted site + // ResourceGroup - READ-ONLY; ResourceGroup that contained the deleted site ResourceGroup *string `json:"resourceGroup,omitempty"` - // DeletedSiteName - Name of the deleted site + // DeletedSiteName - READ-ONLY; Name of the deleted site DeletedSiteName *string `json:"deletedSiteName,omitempty"` - // Slot - Slot of the deleted site + // Slot - READ-ONLY; Slot of the deleted site Slot *string `json:"slot,omitempty"` - // Kind - Kind of site that was deleted + // Kind - READ-ONLY; Kind of site that was deleted Kind *string `json:"kind,omitempty"` - // GeoRegionName - Geo Region of the deleted site + // GeoRegionName - READ-ONLY; Geo Region of the deleted site GeoRegionName *string `json:"geoRegionName,omitempty"` } @@ -7688,7 +7422,7 @@ type DeletedWebAppCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]DeletedSite `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -7834,13 +7568,13 @@ type Deployment struct { autorest.Response `json:"-"` // DeploymentProperties - Deployment resource specific properties *DeploymentProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -7850,18 +7584,9 @@ func (d Deployment) MarshalJSON() ([]byte, error) { if d.DeploymentProperties != nil { objectMap["properties"] = d.DeploymentProperties } - if d.ID != nil { - objectMap["id"] = d.ID - } - if d.Name != nil { - objectMap["name"] = d.Name - } if d.Kind != nil { objectMap["kind"] = d.Kind } - if d.Type != nil { - objectMap["type"] = d.Type - } return json.Marshal(objectMap) } @@ -7930,7 +7655,7 @@ type DeploymentCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]Deployment `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -8129,13 +7854,13 @@ type DetectorAbnormalTimePeriod struct { type DetectorDefinition struct { // DetectorDefinitionProperties - DetectorDefinition resource specific properties *DetectorDefinitionProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -8145,18 +7870,9 @@ func (dd DetectorDefinition) MarshalJSON() ([]byte, error) { if dd.DetectorDefinitionProperties != nil { objectMap["properties"] = dd.DetectorDefinitionProperties } - if dd.ID != nil { - objectMap["id"] = dd.ID - } - if dd.Name != nil { - objectMap["name"] = dd.Name - } if dd.Kind != nil { objectMap["kind"] = dd.Kind } - if dd.Type != nil { - objectMap["type"] = dd.Type - } return json.Marshal(objectMap) } @@ -8222,25 +7938,25 @@ func (dd *DetectorDefinition) UnmarshalJSON(body []byte) error { // DetectorDefinitionProperties detectorDefinition resource specific properties type DetectorDefinitionProperties struct { - // DisplayName - Display name of the detector + // DisplayName - READ-ONLY; Display name of the detector DisplayName *string `json:"displayName,omitempty"` - // Description - Description of the detector + // Description - READ-ONLY; Description of the detector Description *string `json:"description,omitempty"` - // Rank - Detector Rank + // Rank - READ-ONLY; Detector Rank Rank *float64 `json:"rank,omitempty"` - // IsEnabled - Flag representing whether detector is enabled or not. + // IsEnabled - READ-ONLY; Flag representing whether detector is enabled or not. IsEnabled *bool `json:"isEnabled,omitempty"` } // DetectorInfo definition of Detector type DetectorInfo struct { - // Description - Short description of the detector and its purpose + // Description - READ-ONLY; Short description of the detector and its purpose Description *string `json:"description,omitempty"` - // Category - Support Category + // Category - READ-ONLY; Support Category Category *string `json:"category,omitempty"` - // SubCategory - Support Sub Category + // SubCategory - READ-ONLY; Support Sub Category SubCategory *string `json:"subCategory,omitempty"` - // SupportTopicID - Support Topic Id + // SupportTopicID - READ-ONLY; Support Topic Id SupportTopicID *string `json:"supportTopicId,omitempty"` } @@ -8249,13 +7965,13 @@ type DetectorResponse struct { autorest.Response `json:"-"` // DetectorResponseProperties - DetectorResponse resource specific properties *DetectorResponseProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -8265,18 +7981,9 @@ func (dr DetectorResponse) MarshalJSON() ([]byte, error) { if dr.DetectorResponseProperties != nil { objectMap["properties"] = dr.DetectorResponseProperties } - if dr.ID != nil { - objectMap["id"] = dr.ID - } - if dr.Name != nil { - objectMap["name"] = dr.Name - } if dr.Kind != nil { objectMap["kind"] = dr.Kind } - if dr.Type != nil { - objectMap["type"] = dr.Type - } return json.Marshal(objectMap) } @@ -8345,7 +8052,7 @@ type DetectorResponseCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]DetectorResponse `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -8499,13 +8206,13 @@ type DiagnosticAnalysis struct { autorest.Response `json:"-"` // DiagnosticAnalysisProperties - DiagnosticAnalysis resource specific properties *DiagnosticAnalysisProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -8515,18 +8222,9 @@ func (da DiagnosticAnalysis) MarshalJSON() ([]byte, error) { if da.DiagnosticAnalysisProperties != nil { objectMap["properties"] = da.DiagnosticAnalysisProperties } - if da.ID != nil { - objectMap["id"] = da.ID - } - if da.Name != nil { - objectMap["name"] = da.Name - } if da.Kind != nil { objectMap["kind"] = da.Kind } - if da.Type != nil { - objectMap["type"] = da.Type - } return json.Marshal(objectMap) } @@ -8595,7 +8293,7 @@ type DiagnosticAnalysisCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]AnalysisDefinition `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -8755,13 +8453,13 @@ type DiagnosticCategory struct { autorest.Response `json:"-"` // DiagnosticCategoryProperties - DiagnosticCategory resource specific properties *DiagnosticCategoryProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -8771,18 +8469,9 @@ func (dc DiagnosticCategory) MarshalJSON() ([]byte, error) { if dc.DiagnosticCategoryProperties != nil { objectMap["properties"] = dc.DiagnosticCategoryProperties } - if dc.ID != nil { - objectMap["id"] = dc.ID - } - if dc.Name != nil { - objectMap["name"] = dc.Name - } if dc.Kind != nil { objectMap["kind"] = dc.Kind } - if dc.Type != nil { - objectMap["type"] = dc.Type - } return json.Marshal(objectMap) } @@ -8851,7 +8540,7 @@ type DiagnosticCategoryCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]DiagnosticCategory `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -8994,7 +8683,7 @@ func NewDiagnosticCategoryCollectionPage(getNextPage func(context.Context, Diagn // DiagnosticCategoryProperties diagnosticCategory resource specific properties type DiagnosticCategoryProperties struct { - // Description - Description of the diagnostic category + // Description - READ-ONLY; Description of the diagnostic category Description *string `json:"description,omitempty"` } @@ -9011,7 +8700,7 @@ type DiagnosticDetectorCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]DetectorDefinition `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -9157,13 +8846,13 @@ type DiagnosticDetectorResponse struct { autorest.Response `json:"-"` // DiagnosticDetectorResponseProperties - DiagnosticDetectorResponse resource specific properties *DiagnosticDetectorResponseProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -9173,18 +8862,9 @@ func (ddr DiagnosticDetectorResponse) MarshalJSON() ([]byte, error) { if ddr.DiagnosticDetectorResponseProperties != nil { objectMap["properties"] = ddr.DiagnosticDetectorResponseProperties } - if ddr.ID != nil { - objectMap["id"] = ddr.ID - } - if ddr.Name != nil { - objectMap["name"] = ddr.Name - } if ddr.Kind != nil { objectMap["kind"] = ddr.Kind } - if ddr.Type != nil { - objectMap["type"] = ddr.Type - } return json.Marshal(objectMap) } @@ -9317,15 +8997,15 @@ type Domain struct { autorest.Response `json:"-"` // DomainProperties - Domain resource specific properties *DomainProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` // Location - Resource Location. Location *string `json:"location,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` @@ -9337,21 +9017,12 @@ func (d Domain) MarshalJSON() ([]byte, error) { if d.DomainProperties != nil { objectMap["properties"] = d.DomainProperties } - if d.ID != nil { - objectMap["id"] = d.ID - } - if d.Name != nil { - objectMap["name"] = d.Name - } if d.Kind != nil { objectMap["kind"] = d.Kind } if d.Location != nil { objectMap["location"] = d.Location } - if d.Type != nil { - objectMap["type"] = d.Type - } if d.Tags != nil { objectMap["tags"] = d.Tags } @@ -9452,7 +9123,7 @@ type DomainCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]Domain `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -9596,11 +9267,11 @@ func NewDomainCollectionPage(getNextPage func(context.Context, DomainCollection) // DomainControlCenterSsoRequest single sign-on request information for domain management. type DomainControlCenterSsoRequest struct { autorest.Response `json:"-"` - // URL - URL where the single sign-on request is to be made. + // URL - READ-ONLY; URL where the single sign-on request is to be made. URL *string `json:"url,omitempty"` - // PostParameterKey - Post parameter key. + // PostParameterKey - READ-ONLY; Post parameter key. PostParameterKey *string `json:"postParameterKey,omitempty"` - // PostParameterValue - Post parameter value. Client should use 'application/x-www-form-urlencoded' encoding for this value. + // PostParameterValue - READ-ONLY; Post parameter value. Client should use 'application/x-www-form-urlencoded' encoding for this value. PostParameterValue *string `json:"postParameterValue,omitempty"` } @@ -9609,13 +9280,13 @@ type DomainOwnershipIdentifier struct { autorest.Response `json:"-"` // DomainOwnershipIdentifierProperties - DomainOwnershipIdentifier resource specific properties *DomainOwnershipIdentifierProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -9625,18 +9296,9 @@ func (doi DomainOwnershipIdentifier) MarshalJSON() ([]byte, error) { if doi.DomainOwnershipIdentifierProperties != nil { objectMap["properties"] = doi.DomainOwnershipIdentifierProperties } - if doi.ID != nil { - objectMap["id"] = doi.ID - } - if doi.Name != nil { - objectMap["name"] = doi.Name - } if doi.Kind != nil { objectMap["kind"] = doi.Kind } - if doi.Type != nil { - objectMap["type"] = doi.Type - } return json.Marshal(objectMap) } @@ -9705,7 +9367,7 @@ type DomainOwnershipIdentifierCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]DomainOwnershipIdentifier `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -9857,13 +9519,13 @@ type DomainOwnershipIdentifierProperties struct { type DomainPatchResource struct { // DomainPatchResourceProperties - DomainPatchResource resource specific properties *DomainPatchResourceProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -9873,18 +9535,9 @@ func (dpr DomainPatchResource) MarshalJSON() ([]byte, error) { if dpr.DomainPatchResourceProperties != nil { objectMap["properties"] = dpr.DomainPatchResourceProperties } - if dpr.ID != nil { - objectMap["id"] = dpr.ID - } - if dpr.Name != nil { - objectMap["name"] = dpr.Name - } if dpr.Kind != nil { objectMap["kind"] = dpr.Kind } - if dpr.Type != nil { - objectMap["type"] = dpr.Type - } return json.Marshal(objectMap) } @@ -9958,30 +9611,30 @@ type DomainPatchResourceProperties struct { ContactRegistrant *Contact `json:"contactRegistrant,omitempty"` // ContactTech - Technical contact. ContactTech *Contact `json:"contactTech,omitempty"` - // RegistrationStatus - Domain registration status. Possible values include: 'DomainStatusActive', 'DomainStatusAwaiting', 'DomainStatusCancelled', 'DomainStatusConfiscated', 'DomainStatusDisabled', 'DomainStatusExcluded', 'DomainStatusExpired', 'DomainStatusFailed', 'DomainStatusHeld', 'DomainStatusLocked', 'DomainStatusParked', 'DomainStatusPending', 'DomainStatusReserved', 'DomainStatusReverted', 'DomainStatusSuspended', 'DomainStatusTransferred', 'DomainStatusUnknown', 'DomainStatusUnlocked', 'DomainStatusUnparked', 'DomainStatusUpdated', 'DomainStatusJSONConverterFailed' + // RegistrationStatus - READ-ONLY; Domain registration status. Possible values include: 'DomainStatusActive', 'DomainStatusAwaiting', 'DomainStatusCancelled', 'DomainStatusConfiscated', 'DomainStatusDisabled', 'DomainStatusExcluded', 'DomainStatusExpired', 'DomainStatusFailed', 'DomainStatusHeld', 'DomainStatusLocked', 'DomainStatusParked', 'DomainStatusPending', 'DomainStatusReserved', 'DomainStatusReverted', 'DomainStatusSuspended', 'DomainStatusTransferred', 'DomainStatusUnknown', 'DomainStatusUnlocked', 'DomainStatusUnparked', 'DomainStatusUpdated', 'DomainStatusJSONConverterFailed' RegistrationStatus DomainStatus `json:"registrationStatus,omitempty"` - // ProvisioningState - Domain provisioning state. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateInProgress', 'ProvisioningStateDeleting' + // ProvisioningState - READ-ONLY; Domain provisioning state. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateInProgress', 'ProvisioningStateDeleting' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` - // NameServers - Name servers. + // NameServers - READ-ONLY; Name servers. NameServers *[]string `json:"nameServers,omitempty"` // Privacy - true if domain privacy is enabled for this domain; otherwise, false. Privacy *bool `json:"privacy,omitempty"` - // CreatedTime - Domain creation timestamp. + // CreatedTime - READ-ONLY; Domain creation timestamp. CreatedTime *date.Time `json:"createdTime,omitempty"` - // ExpirationTime - Domain expiration timestamp. + // ExpirationTime - READ-ONLY; Domain expiration timestamp. ExpirationTime *date.Time `json:"expirationTime,omitempty"` - // LastRenewedTime - Timestamp when the domain was renewed last time. + // LastRenewedTime - READ-ONLY; Timestamp when the domain was renewed last time. LastRenewedTime *date.Time `json:"lastRenewedTime,omitempty"` // AutoRenew - true if the domain should be automatically renewed; otherwise, false. AutoRenew *bool `json:"autoRenew,omitempty"` - // ReadyForDNSRecordManagement - true if Azure can assign this domain to App Service apps; otherwise, false. This value will be true if domain registration status is active and + // ReadyForDNSRecordManagement - READ-ONLY; true if Azure can assign this domain to App Service apps; otherwise, false. This value will be true if domain registration status is active and // it is hosted on name servers Azure has programmatic access to. ReadyForDNSRecordManagement *bool `json:"readyForDnsRecordManagement,omitempty"` - // ManagedHostNames - All hostnames derived from the domain and assigned to Azure resources. + // ManagedHostNames - READ-ONLY; All hostnames derived from the domain and assigned to Azure resources. ManagedHostNames *[]HostName `json:"managedHostNames,omitempty"` // Consent - Legal agreement consent. Consent *DomainPurchaseConsent `json:"consent,omitempty"` - // DomainNotRenewableReasons - Reasons why domain is not renewable. + // DomainNotRenewableReasons - READ-ONLY; Reasons why domain is not renewable. DomainNotRenewableReasons *[]string `json:"domainNotRenewableReasons,omitempty"` // DNSType - Current DNS type. Possible values include: 'AzureDNS', 'DefaultDomainRegistrarDNS' DNSType DNSType `json:"dnsType,omitempty"` @@ -10002,30 +9655,30 @@ type DomainProperties struct { ContactRegistrant *Contact `json:"contactRegistrant,omitempty"` // ContactTech - Technical contact. ContactTech *Contact `json:"contactTech,omitempty"` - // RegistrationStatus - Domain registration status. Possible values include: 'DomainStatusActive', 'DomainStatusAwaiting', 'DomainStatusCancelled', 'DomainStatusConfiscated', 'DomainStatusDisabled', 'DomainStatusExcluded', 'DomainStatusExpired', 'DomainStatusFailed', 'DomainStatusHeld', 'DomainStatusLocked', 'DomainStatusParked', 'DomainStatusPending', 'DomainStatusReserved', 'DomainStatusReverted', 'DomainStatusSuspended', 'DomainStatusTransferred', 'DomainStatusUnknown', 'DomainStatusUnlocked', 'DomainStatusUnparked', 'DomainStatusUpdated', 'DomainStatusJSONConverterFailed' + // RegistrationStatus - READ-ONLY; Domain registration status. Possible values include: 'DomainStatusActive', 'DomainStatusAwaiting', 'DomainStatusCancelled', 'DomainStatusConfiscated', 'DomainStatusDisabled', 'DomainStatusExcluded', 'DomainStatusExpired', 'DomainStatusFailed', 'DomainStatusHeld', 'DomainStatusLocked', 'DomainStatusParked', 'DomainStatusPending', 'DomainStatusReserved', 'DomainStatusReverted', 'DomainStatusSuspended', 'DomainStatusTransferred', 'DomainStatusUnknown', 'DomainStatusUnlocked', 'DomainStatusUnparked', 'DomainStatusUpdated', 'DomainStatusJSONConverterFailed' RegistrationStatus DomainStatus `json:"registrationStatus,omitempty"` - // ProvisioningState - Domain provisioning state. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateInProgress', 'ProvisioningStateDeleting' + // ProvisioningState - READ-ONLY; Domain provisioning state. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled', 'ProvisioningStateInProgress', 'ProvisioningStateDeleting' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` - // NameServers - Name servers. + // NameServers - READ-ONLY; Name servers. NameServers *[]string `json:"nameServers,omitempty"` // Privacy - true if domain privacy is enabled for this domain; otherwise, false. Privacy *bool `json:"privacy,omitempty"` - // CreatedTime - Domain creation timestamp. + // CreatedTime - READ-ONLY; Domain creation timestamp. CreatedTime *date.Time `json:"createdTime,omitempty"` - // ExpirationTime - Domain expiration timestamp. + // ExpirationTime - READ-ONLY; Domain expiration timestamp. ExpirationTime *date.Time `json:"expirationTime,omitempty"` - // LastRenewedTime - Timestamp when the domain was renewed last time. + // LastRenewedTime - READ-ONLY; Timestamp when the domain was renewed last time. LastRenewedTime *date.Time `json:"lastRenewedTime,omitempty"` // AutoRenew - true if the domain should be automatically renewed; otherwise, false. AutoRenew *bool `json:"autoRenew,omitempty"` - // ReadyForDNSRecordManagement - true if Azure can assign this domain to App Service apps; otherwise, false. This value will be true if domain registration status is active and + // ReadyForDNSRecordManagement - READ-ONLY; true if Azure can assign this domain to App Service apps; otherwise, false. This value will be true if domain registration status is active and // it is hosted on name servers Azure has programmatic access to. ReadyForDNSRecordManagement *bool `json:"readyForDnsRecordManagement,omitempty"` - // ManagedHostNames - All hostnames derived from the domain and assigned to Azure resources. + // ManagedHostNames - READ-ONLY; All hostnames derived from the domain and assigned to Azure resources. ManagedHostNames *[]HostName `json:"managedHostNames,omitempty"` // Consent - Legal agreement consent. Consent *DomainPurchaseConsent `json:"consent,omitempty"` - // DomainNotRenewableReasons - Reasons why domain is not renewable. + // DomainNotRenewableReasons - READ-ONLY; Reasons why domain is not renewable. DomainNotRenewableReasons *[]string `json:"domainNotRenewableReasons,omitempty"` // DNSType - Current DNS type. Possible values include: 'AzureDNS', 'DefaultDomainRegistrarDNS' DNSType DNSType `json:"dnsType,omitempty"` @@ -10065,7 +9718,7 @@ type DomainsCreateOrUpdateFuture struct { // If the operation has not completed it will return an error. func (future *DomainsCreateOrUpdateFuture) Result(client DomainsClient) (d Domain, err error) { var done bool - done, err = future.Done(client) + done, err = future.DoneWithContext(context.Background(), client) if err != nil { err = autorest.NewErrorWithError(err, "web.DomainsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") return @@ -10090,6 +9743,28 @@ type EnabledConfig struct { Enabled *bool `json:"enabled,omitempty"` } +// EndpointDependency a domain name that a service is reached at, including details of the current +// connection status. +type EndpointDependency struct { + // DomainName - The domain name of the dependency. + DomainName *string `json:"domainName,omitempty"` + // EndpointDetails - The IP Addresses and Ports used when connecting to DomainName. + EndpointDetails *[]EndpointDetail `json:"endpointDetails,omitempty"` +} + +// EndpointDetail current TCP connectivity information from the App Service Environment to a single +// endpoint. +type EndpointDetail struct { + // IPAddress - An IP Address that Domain Name currently resolves to. + IPAddress *string `json:"ipAddress,omitempty"` + // Port - The port an endpoint is connected to. + Port *int32 `json:"port,omitempty"` + // Latency - The time in milliseconds it takes for a TCP connection to be created from the App Service Environment to this IpAddress at this Port. + Latency *float64 `json:"latency,omitempty"` + // IsAccessable - Whether it is possible to create a TCP connection from the App Service Environment to this IpAddress at this Port. + IsAccessable *bool `json:"isAccessable,omitempty"` +} + // ErrorEntity body of the error response returned from the API. type ErrorEntity struct { // ExtendedCode - Type of error. @@ -10137,13 +9812,13 @@ type FunctionEnvelope struct { autorest.Response `json:"-"` // FunctionEnvelopeProperties - FunctionEnvelope resource specific properties *FunctionEnvelopeProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -10153,18 +9828,9 @@ func (fe FunctionEnvelope) MarshalJSON() ([]byte, error) { if fe.FunctionEnvelopeProperties != nil { objectMap["properties"] = fe.FunctionEnvelopeProperties } - if fe.ID != nil { - objectMap["id"] = fe.ID - } - if fe.Name != nil { - objectMap["name"] = fe.Name - } if fe.Kind != nil { objectMap["kind"] = fe.Kind } - if fe.Type != nil { - objectMap["type"] = fe.Type - } return json.Marshal(objectMap) } @@ -10233,7 +9899,7 @@ type FunctionEnvelopeCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]FunctionEnvelope `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -10434,13 +10100,13 @@ type FunctionSecrets struct { autorest.Response `json:"-"` // FunctionSecretsProperties - FunctionSecrets resource specific properties *FunctionSecretsProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -10450,18 +10116,9 @@ func (fs FunctionSecrets) MarshalJSON() ([]byte, error) { if fs.FunctionSecretsProperties != nil { objectMap["properties"] = fs.FunctionSecretsProperties } - if fs.ID != nil { - objectMap["id"] = fs.ID - } - if fs.Name != nil { - objectMap["name"] = fs.Name - } if fs.Kind != nil { objectMap["kind"] = fs.Kind } - if fs.Type != nil { - objectMap["type"] = fs.Type - } return json.Marshal(objectMap) } @@ -10545,13 +10202,13 @@ type GeoDistribution struct { type GeoRegion struct { // GeoRegionProperties - GeoRegion resource specific properties *GeoRegionProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -10561,18 +10218,9 @@ func (gr GeoRegion) MarshalJSON() ([]byte, error) { if gr.GeoRegionProperties != nil { objectMap["properties"] = gr.GeoRegionProperties } - if gr.ID != nil { - objectMap["id"] = gr.ID - } - if gr.Name != nil { - objectMap["name"] = gr.Name - } if gr.Kind != nil { objectMap["kind"] = gr.Kind } - if gr.Type != nil { - objectMap["type"] = gr.Type - } return json.Marshal(objectMap) } @@ -10641,7 +10289,7 @@ type GeoRegionCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]GeoRegion `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -10784,9 +10432,9 @@ func NewGeoRegionCollectionPage(getNextPage func(context.Context, GeoRegionColle // GeoRegionProperties geoRegion resource specific properties type GeoRegionProperties struct { - // Description - Region description. + // Description - READ-ONLY; Region description. Description *string `json:"description,omitempty"` - // DisplayName - Display name for region. + // DisplayName - READ-ONLY; Display name for region. DisplayName *string `json:"displayName,omitempty"` } @@ -10842,9 +10490,9 @@ type HostingEnvironmentDiagnostics struct { type HostingEnvironmentProfile struct { // ID - Resource ID of the App Service Environment. ID *string `json:"id,omitempty"` - // Name - Name of the App Service Environment. + // Name - READ-ONLY; Name of the App Service Environment. Name *string `json:"name,omitempty"` - // Type - Resource type of the App Service Environment. + // Type - READ-ONLY; Resource type of the App Service Environment. Type *string `json:"type,omitempty"` } @@ -10869,13 +10517,13 @@ type HostNameBinding struct { autorest.Response `json:"-"` // HostNameBindingProperties - HostNameBinding resource specific properties *HostNameBindingProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -10885,18 +10533,9 @@ func (hnb HostNameBinding) MarshalJSON() ([]byte, error) { if hnb.HostNameBindingProperties != nil { objectMap["properties"] = hnb.HostNameBindingProperties } - if hnb.ID != nil { - objectMap["id"] = hnb.ID - } - if hnb.Name != nil { - objectMap["name"] = hnb.Name - } if hnb.Kind != nil { objectMap["kind"] = hnb.Kind } - if hnb.Type != nil { - objectMap["type"] = hnb.Type - } return json.Marshal(objectMap) } @@ -10965,7 +10604,7 @@ type HostNameBindingCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]HostNameBinding `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -11124,7 +10763,7 @@ type HostNameBindingProperties struct { SslState SslState `json:"sslState,omitempty"` // Thumbprint - SSL certificate thumbprint Thumbprint *string `json:"thumbprint,omitempty"` - // VirtualIP - Virtual IP address assigned to the hostname if IP based SSL is enabled. + // VirtualIP - READ-ONLY; Virtual IP address assigned to the hostname if IP based SSL is enabled. VirtualIP *string `json:"virtualIP,omitempty"` } @@ -11157,13 +10796,13 @@ type HybridConnection struct { autorest.Response `json:"-"` // HybridConnectionProperties - HybridConnection resource specific properties *HybridConnectionProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -11173,18 +10812,9 @@ func (hc HybridConnection) MarshalJSON() ([]byte, error) { if hc.HybridConnectionProperties != nil { objectMap["properties"] = hc.HybridConnectionProperties } - if hc.ID != nil { - objectMap["id"] = hc.ID - } - if hc.Name != nil { - objectMap["name"] = hc.Name - } if hc.Kind != nil { objectMap["kind"] = hc.Kind } - if hc.Type != nil { - objectMap["type"] = hc.Type - } return json.Marshal(objectMap) } @@ -11253,7 +10883,7 @@ type HybridConnectionCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]HybridConnection `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -11400,13 +11030,13 @@ type HybridConnectionKey struct { autorest.Response `json:"-"` // HybridConnectionKeyProperties - HybridConnectionKey resource specific properties *HybridConnectionKeyProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -11416,18 +11046,9 @@ func (hck HybridConnectionKey) MarshalJSON() ([]byte, error) { if hck.HybridConnectionKeyProperties != nil { objectMap["properties"] = hck.HybridConnectionKeyProperties } - if hck.ID != nil { - objectMap["id"] = hck.ID - } - if hck.Name != nil { - objectMap["name"] = hck.Name - } if hck.Kind != nil { objectMap["kind"] = hck.Kind } - if hck.Type != nil { - objectMap["type"] = hck.Type - } return json.Marshal(objectMap) } @@ -11493,9 +11114,9 @@ func (hck *HybridConnectionKey) UnmarshalJSON(body []byte) error { // HybridConnectionKeyProperties hybridConnectionKey resource specific properties type HybridConnectionKeyProperties struct { - // SendKeyName - The name of the send key. + // SendKeyName - READ-ONLY; The name of the send key. SendKeyName *string `json:"sendKeyName,omitempty"` - // SendKeyValue - The value of the send key. + // SendKeyValue - READ-ONLY; The value of the send key. SendKeyValue *string `json:"sendKeyValue,omitempty"` } @@ -11505,13 +11126,13 @@ type HybridConnectionLimits struct { autorest.Response `json:"-"` // HybridConnectionLimitsProperties - HybridConnectionLimits resource specific properties *HybridConnectionLimitsProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -11521,18 +11142,9 @@ func (hcl HybridConnectionLimits) MarshalJSON() ([]byte, error) { if hcl.HybridConnectionLimitsProperties != nil { objectMap["properties"] = hcl.HybridConnectionLimitsProperties } - if hcl.ID != nil { - objectMap["id"] = hcl.ID - } - if hcl.Name != nil { - objectMap["name"] = hcl.Name - } if hcl.Kind != nil { objectMap["kind"] = hcl.Kind } - if hcl.Type != nil { - objectMap["type"] = hcl.Type - } return json.Marshal(objectMap) } @@ -11598,9 +11210,9 @@ func (hcl *HybridConnectionLimits) UnmarshalJSON(body []byte) error { // HybridConnectionLimitsProperties hybridConnectionLimits resource specific properties type HybridConnectionLimitsProperties struct { - // Current - The current number of Hybrid Connections. + // Current - READ-ONLY; The current number of Hybrid Connections. Current *int32 `json:"current,omitempty"` - // Maximum - The maximum number of Hybrid Connections allowed. + // Maximum - READ-ONLY; The maximum number of Hybrid Connections allowed. Maximum *int32 `json:"maximum,omitempty"` } @@ -11630,13 +11242,13 @@ type Identifier struct { autorest.Response `json:"-"` // IdentifierProperties - Identifier resource specific properties *IdentifierProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -11646,18 +11258,9 @@ func (i Identifier) MarshalJSON() ([]byte, error) { if i.IdentifierProperties != nil { objectMap["properties"] = i.IdentifierProperties } - if i.ID != nil { - objectMap["id"] = i.ID - } - if i.Name != nil { - objectMap["name"] = i.Name - } if i.Kind != nil { objectMap["kind"] = i.Kind } - if i.Type != nil { - objectMap["type"] = i.Type - } return json.Marshal(objectMap) } @@ -11726,7 +11329,7 @@ type IdentifierCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]Identifier `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -11873,6 +11476,164 @@ type IdentifierProperties struct { ID *string `json:"id,omitempty"` } +// InboundEnvironmentEndpoint the IP Addresses and Ports that require inbound network access to and within +// the subnet of the App Service Environment. +type InboundEnvironmentEndpoint struct { + // Description - Short text describing the purpose of the network traffic. + Description *string `json:"description,omitempty"` + // Endpoints - The IP addresses that network traffic will originate from in cidr notation. + Endpoints *[]string `json:"endpoints,omitempty"` + // Ports - The ports that network traffic will arrive to the App Service Environment at. + Ports *[]string `json:"ports,omitempty"` +} + +// InboundEnvironmentEndpointCollection collection of Inbound Environment Endpoints +type InboundEnvironmentEndpointCollection struct { + autorest.Response `json:"-"` + // Value - Collection of resources. + Value *[]InboundEnvironmentEndpoint `json:"value,omitempty"` + // NextLink - READ-ONLY; Link to next page of resources. + NextLink *string `json:"nextLink,omitempty"` +} + +// InboundEnvironmentEndpointCollectionIterator provides access to a complete listing of +// InboundEnvironmentEndpoint values. +type InboundEnvironmentEndpointCollectionIterator struct { + i int + page InboundEnvironmentEndpointCollectionPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *InboundEnvironmentEndpointCollectionIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InboundEnvironmentEndpointCollectionIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *InboundEnvironmentEndpointCollectionIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter InboundEnvironmentEndpointCollectionIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter InboundEnvironmentEndpointCollectionIterator) Response() InboundEnvironmentEndpointCollection { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter InboundEnvironmentEndpointCollectionIterator) Value() InboundEnvironmentEndpoint { + if !iter.page.NotDone() { + return InboundEnvironmentEndpoint{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the InboundEnvironmentEndpointCollectionIterator type. +func NewInboundEnvironmentEndpointCollectionIterator(page InboundEnvironmentEndpointCollectionPage) InboundEnvironmentEndpointCollectionIterator { + return InboundEnvironmentEndpointCollectionIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (ieec InboundEnvironmentEndpointCollection) IsEmpty() bool { + return ieec.Value == nil || len(*ieec.Value) == 0 +} + +// inboundEnvironmentEndpointCollectionPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ieec InboundEnvironmentEndpointCollection) inboundEnvironmentEndpointCollectionPreparer(ctx context.Context) (*http.Request, error) { + if ieec.NextLink == nil || len(to.String(ieec.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ieec.NextLink))) +} + +// InboundEnvironmentEndpointCollectionPage contains a page of InboundEnvironmentEndpoint values. +type InboundEnvironmentEndpointCollectionPage struct { + fn func(context.Context, InboundEnvironmentEndpointCollection) (InboundEnvironmentEndpointCollection, error) + ieec InboundEnvironmentEndpointCollection +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *InboundEnvironmentEndpointCollectionPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/InboundEnvironmentEndpointCollectionPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.ieec) + if err != nil { + return err + } + page.ieec = next + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *InboundEnvironmentEndpointCollectionPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page InboundEnvironmentEndpointCollectionPage) NotDone() bool { + return !page.ieec.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page InboundEnvironmentEndpointCollectionPage) Response() InboundEnvironmentEndpointCollection { + return page.ieec +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page InboundEnvironmentEndpointCollectionPage) Values() []InboundEnvironmentEndpoint { + if page.ieec.IsEmpty() { + return nil + } + return *page.ieec.Value +} + +// Creates a new instance of the InboundEnvironmentEndpointCollectionPage type. +func NewInboundEnvironmentEndpointCollectionPage(getNextPage func(context.Context, InboundEnvironmentEndpointCollection) (InboundEnvironmentEndpointCollection, error)) InboundEnvironmentEndpointCollectionPage { + return InboundEnvironmentEndpointCollectionPage{fn: getNextPage} +} + // IPSecurityRestriction IP security restriction on an app. type IPSecurityRestriction struct { // IPAddress - IP address the security restriction is valid for. @@ -11905,13 +11666,13 @@ type Job struct { autorest.Response `json:"-"` // JobProperties - WebJob resource specific properties *JobProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -11921,18 +11682,9 @@ func (j Job) MarshalJSON() ([]byte, error) { if j.JobProperties != nil { objectMap["properties"] = j.JobProperties } - if j.ID != nil { - objectMap["id"] = j.ID - } - if j.Name != nil { - objectMap["name"] = j.Name - } if j.Kind != nil { objectMap["kind"] = j.Kind } - if j.Type != nil { - objectMap["type"] = j.Type - } return json.Marshal(objectMap) } @@ -12001,7 +11753,7 @@ type JobCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]Job `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -12252,14 +12004,34 @@ type LogSpecification struct { // ManagedServiceIdentity managed service identity. type ManagedServiceIdentity struct { - // Type - Type of managed service identity. Possible values include: 'SystemAssigned', 'UserAssigned' + // Type - Type of managed service identity. Possible values include: 'ManagedServiceIdentityTypeSystemAssigned', 'ManagedServiceIdentityTypeUserAssigned', 'ManagedServiceIdentityTypeSystemAssignedUserAssigned', 'ManagedServiceIdentityTypeNone' Type ManagedServiceIdentityType `json:"type,omitempty"` - // TenantID - Tenant of managed service identity. + // TenantID - READ-ONLY; Tenant of managed service identity. TenantID *string `json:"tenantId,omitempty"` - // PrincipalID - Principal Id of managed service identity. + // PrincipalID - READ-ONLY; Principal Id of managed service identity. + PrincipalID *string `json:"principalId,omitempty"` + // UserAssignedIdentities - The list of user assigned identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} + UserAssignedIdentities map[string]*ManagedServiceIdentityUserAssignedIdentitiesValue `json:"userAssignedIdentities"` +} + +// MarshalJSON is the custom marshaler for ManagedServiceIdentity. +func (msi ManagedServiceIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if msi.Type != "" { + objectMap["type"] = msi.Type + } + if msi.UserAssignedIdentities != nil { + objectMap["userAssignedIdentities"] = msi.UserAssignedIdentities + } + return json.Marshal(objectMap) +} + +// ManagedServiceIdentityUserAssignedIdentitiesValue ... +type ManagedServiceIdentityUserAssignedIdentitiesValue struct { + // PrincipalID - READ-ONLY; Principal Id of user assigned identity PrincipalID *string `json:"principalId,omitempty"` - // IdentityIds - Array of UserAssigned managed service identities. - IdentityIds *[]string `json:"identityIds,omitempty"` + // ClientID - READ-ONLY; Client Id of user assigned identity + ClientID *string `json:"clientId,omitempty"` } // MetricAvailabilily metric availability and retention. @@ -12281,13 +12053,13 @@ type MetricDefinition struct { autorest.Response `json:"-"` // MetricDefinitionProperties - MetricDefinition resource specific properties *MetricDefinitionProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -12297,18 +12069,9 @@ func (md MetricDefinition) MarshalJSON() ([]byte, error) { if md.MetricDefinitionProperties != nil { objectMap["properties"] = md.MetricDefinitionProperties } - if md.ID != nil { - objectMap["id"] = md.ID - } - if md.Name != nil { - objectMap["name"] = md.Name - } if md.Kind != nil { objectMap["kind"] = md.Kind } - if md.Type != nil { - objectMap["type"] = md.Type - } return json.Marshal(objectMap) } @@ -12374,13 +12137,13 @@ func (md *MetricDefinition) UnmarshalJSON(body []byte) error { // MetricDefinitionProperties metricDefinition resource specific properties type MetricDefinitionProperties struct { - // Unit - Unit of the metric. + // Unit - READ-ONLY; Unit of the metric. Unit *string `json:"unit,omitempty"` - // PrimaryAggregationType - Primary aggregation type. + // PrimaryAggregationType - READ-ONLY; Primary aggregation type. PrimaryAggregationType *string `json:"primaryAggregationType,omitempty"` - // MetricAvailabilities - List of time grains supported for the metric together with retention period. + // MetricAvailabilities - READ-ONLY; List of time grains supported for the metric together with retention period. MetricAvailabilities *[]MetricAvailabilily `json:"metricAvailabilities,omitempty"` - // DisplayName - Friendly name shown in the UI. + // DisplayName - READ-ONLY; Friendly name shown in the UI. DisplayName *string `json:"displayName,omitempty"` } @@ -12407,13 +12170,13 @@ type MetricSpecification struct { type MigrateMySQLRequest struct { // MigrateMySQLRequestProperties - MigrateMySqlRequest resource specific properties *MigrateMySQLRequestProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -12423,18 +12186,9 @@ func (mmsr MigrateMySQLRequest) MarshalJSON() ([]byte, error) { if mmsr.MigrateMySQLRequestProperties != nil { objectMap["properties"] = mmsr.MigrateMySQLRequestProperties } - if mmsr.ID != nil { - objectMap["id"] = mmsr.ID - } - if mmsr.Name != nil { - objectMap["name"] = mmsr.Name - } if mmsr.Kind != nil { objectMap["kind"] = mmsr.Kind } - if mmsr.Type != nil { - objectMap["type"] = mmsr.Type - } return json.Marshal(objectMap) } @@ -12511,13 +12265,13 @@ type MigrateMySQLStatus struct { autorest.Response `json:"-"` // MigrateMySQLStatusProperties - MigrateMySqlStatus resource specific properties *MigrateMySQLStatusProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -12527,18 +12281,9 @@ func (mmss MigrateMySQLStatus) MarshalJSON() ([]byte, error) { if mmss.MigrateMySQLStatusProperties != nil { objectMap["properties"] = mmss.MigrateMySQLStatusProperties } - if mmss.ID != nil { - objectMap["id"] = mmss.ID - } - if mmss.Name != nil { - objectMap["name"] = mmss.Name - } if mmss.Kind != nil { objectMap["kind"] = mmss.Kind } - if mmss.Type != nil { - objectMap["type"] = mmss.Type - } return json.Marshal(objectMap) } @@ -12604,11 +12349,11 @@ func (mmss *MigrateMySQLStatus) UnmarshalJSON(body []byte) error { // MigrateMySQLStatusProperties migrateMySqlStatus resource specific properties type MigrateMySQLStatusProperties struct { - // MigrationOperationStatus - Status of the migration task. Possible values include: 'OperationStatusInProgress', 'OperationStatusFailed', 'OperationStatusSucceeded', 'OperationStatusTimedOut', 'OperationStatusCreated' + // MigrationOperationStatus - READ-ONLY; Status of the migration task. Possible values include: 'OperationStatusInProgress', 'OperationStatusFailed', 'OperationStatusSucceeded', 'OperationStatusTimedOut', 'OperationStatusCreated' MigrationOperationStatus OperationStatus `json:"migrationOperationStatus,omitempty"` - // OperationID - Operation ID for the migration task. + // OperationID - READ-ONLY; Operation ID for the migration task. OperationID *string `json:"operationId,omitempty"` - // LocalMySQLEnabled - True if the web app has in app MySql enabled + // LocalMySQLEnabled - READ-ONLY; True if the web app has in app MySql enabled LocalMySQLEnabled *bool `json:"localMySqlEnabled,omitempty"` } @@ -12616,13 +12361,13 @@ type MigrateMySQLStatusProperties struct { type MSDeploy struct { // MSDeployCore - Core resource properties *MSDeployCore `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -12632,18 +12377,9 @@ func (md MSDeploy) MarshalJSON() ([]byte, error) { if md.MSDeployCore != nil { objectMap["properties"] = md.MSDeployCore } - if md.ID != nil { - objectMap["id"] = md.ID - } - if md.Name != nil { - objectMap["name"] = md.Name - } if md.Kind != nil { objectMap["kind"] = md.Kind } - if md.Type != nil { - objectMap["type"] = md.Type - } return json.Marshal(objectMap) } @@ -12761,13 +12497,13 @@ type MSDeployLog struct { autorest.Response `json:"-"` // MSDeployLogProperties - MSDeployLog resource specific properties *MSDeployLogProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -12777,18 +12513,9 @@ func (mdl MSDeployLog) MarshalJSON() ([]byte, error) { if mdl.MSDeployLogProperties != nil { objectMap["properties"] = mdl.MSDeployLogProperties } - if mdl.ID != nil { - objectMap["id"] = mdl.ID - } - if mdl.Name != nil { - objectMap["name"] = mdl.Name - } if mdl.Kind != nil { objectMap["kind"] = mdl.Kind } - if mdl.Type != nil { - objectMap["type"] = mdl.Type - } return json.Marshal(objectMap) } @@ -12854,17 +12581,17 @@ func (mdl *MSDeployLog) UnmarshalJSON(body []byte) error { // MSDeployLogEntry mSDeploy log entry type MSDeployLogEntry struct { - // Time - Timestamp of log entry + // Time - READ-ONLY; Timestamp of log entry Time *date.Time `json:"time,omitempty"` - // Type - Log entry type. Possible values include: 'MSDeployLogEntryTypeMessage', 'MSDeployLogEntryTypeWarning', 'MSDeployLogEntryTypeError' + // Type - READ-ONLY; Log entry type. Possible values include: 'MSDeployLogEntryTypeMessage', 'MSDeployLogEntryTypeWarning', 'MSDeployLogEntryTypeError' Type MSDeployLogEntryType `json:"type,omitempty"` - // Message - Log entry message + // Message - READ-ONLY; Log entry message Message *string `json:"message,omitempty"` } // MSDeployLogProperties mSDeployLog resource specific properties type MSDeployLogProperties struct { - // Entries - List of log entry messages + // Entries - READ-ONLY; List of log entry messages Entries *[]MSDeployLogEntry `json:"entries,omitempty"` } @@ -12873,13 +12600,13 @@ type MSDeployStatus struct { autorest.Response `json:"-"` // MSDeployStatusProperties - MSDeployStatus resource specific properties *MSDeployStatusProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -12889,18 +12616,9 @@ func (mds MSDeployStatus) MarshalJSON() ([]byte, error) { if mds.MSDeployStatusProperties != nil { objectMap["properties"] = mds.MSDeployStatusProperties } - if mds.ID != nil { - objectMap["id"] = mds.ID - } - if mds.Name != nil { - objectMap["name"] = mds.Name - } if mds.Kind != nil { objectMap["kind"] = mds.Kind } - if mds.Type != nil { - objectMap["type"] = mds.Type - } return json.Marshal(objectMap) } @@ -12966,15 +12684,15 @@ func (mds *MSDeployStatus) UnmarshalJSON(body []byte) error { // MSDeployStatusProperties mSDeployStatus resource specific properties type MSDeployStatusProperties struct { - // Deployer - Username of deployer + // Deployer - READ-ONLY; Username of deployer Deployer *string `json:"deployer,omitempty"` - // ProvisioningState - Provisioning state. Possible values include: 'MSDeployProvisioningStateAccepted', 'MSDeployProvisioningStateRunning', 'MSDeployProvisioningStateSucceeded', 'MSDeployProvisioningStateFailed', 'MSDeployProvisioningStateCanceled' + // ProvisioningState - READ-ONLY; Provisioning state. Possible values include: 'MSDeployProvisioningStateAccepted', 'MSDeployProvisioningStateRunning', 'MSDeployProvisioningStateSucceeded', 'MSDeployProvisioningStateFailed', 'MSDeployProvisioningStateCanceled' ProvisioningState MSDeployProvisioningState `json:"provisioningState,omitempty"` - // StartTime - Start time of deploy operation + // StartTime - READ-ONLY; Start time of deploy operation StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - End time of deploy operation + // EndTime - READ-ONLY; End time of deploy operation EndTime *date.Time `json:"endTime,omitempty"` - // Complete - Whether the deployment operation has completed + // Complete - READ-ONLY; Whether the deployment operation has completed Complete *bool `json:"complete,omitempty"` } @@ -12989,7 +12707,7 @@ type NameIdentifierCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]NameIdentifier `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -13156,13 +12874,13 @@ type NetworkFeatures struct { autorest.Response `json:"-"` // NetworkFeaturesProperties - NetworkFeatures resource specific properties *NetworkFeaturesProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -13172,18 +12890,9 @@ func (nf NetworkFeatures) MarshalJSON() ([]byte, error) { if nf.NetworkFeaturesProperties != nil { objectMap["properties"] = nf.NetworkFeaturesProperties } - if nf.ID != nil { - objectMap["id"] = nf.ID - } - if nf.Name != nil { - objectMap["name"] = nf.Name - } if nf.Kind != nil { objectMap["kind"] = nf.Kind } - if nf.Type != nil { - objectMap["type"] = nf.Type - } return json.Marshal(objectMap) } @@ -13249,13 +12958,13 @@ func (nf *NetworkFeatures) UnmarshalJSON(body []byte) error { // NetworkFeaturesProperties networkFeatures resource specific properties type NetworkFeaturesProperties struct { - // VirtualNetworkName - The Virtual Network name. + // VirtualNetworkName - READ-ONLY; The Virtual Network name. VirtualNetworkName *string `json:"virtualNetworkName,omitempty"` - // VirtualNetworkConnection - The Virtual Network summary view. + // VirtualNetworkConnection - READ-ONLY; The Virtual Network summary view. VirtualNetworkConnection *VnetInfo `json:"virtualNetworkConnection,omitempty"` - // HybridConnections - The Hybrid Connections summary view. + // HybridConnections - READ-ONLY; The Hybrid Connections summary view. HybridConnections *[]RelayServiceConnectionEntity `json:"hybridConnections,omitempty"` - // HybridConnectionsV2 - The Hybrid Connection V2 (Service Bus) view. + // HybridConnectionsV2 - READ-ONLY; The Hybrid Connection V2 (Service Bus) view. HybridConnectionsV2 *[]HybridConnection `json:"hybridConnectionsV2,omitempty"` } @@ -13290,12 +12999,168 @@ type Operation struct { GeoMasterOperationID *uuid.UUID `json:"geoMasterOperationId,omitempty"` } +// OutboundEnvironmentEndpoint endpoints accessed for a common purpose that the App Service Environment +// requires outbound network access to. +type OutboundEnvironmentEndpoint struct { + // Category - The type of service accessed by the App Service Environment, e.g., Azure Storage, Azure SQL Database, and Azure Active Directory. + Category *string `json:"category,omitempty"` + // Endpoints - The endpoints that the App Service Environment reaches the service at. + Endpoints *[]EndpointDependency `json:"endpoints,omitempty"` +} + +// OutboundEnvironmentEndpointCollection collection of Outbound Environment Endpoints +type OutboundEnvironmentEndpointCollection struct { + autorest.Response `json:"-"` + // Value - Collection of resources. + Value *[]OutboundEnvironmentEndpoint `json:"value,omitempty"` + // NextLink - READ-ONLY; Link to next page of resources. + NextLink *string `json:"nextLink,omitempty"` +} + +// OutboundEnvironmentEndpointCollectionIterator provides access to a complete listing of +// OutboundEnvironmentEndpoint values. +type OutboundEnvironmentEndpointCollectionIterator struct { + i int + page OutboundEnvironmentEndpointCollectionPage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *OutboundEnvironmentEndpointCollectionIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OutboundEnvironmentEndpointCollectionIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *OutboundEnvironmentEndpointCollectionIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter OutboundEnvironmentEndpointCollectionIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter OutboundEnvironmentEndpointCollectionIterator) Response() OutboundEnvironmentEndpointCollection { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter OutboundEnvironmentEndpointCollectionIterator) Value() OutboundEnvironmentEndpoint { + if !iter.page.NotDone() { + return OutboundEnvironmentEndpoint{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the OutboundEnvironmentEndpointCollectionIterator type. +func NewOutboundEnvironmentEndpointCollectionIterator(page OutboundEnvironmentEndpointCollectionPage) OutboundEnvironmentEndpointCollectionIterator { + return OutboundEnvironmentEndpointCollectionIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (oeec OutboundEnvironmentEndpointCollection) IsEmpty() bool { + return oeec.Value == nil || len(*oeec.Value) == 0 +} + +// outboundEnvironmentEndpointCollectionPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (oeec OutboundEnvironmentEndpointCollection) outboundEnvironmentEndpointCollectionPreparer(ctx context.Context) (*http.Request, error) { + if oeec.NextLink == nil || len(to.String(oeec.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(oeec.NextLink))) +} + +// OutboundEnvironmentEndpointCollectionPage contains a page of OutboundEnvironmentEndpoint values. +type OutboundEnvironmentEndpointCollectionPage struct { + fn func(context.Context, OutboundEnvironmentEndpointCollection) (OutboundEnvironmentEndpointCollection, error) + oeec OutboundEnvironmentEndpointCollection +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *OutboundEnvironmentEndpointCollectionPage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OutboundEnvironmentEndpointCollectionPage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + next, err := page.fn(ctx, page.oeec) + if err != nil { + return err + } + page.oeec = next + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *OutboundEnvironmentEndpointCollectionPage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page OutboundEnvironmentEndpointCollectionPage) NotDone() bool { + return !page.oeec.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page OutboundEnvironmentEndpointCollectionPage) Response() OutboundEnvironmentEndpointCollection { + return page.oeec +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page OutboundEnvironmentEndpointCollectionPage) Values() []OutboundEnvironmentEndpoint { + if page.oeec.IsEmpty() { + return nil + } + return *page.oeec.Value +} + +// Creates a new instance of the OutboundEnvironmentEndpointCollectionPage type. +func NewOutboundEnvironmentEndpointCollectionPage(getNextPage func(context.Context, OutboundEnvironmentEndpointCollection) (OutboundEnvironmentEndpointCollection, error)) OutboundEnvironmentEndpointCollectionPage { + return OutboundEnvironmentEndpointCollectionPage{fn: getNextPage} +} + // PerfMonCounterCollection collection of performance monitor counters. type PerfMonCounterCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]PerfMonResponse `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -13475,15 +13340,15 @@ type PremierAddOn struct { autorest.Response `json:"-"` // PremierAddOnProperties - PremierAddOn resource specific properties *PremierAddOnProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` // Location - Resource Location. Location *string `json:"location,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` @@ -13495,21 +13360,12 @@ func (pao PremierAddOn) MarshalJSON() ([]byte, error) { if pao.PremierAddOnProperties != nil { objectMap["properties"] = pao.PremierAddOnProperties } - if pao.ID != nil { - objectMap["id"] = pao.ID - } - if pao.Name != nil { - objectMap["name"] = pao.Name - } if pao.Kind != nil { objectMap["kind"] = pao.Kind } if pao.Location != nil { objectMap["location"] = pao.Location } - if pao.Type != nil { - objectMap["type"] = pao.Type - } if pao.Tags != nil { objectMap["tags"] = pao.Tags } @@ -13598,13 +13454,13 @@ func (pao *PremierAddOn) UnmarshalJSON(body []byte) error { type PremierAddOnOffer struct { // PremierAddOnOfferProperties - PremierAddOnOffer resource specific properties *PremierAddOnOfferProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -13614,18 +13470,9 @@ func (paoo PremierAddOnOffer) MarshalJSON() ([]byte, error) { if paoo.PremierAddOnOfferProperties != nil { objectMap["properties"] = paoo.PremierAddOnOfferProperties } - if paoo.ID != nil { - objectMap["id"] = paoo.ID - } - if paoo.Name != nil { - objectMap["name"] = paoo.Name - } if paoo.Kind != nil { objectMap["kind"] = paoo.Kind } - if paoo.Type != nil { - objectMap["type"] = paoo.Type - } return json.Marshal(objectMap) } @@ -13694,7 +13541,7 @@ type PremierAddOnOfferCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]PremierAddOnOffer `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -13863,13 +13710,13 @@ type PremierAddOnOfferProperties struct { type PremierAddOnPatchResource struct { // PremierAddOnPatchResourceProperties - PremierAddOnPatchResource resource specific properties *PremierAddOnPatchResourceProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -13879,18 +13726,9 @@ func (paopr PremierAddOnPatchResource) MarshalJSON() ([]byte, error) { if paopr.PremierAddOnPatchResourceProperties != nil { objectMap["properties"] = paopr.PremierAddOnPatchResourceProperties } - if paopr.ID != nil { - objectMap["id"] = paopr.ID - } - if paopr.Name != nil { - objectMap["name"] = paopr.Name - } if paopr.Kind != nil { objectMap["kind"] = paopr.Kind } - if paopr.Type != nil { - objectMap["type"] = paopr.Type - } return json.Marshal(objectMap) } @@ -13987,13 +13825,13 @@ type PrivateAccess struct { autorest.Response `json:"-"` // PrivateAccessProperties - PrivateAccess resource specific properties *PrivateAccessProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -14003,18 +13841,9 @@ func (pa PrivateAccess) MarshalJSON() ([]byte, error) { if pa.PrivateAccessProperties != nil { objectMap["properties"] = pa.PrivateAccessProperties } - if pa.ID != nil { - objectMap["id"] = pa.ID - } - if pa.Name != nil { - objectMap["name"] = pa.Name - } if pa.Kind != nil { objectMap["kind"] = pa.Kind } - if pa.Type != nil { - objectMap["type"] = pa.Type - } return json.Marshal(objectMap) } @@ -14111,13 +13940,13 @@ type ProcessInfo struct { autorest.Response `json:"-"` // ProcessInfoProperties - ProcessInfo resource specific properties *ProcessInfoProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -14127,18 +13956,9 @@ func (pi ProcessInfo) MarshalJSON() ([]byte, error) { if pi.ProcessInfoProperties != nil { objectMap["properties"] = pi.ProcessInfoProperties } - if pi.ID != nil { - objectMap["id"] = pi.ID - } - if pi.Name != nil { - objectMap["name"] = pi.Name - } if pi.Kind != nil { objectMap["kind"] = pi.Kind } - if pi.Type != nil { - objectMap["type"] = pi.Type - } return json.Marshal(objectMap) } @@ -14207,7 +14027,7 @@ type ProcessInfoCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]ProcessInfo `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -14350,7 +14170,7 @@ func NewProcessInfoCollectionPage(getNextPage func(context.Context, ProcessInfoC // ProcessInfoProperties processInfo resource specific properties type ProcessInfoProperties struct { - // Identifier - ARM Identifier for deployment. + // Identifier - READ-ONLY; ARM Identifier for deployment. Identifier *int32 `json:"identifier,omitempty"` // DeploymentName - Deployment name. DeploymentName *string `json:"deployment_name,omitempty"` @@ -14427,9 +14247,6 @@ type ProcessInfoProperties struct { // MarshalJSON is the custom marshaler for ProcessInfoProperties. func (pi ProcessInfoProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if pi.Identifier != nil { - objectMap["identifier"] = pi.Identifier - } if pi.DeploymentName != nil { objectMap["deployment_name"] = pi.DeploymentName } @@ -14543,13 +14360,13 @@ type ProcessModuleInfo struct { autorest.Response `json:"-"` // ProcessModuleInfoProperties - ProcessModuleInfo resource specific properties *ProcessModuleInfoProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -14559,18 +14376,9 @@ func (pmi ProcessModuleInfo) MarshalJSON() ([]byte, error) { if pmi.ProcessModuleInfoProperties != nil { objectMap["properties"] = pmi.ProcessModuleInfoProperties } - if pmi.ID != nil { - objectMap["id"] = pmi.ID - } - if pmi.Name != nil { - objectMap["name"] = pmi.Name - } if pmi.Kind != nil { objectMap["kind"] = pmi.Kind } - if pmi.Type != nil { - objectMap["type"] = pmi.Type - } return json.Marshal(objectMap) } @@ -14639,7 +14447,7 @@ type ProcessModuleInfoCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]ProcessModuleInfo `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -14811,13 +14619,13 @@ type ProcessThreadInfo struct { autorest.Response `json:"-"` // ProcessThreadInfoProperties - ProcessThreadInfo resource specific properties *ProcessThreadInfoProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -14827,18 +14635,9 @@ func (pti ProcessThreadInfo) MarshalJSON() ([]byte, error) { if pti.ProcessThreadInfoProperties != nil { objectMap["properties"] = pti.ProcessThreadInfoProperties } - if pti.ID != nil { - objectMap["id"] = pti.ID - } - if pti.Name != nil { - objectMap["name"] = pti.Name - } if pti.Kind != nil { objectMap["kind"] = pti.Kind } - if pti.Type != nil { - objectMap["type"] = pti.Type - } return json.Marshal(objectMap) } @@ -14907,7 +14706,7 @@ type ProcessThreadInfoCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]ProcessThreadInfo `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -15050,7 +14849,7 @@ func NewProcessThreadInfoCollectionPage(getNextPage func(context.Context, Proces // ProcessThreadInfoProperties processThreadInfo resource specific properties type ProcessThreadInfoProperties struct { - // Identifier - Site extension ID. + // Identifier - READ-ONLY; Site extension ID. Identifier *int32 `json:"identifier,omitempty"` // Href - HRef URI. Href *string `json:"href,omitempty"` @@ -15080,13 +14879,13 @@ type ProcessThreadInfoProperties struct { // ProxyOnlyResource azure proxy only resource. This resource is not tracked by Azure Resource Manager. type ProxyOnlyResource struct { - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -15095,13 +14894,13 @@ type PublicCertificate struct { autorest.Response `json:"-"` // PublicCertificateProperties - PublicCertificate resource specific properties *PublicCertificateProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -15111,18 +14910,9 @@ func (pc PublicCertificate) MarshalJSON() ([]byte, error) { if pc.PublicCertificateProperties != nil { objectMap["properties"] = pc.PublicCertificateProperties } - if pc.ID != nil { - objectMap["id"] = pc.ID - } - if pc.Name != nil { - objectMap["name"] = pc.Name - } if pc.Kind != nil { objectMap["kind"] = pc.Kind } - if pc.Type != nil { - objectMap["type"] = pc.Type - } return json.Marshal(objectMap) } @@ -15191,7 +14981,7 @@ type PublicCertificateCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]PublicCertificate `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -15338,7 +15128,7 @@ type PublicCertificateProperties struct { Blob *[]byte `json:"blob,omitempty"` // PublicCertificateLocation - Public Certificate Location. Possible values include: 'PublicCertificateLocationCurrentUserMy', 'PublicCertificateLocationLocalMachineMy', 'PublicCertificateLocationUnknown' PublicCertificateLocation PublicCertificateLocation `json:"publicCertificateLocation,omitempty"` - // Thumbprint - Certificate Thumbprint + // Thumbprint - READ-ONLY; Certificate Thumbprint Thumbprint *string `json:"thumbprint,omitempty"` } @@ -15347,13 +15137,13 @@ type PushSettings struct { autorest.Response `json:"-"` // PushSettingsProperties - PushSettings resource specific properties *PushSettingsProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -15363,18 +15153,9 @@ func (ps PushSettings) MarshalJSON() ([]byte, error) { if ps.PushSettingsProperties != nil { objectMap["properties"] = ps.PushSettingsProperties } - if ps.ID != nil { - objectMap["id"] = ps.ID - } - if ps.Name != nil { - objectMap["name"] = ps.Name - } if ps.Kind != nil { objectMap["kind"] = ps.Kind } - if ps.Type != nil { - objectMap["type"] = ps.Type - } return json.Marshal(objectMap) } @@ -15487,13 +15268,13 @@ type ReadCloser struct { type Recommendation struct { // RecommendationProperties - Recommendation resource specific properties *RecommendationProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -15503,18 +15284,9 @@ func (r Recommendation) MarshalJSON() ([]byte, error) { if r.RecommendationProperties != nil { objectMap["properties"] = r.RecommendationProperties } - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } if r.Kind != nil { objectMap["kind"] = r.Kind } - if r.Type != nil { - objectMap["type"] = r.Type - } return json.Marshal(objectMap) } @@ -15583,7 +15355,7 @@ type RecommendationCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]Recommendation `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -15744,7 +15516,7 @@ type RecommendationProperties struct { Level NotificationLevel `json:"level,omitempty"` // Channels - List of channels that this recommendation can apply. Possible values include: 'Notification', 'API', 'Email', 'Webhook', 'All' Channels Channels `json:"channels,omitempty"` - // CategoryTags - The list of category tags that this recommendation belongs to. + // CategoryTags - READ-ONLY; The list of category tags that this recommendation belongs to. CategoryTags *[]string `json:"categoryTags,omitempty"` // ActionName - Name of action recommended by this object. ActionName *string `json:"actionName,omitempty"` @@ -15779,13 +15551,13 @@ type RecommendationRule struct { autorest.Response `json:"-"` // RecommendationRuleProperties - RecommendationRule resource specific properties *RecommendationRuleProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -15795,18 +15567,9 @@ func (rr RecommendationRule) MarshalJSON() ([]byte, error) { if rr.RecommendationRuleProperties != nil { objectMap["properties"] = rr.RecommendationRuleProperties } - if rr.ID != nil { - objectMap["id"] = rr.ID - } - if rr.Name != nil { - objectMap["name"] = rr.Name - } if rr.Kind != nil { objectMap["kind"] = rr.Kind } - if rr.Type != nil { - objectMap["type"] = rr.Type - } return json.Marshal(objectMap) } @@ -15889,7 +15652,7 @@ type RecommendationRuleProperties struct { Level NotificationLevel `json:"level,omitempty"` // Channels - List of available channels that this rule applies. Possible values include: 'Notification', 'API', 'Email', 'Webhook', 'All' Channels Channels `json:"channels,omitempty"` - // CategoryTags - The list of category tags that this recommendation rule belongs to. + // CategoryTags - READ-ONLY; The list of category tags that this recommendation rule belongs to. CategoryTags *[]string `json:"categoryTags,omitempty"` // IsDynamic - True if this is associated with a dynamically added rule IsDynamic *bool `json:"isDynamic,omitempty"` @@ -15905,13 +15668,13 @@ type RecommendationRuleProperties struct { type ReissueCertificateOrderRequest struct { // ReissueCertificateOrderRequestProperties - ReissueCertificateOrderRequest resource specific properties *ReissueCertificateOrderRequestProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -15921,18 +15684,9 @@ func (rcor ReissueCertificateOrderRequest) MarshalJSON() ([]byte, error) { if rcor.ReissueCertificateOrderRequestProperties != nil { objectMap["properties"] = rcor.ReissueCertificateOrderRequestProperties } - if rcor.ID != nil { - objectMap["id"] = rcor.ID - } - if rcor.Name != nil { - objectMap["name"] = rcor.Name - } if rcor.Kind != nil { objectMap["kind"] = rcor.Kind } - if rcor.Type != nil { - objectMap["type"] = rcor.Type - } return json.Marshal(objectMap) } @@ -16013,13 +15767,13 @@ type RelayServiceConnectionEntity struct { autorest.Response `json:"-"` // RelayServiceConnectionEntityProperties - RelayServiceConnectionEntity resource specific properties *RelayServiceConnectionEntityProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -16029,18 +15783,9 @@ func (rsce RelayServiceConnectionEntity) MarshalJSON() ([]byte, error) { if rsce.RelayServiceConnectionEntityProperties != nil { objectMap["properties"] = rsce.RelayServiceConnectionEntityProperties } - if rsce.ID != nil { - objectMap["id"] = rsce.ID - } - if rsce.Name != nil { - objectMap["name"] = rsce.Name - } if rsce.Kind != nil { objectMap["kind"] = rsce.Kind } - if rsce.Type != nil { - objectMap["type"] = rsce.Type - } return json.Marshal(objectMap) } @@ -16129,13 +15874,13 @@ type Rendering struct { type RenewCertificateOrderRequest struct { // RenewCertificateOrderRequestProperties - RenewCertificateOrderRequest resource specific properties *RenewCertificateOrderRequestProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -16145,18 +15890,9 @@ func (rcor RenewCertificateOrderRequest) MarshalJSON() ([]byte, error) { if rcor.RenewCertificateOrderRequestProperties != nil { objectMap["properties"] = rcor.RenewCertificateOrderRequestProperties } - if rcor.ID != nil { - objectMap["id"] = rcor.ID - } - if rcor.Name != nil { - objectMap["name"] = rcor.Name - } if rcor.Kind != nil { objectMap["kind"] = rcor.Kind } - if rcor.Type != nil { - objectMap["type"] = rcor.Type - } return json.Marshal(objectMap) } @@ -16240,15 +15976,15 @@ type RequestsBasedTrigger struct { // Resource azure resource. This resource is tracked in Azure Resource Manager type Resource struct { - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` // Location - Resource Location. Location *string `json:"location,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` @@ -16257,21 +15993,12 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } if r.Kind != nil { objectMap["kind"] = r.Kind } if r.Location != nil { objectMap["location"] = r.Location } - if r.Type != nil { - objectMap["type"] = r.Type - } if r.Tags != nil { objectMap["tags"] = r.Tags } @@ -16283,7 +16010,7 @@ type ResourceCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]string `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -16429,13 +16156,13 @@ type ResourceHealthMetadata struct { autorest.Response `json:"-"` // ResourceHealthMetadataProperties - ResourceHealthMetadata resource specific properties *ResourceHealthMetadataProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -16445,18 +16172,9 @@ func (rhm ResourceHealthMetadata) MarshalJSON() ([]byte, error) { if rhm.ResourceHealthMetadataProperties != nil { objectMap["properties"] = rhm.ResourceHealthMetadataProperties } - if rhm.ID != nil { - objectMap["id"] = rhm.ID - } - if rhm.Name != nil { - objectMap["name"] = rhm.Name - } if rhm.Kind != nil { objectMap["kind"] = rhm.Kind } - if rhm.Type != nil { - objectMap["type"] = rhm.Type - } return json.Marshal(objectMap) } @@ -16525,7 +16243,7 @@ type ResourceHealthMetadataCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]ResourceHealthMetadata `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -16677,31 +16395,31 @@ type ResourceHealthMetadataProperties struct { // ResourceMetric object representing a metric for any resource . type ResourceMetric struct { - // Name - Name of metric. + // Name - READ-ONLY; Name of metric. Name *ResourceMetricName `json:"name,omitempty"` - // Unit - Metric unit. + // Unit - READ-ONLY; Metric unit. Unit *string `json:"unit,omitempty"` - // TimeGrain - Metric granularity. E.g PT1H, PT5M, P1D + // TimeGrain - READ-ONLY; Metric granularity. E.g PT1H, PT5M, P1D TimeGrain *string `json:"timeGrain,omitempty"` - // StartTime - Metric start time. + // StartTime - READ-ONLY; Metric start time. StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - Metric end time. + // EndTime - READ-ONLY; Metric end time. EndTime *date.Time `json:"endTime,omitempty"` - // ResourceID - Metric resource Id. + // ResourceID - READ-ONLY; Metric resource Id. ResourceID *string `json:"resourceId,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // MetricValues - Metric values. + // MetricValues - READ-ONLY; Metric values. MetricValues *[]ResourceMetricValue `json:"metricValues,omitempty"` - // Properties - Resource metric properties collection. + // Properties - READ-ONLY; Resource metric properties collection. Properties *[]ResourceMetricProperty `json:"properties,omitempty"` } // ResourceMetricAvailability metrics availability and retention. type ResourceMetricAvailability struct { - // TimeGrain - Time grain . + // TimeGrain - READ-ONLY; Time grain . TimeGrain *string `json:"timeGrain,omitempty"` - // Retention - Retention period for the current time grain. + // Retention - READ-ONLY; Retention period for the current time grain. Retention *string `json:"retention,omitempty"` } @@ -16710,7 +16428,7 @@ type ResourceMetricCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]ResourceMetric `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -16855,13 +16573,13 @@ func NewResourceMetricCollectionPage(getNextPage func(context.Context, ResourceM type ResourceMetricDefinition struct { // ResourceMetricDefinitionProperties - ResourceMetricDefinition resource specific properties *ResourceMetricDefinitionProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -16871,18 +16589,9 @@ func (rmd ResourceMetricDefinition) MarshalJSON() ([]byte, error) { if rmd.ResourceMetricDefinitionProperties != nil { objectMap["properties"] = rmd.ResourceMetricDefinitionProperties } - if rmd.ID != nil { - objectMap["id"] = rmd.ID - } - if rmd.Name != nil { - objectMap["name"] = rmd.Name - } if rmd.Kind != nil { objectMap["kind"] = rmd.Kind } - if rmd.Type != nil { - objectMap["type"] = rmd.Type - } return json.Marshal(objectMap) } @@ -16951,7 +16660,7 @@ type ResourceMetricDefinitionCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]ResourceMetricDefinition `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -17095,44 +16804,29 @@ func NewResourceMetricDefinitionCollectionPage(getNextPage func(context.Context, // ResourceMetricDefinitionProperties resourceMetricDefinition resource specific properties type ResourceMetricDefinitionProperties struct { - // Unit - Unit of the metric. + // Unit - READ-ONLY; Unit of the metric. Unit *string `json:"unit,omitempty"` - // PrimaryAggregationType - Primary aggregation type. + // PrimaryAggregationType - READ-ONLY; Primary aggregation type. PrimaryAggregationType *string `json:"primaryAggregationType,omitempty"` - // MetricAvailabilities - List of time grains supported for the metric together with retention period. + // MetricAvailabilities - READ-ONLY; List of time grains supported for the metric together with retention period. MetricAvailabilities *[]ResourceMetricAvailability `json:"metricAvailabilities,omitempty"` - // ResourceURI - Resource URI. + // ResourceURI - READ-ONLY; Resource URI. ResourceURI *string `json:"resourceUri,omitempty"` - // Properties - Resource metric definition properties. + // Properties - READ-ONLY; Resource metric definition properties. Properties map[string]*string `json:"properties"` } // MarshalJSON is the custom marshaler for ResourceMetricDefinitionProperties. func (rmd ResourceMetricDefinitionProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if rmd.Unit != nil { - objectMap["unit"] = rmd.Unit - } - if rmd.PrimaryAggregationType != nil { - objectMap["primaryAggregationType"] = rmd.PrimaryAggregationType - } - if rmd.MetricAvailabilities != nil { - objectMap["metricAvailabilities"] = rmd.MetricAvailabilities - } - if rmd.ResourceURI != nil { - objectMap["resourceUri"] = rmd.ResourceURI - } - if rmd.Properties != nil { - objectMap["properties"] = rmd.Properties - } return json.Marshal(objectMap) } // ResourceMetricName name of a metric for any resource . type ResourceMetricName struct { - // Value - metric name value. + // Value - READ-ONLY; metric name value. Value *string `json:"value,omitempty"` - // LocalizedValue - Localized metric name value. + // LocalizedValue - READ-ONLY; Localized metric name value. LocalizedValue *string `json:"localizedValue,omitempty"` } @@ -17146,19 +16840,19 @@ type ResourceMetricProperty struct { // ResourceMetricValue value of resource metric. type ResourceMetricValue struct { - // Timestamp - Value timestamp. + // Timestamp - READ-ONLY; Value timestamp. Timestamp *string `json:"timestamp,omitempty"` - // Average - Value average. + // Average - READ-ONLY; Value average. Average *float64 `json:"average,omitempty"` - // Minimum - Value minimum. + // Minimum - READ-ONLY; Value minimum. Minimum *float64 `json:"minimum,omitempty"` - // Maximum - Value maximum. + // Maximum - READ-ONLY; Value maximum. Maximum *float64 `json:"maximum,omitempty"` - // Total - Value total. + // Total - READ-ONLY; Value total. Total *float64 `json:"total,omitempty"` - // Count - Value count. + // Count - READ-ONLY; Value count. Count *float64 `json:"count,omitempty"` - // Properties - Resource metric properties collection. + // Properties - READ-ONLY; Resource metric properties collection. Properties *[]ResourceMetricProperty `json:"properties,omitempty"` } @@ -17194,13 +16888,13 @@ type RestoreRequest struct { autorest.Response `json:"-"` // RestoreRequestProperties - RestoreRequest resource specific properties *RestoreRequestProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -17210,18 +16904,9 @@ func (rr RestoreRequest) MarshalJSON() ([]byte, error) { if rr.RestoreRequestProperties != nil { objectMap["properties"] = rr.RestoreRequestProperties } - if rr.ID != nil { - objectMap["id"] = rr.ID - } - if rr.Name != nil { - objectMap["name"] = rr.Name - } if rr.Kind != nil { objectMap["kind"] = rr.Kind } - if rr.Type != nil { - objectMap["type"] = rr.Type - } return json.Marshal(objectMap) } @@ -17330,15 +17015,15 @@ type Site struct { // SiteProperties - Site resource specific properties *SiteProperties `json:"properties,omitempty"` Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` // Location - Resource Location. Location *string `json:"location,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` @@ -17353,21 +17038,12 @@ func (s Site) MarshalJSON() ([]byte, error) { if s.Identity != nil { objectMap["identity"] = s.Identity } - if s.ID != nil { - objectMap["id"] = s.ID - } - if s.Name != nil { - objectMap["name"] = s.Name - } if s.Kind != nil { objectMap["kind"] = s.Kind } if s.Location != nil { objectMap["location"] = s.Location } - if s.Type != nil { - objectMap["type"] = s.Type - } if s.Tags != nil { objectMap["tags"] = s.Tags } @@ -17467,13 +17143,13 @@ type SiteAuthSettings struct { autorest.Response `json:"-"` // SiteAuthSettingsProperties - SiteAuthSettings resource specific properties *SiteAuthSettingsProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -17483,18 +17159,9 @@ func (sas SiteAuthSettings) MarshalJSON() ([]byte, error) { if sas.SiteAuthSettingsProperties != nil { objectMap["properties"] = sas.SiteAuthSettingsProperties } - if sas.ID != nil { - objectMap["id"] = sas.ID - } - if sas.Name != nil { - objectMap["name"] = sas.Name - } if sas.Kind != nil { objectMap["kind"] = sas.Kind } - if sas.Type != nil { - objectMap["type"] = sas.Type - } return json.Marshal(objectMap) } @@ -17716,7 +17383,7 @@ type SiteConfig struct { AzureStorageAccounts map[string]*AzureStorageInfoValue `json:"azureStorageAccounts"` // ConnectionStrings - Connection strings. ConnectionStrings *[]ConnStringInfo `json:"connectionStrings,omitempty"` - // MachineKey - Site MachineKey. + // MachineKey - READ-ONLY; Site MachineKey. MachineKey *SiteMachineKey `json:"machineKey,omitempty"` // HandlerMappings - Handler mappings. HandlerMappings *[]HandlerMapping `json:"handlerMappings,omitempty"` @@ -17847,9 +17514,6 @@ func (sc SiteConfig) MarshalJSON() ([]byte, error) { if sc.ConnectionStrings != nil { objectMap["connectionStrings"] = sc.ConnectionStrings } - if sc.MachineKey != nil { - objectMap["machineKey"] = sc.MachineKey - } if sc.HandlerMappings != nil { objectMap["handlerMappings"] = sc.HandlerMappings } @@ -17957,13 +17621,13 @@ type SiteConfigResource struct { autorest.Response `json:"-"` // SiteConfig - Core resource properties *SiteConfig `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -17973,18 +17637,9 @@ func (scr SiteConfigResource) MarshalJSON() ([]byte, error) { if scr.SiteConfig != nil { objectMap["properties"] = scr.SiteConfig } - if scr.ID != nil { - objectMap["id"] = scr.ID - } - if scr.Name != nil { - objectMap["name"] = scr.Name - } if scr.Kind != nil { objectMap["kind"] = scr.Kind } - if scr.Type != nil { - objectMap["type"] = scr.Type - } return json.Marshal(objectMap) } @@ -18053,7 +17708,7 @@ type SiteConfigResourceCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]SiteConfigResource `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -18198,13 +17853,13 @@ func NewSiteConfigResourceCollectionPage(getNextPage func(context.Context, SiteC type SiteConfigurationSnapshotInfo struct { // SiteConfigurationSnapshotInfoProperties - SiteConfigurationSnapshotInfo resource specific properties *SiteConfigurationSnapshotInfoProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -18214,18 +17869,9 @@ func (scsi SiteConfigurationSnapshotInfo) MarshalJSON() ([]byte, error) { if scsi.SiteConfigurationSnapshotInfoProperties != nil { objectMap["properties"] = scsi.SiteConfigurationSnapshotInfoProperties } - if scsi.ID != nil { - objectMap["id"] = scsi.ID - } - if scsi.Name != nil { - objectMap["name"] = scsi.Name - } if scsi.Kind != nil { objectMap["kind"] = scsi.Kind } - if scsi.Type != nil { - objectMap["type"] = scsi.Type - } return json.Marshal(objectMap) } @@ -18295,7 +17941,7 @@ type SiteConfigurationSnapshotInfoCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]SiteConfigurationSnapshotInfo `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -18439,9 +18085,9 @@ func NewSiteConfigurationSnapshotInfoCollectionPage(getNextPage func(context.Con // SiteConfigurationSnapshotInfoProperties siteConfigurationSnapshotInfo resource specific properties type SiteConfigurationSnapshotInfoProperties struct { - // Time - The time the snapshot was taken. + // Time - READ-ONLY; The time the snapshot was taken. Time *date.Time `json:"time,omitempty"` - // SnapshotID - The id of the snapshot + // SnapshotID - READ-ONLY; The id of the snapshot SnapshotID *int32 `json:"snapshotId,omitempty"` } @@ -18450,13 +18096,13 @@ type SiteExtensionInfo struct { autorest.Response `json:"-"` // SiteExtensionInfoProperties - SiteExtensionInfo resource specific properties *SiteExtensionInfoProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -18466,18 +18112,9 @@ func (sei SiteExtensionInfo) MarshalJSON() ([]byte, error) { if sei.SiteExtensionInfoProperties != nil { objectMap["properties"] = sei.SiteExtensionInfoProperties } - if sei.ID != nil { - objectMap["id"] = sei.ID - } - if sei.Name != nil { - objectMap["name"] = sei.Name - } if sei.Kind != nil { objectMap["kind"] = sei.Kind } - if sei.Type != nil { - objectMap["type"] = sei.Type - } return json.Marshal(objectMap) } @@ -18546,7 +18183,7 @@ type SiteExtensionInfoCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]SiteExtensionInfo `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -18734,13 +18371,13 @@ type SiteExtensionInfoProperties struct { type SiteInstance struct { // SiteInstanceProperties - SiteInstance resource specific properties *SiteInstanceProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -18750,18 +18387,9 @@ func (si SiteInstance) MarshalJSON() ([]byte, error) { if si.SiteInstanceProperties != nil { objectMap["properties"] = si.SiteInstanceProperties } - if si.ID != nil { - objectMap["id"] = si.ID - } - if si.Name != nil { - objectMap["name"] = si.Name - } if si.Kind != nil { objectMap["kind"] = si.Kind } - if si.Type != nil { - objectMap["type"] = si.Type - } return json.Marshal(objectMap) } @@ -18827,7 +18455,7 @@ func (si *SiteInstance) UnmarshalJSON(body []byte) error { // SiteInstanceProperties siteInstance resource specific properties type SiteInstanceProperties struct { - // SiteInstanceName - Name of instance. + // SiteInstanceName - READ-ONLY; Name of instance. SiteInstanceName *string `json:"siteInstanceName,omitempty"` } @@ -18846,13 +18474,13 @@ type SiteLogsConfig struct { autorest.Response `json:"-"` // SiteLogsConfigProperties - SiteLogsConfig resource specific properties *SiteLogsConfigProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -18862,18 +18490,9 @@ func (slc SiteLogsConfig) MarshalJSON() ([]byte, error) { if slc.SiteLogsConfigProperties != nil { objectMap["properties"] = slc.SiteLogsConfigProperties } - if slc.ID != nil { - objectMap["id"] = slc.ID - } - if slc.Name != nil { - objectMap["name"] = slc.Name - } if slc.Kind != nil { objectMap["kind"] = slc.Kind } - if slc.Type != nil { - objectMap["type"] = slc.Type - } return json.Marshal(objectMap) } @@ -18965,13 +18584,14 @@ type SiteMachineKey struct { type SitePatchResource struct { // SitePatchResourceProperties - SitePatchResource resource specific properties *SitePatchResourceProperties `json:"properties,omitempty"` - // ID - Resource Id. + Identity *ManagedServiceIdentity `json:"identity,omitempty"` + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -18981,18 +18601,12 @@ func (spr SitePatchResource) MarshalJSON() ([]byte, error) { if spr.SitePatchResourceProperties != nil { objectMap["properties"] = spr.SitePatchResourceProperties } - if spr.ID != nil { - objectMap["id"] = spr.ID - } - if spr.Name != nil { - objectMap["name"] = spr.Name + if spr.Identity != nil { + objectMap["identity"] = spr.Identity } if spr.Kind != nil { objectMap["kind"] = spr.Kind } - if spr.Type != nil { - objectMap["type"] = spr.Type - } return json.Marshal(objectMap) } @@ -19014,6 +18628,15 @@ func (spr *SitePatchResource) UnmarshalJSON(body []byte) error { } spr.SitePatchResourceProperties = &sitePatchResourceProperties } + case "identity": + if v != nil { + var identity ManagedServiceIdentity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + spr.Identity = &identity + } case "id": if v != nil { var ID string @@ -19058,20 +18681,20 @@ func (spr *SitePatchResource) UnmarshalJSON(body []byte) error { // SitePatchResourceProperties sitePatchResource resource specific properties type SitePatchResourceProperties struct { - // State - Current state of the app. + // State - READ-ONLY; Current state of the app. State *string `json:"state,omitempty"` - // HostNames - Hostnames associated with the app. + // HostNames - READ-ONLY; Hostnames associated with the app. HostNames *[]string `json:"hostNames,omitempty"` - // RepositorySiteName - Name of the repository site. + // RepositorySiteName - READ-ONLY; Name of the repository site. RepositorySiteName *string `json:"repositorySiteName,omitempty"` - // UsageState - State indicating whether the app has exceeded its quota usage. Read-only. Possible values include: 'UsageStateNormal', 'UsageStateExceeded' + // UsageState - READ-ONLY; State indicating whether the app has exceeded its quota usage. Read-only. Possible values include: 'UsageStateNormal', 'UsageStateExceeded' UsageState UsageState `json:"usageState,omitempty"` // Enabled - true if the app is enabled; otherwise, false. Setting this value to false disables the app (takes the app offline). Enabled *bool `json:"enabled,omitempty"` - // EnabledHostNames - Enabled hostnames for the app.Hostnames need to be assigned (see HostNames) AND enabled. Otherwise, + // EnabledHostNames - READ-ONLY; Enabled hostnames for the app.Hostnames need to be assigned (see HostNames) AND enabled. Otherwise, // the app is not served on those hostnames. EnabledHostNames *[]string `json:"enabledHostNames,omitempty"` - // AvailabilityState - Management information availability state for the app. Possible values include: 'Normal', 'Limited', 'DisasterRecoveryMode' + // AvailabilityState - READ-ONLY; Management information availability state for the app. Possible values include: 'Normal', 'Limited', 'DisasterRecoveryMode' AvailabilityState SiteAvailabilityState `json:"availabilityState,omitempty"` // HostNameSslStates - Hostname SSL states are used to manage the SSL bindings for app's hostnames. HostNameSslStates *[]HostNameSslState `json:"hostNameSslStates,omitempty"` @@ -19083,15 +18706,15 @@ type SitePatchResourceProperties struct { IsXenon *bool `json:"isXenon,omitempty"` // HyperV - Hyper-V sandbox. HyperV *bool `json:"hyperV,omitempty"` - // LastModifiedTimeUtc - Last time the app was modified, in UTC. Read-only. + // LastModifiedTimeUtc - READ-ONLY; Last time the app was modified, in UTC. Read-only. LastModifiedTimeUtc *date.Time `json:"lastModifiedTimeUtc,omitempty"` // SiteConfig - Configuration of the app. SiteConfig *SiteConfig `json:"siteConfig,omitempty"` - // TrafficManagerHostNames - Azure Traffic Manager hostnames associated with the app. Read-only. + // TrafficManagerHostNames - READ-ONLY; Azure Traffic Manager hostnames associated with the app. Read-only. TrafficManagerHostNames *[]string `json:"trafficManagerHostNames,omitempty"` // ScmSiteAlsoStopped - true to stop SCM (KUDU) site when the app is stopped; otherwise, false. The default is false. ScmSiteAlsoStopped *bool `json:"scmSiteAlsoStopped,omitempty"` - // TargetSwapSlot - Specifies which deployment slot this app will swap into. Read-only. + // TargetSwapSlot - READ-ONLY; Specifies which deployment slot this app will swap into. Read-only. TargetSwapSlot *string `json:"targetSwapSlot,omitempty"` // HostingEnvironmentProfile - App Service Environment to use for the app. HostingEnvironmentProfile *HostingEnvironmentProfile `json:"hostingEnvironmentProfile,omitempty"` @@ -19104,35 +18727,35 @@ type SitePatchResourceProperties struct { // HostNamesDisabled - true to disable the public hostnames of the app; otherwise, false. // If true, the app is only accessible via API management process. HostNamesDisabled *bool `json:"hostNamesDisabled,omitempty"` - // OutboundIPAddresses - List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from tenants that site can be hosted with current settings. Read-only. + // OutboundIPAddresses - READ-ONLY; List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from tenants that site can be hosted with current settings. Read-only. OutboundIPAddresses *string `json:"outboundIpAddresses,omitempty"` - // PossibleOutboundIPAddresses - List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from all tenants. Read-only. + // PossibleOutboundIPAddresses - READ-ONLY; List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from all tenants. Read-only. PossibleOutboundIPAddresses *string `json:"possibleOutboundIpAddresses,omitempty"` // ContainerSize - Size of the function container. ContainerSize *int32 `json:"containerSize,omitempty"` // DailyMemoryTimeQuota - Maximum allowed daily memory-time quota (applicable on dynamic apps only). DailyMemoryTimeQuota *int32 `json:"dailyMemoryTimeQuota,omitempty"` - // SuspendedTill - App suspended till in case memory-time quota is exceeded. + // SuspendedTill - READ-ONLY; App suspended till in case memory-time quota is exceeded. SuspendedTill *date.Time `json:"suspendedTill,omitempty"` - // MaxNumberOfWorkers - Maximum number of workers. + // MaxNumberOfWorkers - READ-ONLY; Maximum number of workers. // This only applies to Functions container. MaxNumberOfWorkers *int32 `json:"maxNumberOfWorkers,omitempty"` // CloningInfo - If specified during app creation, the app is cloned from a source app. CloningInfo *CloningInfo `json:"cloningInfo,omitempty"` - // ResourceGroup - Name of the resource group the app belongs to. Read-only. + // ResourceGroup - READ-ONLY; Name of the resource group the app belongs to. Read-only. ResourceGroup *string `json:"resourceGroup,omitempty"` - // IsDefaultContainer - true if the app is a default container; otherwise, false. + // IsDefaultContainer - READ-ONLY; true if the app is a default container; otherwise, false. IsDefaultContainer *bool `json:"isDefaultContainer,omitempty"` - // DefaultHostName - Default hostname of the app. Read-only. + // DefaultHostName - READ-ONLY; Default hostname of the app. Read-only. DefaultHostName *string `json:"defaultHostName,omitempty"` - // SlotSwapStatus - Status of the last deployment slot swap operation. + // SlotSwapStatus - READ-ONLY; Status of the last deployment slot swap operation. SlotSwapStatus *SlotSwapStatus `json:"slotSwapStatus,omitempty"` // HTTPSOnly - HttpsOnly: configures a web site to accept only https requests. Issues redirect for // http requests HTTPSOnly *bool `json:"httpsOnly,omitempty"` // RedundancyMode - Site redundancy mode. Possible values include: 'RedundancyModeNone', 'RedundancyModeManual', 'RedundancyModeFailover', 'RedundancyModeActiveActive', 'RedundancyModeGeoRedundant' RedundancyMode RedundancyMode `json:"redundancyMode,omitempty"` - // InProgressOperationID - Specifies an operation id if this site has a pending operation. + // InProgressOperationID - READ-ONLY; Specifies an operation id if this site has a pending operation. InProgressOperationID *uuid.UUID `json:"inProgressOperationId,omitempty"` // GeoDistributions - GeoDistributions for this site GeoDistributions *[]GeoDistribution `json:"geoDistributions,omitempty"` @@ -19143,13 +18766,13 @@ type SitePhpErrorLogFlag struct { autorest.Response `json:"-"` // SitePhpErrorLogFlagProperties - SitePhpErrorLogFlag resource specific properties *SitePhpErrorLogFlagProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -19159,18 +18782,9 @@ func (spelf SitePhpErrorLogFlag) MarshalJSON() ([]byte, error) { if spelf.SitePhpErrorLogFlagProperties != nil { objectMap["properties"] = spelf.SitePhpErrorLogFlagProperties } - if spelf.ID != nil { - objectMap["id"] = spelf.ID - } - if spelf.Name != nil { - objectMap["name"] = spelf.Name - } if spelf.Kind != nil { objectMap["kind"] = spelf.Kind } - if spelf.Type != nil { - objectMap["type"] = spelf.Type - } return json.Marshal(objectMap) } @@ -19248,20 +18862,20 @@ type SitePhpErrorLogFlagProperties struct { // SiteProperties site resource specific properties type SiteProperties struct { - // State - Current state of the app. + // State - READ-ONLY; Current state of the app. State *string `json:"state,omitempty"` - // HostNames - Hostnames associated with the app. + // HostNames - READ-ONLY; Hostnames associated with the app. HostNames *[]string `json:"hostNames,omitempty"` - // RepositorySiteName - Name of the repository site. + // RepositorySiteName - READ-ONLY; Name of the repository site. RepositorySiteName *string `json:"repositorySiteName,omitempty"` - // UsageState - State indicating whether the app has exceeded its quota usage. Read-only. Possible values include: 'UsageStateNormal', 'UsageStateExceeded' + // UsageState - READ-ONLY; State indicating whether the app has exceeded its quota usage. Read-only. Possible values include: 'UsageStateNormal', 'UsageStateExceeded' UsageState UsageState `json:"usageState,omitempty"` // Enabled - true if the app is enabled; otherwise, false. Setting this value to false disables the app (takes the app offline). Enabled *bool `json:"enabled,omitempty"` - // EnabledHostNames - Enabled hostnames for the app.Hostnames need to be assigned (see HostNames) AND enabled. Otherwise, + // EnabledHostNames - READ-ONLY; Enabled hostnames for the app.Hostnames need to be assigned (see HostNames) AND enabled. Otherwise, // the app is not served on those hostnames. EnabledHostNames *[]string `json:"enabledHostNames,omitempty"` - // AvailabilityState - Management information availability state for the app. Possible values include: 'Normal', 'Limited', 'DisasterRecoveryMode' + // AvailabilityState - READ-ONLY; Management information availability state for the app. Possible values include: 'Normal', 'Limited', 'DisasterRecoveryMode' AvailabilityState SiteAvailabilityState `json:"availabilityState,omitempty"` // HostNameSslStates - Hostname SSL states are used to manage the SSL bindings for app's hostnames. HostNameSslStates *[]HostNameSslState `json:"hostNameSslStates,omitempty"` @@ -19273,15 +18887,15 @@ type SiteProperties struct { IsXenon *bool `json:"isXenon,omitempty"` // HyperV - Hyper-V sandbox. HyperV *bool `json:"hyperV,omitempty"` - // LastModifiedTimeUtc - Last time the app was modified, in UTC. Read-only. + // LastModifiedTimeUtc - READ-ONLY; Last time the app was modified, in UTC. Read-only. LastModifiedTimeUtc *date.Time `json:"lastModifiedTimeUtc,omitempty"` // SiteConfig - Configuration of the app. SiteConfig *SiteConfig `json:"siteConfig,omitempty"` - // TrafficManagerHostNames - Azure Traffic Manager hostnames associated with the app. Read-only. + // TrafficManagerHostNames - READ-ONLY; Azure Traffic Manager hostnames associated with the app. Read-only. TrafficManagerHostNames *[]string `json:"trafficManagerHostNames,omitempty"` // ScmSiteAlsoStopped - true to stop SCM (KUDU) site when the app is stopped; otherwise, false. The default is false. ScmSiteAlsoStopped *bool `json:"scmSiteAlsoStopped,omitempty"` - // TargetSwapSlot - Specifies which deployment slot this app will swap into. Read-only. + // TargetSwapSlot - READ-ONLY; Specifies which deployment slot this app will swap into. Read-only. TargetSwapSlot *string `json:"targetSwapSlot,omitempty"` // HostingEnvironmentProfile - App Service Environment to use for the app. HostingEnvironmentProfile *HostingEnvironmentProfile `json:"hostingEnvironmentProfile,omitempty"` @@ -19294,35 +18908,35 @@ type SiteProperties struct { // HostNamesDisabled - true to disable the public hostnames of the app; otherwise, false. // If true, the app is only accessible via API management process. HostNamesDisabled *bool `json:"hostNamesDisabled,omitempty"` - // OutboundIPAddresses - List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from tenants that site can be hosted with current settings. Read-only. + // OutboundIPAddresses - READ-ONLY; List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from tenants that site can be hosted with current settings. Read-only. OutboundIPAddresses *string `json:"outboundIpAddresses,omitempty"` - // PossibleOutboundIPAddresses - List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from all tenants. Read-only. + // PossibleOutboundIPAddresses - READ-ONLY; List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from all tenants. Read-only. PossibleOutboundIPAddresses *string `json:"possibleOutboundIpAddresses,omitempty"` // ContainerSize - Size of the function container. ContainerSize *int32 `json:"containerSize,omitempty"` // DailyMemoryTimeQuota - Maximum allowed daily memory-time quota (applicable on dynamic apps only). DailyMemoryTimeQuota *int32 `json:"dailyMemoryTimeQuota,omitempty"` - // SuspendedTill - App suspended till in case memory-time quota is exceeded. + // SuspendedTill - READ-ONLY; App suspended till in case memory-time quota is exceeded. SuspendedTill *date.Time `json:"suspendedTill,omitempty"` - // MaxNumberOfWorkers - Maximum number of workers. + // MaxNumberOfWorkers - READ-ONLY; Maximum number of workers. // This only applies to Functions container. MaxNumberOfWorkers *int32 `json:"maxNumberOfWorkers,omitempty"` // CloningInfo - If specified during app creation, the app is cloned from a source app. CloningInfo *CloningInfo `json:"cloningInfo,omitempty"` - // ResourceGroup - Name of the resource group the app belongs to. Read-only. + // ResourceGroup - READ-ONLY; Name of the resource group the app belongs to. Read-only. ResourceGroup *string `json:"resourceGroup,omitempty"` - // IsDefaultContainer - true if the app is a default container; otherwise, false. + // IsDefaultContainer - READ-ONLY; true if the app is a default container; otherwise, false. IsDefaultContainer *bool `json:"isDefaultContainer,omitempty"` - // DefaultHostName - Default hostname of the app. Read-only. + // DefaultHostName - READ-ONLY; Default hostname of the app. Read-only. DefaultHostName *string `json:"defaultHostName,omitempty"` - // SlotSwapStatus - Status of the last deployment slot swap operation. + // SlotSwapStatus - READ-ONLY; Status of the last deployment slot swap operation. SlotSwapStatus *SlotSwapStatus `json:"slotSwapStatus,omitempty"` // HTTPSOnly - HttpsOnly: configures a web site to accept only https requests. Issues redirect for // http requests HTTPSOnly *bool `json:"httpsOnly,omitempty"` // RedundancyMode - Site redundancy mode. Possible values include: 'RedundancyModeNone', 'RedundancyModeManual', 'RedundancyModeFailover', 'RedundancyModeActiveActive', 'RedundancyModeGeoRedundant' RedundancyMode RedundancyMode `json:"redundancyMode,omitempty"` - // InProgressOperationID - Specifies an operation id if this site has a pending operation. + // InProgressOperationID - READ-ONLY; Specifies an operation id if this site has a pending operation. InProgressOperationID *uuid.UUID `json:"inProgressOperationId,omitempty"` // GeoDistributions - GeoDistributions for this site GeoDistributions *[]GeoDistribution `json:"geoDistributions,omitempty"` @@ -19348,13 +18962,13 @@ type SiteSourceControl struct { autorest.Response `json:"-"` // SiteSourceControlProperties - SiteSourceControl resource specific properties *SiteSourceControlProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -19364,18 +18978,9 @@ func (ssc SiteSourceControl) MarshalJSON() ([]byte, error) { if ssc.SiteSourceControlProperties != nil { objectMap["properties"] = ssc.SiteSourceControlProperties } - if ssc.ID != nil { - objectMap["id"] = ssc.ID - } - if ssc.Name != nil { - objectMap["name"] = ssc.Name - } if ssc.Kind != nil { objectMap["kind"] = ssc.Kind } - if ssc.Type != nil { - objectMap["type"] = ssc.Type - } return json.Marshal(objectMap) } @@ -19500,7 +19105,7 @@ type SkuInfoCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]SkuInfo `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -19668,13 +19273,13 @@ type SlotConfigNamesResource struct { autorest.Response `json:"-"` // SlotConfigNames - Core resource properties *SlotConfigNames `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -19684,18 +19289,9 @@ func (scnr SlotConfigNamesResource) MarshalJSON() ([]byte, error) { if scnr.SlotConfigNames != nil { objectMap["properties"] = scnr.SlotConfigNames } - if scnr.ID != nil { - objectMap["id"] = scnr.ID - } - if scnr.Name != nil { - objectMap["name"] = scnr.Name - } if scnr.Kind != nil { objectMap["kind"] = scnr.Kind } - if scnr.Type != nil { - objectMap["type"] = scnr.Type - } return json.Marshal(objectMap) } @@ -19763,13 +19359,13 @@ func (scnr *SlotConfigNamesResource) UnmarshalJSON(body []byte) error { type SlotDifference struct { // SlotDifferenceProperties - SlotDifference resource specific properties *SlotDifferenceProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -19779,18 +19375,9 @@ func (sd SlotDifference) MarshalJSON() ([]byte, error) { if sd.SlotDifferenceProperties != nil { objectMap["properties"] = sd.SlotDifferenceProperties } - if sd.ID != nil { - objectMap["id"] = sd.ID - } - if sd.Name != nil { - objectMap["name"] = sd.Name - } if sd.Kind != nil { objectMap["kind"] = sd.Kind } - if sd.Type != nil { - objectMap["type"] = sd.Type - } return json.Marshal(objectMap) } @@ -19859,7 +19446,7 @@ type SlotDifferenceCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]SlotDifference `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -20002,29 +19589,29 @@ func NewSlotDifferenceCollectionPage(getNextPage func(context.Context, SlotDiffe // SlotDifferenceProperties slotDifference resource specific properties type SlotDifferenceProperties struct { - // Level - Level of the difference: Information, Warning or Error. + // Level - READ-ONLY; Level of the difference: Information, Warning or Error. Level *string `json:"level,omitempty"` - // SettingType - The type of the setting: General, AppSetting or ConnectionString. + // SettingType - READ-ONLY; The type of the setting: General, AppSetting or ConnectionString. SettingType *string `json:"settingType,omitempty"` - // DiffRule - Rule that describes how to process the setting difference during a slot swap. + // DiffRule - READ-ONLY; Rule that describes how to process the setting difference during a slot swap. DiffRule *string `json:"diffRule,omitempty"` - // SettingName - Name of the setting. + // SettingName - READ-ONLY; Name of the setting. SettingName *string `json:"settingName,omitempty"` - // ValueInCurrentSlot - Value of the setting in the current slot. + // ValueInCurrentSlot - READ-ONLY; Value of the setting in the current slot. ValueInCurrentSlot *string `json:"valueInCurrentSlot,omitempty"` - // ValueInTargetSlot - Value of the setting in the target slot. + // ValueInTargetSlot - READ-ONLY; Value of the setting in the target slot. ValueInTargetSlot *string `json:"valueInTargetSlot,omitempty"` - // Description - Description of the setting difference. + // Description - READ-ONLY; Description of the setting difference. Description *string `json:"description,omitempty"` } // SlotSwapStatus the status of the last successful slot swap operation. type SlotSwapStatus struct { - // TimestampUtc - The time the last successful slot swap completed. + // TimestampUtc - READ-ONLY; The time the last successful slot swap completed. TimestampUtc *date.Time `json:"timestampUtc,omitempty"` - // SourceSlotName - The source slot of the last swap operation. + // SourceSlotName - READ-ONLY; The source slot of the last swap operation. SourceSlotName *string `json:"sourceSlotName,omitempty"` - // DestinationSlotName - The destination slot of the last swap operation. + // DestinationSlotName - READ-ONLY; The destination slot of the last swap operation. DestinationSlotName *string `json:"destinationSlotName,omitempty"` } @@ -20042,13 +19629,13 @@ type SlowRequestsBasedTrigger struct { type Snapshot struct { // SnapshotProperties - Snapshot resource specific properties *SnapshotProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -20058,18 +19645,9 @@ func (s Snapshot) MarshalJSON() ([]byte, error) { if s.SnapshotProperties != nil { objectMap["properties"] = s.SnapshotProperties } - if s.ID != nil { - objectMap["id"] = s.ID - } - if s.Name != nil { - objectMap["name"] = s.Name - } if s.Kind != nil { objectMap["kind"] = s.Kind } - if s.Type != nil { - objectMap["type"] = s.Type - } return json.Marshal(objectMap) } @@ -20138,7 +19716,7 @@ type SnapshotCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]Snapshot `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -20281,7 +19859,7 @@ func NewSnapshotCollectionPage(getNextPage func(context.Context, SnapshotCollect // SnapshotProperties snapshot resource specific properties type SnapshotProperties struct { - // Time - The time the snapshot was taken. + // Time - READ-ONLY; The time the snapshot was taken. Time *string `json:"time,omitempty"` } @@ -20299,13 +19877,13 @@ type SnapshotRecoverySource struct { type SnapshotRestoreRequest struct { // SnapshotRestoreRequestProperties - SnapshotRestoreRequest resource specific properties *SnapshotRestoreRequestProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -20315,18 +19893,9 @@ func (srr SnapshotRestoreRequest) MarshalJSON() ([]byte, error) { if srr.SnapshotRestoreRequestProperties != nil { objectMap["properties"] = srr.SnapshotRestoreRequestProperties } - if srr.ID != nil { - objectMap["id"] = srr.ID - } - if srr.Name != nil { - objectMap["name"] = srr.Name - } if srr.Kind != nil { objectMap["kind"] = srr.Kind } - if srr.Type != nil { - objectMap["type"] = srr.Type - } return json.Marshal(objectMap) } @@ -20431,13 +20000,13 @@ type SourceControl struct { autorest.Response `json:"-"` // SourceControlProperties - SourceControl resource specific properties *SourceControlProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -20447,18 +20016,9 @@ func (sc SourceControl) MarshalJSON() ([]byte, error) { if sc.SourceControlProperties != nil { objectMap["properties"] = sc.SourceControlProperties } - if sc.ID != nil { - objectMap["id"] = sc.ID - } - if sc.Name != nil { - objectMap["name"] = sc.Name - } if sc.Kind != nil { objectMap["kind"] = sc.Kind } - if sc.Type != nil { - objectMap["type"] = sc.Type - } return json.Marshal(objectMap) } @@ -20527,7 +20087,7 @@ type SourceControlCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]SourceControl `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -20741,7 +20301,7 @@ type StampCapacityCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]StampCapacity `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -20900,13 +20460,13 @@ type StatusCodesBasedTrigger struct { type StorageMigrationOptions struct { // StorageMigrationOptionsProperties - StorageMigrationOptions resource specific properties *StorageMigrationOptionsProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -20916,18 +20476,9 @@ func (smo StorageMigrationOptions) MarshalJSON() ([]byte, error) { if smo.StorageMigrationOptionsProperties != nil { objectMap["properties"] = smo.StorageMigrationOptionsProperties } - if smo.ID != nil { - objectMap["id"] = smo.ID - } - if smo.Name != nil { - objectMap["name"] = smo.Name - } if smo.Kind != nil { objectMap["kind"] = smo.Kind } - if smo.Type != nil { - objectMap["type"] = smo.Type - } return json.Marshal(objectMap) } @@ -21008,13 +20559,13 @@ type StorageMigrationResponse struct { autorest.Response `json:"-"` // StorageMigrationResponseProperties - StorageMigrationResponse resource specific properties *StorageMigrationResponseProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -21024,18 +20575,9 @@ func (smr StorageMigrationResponse) MarshalJSON() ([]byte, error) { if smr.StorageMigrationResponseProperties != nil { objectMap["properties"] = smr.StorageMigrationResponseProperties } - if smr.ID != nil { - objectMap["id"] = smr.ID - } - if smr.Name != nil { - objectMap["name"] = smr.Name - } if smr.Kind != nil { objectMap["kind"] = smr.Kind } - if smr.Type != nil { - objectMap["type"] = smr.Type - } return json.Marshal(objectMap) } @@ -21101,7 +20643,7 @@ func (smr *StorageMigrationResponse) UnmarshalJSON(body []byte) error { // StorageMigrationResponseProperties storageMigrationResponse resource specific properties type StorageMigrationResponseProperties struct { - // OperationID - When server starts the migration process, it will return an operation ID identifying that particular migration operation. + // OperationID - READ-ONLY; When server starts the migration process, it will return an operation ID identifying that particular migration operation. OperationID *string `json:"operationId,omitempty"` } @@ -21116,13 +20658,13 @@ type StringDictionary struct { autorest.Response `json:"-"` // Properties - Settings. Properties map[string]*string `json:"properties"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -21132,18 +20674,9 @@ func (sd StringDictionary) MarshalJSON() ([]byte, error) { if sd.Properties != nil { objectMap["properties"] = sd.Properties } - if sd.ID != nil { - objectMap["id"] = sd.ID - } - if sd.Name != nil { - objectMap["name"] = sd.Name - } if sd.Kind != nil { objectMap["kind"] = sd.Kind } - if sd.Type != nil { - objectMap["type"] = sd.Type - } return json.Marshal(objectMap) } @@ -21153,13 +20686,13 @@ type SwiftVirtualNetwork struct { autorest.Response `json:"-"` // SwiftVirtualNetworkProperties - SwiftVirtualNetwork resource specific properties *SwiftVirtualNetworkProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -21169,18 +20702,9 @@ func (svn SwiftVirtualNetwork) MarshalJSON() ([]byte, error) { if svn.SwiftVirtualNetworkProperties != nil { objectMap["properties"] = svn.SwiftVirtualNetworkProperties } - if svn.ID != nil { - objectMap["id"] = svn.ID - } - if svn.Name != nil { - objectMap["name"] = svn.Name - } if svn.Kind != nil { objectMap["kind"] = svn.Kind } - if svn.Type != nil { - objectMap["type"] = svn.Type - } return json.Marshal(objectMap) } @@ -21269,7 +20793,7 @@ type TldLegalAgreementCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]TldLegalAgreement `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -21415,13 +20939,13 @@ type TopLevelDomain struct { autorest.Response `json:"-"` // TopLevelDomainProperties - TopLevelDomain resource specific properties *TopLevelDomainProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -21431,18 +20955,9 @@ func (tld TopLevelDomain) MarshalJSON() ([]byte, error) { if tld.TopLevelDomainProperties != nil { objectMap["properties"] = tld.TopLevelDomainProperties } - if tld.ID != nil { - objectMap["id"] = tld.ID - } - if tld.Name != nil { - objectMap["name"] = tld.Name - } if tld.Kind != nil { objectMap["kind"] = tld.Kind } - if tld.Type != nil { - objectMap["type"] = tld.Type - } return json.Marshal(objectMap) } @@ -21519,7 +21034,7 @@ type TopLevelDomainCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]TopLevelDomain `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -21671,13 +21186,13 @@ type TriggeredJobHistory struct { autorest.Response `json:"-"` // TriggeredJobHistoryProperties - TriggeredJobHistory resource specific properties *TriggeredJobHistoryProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -21687,18 +21202,9 @@ func (tjh TriggeredJobHistory) MarshalJSON() ([]byte, error) { if tjh.TriggeredJobHistoryProperties != nil { objectMap["properties"] = tjh.TriggeredJobHistoryProperties } - if tjh.ID != nil { - objectMap["id"] = tjh.ID - } - if tjh.Name != nil { - objectMap["name"] = tjh.Name - } if tjh.Kind != nil { objectMap["kind"] = tjh.Kind } - if tjh.Type != nil { - objectMap["type"] = tjh.Type - } return json.Marshal(objectMap) } @@ -21767,7 +21273,7 @@ type TriggeredJobHistoryCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]TriggeredJobHistory `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -21919,13 +21425,13 @@ type TriggeredJobHistoryProperties struct { type TriggeredJobRun struct { // TriggeredJobRunProperties - TriggeredJobRun resource specific properties *TriggeredJobRunProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -21935,18 +21441,9 @@ func (tjr TriggeredJobRun) MarshalJSON() ([]byte, error) { if tjr.TriggeredJobRunProperties != nil { objectMap["properties"] = tjr.TriggeredJobRunProperties } - if tjr.ID != nil { - objectMap["id"] = tjr.ID - } - if tjr.Name != nil { - objectMap["name"] = tjr.Name - } if tjr.Kind != nil { objectMap["kind"] = tjr.Kind } - if tjr.Type != nil { - objectMap["type"] = tjr.Type - } return json.Marshal(objectMap) } @@ -22041,13 +21538,13 @@ type TriggeredWebJob struct { autorest.Response `json:"-"` // TriggeredWebJobProperties - TriggeredWebJob resource specific properties *TriggeredWebJobProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -22057,18 +21554,9 @@ func (twj TriggeredWebJob) MarshalJSON() ([]byte, error) { if twj.TriggeredWebJobProperties != nil { objectMap["properties"] = twj.TriggeredWebJobProperties } - if twj.ID != nil { - objectMap["id"] = twj.ID - } - if twj.Name != nil { - objectMap["name"] = twj.Name - } if twj.Kind != nil { objectMap["kind"] = twj.Kind } - if twj.Type != nil { - objectMap["type"] = twj.Type - } return json.Marshal(objectMap) } @@ -22137,7 +21625,7 @@ type TriggeredWebJobCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]TriggeredWebJob `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -22342,13 +21830,13 @@ func (twj TriggeredWebJobProperties) MarshalJSON() ([]byte, error) { type Usage struct { // UsageProperties - Usage resource specific properties *UsageProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -22358,18 +21846,9 @@ func (u Usage) MarshalJSON() ([]byte, error) { if u.UsageProperties != nil { objectMap["properties"] = u.UsageProperties } - if u.ID != nil { - objectMap["id"] = u.ID - } - if u.Name != nil { - objectMap["name"] = u.Name - } if u.Kind != nil { objectMap["kind"] = u.Kind } - if u.Type != nil { - objectMap["type"] = u.Type - } return json.Marshal(objectMap) } @@ -22438,7 +21917,7 @@ type UsageCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]Usage `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -22581,21 +22060,21 @@ func NewUsageCollectionPage(getNextPage func(context.Context, UsageCollection) ( // UsageProperties usage resource specific properties type UsageProperties struct { - // DisplayName - Friendly name shown in the UI. + // DisplayName - READ-ONLY; Friendly name shown in the UI. DisplayName *string `json:"displayName,omitempty"` - // ResourceName - Name of the quota resource. + // ResourceName - READ-ONLY; Name of the quota resource. ResourceName *string `json:"resourceName,omitempty"` - // Unit - Units of measurement for the quota resource. + // Unit - READ-ONLY; Units of measurement for the quota resource. Unit *string `json:"unit,omitempty"` - // CurrentValue - The current value of the resource counter. + // CurrentValue - READ-ONLY; The current value of the resource counter. CurrentValue *int64 `json:"currentValue,omitempty"` - // Limit - The resource limit. + // Limit - READ-ONLY; The resource limit. Limit *int64 `json:"limit,omitempty"` - // NextResetTime - Next reset time for the resource counter. + // NextResetTime - READ-ONLY; Next reset time for the resource counter. NextResetTime *date.Time `json:"nextResetTime,omitempty"` - // ComputeMode - Compute mode used for this usage. Possible values include: 'ComputeModeOptionsShared', 'ComputeModeOptionsDedicated', 'ComputeModeOptionsDynamic' + // ComputeMode - READ-ONLY; Compute mode used for this usage. Possible values include: 'ComputeModeOptionsShared', 'ComputeModeOptionsDedicated', 'ComputeModeOptionsDynamic' ComputeMode ComputeModeOptions `json:"computeMode,omitempty"` - // SiteMode - Site mode used for this usage. + // SiteMode - READ-ONLY; Site mode used for this usage. SiteMode *string `json:"siteMode,omitempty"` } @@ -22604,13 +22083,13 @@ type User struct { autorest.Response `json:"-"` // UserProperties - User resource specific properties *UserProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -22620,18 +22099,9 @@ func (u User) MarshalJSON() ([]byte, error) { if u.UserProperties != nil { objectMap["properties"] = u.UserProperties } - if u.ID != nil { - objectMap["id"] = u.ID - } - if u.Name != nil { - objectMap["name"] = u.Name - } if u.Kind != nil { objectMap["kind"] = u.Kind } - if u.Type != nil { - objectMap["type"] = u.Type - } return json.Marshal(objectMap) } @@ -22877,9 +22347,9 @@ type VirtualIPMapping struct { type VirtualNetworkProfile struct { // ID - Resource id of the Virtual Network. ID *string `json:"id,omitempty"` - // Name - Name of the Virtual Network (read-only). + // Name - READ-ONLY; Name of the Virtual Network (read-only). Name *string `json:"name,omitempty"` - // Type - Resource type of the Virtual Network (read-only). + // Type - READ-ONLY; Resource type of the Virtual Network (read-only). Type *string `json:"type,omitempty"` // Subnet - Subnet within the Virtual Network. Subnet *string `json:"subnet,omitempty"` @@ -22891,13 +22361,13 @@ type VnetGateway struct { autorest.Response `json:"-"` // VnetGatewayProperties - VnetGateway resource specific properties *VnetGatewayProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -22907,18 +22377,9 @@ func (vg VnetGateway) MarshalJSON() ([]byte, error) { if vg.VnetGatewayProperties != nil { objectMap["properties"] = vg.VnetGatewayProperties } - if vg.ID != nil { - objectMap["id"] = vg.ID - } - if vg.Name != nil { - objectMap["name"] = vg.Name - } if vg.Kind != nil { objectMap["kind"] = vg.Kind } - if vg.Type != nil { - objectMap["type"] = vg.Type - } return json.Marshal(objectMap) } @@ -22995,13 +22456,13 @@ type VnetInfo struct { autorest.Response `json:"-"` // VnetInfoProperties - VnetInfo resource specific properties *VnetInfoProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -23011,18 +22472,9 @@ func (vi VnetInfo) MarshalJSON() ([]byte, error) { if vi.VnetInfoProperties != nil { objectMap["properties"] = vi.VnetInfoProperties } - if vi.ID != nil { - objectMap["id"] = vi.ID - } - if vi.Name != nil { - objectMap["name"] = vi.Name - } if vi.Kind != nil { objectMap["kind"] = vi.Kind } - if vi.Type != nil { - objectMap["type"] = vi.Type - } return json.Marshal(objectMap) } @@ -23090,14 +22542,14 @@ func (vi *VnetInfo) UnmarshalJSON(body []byte) error { type VnetInfoProperties struct { // VnetResourceID - The Virtual Network's resource ID. VnetResourceID *string `json:"vnetResourceId,omitempty"` - // CertThumbprint - The client certificate thumbprint. + // CertThumbprint - READ-ONLY; The client certificate thumbprint. CertThumbprint *string `json:"certThumbprint,omitempty"` // CertBlob - A certificate file (.cer) blob containing the public key of the private key used to authenticate a // Point-To-Site VPN connection. - CertBlob *[]byte `json:"certBlob,omitempty"` - // Routes - The routes that this Virtual Network connection uses. + CertBlob *string `json:"certBlob,omitempty"` + // Routes - READ-ONLY; The routes that this Virtual Network connection uses. Routes *[]VnetRoute `json:"routes,omitempty"` - // ResyncRequired - true if a resync is required; otherwise, false. + // ResyncRequired - READ-ONLY; true if a resync is required; otherwise, false. ResyncRequired *bool `json:"resyncRequired,omitempty"` // DNSServers - DNS servers to be used by this Virtual Network. This should be a comma-separated list of IP addresses. DNSServers *string `json:"dnsServers,omitempty"` @@ -23109,13 +22561,13 @@ type VnetInfoProperties struct { type VnetParameters struct { // VnetParametersProperties - VnetParameters resource specific properties *VnetParametersProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -23125,18 +22577,9 @@ func (vp VnetParameters) MarshalJSON() ([]byte, error) { if vp.VnetParametersProperties != nil { objectMap["properties"] = vp.VnetParametersProperties } - if vp.ID != nil { - objectMap["id"] = vp.ID - } - if vp.Name != nil { - objectMap["name"] = vp.Name - } if vp.Kind != nil { objectMap["kind"] = vp.Kind } - if vp.Type != nil { - objectMap["type"] = vp.Type - } return json.Marshal(objectMap) } @@ -23215,13 +22658,13 @@ type VnetRoute struct { autorest.Response `json:"-"` // VnetRouteProperties - VnetRoute resource specific properties *VnetRouteProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -23231,18 +22674,9 @@ func (vr VnetRoute) MarshalJSON() ([]byte, error) { if vr.VnetRouteProperties != nil { objectMap["properties"] = vr.VnetRouteProperties } - if vr.ID != nil { - objectMap["id"] = vr.ID - } - if vr.Name != nil { - objectMap["name"] = vr.Name - } if vr.Kind != nil { objectMap["kind"] = vr.Kind } - if vr.Type != nil { - objectMap["type"] = vr.Type - } return json.Marshal(objectMap) } @@ -23325,13 +22759,13 @@ type VnetValidationFailureDetails struct { autorest.Response `json:"-"` // VnetValidationFailureDetailsProperties - VnetValidationFailureDetails resource specific properties *VnetValidationFailureDetailsProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -23341,18 +22775,9 @@ func (vvfd VnetValidationFailureDetails) MarshalJSON() ([]byte, error) { if vvfd.VnetValidationFailureDetailsProperties != nil { objectMap["properties"] = vvfd.VnetValidationFailureDetailsProperties } - if vvfd.ID != nil { - objectMap["id"] = vvfd.ID - } - if vvfd.Name != nil { - objectMap["name"] = vvfd.Name - } if vvfd.Kind != nil { objectMap["kind"] = vvfd.Kind } - if vvfd.Type != nil { - objectMap["type"] = vvfd.Type - } return json.Marshal(objectMap) } @@ -23428,13 +22853,13 @@ type VnetValidationFailureDetailsProperties struct { type VnetValidationTestFailure struct { // VnetValidationTestFailureProperties - VnetValidationTestFailure resource specific properties *VnetValidationTestFailureProperties `json:"properties,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -23444,18 +22869,9 @@ func (vvtf VnetValidationTestFailure) MarshalJSON() ([]byte, error) { if vvtf.VnetValidationTestFailureProperties != nil { objectMap["properties"] = vvtf.VnetValidationTestFailureProperties } - if vvtf.ID != nil { - objectMap["id"] = vvtf.ID - } - if vvtf.Name != nil { - objectMap["name"] = vvtf.Name - } if vvtf.Kind != nil { objectMap["kind"] = vvtf.Kind } - if vvtf.Type != nil { - objectMap["type"] = vvtf.Type - } return json.Marshal(objectMap) } @@ -23537,7 +22953,7 @@ type WorkerPool struct { WorkerSize *string `json:"workerSize,omitempty"` // WorkerCount - Number of instances in the worker pool. WorkerCount *int32 `json:"workerCount,omitempty"` - // InstanceNames - Names of all instances in the worker pool (read only). + // InstanceNames - READ-ONLY; Names of all instances in the worker pool (read only). InstanceNames *[]string `json:"instanceNames,omitempty"` } @@ -23546,7 +22962,7 @@ type WorkerPoolCollection struct { autorest.Response `json:"-"` // Value - Collection of resources. Value *[]WorkerPoolResource `json:"value,omitempty"` - // NextLink - Link to next page of resources. + // NextLink - READ-ONLY; Link to next page of resources. NextLink *string `json:"nextLink,omitempty"` } @@ -23693,13 +23109,13 @@ type WorkerPoolResource struct { // WorkerPool - Core resource properties *WorkerPool `json:"properties,omitempty"` Sku *SkuDescription `json:"sku,omitempty"` - // ID - Resource Id. + // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` - // Name - Resource Name. + // Name - READ-ONLY; Resource Name. Name *string `json:"name,omitempty"` // Kind - Kind of resource. Kind *string `json:"kind,omitempty"` - // Type - Resource type. + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -23712,18 +23128,9 @@ func (wpr WorkerPoolResource) MarshalJSON() ([]byte, error) { if wpr.Sku != nil { objectMap["sku"] = wpr.Sku } - if wpr.ID != nil { - objectMap["id"] = wpr.ID - } - if wpr.Name != nil { - objectMap["name"] = wpr.Name - } if wpr.Kind != nil { objectMap["kind"] = wpr.Kind } - if wpr.Type != nil { - objectMap["type"] = wpr.Type - } return json.Marshal(objectMap) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/storage/entity.go b/vendor/github.com/Azure/azure-sdk-for-go/storage/entity.go index fbbcb93bacae..38525352713a 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/storage/entity.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/storage/entity.go @@ -27,7 +27,7 @@ import ( "strings" "time" - "github.com/satori/go.uuid" + uuid "github.com/satori/go.uuid" ) // Annotating as secure for gas scanning @@ -257,6 +257,9 @@ func (e *Entity) MarshalJSON() ([]byte, error) { case int64: completeMap[typeKey] = OdataInt64 completeMap[k] = fmt.Sprintf("%v", v) + case float32, float64: + completeMap[typeKey] = OdataDouble + completeMap[k] = fmt.Sprintf("%v", v) default: completeMap[k] = v } @@ -264,7 +267,8 @@ func (e *Entity) MarshalJSON() ([]byte, error) { if !(completeMap[k] == OdataBinary || completeMap[k] == OdataDateTime || completeMap[k] == OdataGUID || - completeMap[k] == OdataInt64) { + completeMap[k] == OdataInt64 || + completeMap[k] == OdataDouble) { return nil, fmt.Errorf("Odata.type annotation %v value is not valid", k) } valueKey := strings.TrimSuffix(k, OdataTypeSuffix) @@ -339,6 +343,12 @@ func (e *Entity) UnmarshalJSON(data []byte) error { return fmt.Errorf(errorTemplate, err) } props[valueKey] = i + case OdataDouble: + f, err := strconv.ParseFloat(str, 64) + if err != nil { + return fmt.Errorf(errorTemplate, err) + } + props[valueKey] = f default: return fmt.Errorf(errorTemplate, fmt.Sprintf("%v is not supported", v)) } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/storage/odata.go b/vendor/github.com/Azure/azure-sdk-for-go/storage/odata.go index 800adf129dcc..0690e85ad9b7 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/storage/odata.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/storage/odata.go @@ -26,6 +26,7 @@ const ( OdataBinary = "Edm.Binary" OdataDateTime = "Edm.DateTime" + OdataDouble = "Edm.Double" OdataGUID = "Edm.Guid" OdataInt64 = "Edm.Int64" diff --git a/vendor/github.com/Azure/azure-sdk-for-go/storage/table_batch.go b/vendor/github.com/Azure/azure-sdk-for-go/storage/table_batch.go index a2159e2966e3..5b05e3e2afa5 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/storage/table_batch.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/storage/table_batch.go @@ -25,8 +25,6 @@ import ( "net/textproto" "sort" "strings" - - "github.com/marstr/guid" ) // Operation type. Insert, Delete, Replace etc. @@ -132,8 +130,7 @@ func (t *TableBatch) MergeEntity(entity *Entity) { // As per document https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/performing-entity-group-transactions func (t *TableBatch) ExecuteBatch() error { - // Using `github.com/marstr/guid` is in response to issue #947 (https://github.com/Azure/azure-sdk-for-go/issues/947). - id, err := guid.NewGUIDs(guid.CreationStrategyVersion1) + id, err := newUUID() if err != nil { return err } @@ -145,7 +142,7 @@ func (t *TableBatch) ExecuteBatch() error { return err } - id, err = guid.NewGUIDs(guid.CreationStrategyVersion1) + id, err = newUUID() if err != nil { return err } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/storage/util.go b/vendor/github.com/Azure/azure-sdk-for-go/storage/util.go index e8a5dcf8caf1..677394790df5 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/storage/util.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/storage/util.go @@ -17,6 +17,7 @@ package storage import ( "bytes" "crypto/hmac" + "crypto/rand" "crypto/sha256" "encoding/base64" "encoding/xml" @@ -29,6 +30,8 @@ import ( "strconv" "strings" "time" + + uuid "github.com/satori/go.uuid" ) var ( @@ -242,3 +245,16 @@ func getMetadataFromHeaders(header http.Header) map[string]string { return metadata } + +// newUUID returns a new uuid using RFC 4122 algorithm. +func newUUID() (uuid.UUID, error) { + u := [16]byte{} + // Set all bits to randomly (or pseudo-randomly) chosen values. + _, err := rand.Read(u[:]) + if err != nil { + return uuid.UUID{}, err + } + u[8] = (u[8]&(0xff>>2) | (0x02 << 6)) // u.setVariant(ReservedRFC4122) + u[6] = (u[6] & 0xF) | (uuid.V4 << 4) // u.setVersion(V4) + return uuid.FromBytes(u[:]) +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/version/version.go b/vendor/github.com/Azure/azure-sdk-for-go/version/version.go index ef2a0a892054..2f58cd8cfd72 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/version/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/version/version.go @@ -18,4 +18,4 @@ package version // Changes may cause incorrect behavior and will be lost if the code is regenerated. // Number contains the semantic version of this SDK. -const Number = "v26.7.0" +const Number = "v29.0.0" diff --git a/vendor/github.com/marstr/guid/.travis.yml b/vendor/github.com/marstr/guid/.travis.yml deleted file mode 100644 index 35158ec532dd..000000000000 --- a/vendor/github.com/marstr/guid/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -sudo: false - -language: go - -go: - - 1.7 - - 1.8 - -install: - - go get -u github.com/golang/lint/golint - - go get -u github.com/HewlettPackard/gas - -script: - - golint --set_exit_status - - go vet - - go test -v -cover -race - - go test -bench . - - gas ./... \ No newline at end of file diff --git a/vendor/github.com/marstr/guid/LICENSE.txt b/vendor/github.com/marstr/guid/LICENSE.txt deleted file mode 100644 index e18a0841a1c4..000000000000 --- a/vendor/github.com/marstr/guid/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2016 Martin Strobel - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/vendor/github.com/marstr/guid/README.md b/vendor/github.com/marstr/guid/README.md deleted file mode 100644 index 355fad16d273..000000000000 --- a/vendor/github.com/marstr/guid/README.md +++ /dev/null @@ -1,27 +0,0 @@ -[![Build Status](https://travis-ci.org/marstr/guid.svg?branch=master)](https://travis-ci.org/marstr/guid) -[![GoDoc](https://godoc.org/github.com/marstr/guid?status.svg)](https://godoc.org/github.com/marstr/guid) -[![Go Report Card](https://goreportcard.com/badge/github.com/marstr/guid)](https://goreportcard.com/report/github.com/marstr/guid) - -# Guid -Globally unique identifiers offer a quick means of generating non-colliding values across a distributed system. For this implemenation, [RFC 4122](http://ietf.org/rfc/rfc4122.txt) governs the desired behavior. - -## What's in a name? -You have likely already noticed that RFC and some implementations refer to these structures as UUIDs (Universally Unique Identifiers), where as this project is annotated as GUIDs (Globally Unique Identifiers). The name Guid was selected to make clear this project's ties to the [.NET struct Guid.](https://msdn.microsoft.com/en-us/library/system.guid(v=vs.110).aspx) The most obvious relationship is the desire to have the same format specifiers available in this library's Format and Parse methods as .NET would have in its ToString and Parse methods. - -# Installation -- Ensure you have the [Go Programming Language](https://golang.org/) installed on your system. -- Run the command: `go get -u github.com/marstr/guid` - -# Contribution -Contributions are welcome! Feel free to send Pull Requests. Continuous Integration will ensure that you have conformed to Go conventions. Please remember to add tests for your changes. - -# Versioning -This library will adhere to the -[Semantic Versioning 2.0.0](http://semver.org/spec/v2.0.0.html) specification. It may be worth noting this should allow for tools like [glide](https://glide.readthedocs.io/en/latest/) to pull in this library with ease. - -The Release Notes portion of this file will be updated to reflect the most recent major/minor updates, with the option to tag particular bug-fixes as well. Updates to the Release Notes for patches should be addative, where as major/minor updates should replace the previous version. If one desires to see the release notes for an older version, checkout that version of code and open this file. - -# Release Notes 1.1.* - -## v1.1.0 -Adding support for JSON marshaling and unmarshaling. diff --git a/vendor/github.com/marstr/guid/guid.go b/vendor/github.com/marstr/guid/guid.go deleted file mode 100644 index 51b038b75cdc..000000000000 --- a/vendor/github.com/marstr/guid/guid.go +++ /dev/null @@ -1,301 +0,0 @@ -package guid - -import ( - "bytes" - "crypto/rand" - "errors" - "fmt" - "net" - "strings" - "sync" - "time" -) - -// GUID is a unique identifier designed to virtually guarantee non-conflict between values generated -// across a distributed system. -type GUID struct { - timeHighAndVersion uint16 - timeMid uint16 - timeLow uint32 - clockSeqHighAndReserved uint8 - clockSeqLow uint8 - node [6]byte -} - -// Format enumerates the values that are supported by Parse and Format -type Format string - -// These constants define the possible string formats available via this implementation of Guid. -const ( - FormatB Format = "B" // {00000000-0000-0000-0000-000000000000} - FormatD Format = "D" // 00000000-0000-0000-0000-000000000000 - FormatN Format = "N" // 00000000000000000000000000000000 - FormatP Format = "P" // (00000000-0000-0000-0000-000000000000) - FormatX Format = "X" // {0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}} - FormatDefault Format = FormatD -) - -// CreationStrategy enumerates the values that are supported for populating the bits of a new Guid. -type CreationStrategy string - -// These constants define the possible creation strategies available via this implementation of Guid. -const ( - CreationStrategyVersion1 CreationStrategy = "version1" - CreationStrategyVersion2 CreationStrategy = "version2" - CreationStrategyVersion3 CreationStrategy = "version3" - CreationStrategyVersion4 CreationStrategy = "version4" - CreationStrategyVersion5 CreationStrategy = "version5" -) - -var emptyGUID GUID - -// NewGUID generates and returns a new globally unique identifier -func NewGUID() GUID { - result, err := version4() - if err != nil { - panic(err) //Version 4 (pseudo-random GUID) doesn't use anything that could fail. - } - return result -} - -var knownStrategies = map[CreationStrategy]func() (GUID, error){ - CreationStrategyVersion1: version1, - CreationStrategyVersion4: version4, -} - -// NewGUIDs generates and returns a new globally unique identifier that conforms to the given strategy. -func NewGUIDs(strategy CreationStrategy) (GUID, error) { - if creator, present := knownStrategies[strategy]; present { - result, err := creator() - return result, err - } - return emptyGUID, errors.New("Unsupported CreationStrategy") -} - -// Empty returns a copy of the default and empty GUID. -func Empty() GUID { - return emptyGUID -} - -var knownFormats = map[Format]string{ - FormatN: "%08x%04x%04x%02x%02x%02x%02x%02x%02x%02x%02x", - FormatD: "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", - FormatB: "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}", - FormatP: "(%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x)", - FormatX: "{0x%08x,0x%04x,0x%04x,{0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x}}", -} - -// MarshalJSON writes a GUID as a JSON string. -func (guid GUID) MarshalJSON() (marshaled []byte, err error) { - buf := bytes.Buffer{} - - _, err = buf.WriteRune('"') - buf.WriteString(guid.String()) - buf.WriteRune('"') - - marshaled = buf.Bytes() - return -} - -// Parse instantiates a GUID from a text representation of the same GUID. -// This is the inverse of function family String() -func Parse(value string) (GUID, error) { - var guid GUID - for _, fullFormat := range knownFormats { - parity, err := fmt.Sscanf( - value, - fullFormat, - &guid.timeLow, - &guid.timeMid, - &guid.timeHighAndVersion, - &guid.clockSeqHighAndReserved, - &guid.clockSeqLow, - &guid.node[0], - &guid.node[1], - &guid.node[2], - &guid.node[3], - &guid.node[4], - &guid.node[5]) - if parity == 11 && err == nil { - return guid, err - } - } - return emptyGUID, fmt.Errorf("\"%s\" is not in a recognized format", value) -} - -// String returns a text representation of a GUID in the default format. -func (guid GUID) String() string { - return guid.Stringf(FormatDefault) -} - -// Stringf returns a text representation of a GUID that conforms to the specified format. -// If an unrecognized format is provided, the empty string is returned. -func (guid GUID) Stringf(format Format) string { - if format == "" { - format = FormatDefault - } - fullFormat, present := knownFormats[format] - if !present { - return "" - } - return fmt.Sprintf( - fullFormat, - guid.timeLow, - guid.timeMid, - guid.timeHighAndVersion, - guid.clockSeqHighAndReserved, - guid.clockSeqLow, - guid.node[0], - guid.node[1], - guid.node[2], - guid.node[3], - guid.node[4], - guid.node[5]) -} - -// UnmarshalJSON parses a GUID from a JSON string token. -func (guid *GUID) UnmarshalJSON(marshaled []byte) (err error) { - if len(marshaled) < 2 { - err = errors.New("JSON GUID must be surrounded by quotes") - return - } - stripped := marshaled[1 : len(marshaled)-1] - *guid, err = Parse(string(stripped)) - return -} - -// Version reads a GUID to parse which mechanism of generating GUIDS was employed. -// Values returned here are documented in rfc4122.txt. -func (guid GUID) Version() uint { - return uint(guid.timeHighAndVersion >> 12) -} - -var unixToGregorianOffset = time.Date(1970, 01, 01, 0, 0, 00, 0, time.UTC).Sub(time.Date(1582, 10, 15, 0, 0, 0, 0, time.UTC)) - -// getRFC4122Time returns a 60-bit count of 100-nanosecond intervals since 00:00:00.00 October 15th, 1582 -func getRFC4122Time() int64 { - currentTime := time.Now().UTC().Add(unixToGregorianOffset).UnixNano() - currentTime /= 100 - return currentTime & 0x0FFFFFFFFFFFFFFF -} - -var clockSeqVal uint16 -var clockSeqKey sync.Mutex - -func getClockSequence() (uint16, error) { - clockSeqKey.Lock() - defer clockSeqKey.Unlock() - - if 0 == clockSeqVal { - var temp [2]byte - if parity, err := rand.Read(temp[:]); !(2 == parity && nil == err) { - return 0, err - } - clockSeqVal = uint16(temp[0])<<8 | uint16(temp[1]) - } - clockSeqVal++ - return clockSeqVal, nil -} - -func getMACAddress() (mac [6]byte, err error) { - var hostNICs []net.Interface - - hostNICs, err = net.Interfaces() - if err != nil { - return - } - - for _, nic := range hostNICs { - var parity int - - parity, err = fmt.Sscanf( - strings.ToLower(nic.HardwareAddr.String()), - "%02x:%02x:%02x:%02x:%02x:%02x", - &mac[0], - &mac[1], - &mac[2], - &mac[3], - &mac[4], - &mac[5]) - - if parity == len(mac) { - return - } - } - - err = fmt.Errorf("No suitable address found") - - return -} - -func version1() (result GUID, err error) { - var localMAC [6]byte - var clockSeq uint16 - - currentTime := getRFC4122Time() - - result.timeLow = uint32(currentTime) - result.timeMid = uint16(currentTime >> 32) - result.timeHighAndVersion = uint16(currentTime >> 48) - if err = result.setVersion(1); err != nil { - return emptyGUID, err - } - - if localMAC, err = getMACAddress(); nil != err { - if parity, err := rand.Read(localMAC[:]); !(len(localMAC) != parity && err == nil) { - return emptyGUID, err - } - localMAC[0] |= 0x1 - } - copy(result.node[:], localMAC[:]) - - if clockSeq, err = getClockSequence(); nil != err { - return emptyGUID, err - } - - result.clockSeqLow = uint8(clockSeq) - result.clockSeqHighAndReserved = uint8(clockSeq >> 8) - - result.setReservedBits() - - return -} - -func version4() (GUID, error) { - var retval GUID - var bits [10]byte - - if parity, err := rand.Read(bits[:]); !(len(bits) == parity && err == nil) { - return emptyGUID, err - } - retval.timeHighAndVersion |= uint16(bits[0]) | uint16(bits[1])<<8 - retval.timeMid |= uint16(bits[2]) | uint16(bits[3])<<8 - retval.timeLow |= uint32(bits[4]) | uint32(bits[5])<<8 | uint32(bits[6])<<16 | uint32(bits[7])<<24 - retval.clockSeqHighAndReserved = uint8(bits[8]) - retval.clockSeqLow = uint8(bits[9]) - - //Randomly set clock-sequence, reserved, and node - if written, err := rand.Read(retval.node[:]); !(nil == err && written == len(retval.node)) { - retval = emptyGUID - return retval, err - } - - if err := retval.setVersion(4); nil != err { - return emptyGUID, err - } - retval.setReservedBits() - - return retval, nil -} - -func (guid *GUID) setVersion(version uint16) error { - if version > 5 || version == 0 { - return fmt.Errorf("While setting GUID version, unsupported version: %d", version) - } - guid.timeHighAndVersion = (guid.timeHighAndVersion & 0x0fff) | version<<12 - return nil -} - -func (guid *GUID) setReservedBits() { - guid.clockSeqHighAndReserved = (guid.clockSeqHighAndReserved & 0x3f) | 0x80 -} diff --git a/vendor/modules.txt b/vendor/modules.txt index 2bb100959a07..f243c956315f 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,6 +1,6 @@ # contrib.go.opencensus.io/exporter/ocagent v0.4.1 contrib.go.opencensus.io/exporter/ocagent -# github.com/Azure/azure-sdk-for-go v26.7.0+incompatible +# github.com/Azure/azure-sdk-for-go v29.0.0+incompatible github.com/Azure/azure-sdk-for-go/profiles/2017-03-09/resources/mgmt/resources github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights @@ -11,7 +11,7 @@ github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2017-04-18/cog github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2018-10-01/containerinstance github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2017-10-01/containerregistry -github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice +github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-02-01/containerservice github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2015-04-08/documentdb github.com/Azure/azure-sdk-for-go/services/databricks/mgmt/2018-04-01/databricks github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory @@ -24,6 +24,7 @@ github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2018-02-14/keyvault github.com/Azure/azure-sdk-for-go/services/logic/mgmt/2016-06-01/logic +github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2018-07-01/media github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2017-12-01/mysql github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-12-01/network @@ -35,7 +36,6 @@ github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/d github.com/Azure/azure-sdk-for-go/services/preview/eventgrid/mgmt/2018-09-15-preview/eventgrid github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight github.com/Azure/azure-sdk-for-go/services/preview/iothub/mgmt/2018-12-01-preview/devices -github.com/Azure/azure-sdk-for-go/services/preview/mariadb/mgmt/2018-06-01-preview/mariadb github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2018-03-01/insights github.com/Azure/azure-sdk-for-go/services/preview/msi/mgmt/2015-08-31-preview/msi github.com/Azure/azure-sdk-for-go/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights @@ -261,8 +261,6 @@ github.com/hashicorp/terraform-config-inspect/tfconfig github.com/hashicorp/yamux # github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af github.com/jmespath/go-jmespath -# github.com/marstr/guid v1.1.0 -github.com/marstr/guid # github.com/mattn/go-colorable v0.1.1 github.com/mattn/go-colorable # github.com/mattn/go-isatty v0.0.5