diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/IMixedRealityClient.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/IMixedRealityClient.cs
index 4c07cfac11ae..5c0684805030 100644
--- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/IMixedRealityClient.cs
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/IMixedRealityClient.cs
@@ -44,6 +44,11 @@ public partial interface IMixedRealityClient : System.IDisposable
///
ServiceClientCredentials Credentials { get; }
+ ///
+ /// The API version to be used with the HTTP request.
+ ///
+ string ApiVersion { get; }
+
///
/// The Azure subscription ID. This is a GUID-formatted string (e.g.
/// 00000000-0000-0000-0000-000000000000)
diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/MixedRealityClient.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/MixedRealityClient.cs
index eda32fb72d51..4f7449e196d2 100644
--- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/MixedRealityClient.cs
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/MixedRealityClient.cs
@@ -48,6 +48,11 @@ public partial class MixedRealityClient : ServiceClient, IMi
///
public ServiceClientCredentials Credentials { get; private set; }
+ ///
+ /// The API version to be used with the HTTP request.
+ ///
+ public string ApiVersion { get; private set; }
+
///
/// The Azure subscription ID. This is a GUID-formatted string (e.g.
/// 00000000-0000-0000-0000-000000000000)
@@ -332,6 +337,7 @@ private void Initialize()
SpatialAnchorsAccounts = new SpatialAnchorsAccountsOperations(this);
RemoteRenderingAccounts = new RemoteRenderingAccountsOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
+ ApiVersion = "2021-01-01";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
@@ -428,7 +434,10 @@ private void Initialize()
{
checkNameAvailability.Validate();
}
- string apiVersion = "2020-05-01";
+ if (ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -438,7 +447,6 @@ private void Initialize()
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("location", location);
tracingParameters.Add("checkNameAvailability", checkNameAvailability);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "CheckNameAvailabilityLocal", tracingParameters);
}
@@ -448,9 +456,9 @@ private void Initialize()
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(SubscriptionId));
_url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion)));
}
if (_queryParameters.Count > 0)
{
diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/AzureEntityResource.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/AzureEntityResource.cs
index fa7b16a65adb..c9906e4c4dfc 100644
--- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/AzureEntityResource.cs
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/AzureEntityResource.cs
@@ -14,9 +14,12 @@ namespace Microsoft.Azure.Management.MixedReality.Models
using System.Linq;
///
- /// The resource model definition for a Azure Resource Manager resource
- /// with an etag.
+ /// Entity Resource
///
+ ///
+ /// The resource model definition for an Azure Resource Manager resource
+ /// with an etag.
+ ///
public partial class AzureEntityResource : Resource
{
///
@@ -30,12 +33,12 @@ public AzureEntityResource()
///
/// Initializes a new instance of the AzureEntityResource class.
///
- /// Fully qualified resource Id for the resource. Ex -
+ /// Fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
/// The name of the resource
- /// The type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts.
+ /// The type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
/// Resource Etag.
public AzureEntityResource(string id = default(string), string name = default(string), string type = default(string), string etag = default(string))
: base(id, name, type)
diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/CheckNameAvailabilityResponse.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/CheckNameAvailabilityResponse.cs
index 1a98460c066d..a0c7cbafc915 100644
--- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/CheckNameAvailabilityResponse.cs
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/CheckNameAvailabilityResponse.cs
@@ -10,7 +10,6 @@
namespace Microsoft.Azure.Management.MixedReality.Models
{
- using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
@@ -32,12 +31,11 @@ public CheckNameAvailabilityResponse()
/// Initializes a new instance of the CheckNameAvailabilityResponse
/// class.
///
- /// if name Available. Possible values
- /// include: 'true', 'false'
+ /// if name Available
/// Resource Name To Verify. Possible values
/// include: 'Invalid', 'AlreadyExists'
/// detail message
- public CheckNameAvailabilityResponse(string nameAvailable, string reason = default(string), string message = default(string))
+ public CheckNameAvailabilityResponse(bool nameAvailable, string reason = default(string), string message = default(string))
{
NameAvailable = nameAvailable;
Reason = reason;
@@ -51,11 +49,10 @@ public CheckNameAvailabilityResponse()
partial void CustomInit();
///
- /// Gets or sets if name Available. Possible values include: 'true',
- /// 'false'
+ /// Gets or sets if name Available
///
[JsonProperty(PropertyName = "nameAvailable")]
- public string NameAvailable { get; set; }
+ public bool NameAvailable { get; set; }
///
/// Gets or sets resource Name To Verify. Possible values include:
@@ -73,15 +70,11 @@ public CheckNameAvailabilityResponse()
///
/// Validate the object.
///
- ///
+ ///
/// Thrown if validation fails
///
public virtual void Validate()
{
- if (NameAvailable == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "NameAvailable");
- }
}
}
}
diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/NameAvailability.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/CreatedByType.cs
similarity index 61%
rename from sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/NameAvailability.cs
rename to sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/CreatedByType.cs
index 2809f162636d..5316b9f2c961 100644
--- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/NameAvailability.cs
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/CreatedByType.cs
@@ -12,11 +12,13 @@ namespace Microsoft.Azure.Management.MixedReality.Models
{
///
- /// Defines values for NameAvailability.
+ /// Defines values for CreatedByType.
///
- public static class NameAvailability
+ public static class CreatedByType
{
- public const string True = "true";
- public const string False = "false";
+ public const string User = "User";
+ public const string Application = "Application";
+ public const string ManagedIdentity = "ManagedIdentity";
+ public const string Key = "Key";
}
}
diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/LogSpecification.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/LogSpecification.cs
new file mode 100644
index 000000000000..09c833df2ee8
--- /dev/null
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/LogSpecification.cs
@@ -0,0 +1,68 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.MixedReality.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Specifications of the Log for Azure Monitoring
+ ///
+ public partial class LogSpecification
+ {
+ ///
+ /// Initializes a new instance of the LogSpecification class.
+ ///
+ public LogSpecification()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the LogSpecification class.
+ ///
+ /// Name of the log
+ /// Localized friendly display name of the
+ /// log
+ /// Blob duration of the log
+ public LogSpecification(string name = default(string), string displayName = default(string), string blobDuration = default(string))
+ {
+ Name = name;
+ DisplayName = displayName;
+ BlobDuration = blobDuration;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets name of the log
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets localized friendly display name of the log
+ ///
+ [JsonProperty(PropertyName = "displayName")]
+ public string DisplayName { get; set; }
+
+ ///
+ /// Gets or sets blob duration of the log
+ ///
+ [JsonProperty(PropertyName = "blobDuration")]
+ public string BlobDuration { get; set; }
+
+ }
+}
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
new file mode 100644
index 000000000000..5c05b28fdf4f
--- /dev/null
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/MetricDimension.cs
@@ -0,0 +1,68 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.MixedReality.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Specifications of the Dimension of metrics
+ ///
+ public partial class MetricDimension
+ {
+ ///
+ /// Initializes a new instance of the MetricDimension class.
+ ///
+ public MetricDimension()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the MetricDimension class.
+ ///
+ /// Name of the dimension
+ /// 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))
+ {
+ Name = name;
+ DisplayName = displayName;
+ InternalName = internalName;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets name of the dimension
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets localized friendly display name of the dimension
+ ///
+ [JsonProperty(PropertyName = "displayName")]
+ public string DisplayName { get; set; }
+
+ ///
+ /// Gets or sets internal name of the dimension.
+ ///
+ [JsonProperty(PropertyName = "internalName")]
+ public string InternalName { 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
new file mode 100644
index 000000000000..0a0f8307e8c4
--- /dev/null
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/MetricSpecification.cs
@@ -0,0 +1,106 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.MixedReality.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Specifications of the Metrics for Azure Monitoring
+ ///
+ public partial class MetricSpecification
+ {
+ ///
+ /// Initializes a new instance of the MetricSpecification class.
+ ///
+ public MetricSpecification()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the MetricSpecification class.
+ ///
+ /// Name of the metric
+ /// Localized friendly display name of the
+ /// metric
+ /// Localized friendly description of
+ /// the metric
+ /// Unit that makes sense for the metric
+ /// Only provide one value for this
+ /// field. Valid values: Average, Minimum, Maximum, Total,
+ /// Count.
+ /// 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))
+ {
+ Name = name;
+ DisplayName = displayName;
+ DisplayDescription = displayDescription;
+ Unit = unit;
+ AggregationType = aggregationType;
+ InternalMetricName = internalMetricName;
+ Dimensions = dimensions;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets name of the metric
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets localized friendly display name of the metric
+ ///
+ [JsonProperty(PropertyName = "displayName")]
+ public string DisplayName { get; set; }
+
+ ///
+ /// Gets or sets localized friendly description of the metric
+ ///
+ [JsonProperty(PropertyName = "displayDescription")]
+ public string DisplayDescription { get; set; }
+
+ ///
+ /// Gets or sets unit that makes sense for the metric
+ ///
+ [JsonProperty(PropertyName = "unit")]
+ public string Unit { get; set; }
+
+ ///
+ /// Gets or sets only provide one value for this field. Valid values:
+ /// Average, Minimum, Maximum, Total, Count.
+ ///
+ [JsonProperty(PropertyName = "aggregationType")]
+ public string AggregationType { get; set; }
+
+ ///
+ /// Gets or sets internal metric name.
+ ///
+ [JsonProperty(PropertyName = "internalMetricName")]
+ public string InternalMetricName { get; set; }
+
+ ///
+ /// Gets or sets dimensions of the metric
+ ///
+ [JsonProperty(PropertyName = "dimensions")]
+ public IList Dimensions { get; set; }
+
+ }
+}
diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/Operation.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/Operation.cs
index c928a5ce4a50..06028b1986f3 100644
--- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/Operation.cs
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/Operation.cs
@@ -33,10 +33,17 @@ public Operation()
/// {provider}/{resource}/{operation}
/// The object that represents the
/// operation.
- public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay))
+ /// Whether or not this is a data plane
+ /// operation
+ /// The origin
+ /// Properties of the operation
+ public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), bool? isDataAction = default(bool?), string origin = default(string), OperationProperties properties = default(OperationProperties))
{
Name = name;
Display = display;
+ IsDataAction = isDataAction;
+ Origin = origin;
+ Properties = properties;
CustomInit();
}
@@ -57,6 +64,24 @@ public Operation()
[JsonProperty(PropertyName = "display")]
public OperationDisplay Display { get; set; }
+ ///
+ /// Gets or sets whether or not this is a data plane operation
+ ///
+ [JsonProperty(PropertyName = "isDataAction")]
+ public bool? IsDataAction { get; set; }
+
+ ///
+ /// Gets or sets the origin
+ ///
+ [JsonProperty(PropertyName = "origin")]
+ public string Origin { get; set; }
+
+ ///
+ /// Gets or sets properties of the operation
+ ///
+ [JsonProperty(PropertyName = "properties")]
+ public OperationProperties Properties { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/OperationProperties.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/OperationProperties.cs
new file mode 100644
index 000000000000..bea13018ee33
--- /dev/null
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/OperationProperties.cs
@@ -0,0 +1,51 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.MixedReality.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Operation properties.
+ ///
+ public partial class OperationProperties
+ {
+ ///
+ /// Initializes a new instance of the OperationProperties class.
+ ///
+ public OperationProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the OperationProperties class.
+ ///
+ /// Service specification.
+ public OperationProperties(ServiceSpecification serviceSpecification = default(ServiceSpecification))
+ {
+ ServiceSpecification = serviceSpecification;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets service specification.
+ ///
+ [JsonProperty(PropertyName = "serviceSpecification")]
+ public ServiceSpecification ServiceSpecification { get; set; }
+
+ }
+}
diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ProxyResource.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ProxyResource.cs
index aaa7ca65a61f..af25de58f4ca 100644
--- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ProxyResource.cs
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ProxyResource.cs
@@ -13,9 +13,12 @@ namespace Microsoft.Azure.Management.MixedReality.Models
using System.Linq;
///
- /// The resource model definition for a ARM proxy resource. It will have
- /// everything other than required location and tags
+ /// Proxy Resource
///
+ ///
+ /// The resource model definition for a Azure Resource Manager proxy
+ /// resource. It will not have tags and a location
+ ///
public partial class ProxyResource : Resource
{
///
@@ -29,12 +32,12 @@ public ProxyResource()
///
/// Initializes a new instance of the ProxyResource class.
///
- /// Fully qualified resource Id for the resource. Ex -
+ /// Fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
/// The name of the resource
- /// The type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts.
+ /// The type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
public ProxyResource(string id = default(string), string name = default(string), string type = default(string))
: base(id, name, type)
{
diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/RemoteRenderingAccount.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/RemoteRenderingAccount.cs
index a0afda3f9837..efbf59271e7e 100644
--- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/RemoteRenderingAccount.cs
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/RemoteRenderingAccount.cs
@@ -36,22 +36,35 @@ public RemoteRenderingAccount()
///
/// The geo-location where the resource
/// lives
- /// Fully qualified resource Id for the resource. Ex -
+ /// Fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
/// The name of the resource
- /// The type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts.
+ /// The type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
/// Resource tags.
+ /// The name of the storage account
+ /// associated with this accountId
/// unique id of certain account.
/// Correspond domain name of certain
/// Spatial Anchors Account
- public RemoteRenderingAccount(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), RemoteRenderingAccountIdentity identity = default(RemoteRenderingAccountIdentity), string accountId = default(string), string accountDomain = default(string))
+ /// The identity associated with this
+ /// account
+ /// The plan associated with this account
+ /// The sku associated with this account
+ /// The kind of account, if supported
+ /// System metadata for this account
+ public RemoteRenderingAccount(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string storageAccountName = default(string), string accountId = default(string), string accountDomain = default(string), Identity identity = default(Identity), 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;
+ Identity = identity;
+ Plan = plan;
+ Sku = sku;
+ Kind = kind;
+ SystemData = systemData;
CustomInit();
}
@@ -61,9 +74,11 @@ public RemoteRenderingAccount()
partial void CustomInit();
///
+ /// Gets or sets the name of the storage account associated with this
+ /// accountId
///
- [JsonProperty(PropertyName = "identity")]
- public RemoteRenderingAccountIdentity Identity { get; set; }
+ [JsonProperty(PropertyName = "properties.storageAccountName")]
+ public string StorageAccountName { get; set; }
///
/// Gets unique id of certain account.
@@ -77,6 +92,36 @@ public RemoteRenderingAccount()
[JsonProperty(PropertyName = "properties.accountDomain")]
public string AccountDomain { get; private set; }
+ ///
+ /// Gets or sets the identity associated with this account
+ ///
+ [JsonProperty(PropertyName = "identity")]
+ public Identity Identity { get; 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 or sets system metadata for this account
+ ///
+ [JsonProperty(PropertyName = "systemData")]
+ public SystemData SystemData { get; set; }
+
///
/// Validate the object.
///
@@ -86,6 +131,14 @@ public RemoteRenderingAccount()
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/Models/RemoteRenderingAccountIdentity.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/RemoteRenderingAccountIdentity.cs
deleted file mode 100644
index 0202b6d78193..000000000000
--- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/RemoteRenderingAccountIdentity.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.MixedReality.Models
-{
- using System.Linq;
-
- public partial class RemoteRenderingAccountIdentity : Identity
- {
- ///
- /// Initializes a new instance of the RemoteRenderingAccountIdentity
- /// class.
- ///
- public RemoteRenderingAccountIdentity()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the RemoteRenderingAccountIdentity
- /// class.
- ///
- /// The principal ID of resource
- /// identity.
- /// The tenant ID of resource.
- /// The identity type. Possible values include:
- /// 'SystemAssigned'
- public RemoteRenderingAccountIdentity(string principalId = default(string), string tenantId = default(string), ResourceIdentityType? type = default(ResourceIdentityType?))
- : base(principalId, tenantId, type)
- {
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- }
-}
diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/Resource.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/Resource.cs
index ef9bcd12ae1a..be9f72d3bb97 100644
--- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/Resource.cs
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/Resource.cs
@@ -15,6 +15,13 @@ namespace Microsoft.Azure.Management.MixedReality.Models
using Newtonsoft.Json;
using System.Linq;
+ ///
+ /// Resource
+ ///
+ ///
+ /// Common fields that are returned in the response for all Azure Resource
+ /// Manager resources
+ ///
public partial class Resource : IResource
{
///
@@ -28,12 +35,12 @@ public Resource()
///
/// Initializes a new instance of the Resource class.
///
- /// Fully qualified resource Id for the resource. Ex -
+ /// Fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
/// The name of the resource
- /// The type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts.
+ /// The type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
public Resource(string id = default(string), string name = default(string), string type = default(string))
{
Id = id;
@@ -48,7 +55,7 @@ public Resource()
partial void CustomInit();
///
- /// Gets fully qualified resource Id for the resource. Ex -
+ /// Gets fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
///
[JsonProperty(PropertyName = "id")]
@@ -61,9 +68,9 @@ public Resource()
public string Name { get; private set; }
///
- /// Gets the type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts.
+ /// Gets the type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
///
[JsonProperty(PropertyName = "type")]
public string Type { get; private set; }
diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ResourceModelWithAllowedPropertySet.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ResourceModelWithAllowedPropertySet.cs
index a2931c01c52f..e017ff6c0a0c 100644
--- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ResourceModelWithAllowedPropertySet.cs
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ResourceModelWithAllowedPropertySet.cs
@@ -37,17 +37,17 @@ public ResourceModelWithAllowedPropertySet()
/// Initializes a new instance of the
/// ResourceModelWithAllowedPropertySet class.
///
- /// Fully qualified resource Id for the resource. Ex -
+ /// Fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
/// The name of the resource
- /// The type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts..
+ /// The type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
/// The geo-location where the resource
/// lives
- /// The fully qualified resource ID of the
+ /// 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
+ /// 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.
/// Metadata used by portal/tooling/etc to render
@@ -84,7 +84,7 @@ public ResourceModelWithAllowedPropertySet()
partial void CustomInit();
///
- /// Gets fully qualified resource Id for the resource. Ex -
+ /// Gets fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
///
[JsonProperty(PropertyName = "id")]
@@ -97,9 +97,9 @@ public ResourceModelWithAllowedPropertySet()
public string Name { get; private set; }
///
- /// Gets the type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts..
+ /// Gets the type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
///
[JsonProperty(PropertyName = "type")]
public string Type { get; private set; }
@@ -111,9 +111,9 @@ public ResourceModelWithAllowedPropertySet()
public string Location { get; set; }
///
- /// Gets or sets the fully qualified resource ID of the resource that
+ /// Gets or sets 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
+ /// 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.
///
diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ServiceSpecification.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ServiceSpecification.cs
new file mode 100644
index 000000000000..b683feaecac8
--- /dev/null
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/ServiceSpecification.cs
@@ -0,0 +1,63 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.MixedReality.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Service specification payload
+ ///
+ public partial class ServiceSpecification
+ {
+ ///
+ /// Initializes a new instance of the ServiceSpecification class.
+ ///
+ public ServiceSpecification()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ServiceSpecification class.
+ ///
+ /// Specifications of the Log for Azure
+ /// Monitoring
+ /// Specifications of the Metrics
+ /// for Azure Monitoring
+ public ServiceSpecification(IList logSpecifications = default(IList), IList metricSpecifications = default(IList))
+ {
+ LogSpecifications = logSpecifications;
+ MetricSpecifications = metricSpecifications;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets specifications of the Log for Azure Monitoring
+ ///
+ [JsonProperty(PropertyName = "logSpecifications")]
+ public IList LogSpecifications { get; set; }
+
+ ///
+ /// Gets or sets specifications of the Metrics for Azure Monitoring
+ ///
+ [JsonProperty(PropertyName = "metricSpecifications")]
+ public IList MetricSpecifications { get; set; }
+
+ }
+}
diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/SpatialAnchorsAccount.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/SpatialAnchorsAccount.cs
index 5a29a4bbbb5c..e426f1da6680 100644
--- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/SpatialAnchorsAccount.cs
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/SpatialAnchorsAccount.cs
@@ -36,21 +36,35 @@ public SpatialAnchorsAccount()
///
/// The geo-location where the resource
/// lives
- /// Fully qualified resource Id for the resource. Ex -
+ /// Fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
/// The name of the resource
- /// The type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts.
+ /// The type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
/// Resource tags.
+ /// The name of the storage account
+ /// associated with this accountId
/// unique id of certain account.
/// Correspond domain name of certain
/// Spatial Anchors Account
- public SpatialAnchorsAccount(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string accountId = default(string), string accountDomain = default(string))
+ /// The identity associated with this
+ /// account
+ /// The plan associated with this account
+ /// The sku associated with this account
+ /// The kind of account, if supported
+ /// System metadata for this account
+ public SpatialAnchorsAccount(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string storageAccountName = default(string), string accountId = default(string), string accountDomain = default(string), Identity identity = default(Identity), Identity plan = default(Identity), Sku sku = default(Sku), Sku kind = default(Sku), SystemData systemData = default(SystemData))
: base(location, id, name, type, tags)
{
+ StorageAccountName = storageAccountName;
AccountId = accountId;
AccountDomain = accountDomain;
+ Identity = identity;
+ Plan = plan;
+ Sku = sku;
+ Kind = kind;
+ SystemData = systemData;
CustomInit();
}
@@ -59,6 +73,13 @@ public SpatialAnchorsAccount()
///
partial void CustomInit();
+ ///
+ /// Gets or sets the name of the storage account associated with this
+ /// accountId
+ ///
+ [JsonProperty(PropertyName = "properties.storageAccountName")]
+ public string StorageAccountName { get; set; }
+
///
/// Gets unique id of certain account.
///
@@ -71,6 +92,36 @@ public SpatialAnchorsAccount()
[JsonProperty(PropertyName = "properties.accountDomain")]
public string AccountDomain { get; private set; }
+ ///
+ /// Gets or sets the identity associated with this account
+ ///
+ [JsonProperty(PropertyName = "identity")]
+ public Identity Identity { get; 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 or sets system metadata for this account
+ ///
+ [JsonProperty(PropertyName = "systemData")]
+ public SystemData SystemData { get; set; }
+
///
/// Validate the object.
///
@@ -80,6 +131,14 @@ public SpatialAnchorsAccount()
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/Models/SystemData.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/SystemData.cs
new file mode 100644
index 000000000000..80942133b989
--- /dev/null
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/SystemData.cs
@@ -0,0 +1,103 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.MixedReality.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Metadata pertaining to creation and last modification of the resource.
+ ///
+ public partial class SystemData
+ {
+ ///
+ /// Initializes a new instance of the SystemData class.
+ ///
+ public SystemData()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SystemData class.
+ ///
+ /// The identity that created the
+ /// resource.
+ /// The type of identity that created the
+ /// resource. Possible values include: 'User', 'Application',
+ /// 'ManagedIdentity', 'Key'
+ /// The timestamp of resource creation
+ /// (UTC).
+ /// The identity that last modified the
+ /// resource.
+ /// The type of identity that last
+ /// modified the resource. Possible values include: 'User',
+ /// 'Application', 'ManagedIdentity', 'Key'
+ /// The type of identity that last
+ /// modified the resource.
+ public SystemData(string createdBy = default(string), string createdByType = default(string), System.DateTime? createdAt = default(System.DateTime?), string lastModifiedBy = default(string), string lastModifiedByType = default(string), System.DateTime? lastModifiedAt = default(System.DateTime?))
+ {
+ CreatedBy = createdBy;
+ CreatedByType = createdByType;
+ CreatedAt = createdAt;
+ LastModifiedBy = lastModifiedBy;
+ LastModifiedByType = lastModifiedByType;
+ LastModifiedAt = lastModifiedAt;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the identity that created the resource.
+ ///
+ [JsonProperty(PropertyName = "createdBy")]
+ public string CreatedBy { get; set; }
+
+ ///
+ /// Gets or sets the type of identity that created the resource.
+ /// Possible values include: 'User', 'Application', 'ManagedIdentity',
+ /// 'Key'
+ ///
+ [JsonProperty(PropertyName = "createdByType")]
+ public string CreatedByType { get; set; }
+
+ ///
+ /// Gets or sets the timestamp of resource creation (UTC).
+ ///
+ [JsonProperty(PropertyName = "createdAt")]
+ public System.DateTime? CreatedAt { get; set; }
+
+ ///
+ /// Gets or sets the identity that last modified the resource.
+ ///
+ [JsonProperty(PropertyName = "lastModifiedBy")]
+ public string LastModifiedBy { get; set; }
+
+ ///
+ /// Gets or sets the type of identity that last modified the resource.
+ /// Possible values include: 'User', 'Application', 'ManagedIdentity',
+ /// 'Key'
+ ///
+ [JsonProperty(PropertyName = "lastModifiedByType")]
+ public string LastModifiedByType { get; set; }
+
+ ///
+ /// Gets or sets the type of identity that last modified the resource.
+ ///
+ [JsonProperty(PropertyName = "lastModifiedAt")]
+ public System.DateTime? LastModifiedAt { get; set; }
+
+ }
+}
diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/TrackedResource.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/TrackedResource.cs
index a9b64817dfa2..4e9e6c7a1775 100644
--- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/TrackedResource.cs
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Models/TrackedResource.cs
@@ -17,8 +17,12 @@ namespace Microsoft.Azure.Management.MixedReality.Models
using System.Linq;
///
- /// The resource model definition for a ARM tracked top level resource
+ /// Tracked Resource
///
+ ///
+ /// The resource model definition for an Azure Resource Manager tracked top
+ /// level resource which has 'tags' and a 'location'
+ ///
public partial class TrackedResource : Resource
{
///
@@ -34,12 +38,12 @@ public TrackedResource()
///
/// The geo-location where the resource
/// lives
- /// Fully qualified resource Id for the resource. Ex -
+ /// Fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
/// The name of the resource
- /// The type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts.
+ /// The type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
/// Resource tags.
public TrackedResource(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary))
: base(id, name, type)
diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Operations.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Operations.cs
index 0ec6bc5b281b..808bd9683b13 100644
--- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Operations.cs
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/Operations.cs
@@ -65,12 +65,21 @@ internal Operations(MixedRealityClient client)
///
/// Thrown when unable to deserialize the response
///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
///
/// A response object containing the response body and response headers.
///
public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- string apiVersion = "2020-05-01";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -78,7 +87,6 @@ internal Operations(MixedRealityClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
}
@@ -86,9 +94,9 @@ internal Operations(MixedRealityClient client)
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.MixedReality/operations").ToString();
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/RemoteRenderingAccountsOperations.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/RemoteRenderingAccountsOperations.cs
index 3b7c93604e96..fdbf4b636e59 100644
--- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/RemoteRenderingAccountsOperations.cs
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/RemoteRenderingAccountsOperations.cs
@@ -80,7 +80,10 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-04-06-preview";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -88,7 +91,6 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters);
}
@@ -97,9 +99,9 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/remoteRenderingAccounts").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -278,7 +280,10 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
}
}
- string apiVersion = "2020-04-06-preview";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -287,7 +292,6 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters);
}
@@ -297,9 +301,9 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -497,7 +501,10 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[-\\w\\._\\(\\)]+$");
}
}
- string apiVersion = "2020-04-06-preview";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -507,7 +514,6 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters);
}
@@ -518,9 +524,9 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -703,7 +709,10 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[-\\w\\._\\(\\)]+$");
}
}
- string apiVersion = "2020-04-06-preview";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -713,7 +722,6 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
}
@@ -724,9 +732,9 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -934,7 +942,10 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "remoteRenderingAccount");
}
- string apiVersion = "2020-04-06-preview";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -945,7 +956,6 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
tracingParameters.Add("remoteRenderingAccount", remoteRenderingAccount);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters);
}
@@ -956,9 +966,9 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -1176,7 +1186,10 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
{
remoteRenderingAccount.Validate();
}
- string apiVersion = "2020-04-06-preview";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1187,7 +1200,6 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
tracingParameters.Add("remoteRenderingAccount", remoteRenderingAccount);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Create", tracingParameters);
}
@@ -1198,9 +1210,9 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -1425,7 +1437,10 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[-\\w\\._\\(\\)]+$");
}
}
- string apiVersion = "2020-04-06-preview";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1435,7 +1450,6 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListKeys", tracingParameters);
}
@@ -1446,9 +1460,9 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -1652,7 +1666,10 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[-\\w\\._\\(\\)]+$");
}
}
- string apiVersion = "2020-04-06-preview";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
AccountKeyRegenerateRequest regenerate = new AccountKeyRegenerateRequest();
if (serial != null)
{
@@ -1667,7 +1684,6 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("regenerate", regenerate);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "RegenerateKeys", tracingParameters);
@@ -1679,9 +1695,9 @@ internal RemoteRenderingAccountsOperations(MixedRealityClient client)
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
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 964371494e84..bb956ad52a54 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
@@ -19,23 +19,12 @@ public static IEnumerable> ApiInfo_MixedRealityCli
{
return new Tuple[]
{
- new Tuple("MixedReality", "CheckNameAvailabilityLocal", "2020-05-01"),
- new Tuple("MixedReality", "Operations", "2020-05-01"),
- new Tuple("MixedReality", "RemoteRenderingAccounts", "2020-04-06-preview"),
- new Tuple("MixedReality", "SpatialAnchorsAccounts", "2020-05-01"),
+ new Tuple("MixedReality", "CheckNameAvailabilityLocal", "2021-01-01"),
+ new Tuple("MixedReality", "Operations", "2021-01-01"),
+ new Tuple("MixedReality", "RemoteRenderingAccounts", "2021-01-01"),
+ new Tuple("MixedReality", "SpatialAnchorsAccounts", "2021-01-01"),
}.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=D:\\Git\\GitHub\\my\\azure-sdk-for-net\\sdk";
- public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "fd1212399155ecb17199b24434d780a42a6e5ec6";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-
diff --git a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/SpatialAnchorsAccountsOperations.cs b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/SpatialAnchorsAccountsOperations.cs
index d83f57c35273..4a496a73d539 100644
--- a/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/SpatialAnchorsAccountsOperations.cs
+++ b/sdk/mixedreality/Microsoft.Azure.Management.MixedReality/src/Generated/SpatialAnchorsAccountsOperations.cs
@@ -80,7 +80,10 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-05-01";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -88,7 +91,6 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters);
}
@@ -97,9 +99,9 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/spatialAnchorsAccounts").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -278,7 +280,10 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
}
}
- string apiVersion = "2020-05-01";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -287,7 +292,6 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters);
}
@@ -297,9 +301,9 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -497,7 +501,10 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[-\\w\\._\\(\\)]+$");
}
}
- string apiVersion = "2020-05-01";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -507,7 +514,6 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters);
}
@@ -518,9 +524,9 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -703,7 +709,10 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[-\\w\\._\\(\\)]+$");
}
}
- string apiVersion = "2020-05-01";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -713,7 +722,6 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
}
@@ -724,9 +732,9 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -934,7 +942,10 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "spatialAnchorsAccount");
}
- string apiVersion = "2020-05-01";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -945,7 +956,6 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
tracingParameters.Add("spatialAnchorsAccount", spatialAnchorsAccount);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters);
}
@@ -956,9 +966,9 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -1176,7 +1186,10 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
{
spatialAnchorsAccount.Validate();
}
- string apiVersion = "2020-05-01";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1187,7 +1200,6 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
tracingParameters.Add("spatialAnchorsAccount", spatialAnchorsAccount);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Create", tracingParameters);
}
@@ -1198,9 +1210,9 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -1425,7 +1437,10 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[-\\w\\._\\(\\)]+$");
}
}
- string apiVersion = "2020-05-01";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1435,7 +1450,6 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListKeys", tracingParameters);
}
@@ -1446,9 +1460,9 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -1652,7 +1666,10 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[-\\w\\._\\(\\)]+$");
}
}
- string apiVersion = "2020-05-01";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
AccountKeyRegenerateRequest regenerate = new AccountKeyRegenerateRequest();
if (serial != null)
{
@@ -1667,7 +1684,6 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("regenerate", regenerate);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "RegenerateKeys", tracingParameters);
@@ -1679,9 +1695,9 @@ internal SpatialAnchorsAccountsOperations(MixedRealityClient client)
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{