From 5e215c4c9fe2796134b75e1ccda11abb6b2aef01 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 24 Aug 2021 17:14:00 +0000 Subject: [PATCH] CodeGen from PR 15763 in Azure/azure-rest-api-specs Merge 44db5d144edf9ef838600e07d53902f26984a5c6 into 44017a20d8c022217b31e15643595fc7aff87926 --- .../src/Generated/Models/MetricDimension.cs | 11 ++- .../Generated/Models/MetricSpecification.cs | 84 ++++++++++++++++++- .../Generated/Models/ObjectAnchorsAccount.cs | 34 +++++++- .../Generated/SdkInfo_MixedRealityClient.cs | 11 --- 4 files changed, 126 insertions(+), 14 deletions(-) diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/MetricDimension.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/MetricDimension.cs index 5c05b28fdf4f..b947628c1eed 100644 --- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/MetricDimension.cs +++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/MetricDimension.cs @@ -33,11 +33,14 @@ public MetricDimension() /// Localized friendly display name of the /// dimension /// Internal name of the dimension. - public MetricDimension(string name = default(string), string displayName = default(string), string internalName = default(string)) + /// Flag to indicate export for + /// Shoebox + public MetricDimension(string name = default(string), string displayName = default(string), string internalName = default(string), bool? toBeExportedForShoebox = default(bool?)) { Name = name; DisplayName = displayName; InternalName = internalName; + ToBeExportedForShoebox = toBeExportedForShoebox; CustomInit(); } @@ -64,5 +67,11 @@ public MetricDimension() [JsonProperty(PropertyName = "internalName")] public string InternalName { get; set; } + /// + /// Gets or sets flag to indicate export for Shoebox + /// + [JsonProperty(PropertyName = "toBeExportedForShoebox")] + public bool? ToBeExportedForShoebox { get; set; } + } } diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/MetricSpecification.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/MetricSpecification.cs index 0a0f8307e8c4..fc2d0cb59cab 100644 --- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/MetricSpecification.cs +++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/MetricSpecification.cs @@ -40,17 +40,42 @@ public MetricSpecification() /// Only provide one value for this /// field. Valid values: Average, Minimum, Maximum, Total, /// Count. + /// Supported aggregation + /// types. Valid values: Average, Minimum, Maximum, Total, + /// Count. + /// Supported time grains. Valid + /// values: PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H, P1D + /// Flag to indicate use of + /// regional Mdm accounts + /// Source mdm account + /// Source mdm namespace + /// Metric filter regex + /// pattern + /// Flag to determine is Zero is returned + /// for time duration where no metric is emitted + /// Metric category /// Internal metric name. /// Dimensions of the metric - public MetricSpecification(string name = default(string), string displayName = default(string), string displayDescription = default(string), string unit = default(string), string aggregationType = default(string), string internalMetricName = default(string), IList dimensions = default(IList)) + /// Locked aggregation type of the + /// metric + public MetricSpecification(string name = default(string), string displayName = default(string), string displayDescription = default(string), string unit = default(string), string aggregationType = default(string), IList supportedAggregationTypes = default(IList), IList supportedTimeGrainTypes = default(IList), bool? enableRegionalMdmAccount = default(bool?), string sourceMdmAccount = default(string), string sourceMdmNamespace = default(string), string metricFilterPattern = default(string), bool? fillGapWithZero = default(bool?), string category = default(string), string internalMetricName = default(string), IList dimensions = default(IList), string lockedAggregationType = default(string)) { Name = name; DisplayName = displayName; DisplayDescription = displayDescription; Unit = unit; AggregationType = aggregationType; + SupportedAggregationTypes = supportedAggregationTypes; + SupportedTimeGrainTypes = supportedTimeGrainTypes; + EnableRegionalMdmAccount = enableRegionalMdmAccount; + SourceMdmAccount = sourceMdmAccount; + SourceMdmNamespace = sourceMdmNamespace; + MetricFilterPattern = metricFilterPattern; + FillGapWithZero = fillGapWithZero; + Category = category; InternalMetricName = internalMetricName; Dimensions = dimensions; + LockedAggregationType = lockedAggregationType; CustomInit(); } @@ -90,6 +115,57 @@ public MetricSpecification() [JsonProperty(PropertyName = "aggregationType")] public string AggregationType { get; set; } + /// + /// Gets or sets supported aggregation types. Valid values: Average, + /// Minimum, Maximum, Total, Count. + /// + [JsonProperty(PropertyName = "supportedAggregationTypes")] + public IList SupportedAggregationTypes { get; set; } + + /// + /// Gets or sets supported time grains. Valid values: PT1M, PT5M, + /// PT15M, PT30M, PT1H, PT6H, PT12H, P1D + /// + [JsonProperty(PropertyName = "supportedTimeGrainTypes")] + public IList SupportedTimeGrainTypes { get; set; } + + /// + /// Gets or sets flag to indicate use of regional Mdm accounts + /// + [JsonProperty(PropertyName = "enableRegionalMdmAccount")] + public bool? EnableRegionalMdmAccount { get; set; } + + /// + /// Gets or sets source mdm account + /// + [JsonProperty(PropertyName = "sourceMdmAccount")] + public string SourceMdmAccount { get; set; } + + /// + /// Gets or sets source mdm namespace + /// + [JsonProperty(PropertyName = "sourceMdmNamespace")] + public string SourceMdmNamespace { get; set; } + + /// + /// Gets or sets metric filter regex pattern + /// + [JsonProperty(PropertyName = "metricFilterPattern")] + public string MetricFilterPattern { get; set; } + + /// + /// Gets or sets flag to determine is Zero is returned for time + /// duration where no metric is emitted + /// + [JsonProperty(PropertyName = "fillGapWithZero")] + public bool? FillGapWithZero { get; set; } + + /// + /// Gets or sets metric category + /// + [JsonProperty(PropertyName = "category")] + public string Category { get; set; } + /// /// Gets or sets internal metric name. /// @@ -102,5 +178,11 @@ public MetricSpecification() [JsonProperty(PropertyName = "dimensions")] public IList Dimensions { get; set; } + /// + /// Gets or sets locked aggregation type of the metric + /// + [JsonProperty(PropertyName = "lockedAggregationType")] + public string LockedAggregationType { get; set; } + } } diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ObjectAnchorsAccount.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ObjectAnchorsAccount.cs index b28a2b125000..96bf3be52541 100644 --- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ObjectAnchorsAccount.cs +++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ObjectAnchorsAccount.cs @@ -48,15 +48,21 @@ public ObjectAnchorsAccount() /// unique id of certain account. /// Correspond domain name of certain /// Spatial Anchors Account + /// The plan associated with this account + /// The sku associated with this account + /// The kind of account, if supported /// The system metadata related to an object /// anchors account. - public ObjectAnchorsAccount(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ObjectAnchorsAccountIdentity identity = default(ObjectAnchorsAccountIdentity), string storageAccountName = default(string), string accountId = default(string), string accountDomain = default(string), SystemData systemData = default(SystemData)) + public ObjectAnchorsAccount(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ObjectAnchorsAccountIdentity identity = default(ObjectAnchorsAccountIdentity), string storageAccountName = default(string), string accountId = default(string), string accountDomain = default(string), Identity plan = default(Identity), Sku sku = default(Sku), Sku kind = default(Sku), SystemData systemData = default(SystemData)) : base(location, id, name, type, tags) { Identity = identity; StorageAccountName = storageAccountName; AccountId = accountId; AccountDomain = accountDomain; + Plan = plan; + Sku = sku; + Kind = kind; SystemData = systemData; CustomInit(); } @@ -90,6 +96,24 @@ public ObjectAnchorsAccount() [JsonProperty(PropertyName = "properties.accountDomain")] public string AccountDomain { get; private set; } + /// + /// Gets or sets the plan associated with this account + /// + [JsonProperty(PropertyName = "plan")] + public Identity Plan { get; set; } + + /// + /// Gets or sets the sku associated with this account + /// + [JsonProperty(PropertyName = "sku")] + public Sku Sku { get; set; } + + /// + /// Gets or sets the kind of account, if supported + /// + [JsonProperty(PropertyName = "kind")] + public Sku Kind { get; set; } + /// /// Gets the system metadata related to an object anchors account. /// @@ -105,6 +129,14 @@ public ObjectAnchorsAccount() public override void Validate() { base.Validate(); + if (Sku != null) + { + Sku.Validate(); + } + if (Kind != null) + { + Kind.Validate(); + } } } } diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/SdkInfo_MixedRealityClient.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/SdkInfo_MixedRealityClient.cs index 7fc7dbe65d17..9bd7b0db701f 100644 --- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/SdkInfo_MixedRealityClient.cs +++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/SdkInfo_MixedRealityClient.cs @@ -27,16 +27,5 @@ public static IEnumerable> ApiInfo_MixedRealityCli }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/mixedreality/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=F:\\msd\\sources\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "82d97c305cdaab59b6b15b2848e9ccba4c2a6b66"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -