diff --git a/services/mixedreality/mgmt/2021-01-01/mixedreality/CHANGELOG.md b/services/mixedreality/mgmt/2021-01-01/mixedreality/CHANGELOG.md index 52911e4cc5e4..4902fcc76e8c 100644 --- a/services/mixedreality/mgmt/2021-01-01/mixedreality/CHANGELOG.md +++ b/services/mixedreality/mgmt/2021-01-01/mixedreality/CHANGELOG.md @@ -1,2 +1,18 @@ -# Change History +# Unreleased +## Additive Changes + +### Struct Changes + +#### New Struct Fields + +1. MetricDimension.ToBeExportedForShoebox +1. MetricSpecification.Category +1. MetricSpecification.EnableRegionalMdmAccount +1. MetricSpecification.FillGapWithZero +1. MetricSpecification.LockedAggregationType +1. MetricSpecification.MetricFilterPattern +1. MetricSpecification.SourceMdmAccount +1. MetricSpecification.SourceMdmNamespace +1. MetricSpecification.SupportedAggregationTypes +1. MetricSpecification.SupportedTimeGrainTypes diff --git a/services/mixedreality/mgmt/2021-01-01/mixedreality/_meta.json b/services/mixedreality/mgmt/2021-01-01/mixedreality/_meta.json index 63be12428092..d7f8f7c4ab0f 100644 --- a/services/mixedreality/mgmt/2021-01-01/mixedreality/_meta.json +++ b/services/mixedreality/mgmt/2021-01-01/mixedreality/_meta.json @@ -1,5 +1,5 @@ { - "commit": "0b17e6a5e811fd7b122d383b4942441d95e5e8cf", + "commit": "5d11d1154ee96a9233a38d6bf0013b97f172c806", "readme": "/_/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md", "tag": "package-2021-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/mixedreality/mgmt/2021-01-01/mixedreality/models.go b/services/mixedreality/mgmt/2021-01-01/mixedreality/models.go index 40ce7a3cae91..984bc250d9d0 100644 --- a/services/mixedreality/mgmt/2021-01-01/mixedreality/models.go +++ b/services/mixedreality/mgmt/2021-01-01/mixedreality/models.go @@ -151,6 +151,8 @@ type MetricDimension struct { DisplayName *string `json:"displayName,omitempty"` // InternalName - Internal name of the dimension. InternalName *string `json:"internalName,omitempty"` + // ToBeExportedForShoebox - Whether the dimension should be included for the shoebox export scenario. + ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` } // MetricSpecification specifications of the Metrics for Azure Monitoring @@ -165,10 +167,28 @@ type MetricSpecification struct { Unit *string `json:"unit,omitempty"` // AggregationType - Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. AggregationType *string `json:"aggregationType,omitempty"` + // SupportedAggregationTypes - Supported aggregation types. Valid values: Average, Minimum, Maximum, Total, Count. + SupportedAggregationTypes *[]string `json:"supportedAggregationTypes,omitempty"` + // SupportedTimeGrainTypes - Supported time grains. Valid values: PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H, P1D + SupportedTimeGrainTypes *[]string `json:"supportedTimeGrainTypes,omitempty"` + // EnableRegionalMdmAccount - Flag to indicate use of regional Mdm accounts + EnableRegionalMdmAccount *bool `json:"enableRegionalMdmAccount,omitempty"` + // SourceMdmAccount - Source mdm account + SourceMdmAccount *string `json:"sourceMdmAccount,omitempty"` + // SourceMdmNamespace - Source mdm namespace + SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` + // MetricFilterPattern - Metric filter regex pattern + MetricFilterPattern *string `json:"metricFilterPattern,omitempty"` + // FillGapWithZero - Flag to determine is Zero is returned for time duration where no metric is emitted + FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` + // Category - Metric category + Category *string `json:"category,omitempty"` // InternalMetricName - Internal metric name. InternalMetricName *string `json:"internalMetricName,omitempty"` // Dimensions - Dimensions of the metric Dimensions *[]MetricDimension `json:"dimensions,omitempty"` + // LockedAggregationType - Locked aggregation type of the metric + LockedAggregationType *string `json:"lockedAggregationType,omitempty"` } // Operation REST API operation @@ -1206,7 +1226,7 @@ type SystemData struct { LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` - // LastModifiedAt - The type of identity that last modified the resource. + // LastModifiedAt - The timestamp of resource last modification (UTC) LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` } diff --git a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/CHANGELOG.md b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/CHANGELOG.md +++ b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/_meta.json b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/_meta.json index 77d6ae462245..e83e7f89fe2a 100644 --- a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/_meta.json +++ b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "5d11d1154ee96a9233a38d6bf0013b97f172c806", "readme": "/_/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md", "tag": "package-2019-02-preview", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/models.go b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/models.go index ba3865922f69..14f14a32c8eb 100644 --- a/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/models.go +++ b/services/preview/mixedreality/mgmt/2019-02-28/mixedreality/models.go @@ -327,7 +327,7 @@ type ResourceModelWithAllowedPropertySet struct { Type *string `json:"type,omitempty"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` - // ManagedBy - The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. + // ManagedBy - The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. ManagedBy *string `json:"managedBy,omitempty"` // Kind - Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. Kind *string `json:"kind,omitempty"` diff --git a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/CHANGELOG.md b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/CHANGELOG.md index 52911e4cc5e4..7cf884ee67be 100644 --- a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/CHANGELOG.md +++ b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/CHANGELOG.md @@ -1,2 +1,66 @@ -# Change History +# Unreleased +## Breaking Changes + +### Removed Constants + +1. NameAvailability.False +1. NameAvailability.True + +### Removed Funcs + +1. PossibleNameAvailabilityValues() []NameAvailability +1. RemoteRenderingAccountIdentity.MarshalJSON() ([]byte, error) + +### Struct Changes + +#### Removed Structs + +1. RemoteRenderingAccountIdentity + +### Signature Changes + +#### Struct Fields + +1. CheckNameAvailabilityResponse.NameAvailable changed type from NameAvailability to *bool +1. RemoteRenderingAccount.Identity changed type from *RemoteRenderingAccountIdentity to *Identity + +## Additive Changes + +### New Constants + +1. CreatedByType.Application +1. CreatedByType.Key +1. CreatedByType.ManagedIdentity +1. CreatedByType.User + +### New Funcs + +1. PossibleCreatedByTypeValues() []CreatedByType + +### Struct Changes + +#### New Structs + +1. LogSpecification +1. MetricDimension +1. MetricSpecification +1. OperationProperties +1. ServiceSpecification +1. SystemData + +#### New Struct Fields + +1. AccountProperties.StorageAccountName +1. Operation.IsDataAction +1. Operation.Origin +1. Operation.Properties +1. RemoteRenderingAccount.Kind +1. RemoteRenderingAccount.Plan +1. RemoteRenderingAccount.Sku +1. RemoteRenderingAccount.SystemData +1. SpatialAnchorsAccount.Identity +1. SpatialAnchorsAccount.Kind +1. SpatialAnchorsAccount.Plan +1. SpatialAnchorsAccount.Sku +1. SpatialAnchorsAccount.SystemData diff --git a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/_meta.json b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/_meta.json index ce8a13327d19..4a099575cfa1 100644 --- a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/_meta.json +++ b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "5d11d1154ee96a9233a38d6bf0013b97f172c806", "readme": "/_/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md", "tag": "package-2020-05", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/enums.go b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/enums.go index 0f328a26e9ec..78c8ae2e2160 100644 --- a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/enums.go +++ b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/enums.go @@ -6,19 +6,23 @@ package mixedreality // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// NameAvailability enumerates the values for name availability. -type NameAvailability string +// CreatedByType enumerates the values for created by type. +type CreatedByType string const ( - // False ... - False NameAvailability = "false" - // True ... - True NameAvailability = "true" + // Application ... + Application CreatedByType = "Application" + // Key ... + Key CreatedByType = "Key" + // ManagedIdentity ... + ManagedIdentity CreatedByType = "ManagedIdentity" + // User ... + User CreatedByType = "User" ) -// PossibleNameAvailabilityValues returns an array of possible values for the NameAvailability const type. -func PossibleNameAvailabilityValues() []NameAvailability { - return []NameAvailability{False, True} +// PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type. +func PossibleCreatedByTypeValues() []CreatedByType { + return []CreatedByType{Application, Key, ManagedIdentity, User} } // NameUnavailableReason enumerates the values for name unavailable reason. diff --git a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/models.go b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/models.go index a5c70aa0f2fe..5078c8b772ff 100644 --- a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/models.go +++ b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/models.go @@ -10,6 +10,7 @@ import ( "context" "encoding/json" "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/date" "github.com/Azure/go-autorest/autorest/to" "github.com/Azure/go-autorest/tracing" "net/http" @@ -41,6 +42,8 @@ func (ak AccountKeys) MarshalJSON() ([]byte, error) { // AccountProperties common Properties shared by Mixed Reality Accounts type AccountProperties struct { + // StorageAccountName - The name of the storage account associated with this accountId + StorageAccountName *string `json:"storageAccountName,omitempty"` // AccountID - READ-ONLY; unique id of certain account. AccountID *string `json:"accountId,omitempty"` // AccountDomain - READ-ONLY; Correspond domain name of certain Spatial Anchors Account @@ -50,6 +53,9 @@ type AccountProperties struct { // MarshalJSON is the custom marshaler for AccountProperties. func (ap AccountProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) + if ap.StorageAccountName != nil { + objectMap["storageAccountName"] = ap.StorageAccountName + } return json.Marshal(objectMap) } @@ -82,8 +88,8 @@ type CheckNameAvailabilityRequest struct { // CheckNameAvailabilityResponse check Name Availability Response type CheckNameAvailabilityResponse struct { autorest.Response `json:"-"` - // NameAvailable - if name Available. Possible values include: 'True', 'False' - NameAvailable NameAvailability `json:"nameAvailable,omitempty"` + // NameAvailable - if name Available + NameAvailable *bool `json:"nameAvailable,omitempty"` // Reason - Resource Name To Verify. Possible values include: 'Invalid', 'AlreadyExists' Reason NameUnavailableReason `json:"reason,omitempty"` // Message - detail message @@ -126,12 +132,56 @@ func (i Identity) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// LogSpecification specifications of the Log for Azure Monitoring +type LogSpecification struct { + // Name - Name of the log + Name *string `json:"name,omitempty"` + // DisplayName - Localized friendly display name of the log + DisplayName *string `json:"displayName,omitempty"` + // BlobDuration - Blob duration of the log + BlobDuration *string `json:"blobDuration,omitempty"` +} + +// MetricDimension specifications of the Dimension of metrics +type MetricDimension struct { + // Name - Name of the dimension + Name *string `json:"name,omitempty"` + // DisplayName - Localized friendly display name of the dimension + DisplayName *string `json:"displayName,omitempty"` + // InternalName - Internal name of the dimension. + InternalName *string `json:"internalName,omitempty"` +} + +// MetricSpecification specifications of the Metrics for Azure Monitoring +type MetricSpecification struct { + // Name - Name of the metric + Name *string `json:"name,omitempty"` + // DisplayName - Localized friendly display name of the metric + DisplayName *string `json:"displayName,omitempty"` + // DisplayDescription - Localized friendly description of the metric + DisplayDescription *string `json:"displayDescription,omitempty"` + // Unit - Unit that makes sense for the metric + Unit *string `json:"unit,omitempty"` + // AggregationType - Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. + AggregationType *string `json:"aggregationType,omitempty"` + // InternalMetricName - Internal metric name. + InternalMetricName *string `json:"internalMetricName,omitempty"` + // Dimensions - Dimensions of the metric + Dimensions *[]MetricDimension `json:"dimensions,omitempty"` +} + // 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"` + // IsDataAction - Whether or not this is a data plane operation + IsDataAction *bool `json:"isDataAction,omitempty"` + // Origin - The origin + Origin *string `json:"origin,omitempty"` + // Properties - Properties of the operation + Properties *OperationProperties `json:"properties,omitempty"` } // OperationDisplay the object that represents the operation. @@ -306,6 +356,12 @@ func NewOperationPagePage(cur OperationPage, getNextPage func(context.Context, O } } +// OperationProperties operation properties. +type OperationProperties struct { + // ServiceSpecification - Service specification. + ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` +} + // Plan plan for the resource. type Plan struct { // Name - A user defined name of the 3rd Party Artifact that is being procured. @@ -340,9 +396,18 @@ func (pr ProxyResource) MarshalJSON() ([]byte, error) { // RemoteRenderingAccount remoteRenderingAccount Response. type RemoteRenderingAccount struct { autorest.Response `json:"-"` - Identity *RemoteRenderingAccountIdentity `json:"identity,omitempty"` // AccountProperties - Property bag. *AccountProperties `json:"properties,omitempty"` + // Identity - The identity associated with this account + Identity *Identity `json:"identity,omitempty"` + // Plan - The plan associated with this account + Plan *Identity `json:"plan,omitempty"` + // Sku - The sku associated with this account + Sku *Sku `json:"sku,omitempty"` + // Kind - The kind of account, if supported + Kind *Sku `json:"kind,omitempty"` + // SystemData - System metadata for this account + SystemData *SystemData `json:"systemData,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives @@ -358,11 +423,23 @@ type RemoteRenderingAccount struct { // MarshalJSON is the custom marshaler for RemoteRenderingAccount. func (rra RemoteRenderingAccount) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) + if rra.AccountProperties != nil { + objectMap["properties"] = rra.AccountProperties + } if rra.Identity != nil { objectMap["identity"] = rra.Identity } - if rra.AccountProperties != nil { - objectMap["properties"] = rra.AccountProperties + if rra.Plan != nil { + objectMap["plan"] = rra.Plan + } + if rra.Sku != nil { + objectMap["sku"] = rra.Sku + } + if rra.Kind != nil { + objectMap["kind"] = rra.Kind + } + if rra.SystemData != nil { + objectMap["systemData"] = rra.SystemData } if rra.Tags != nil { objectMap["tags"] = rra.Tags @@ -382,23 +459,59 @@ func (rra *RemoteRenderingAccount) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { + case "properties": + if v != nil { + var accountProperties AccountProperties + err = json.Unmarshal(*v, &accountProperties) + if err != nil { + return err + } + rra.AccountProperties = &accountProperties + } case "identity": if v != nil { - var identity RemoteRenderingAccountIdentity + var identity Identity err = json.Unmarshal(*v, &identity) if err != nil { return err } rra.Identity = &identity } - case "properties": + case "plan": if v != nil { - var accountProperties AccountProperties - err = json.Unmarshal(*v, &accountProperties) + var plan Identity + err = json.Unmarshal(*v, &plan) if err != nil { return err } - rra.AccountProperties = &accountProperties + rra.Plan = &plan + } + case "sku": + if v != nil { + var sku Sku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + rra.Sku = &sku + } + case "kind": + if v != nil { + var kind Sku + err = json.Unmarshal(*v, &kind) + if err != nil { + return err + } + rra.Kind = &kind + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + rra.SystemData = &systemData } case "tags": if v != nil { @@ -451,25 +564,6 @@ func (rra *RemoteRenderingAccount) UnmarshalJSON(body []byte) error { return nil } -// RemoteRenderingAccountIdentity ... -type RemoteRenderingAccountIdentity struct { - // PrincipalID - READ-ONLY; The principal ID of resource identity. - PrincipalID *string `json:"principalId,omitempty"` - // 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"` -} - -// MarshalJSON is the custom marshaler for RemoteRenderingAccountIdentity. -func (rra RemoteRenderingAccountIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if rra.Type != "" { - objectMap["type"] = rra.Type - } - return json.Marshal(objectMap) -} - // RemoteRenderingAccountPage result of the request to get resource collection. It contains a list of // resources and a URL link to get the next set of results. type RemoteRenderingAccountPage struct { @@ -659,7 +753,7 @@ type ResourceModelWithAllowedPropertySet struct { Type *string `json:"type,omitempty"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` - // ManagedBy - The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. + // ManagedBy - The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. ManagedBy *string `json:"managedBy,omitempty"` // Kind - Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. Kind *string `json:"kind,omitempty"` @@ -746,6 +840,14 @@ type ResourceModelWithAllowedPropertySetSku struct { Capacity *int32 `json:"capacity,omitempty"` } +// ServiceSpecification service specification payload +type ServiceSpecification struct { + // LogSpecifications - Specifications of the Log for Azure Monitoring + LogSpecifications *[]LogSpecification `json:"logSpecifications,omitempty"` + // MetricSpecifications - Specifications of the Metrics for Azure Monitoring + MetricSpecifications *[]MetricSpecification `json:"metricSpecifications,omitempty"` +} + // Sku the resource model definition representing SKU type Sku struct { // Name - The name of the SKU. Ex - P3. It is typically a letter+number code @@ -765,6 +867,16 @@ type SpatialAnchorsAccount struct { autorest.Response `json:"-"` // AccountProperties - Property bag. *AccountProperties `json:"properties,omitempty"` + // Identity - The identity associated with this account + Identity *Identity `json:"identity,omitempty"` + // Plan - The plan associated with this account + Plan *Identity `json:"plan,omitempty"` + // Sku - The sku associated with this account + Sku *Sku `json:"sku,omitempty"` + // Kind - The kind of account, if supported + Kind *Sku `json:"kind,omitempty"` + // SystemData - System metadata for this account + SystemData *SystemData `json:"systemData,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives @@ -783,6 +895,21 @@ func (saa SpatialAnchorsAccount) MarshalJSON() ([]byte, error) { if saa.AccountProperties != nil { objectMap["properties"] = saa.AccountProperties } + if saa.Identity != nil { + objectMap["identity"] = saa.Identity + } + if saa.Plan != nil { + objectMap["plan"] = saa.Plan + } + if saa.Sku != nil { + objectMap["sku"] = saa.Sku + } + if saa.Kind != nil { + objectMap["kind"] = saa.Kind + } + if saa.SystemData != nil { + objectMap["systemData"] = saa.SystemData + } if saa.Tags != nil { objectMap["tags"] = saa.Tags } @@ -810,6 +937,51 @@ func (saa *SpatialAnchorsAccount) UnmarshalJSON(body []byte) error { } saa.AccountProperties = &accountProperties } + case "identity": + if v != nil { + var identity Identity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + saa.Identity = &identity + } + case "plan": + if v != nil { + var plan Identity + err = json.Unmarshal(*v, &plan) + if err != nil { + return err + } + saa.Plan = &plan + } + case "sku": + if v != nil { + var sku Sku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + saa.Sku = &sku + } + case "kind": + if v != nil { + var kind Sku + err = json.Unmarshal(*v, &kind) + if err != nil { + return err + } + saa.Kind = &kind + } + case "systemData": + if v != nil { + var systemData SystemData + err = json.Unmarshal(*v, &systemData) + if err != nil { + return err + } + saa.SystemData = &systemData + } case "tags": if v != nil { var tags map[string]*string @@ -1021,6 +1193,22 @@ func NewSpatialAnchorsAccountPagePage(cur SpatialAnchorsAccountPage, getNextPage } } +// SystemData metadata pertaining to creation and last modification of the resource. +type SystemData struct { + // CreatedBy - The identity that created the resource. + CreatedBy *string `json:"createdBy,omitempty"` + // CreatedByType - The type of identity that created the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + CreatedByType CreatedByType `json:"createdByType,omitempty"` + // CreatedAt - The timestamp of resource creation (UTC). + CreatedAt *date.Time `json:"createdAt,omitempty"` + // LastModifiedBy - The identity that last modified the resource. + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` + // LastModifiedAt - The timestamp of resource last modification (UTC) + LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` +} + // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource // which has 'tags' and a 'location' type TrackedResource struct { diff --git a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/remoterenderingaccounts.go b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/remoterenderingaccounts.go index 60da1f289dd7..ff0bafa96383 100644 --- a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/remoterenderingaccounts.go +++ b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/remoterenderingaccounts.go @@ -56,7 +56,12 @@ func (client RemoteRenderingAccountsClient) Create(ctx context.Context, resource {TargetValue: accountName, Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 90, Chain: nil}, {Target: "accountName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "accountName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "accountName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: remoteRenderingAccount, + Constraints: []validation.Constraint{{Target: "remoteRenderingAccount.Sku", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "remoteRenderingAccount.Sku.Name", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "remoteRenderingAccount.Kind", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "remoteRenderingAccount.Kind.Name", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { return result, validation.NewError("mixedreality.RemoteRenderingAccountsClient", "Create", err.Error()) } diff --git a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/spatialanchorsaccounts.go b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/spatialanchorsaccounts.go index f80b267d16c1..3408724f3f88 100644 --- a/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/spatialanchorsaccounts.go +++ b/services/preview/mixedreality/mgmt/2020-05-01-preview/mixedreality/spatialanchorsaccounts.go @@ -56,7 +56,12 @@ func (client SpatialAnchorsAccountsClient) Create(ctx context.Context, resourceG {TargetValue: accountName, Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 90, Chain: nil}, {Target: "accountName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "accountName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "accountName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: spatialAnchorsAccount, + Constraints: []validation.Constraint{{Target: "spatialAnchorsAccount.Sku", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "spatialAnchorsAccount.Sku.Name", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "spatialAnchorsAccount.Kind", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "spatialAnchorsAccount.Kind.Name", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { return result, validation.NewError("mixedreality.SpatialAnchorsAccountsClient", "Create", err.Error()) } diff --git a/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/CHANGELOG.md b/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/CHANGELOG.md index 52911e4cc5e4..82451f0df80b 100644 --- a/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/CHANGELOG.md +++ b/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/CHANGELOG.md @@ -1,2 +1,21 @@ -# Change History +# Unreleased +## Additive Changes + +### Struct Changes + +#### New Struct Fields + +1. MetricDimension.ToBeExportedForShoebox +1. MetricSpecification.Category +1. MetricSpecification.EnableRegionalMdmAccount +1. MetricSpecification.FillGapWithZero +1. MetricSpecification.LockedAggregationType +1. MetricSpecification.MetricFilterPattern +1. MetricSpecification.SourceMdmAccount +1. MetricSpecification.SourceMdmNamespace +1. MetricSpecification.SupportedAggregationTypes +1. MetricSpecification.SupportedTimeGrainTypes +1. ObjectAnchorsAccount.Kind +1. ObjectAnchorsAccount.Plan +1. ObjectAnchorsAccount.Sku diff --git a/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/_meta.json b/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/_meta.json index 4cee0afb0e5c..f23290d0d903 100644 --- a/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/_meta.json +++ b/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/_meta.json @@ -1,5 +1,5 @@ { - "commit": "92ab22b49bd085116af0c61fada2c6c360702e9e", + "commit": "5d11d1154ee96a9233a38d6bf0013b97f172c806", "readme": "/_/azure-rest-api-specs/specification/mixedreality/resource-manager/readme.md", "tag": "package-2021-03-01-preview", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/models.go b/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/models.go index cc36dd747e0d..a73d88b0b4df 100644 --- a/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/models.go +++ b/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/models.go @@ -151,6 +151,8 @@ type MetricDimension struct { DisplayName *string `json:"displayName,omitempty"` // InternalName - Internal name of the dimension. InternalName *string `json:"internalName,omitempty"` + // ToBeExportedForShoebox - Flag to indicate export for Shoebox + ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` } // MetricSpecification specifications of the Metrics for Azure Monitoring @@ -165,10 +167,28 @@ type MetricSpecification struct { Unit *string `json:"unit,omitempty"` // AggregationType - Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. AggregationType *string `json:"aggregationType,omitempty"` + // SupportedAggregationTypes - Supported aggregation types. Valid values: Average, Minimum, Maximum, Total, Count. + SupportedAggregationTypes *[]string `json:"supportedAggregationTypes,omitempty"` + // SupportedTimeGrainTypes - Supported time grains. Valid values: PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H, P1D + SupportedTimeGrainTypes *[]string `json:"supportedTimeGrainTypes,omitempty"` + // EnableRegionalMdmAccount - Flag to indicate use of regional Mdm accounts + EnableRegionalMdmAccount *bool `json:"enableRegionalMdmAccount,omitempty"` + // SourceMdmAccount - Source mdm account + SourceMdmAccount *string `json:"sourceMdmAccount,omitempty"` + // SourceMdmNamespace - Source mdm namespace + SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` + // MetricFilterPattern - Metric filter regex pattern + MetricFilterPattern *string `json:"metricFilterPattern,omitempty"` + // FillGapWithZero - Flag to determine is Zero is returned for time duration where no metric is emitted + FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` + // Category - Metric category + Category *string `json:"category,omitempty"` // InternalMetricName - Internal metric name. InternalMetricName *string `json:"internalMetricName,omitempty"` // Dimensions - Dimensions of the metric Dimensions *[]MetricDimension `json:"dimensions,omitempty"` + // LockedAggregationType - Locked aggregation type of the metric + LockedAggregationType *string `json:"lockedAggregationType,omitempty"` } // ObjectAnchorsAccount objectAnchorsAccount Response. @@ -177,6 +197,12 @@ type ObjectAnchorsAccount struct { Identity *ObjectAnchorsAccountIdentity `json:"identity,omitempty"` // AccountProperties - Property bag. *AccountProperties `json:"properties,omitempty"` + // Plan - The plan associated with this account + Plan *Identity `json:"plan,omitempty"` + // Sku - The sku associated with this account + Sku *Sku `json:"sku,omitempty"` + // Kind - The kind of account, if supported + Kind *Sku `json:"kind,omitempty"` // SystemData - READ-ONLY; The system metadata related to an object anchors account. SystemData *SystemData `json:"systemData,omitempty"` // Tags - Resource tags. @@ -200,6 +226,15 @@ func (oaa ObjectAnchorsAccount) MarshalJSON() ([]byte, error) { if oaa.AccountProperties != nil { objectMap["properties"] = oaa.AccountProperties } + if oaa.Plan != nil { + objectMap["plan"] = oaa.Plan + } + if oaa.Sku != nil { + objectMap["sku"] = oaa.Sku + } + if oaa.Kind != nil { + objectMap["kind"] = oaa.Kind + } if oaa.Tags != nil { objectMap["tags"] = oaa.Tags } @@ -236,6 +271,33 @@ func (oaa *ObjectAnchorsAccount) UnmarshalJSON(body []byte) error { } oaa.AccountProperties = &accountProperties } + case "plan": + if v != nil { + var plan Identity + err = json.Unmarshal(*v, &plan) + if err != nil { + return err + } + oaa.Plan = &plan + } + case "sku": + if v != nil { + var sku Sku + err = json.Unmarshal(*v, &sku) + if err != nil { + return err + } + oaa.Sku = &sku + } + case "kind": + if v != nil { + var kind Sku + err = json.Unmarshal(*v, &kind) + if err != nil { + return err + } + oaa.Kind = &kind + } case "systemData": if v != nil { var systemData SystemData diff --git a/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/objectanchorsaccounts.go b/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/objectanchorsaccounts.go index db041bfb09b2..c507d177636a 100644 --- a/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/objectanchorsaccounts.go +++ b/services/preview/mixedreality/mgmt/2021-03-01-preview/mixedreality/objectanchorsaccounts.go @@ -56,7 +56,12 @@ func (client ObjectAnchorsAccountsClient) Create(ctx context.Context, resourceGr {TargetValue: accountName, Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 90, Chain: nil}, {Target: "accountName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "accountName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "accountName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {TargetValue: objectAnchorsAccount, + Constraints: []validation.Constraint{{Target: "objectAnchorsAccount.Sku", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "objectAnchorsAccount.Sku.Name", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "objectAnchorsAccount.Kind", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "objectAnchorsAccount.Kind.Name", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { return result, validation.NewError("mixedreality.ObjectAnchorsAccountsClient", "Create", err.Error()) }