diff --git a/profiles/latest/mysql/mgmt/mysql/models.go b/profiles/latest/mysql/mgmt/mysql/models.go index 0f1e0467559b..b07917e5c7c4 100644 --- a/profiles/latest/mysql/mgmt/mysql/models.go +++ b/profiles/latest/mysql/mgmt/mysql/models.go @@ -104,6 +104,8 @@ const ( type BaseClient = original.BaseClient type BasicServerPropertiesForCreate = original.BasicServerPropertiesForCreate type CheckNameAvailabilityClient = original.CheckNameAvailabilityClient +type CloudError = original.CloudError +type CloudErrorBody = original.CloudErrorBody type Configuration = original.Configuration type ConfigurationListResult = original.ConfigurationListResult type ConfigurationProperties = original.ConfigurationProperties diff --git a/profiles/latest/postgresql/mgmt/postgresql/models.go b/profiles/latest/postgresql/mgmt/postgresql/models.go index f2465cc39191..9561d7b52412 100644 --- a/profiles/latest/postgresql/mgmt/postgresql/models.go +++ b/profiles/latest/postgresql/mgmt/postgresql/models.go @@ -106,6 +106,8 @@ const ( type BaseClient = original.BaseClient type BasicServerPropertiesForCreate = original.BasicServerPropertiesForCreate type CheckNameAvailabilityClient = original.CheckNameAvailabilityClient +type CloudError = original.CloudError +type CloudErrorBody = original.CloudErrorBody type Configuration = original.Configuration type ConfigurationListResult = original.ConfigurationListResult type ConfigurationProperties = original.ConfigurationProperties diff --git a/profiles/preview/mysql/mgmt/mysql/models.go b/profiles/preview/mysql/mgmt/mysql/models.go index 8c39b78f3dfe..639791bd363e 100644 --- a/profiles/preview/mysql/mgmt/mysql/models.go +++ b/profiles/preview/mysql/mgmt/mysql/models.go @@ -104,6 +104,8 @@ const ( type BaseClient = original.BaseClient type BasicServerPropertiesForCreate = original.BasicServerPropertiesForCreate type CheckNameAvailabilityClient = original.CheckNameAvailabilityClient +type CloudError = original.CloudError +type CloudErrorBody = original.CloudErrorBody type Configuration = original.Configuration type ConfigurationListResult = original.ConfigurationListResult type ConfigurationProperties = original.ConfigurationProperties diff --git a/profiles/preview/postgresql/mgmt/postgresql/models.go b/profiles/preview/postgresql/mgmt/postgresql/models.go index f34652e61d3e..abcc294396e9 100644 --- a/profiles/preview/postgresql/mgmt/postgresql/models.go +++ b/profiles/preview/postgresql/mgmt/postgresql/models.go @@ -106,6 +106,8 @@ const ( type BaseClient = original.BaseClient type BasicServerPropertiesForCreate = original.BasicServerPropertiesForCreate type CheckNameAvailabilityClient = original.CheckNameAvailabilityClient +type CloudError = original.CloudError +type CloudErrorBody = original.CloudErrorBody type Configuration = original.Configuration type ConfigurationListResult = original.ConfigurationListResult type ConfigurationProperties = original.ConfigurationProperties diff --git a/services/mysql/mgmt/2017-12-01/mysql/models.go b/services/mysql/mgmt/2017-12-01/mysql/models.go index 0458021fc1cc..6210850d2a33 100644 --- a/services/mysql/mgmt/2017-12-01/mysql/models.go +++ b/services/mysql/mgmt/2017-12-01/mysql/models.go @@ -184,6 +184,23 @@ 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:"-"` diff --git a/services/postgresql/mgmt/2017-12-01/postgresql/models.go b/services/postgresql/mgmt/2017-12-01/postgresql/models.go index dc8b97701173..58e77248c77c 100644 --- a/services/postgresql/mgmt/2017-12-01/postgresql/models.go +++ b/services/postgresql/mgmt/2017-12-01/postgresql/models.go @@ -188,6 +188,23 @@ 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:"-"`