diff --git a/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/CHANGELOG.md b/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/CHANGELOG.md index 52911e4cc5e4..2f2a2672ad2d 100644 --- a/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/CHANGELOG.md +++ b/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/CHANGELOG.md @@ -1,2 +1,28 @@ -# Change History +# Unreleased +## Breaking Changes + +### Struct Changes + +#### Removed Struct Fields + +1. ErrorResponse.Code +1. ErrorResponse.Message + +## Additive Changes + +### New Funcs + +1. DedicatedCapacityMutableProperties.MarshalJSON() ([]byte, error) + +### Struct Changes + +#### New Structs + +1. ErrorResponseError + +#### New Struct Fields + +1. DedicatedCapacityMutableProperties.Mode +1. DedicatedCapacityProperties.Mode +1. ErrorResponse.Error diff --git a/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/_meta.json b/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/_meta.json index aa97f6e58366..65d303ba5955 100644 --- a/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/_meta.json +++ b/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "0e27f3801f99bd3a4d9169296fea55a190d37cff", "readme": "/_/azure-rest-api-specs/specification/powerbidedicated/resource-manager/readme.md", "tag": "package-2017-10-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/models.go b/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/models.go index e9ce1db9700e..97f85d8b7d1b 100644 --- a/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/models.go +++ b/services/powerbidedicated/mgmt/2017-10-01/powerbidedicated/models.go @@ -368,6 +368,17 @@ type DedicatedCapacityAdministrators struct { type DedicatedCapacityMutableProperties struct { // Administration - A collection of Dedicated capacity administrators Administration *DedicatedCapacityAdministrators `json:"administration,omitempty"` + // Mode - READ-ONLY; The capacity mode. + Mode *string `json:"mode,omitempty"` +} + +// MarshalJSON is the custom marshaler for DedicatedCapacityMutableProperties. +func (dcmp DedicatedCapacityMutableProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dcmp.Administration != nil { + objectMap["administration"] = dcmp.Administration + } + return json.Marshal(objectMap) } // DedicatedCapacityProperties properties of Dedicated Capacity resource. @@ -378,6 +389,8 @@ type DedicatedCapacityProperties struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // Administration - A collection of Dedicated capacity administrators Administration *DedicatedCapacityAdministrators `json:"administration,omitempty"` + // Mode - READ-ONLY; The capacity mode. + Mode *string `json:"mode,omitempty"` } // MarshalJSON is the custom marshaler for DedicatedCapacityProperties. @@ -458,6 +471,12 @@ func (dcup *DedicatedCapacityUpdateParameters) UnmarshalJSON(body []byte) error // ErrorResponse describes the format of Error response. type ErrorResponse struct { + // Error - The error object + Error *ErrorResponseError `json:"error,omitempty"` +} + +// ErrorResponseError the error object +type ErrorResponseError struct { // Code - Error code Code *string `json:"code,omitempty"` // Message - Error message indicating why the operation failed. diff --git a/services/powerbidedicated/mgmt/2021-01-01/powerbidedicated/CHANGELOG.md b/services/powerbidedicated/mgmt/2021-01-01/powerbidedicated/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/powerbidedicated/mgmt/2021-01-01/powerbidedicated/CHANGELOG.md +++ b/services/powerbidedicated/mgmt/2021-01-01/powerbidedicated/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/powerbidedicated/mgmt/2021-01-01/powerbidedicated/_meta.json b/services/powerbidedicated/mgmt/2021-01-01/powerbidedicated/_meta.json index 21a01dd9a977..46d8f10e6dc6 100644 --- a/services/powerbidedicated/mgmt/2021-01-01/powerbidedicated/_meta.json +++ b/services/powerbidedicated/mgmt/2021-01-01/powerbidedicated/_meta.json @@ -1,5 +1,5 @@ { - "commit": "5f9965cd81e1651c38651ddc9a964a7f1ba4b218", + "commit": "0e27f3801f99bd3a4d9169296fea55a190d37cff", "readme": "/_/azure-rest-api-specs/specification/powerbidedicated/resource-manager/readme.md", "tag": "package-2021-01-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/powerbidedicated/mgmt/2021-01-01/powerbidedicated/models.go b/services/powerbidedicated/mgmt/2021-01-01/powerbidedicated/models.go index 3b7a574b973c..d932001a4eeb 100644 --- a/services/powerbidedicated/mgmt/2021-01-01/powerbidedicated/models.go +++ b/services/powerbidedicated/mgmt/2021-01-01/powerbidedicated/models.go @@ -633,7 +633,7 @@ type DedicatedCapacityAdministrators struct { type DedicatedCapacityMutableProperties struct { // Administration - A collection of Dedicated capacity administrators Administration *DedicatedCapacityAdministrators `json:"administration,omitempty"` - // Mode - The capacity mode. Possible values include: 'ModeGen1', 'ModeGen2' + // Mode - Specifies the generation of the Power BI Embedded capacity. If no value is specified, the default value 'Gen2' is used. [Learn More](https://docs.microsoft.com/power-bi/developer/embedded/power-bi-embedded-generation-2). Possible values include: 'ModeGen1', 'ModeGen2' Mode Mode `json:"mode,omitempty"` } @@ -645,7 +645,7 @@ type DedicatedCapacityProperties struct { ProvisioningState CapacityProvisioningState `json:"provisioningState,omitempty"` // Administration - A collection of Dedicated capacity administrators Administration *DedicatedCapacityAdministrators `json:"administration,omitempty"` - // Mode - The capacity mode. Possible values include: 'ModeGen1', 'ModeGen2' + // Mode - Specifies the generation of the Power BI Embedded capacity. If no value is specified, the default value 'Gen2' is used. [Learn More](https://docs.microsoft.com/power-bi/developer/embedded/power-bi-embedded-generation-2). Possible values include: 'ModeGen1', 'ModeGen2' Mode Mode `json:"mode,omitempty"` }