From 1bd725662e09525ac27035ab5b030abe7a8d674a Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 27 Apr 2023 09:38:23 +0000 Subject: [PATCH] CodeGen from PR 23743 in Azure/azure-rest-api-specs Merge 4519fae5923b804e7710f31ac487d6274b0eb27e into 4d35f0d0da0c702944acb61b2f2f4d7657586235 --- ...esourceManager.HDInsight.netstandard2.0.cs | 1 + .../Extensions/HDInsightExtensions.cs | 28 +++++++++---------- ...InsightStorageAccountInfo.Serialization.cs | 17 ++++++++++- .../Models/HDInsightStorageAccountInfo.cs | 6 +++- .../ApplicationsRestOperations.cs | 2 +- .../RestOperations/ClustersRestOperations.cs | 2 +- .../ConfigurationsRestOperations.cs | 2 +- .../ExtensionsRestOperations.cs | 2 +- .../RestOperations/LocationsRestOperations.cs | 2 +- ...rivateEndpointConnectionsRestOperations.cs | 2 +- .../PrivateLinkResourcesRestOperations.cs | 2 +- .../ScriptActionsRestOperations.cs | 2 +- .../ScriptExecutionHistoryRestOperations.cs | 2 +- .../VirtualMachinesRestOperations.cs | 2 +- .../src/autorest.md | 2 +- 15 files changed, 47 insertions(+), 27 deletions(-) diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/api/Azure.ResourceManager.HDInsight.netstandard2.0.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/api/Azure.ResourceManager.HDInsight.netstandard2.0.cs index 73f21537fb73..dfce14b375c8 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/api/Azure.ResourceManager.HDInsight.netstandard2.0.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/api/Azure.ResourceManager.HDInsight.netstandard2.0.cs @@ -955,6 +955,7 @@ public partial class HDInsightStorageAccountInfo { public HDInsightStorageAccountInfo() { } public string Container { get { throw null; } set { } } + public bool? EnableSecureChannel { get { throw null; } set { } } public string Fileshare { get { throw null; } set { } } public string FileSystem { get { throw null; } set { } } public bool? IsDefault { get { throw null; } set { } } diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Extensions/HDInsightExtensions.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Extensions/HDInsightExtensions.cs index a325db9259c7..cd9ce4463aac 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Extensions/HDInsightExtensions.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Extensions/HDInsightExtensions.cs @@ -50,39 +50,39 @@ private static SubscriptionResourceExtensionClient GetSubscriptionResourceExtens return new SubscriptionResourceExtensionClient(client, scope); }); } - #region HDInsightClusterResource + #region HDInsightApplicationResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static HDInsightClusterResource GetHDInsightClusterResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static HDInsightApplicationResource GetHDInsightApplicationResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - HDInsightClusterResource.ValidateResourceId(id); - return new HDInsightClusterResource(client, id); + HDInsightApplicationResource.ValidateResourceId(id); + return new HDInsightApplicationResource(client, id); } ); } #endregion - #region HDInsightApplicationResource + #region HDInsightClusterResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static HDInsightApplicationResource GetHDInsightApplicationResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static HDInsightClusterResource GetHDInsightClusterResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - HDInsightApplicationResource.ValidateResourceId(id); - return new HDInsightApplicationResource(client, id); + HDInsightClusterResource.ValidateResourceId(id); + return new HDInsightClusterResource(client, id); } ); } diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightStorageAccountInfo.Serialization.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightStorageAccountInfo.Serialization.cs index 301267f9a7c8..b8aff0c6ef5c 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightStorageAccountInfo.Serialization.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightStorageAccountInfo.Serialization.cs @@ -74,6 +74,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("fileshare"u8); writer.WriteStringValue(Fileshare); } + if (Optional.IsDefined(EnableSecureChannel)) + { + writer.WritePropertyName("enableSecureChannel"u8); + writer.WriteBooleanValue(EnableSecureChannel.Value); + } writer.WriteEndObject(); } @@ -92,6 +97,7 @@ internal static HDInsightStorageAccountInfo DeserializeHDInsightStorageAccountIn Optional msiResourceId = default; Optional saskey = default; Optional fileshare = default; + Optional enableSecureChannel = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name"u8)) @@ -153,8 +159,17 @@ internal static HDInsightStorageAccountInfo DeserializeHDInsightStorageAccountIn fileshare = property.Value.GetString(); continue; } + if (property.NameEquals("enableSecureChannel"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enableSecureChannel = property.Value.GetBoolean(); + continue; + } } - return new HDInsightStorageAccountInfo(name.Value, Optional.ToNullable(isDefault), container.Value, fileSystem.Value, key.Value, resourceId.Value, msiResourceId.Value, saskey.Value, fileshare.Value); + return new HDInsightStorageAccountInfo(name.Value, Optional.ToNullable(isDefault), container.Value, fileSystem.Value, key.Value, resourceId.Value, msiResourceId.Value, saskey.Value, fileshare.Value, Optional.ToNullable(enableSecureChannel)); } } } diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightStorageAccountInfo.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightStorageAccountInfo.cs index a1ac6cd9563c..b0ca80fe7e4d 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightStorageAccountInfo.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/Models/HDInsightStorageAccountInfo.cs @@ -27,7 +27,8 @@ public HDInsightStorageAccountInfo() /// The managed identity (MSI) that is allowed to access the storage account, only to be specified for Azure Data Lake Storage Gen 2. /// The shared access signature key. /// The file share name. - internal HDInsightStorageAccountInfo(string name, bool? isDefault, string container, string fileSystem, string key, ResourceIdentifier resourceId, ResourceIdentifier msiResourceId, string sasKey, string fileshare) + /// Enable secure channel or not, it's an optional field. Default value is false when cluster version < 5.1 and true when cluster version >= 5.1 ,. + internal HDInsightStorageAccountInfo(string name, bool? isDefault, string container, string fileSystem, string key, ResourceIdentifier resourceId, ResourceIdentifier msiResourceId, string sasKey, string fileshare, bool? enableSecureChannel) { Name = name; IsDefault = isDefault; @@ -38,6 +39,7 @@ internal HDInsightStorageAccountInfo(string name, bool? isDefault, string contai MsiResourceId = msiResourceId; SasKey = sasKey; Fileshare = fileshare; + EnableSecureChannel = enableSecureChannel; } /// The name of the storage account. @@ -58,5 +60,7 @@ internal HDInsightStorageAccountInfo(string name, bool? isDefault, string contai public string SasKey { get; set; } /// The file share name. public string Fileshare { get; set; } + /// Enable secure channel or not, it's an optional field. Default value is false when cluster version < 5.1 and true when cluster version >= 5.1 ,. + public bool? EnableSecureChannel { get; set; } } } diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ApplicationsRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ApplicationsRestOperations.cs index d4e082c17325..4de37b26751a 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ApplicationsRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ApplicationsRestOperations.cs @@ -33,7 +33,7 @@ public ApplicationsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-01"; + _apiVersion = apiVersion ?? "2023-04-15-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ClustersRestOperations.cs index 4af091611ccc..5b70dd0751fe 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ClustersRestOperations.cs @@ -33,7 +33,7 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-01"; + _apiVersion = apiVersion ?? "2023-04-15-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ConfigurationsRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ConfigurationsRestOperations.cs index 0762620283d3..ef09f6573202 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ConfigurationsRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ConfigurationsRestOperations.cs @@ -34,7 +34,7 @@ public ConfigurationsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-01"; + _apiVersion = apiVersion ?? "2023-04-15-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ExtensionsRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ExtensionsRestOperations.cs index 7c161189c2b3..a4c18500cfc2 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ExtensionsRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ExtensionsRestOperations.cs @@ -33,7 +33,7 @@ public ExtensionsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-01"; + _apiVersion = apiVersion ?? "2023-04-15-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/LocationsRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/LocationsRestOperations.cs index b747d5a8a674..70743fe7262d 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/LocationsRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/LocationsRestOperations.cs @@ -33,7 +33,7 @@ public LocationsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-01"; + _apiVersion = apiVersion ?? "2023-04-15-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 85e7d903a50b..618b03c22c78 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-01"; + _apiVersion = apiVersion ?? "2023-04-15-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index fb89a6a0cb20..fdc2969b78ab 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -33,7 +33,7 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-01"; + _apiVersion = apiVersion ?? "2023-04-15-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ScriptActionsRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ScriptActionsRestOperations.cs index 2bce669533df..ec51a5cdabdb 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ScriptActionsRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ScriptActionsRestOperations.cs @@ -33,7 +33,7 @@ public ScriptActionsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-01"; + _apiVersion = apiVersion ?? "2023-04-15-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ScriptExecutionHistoryRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ScriptExecutionHistoryRestOperations.cs index 17217609edcc..86d6db9fc549 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ScriptExecutionHistoryRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/ScriptExecutionHistoryRestOperations.cs @@ -33,7 +33,7 @@ public ScriptExecutionHistoryRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-01"; + _apiVersion = apiVersion ?? "2023-04-15-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/VirtualMachinesRestOperations.cs b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/VirtualMachinesRestOperations.cs index a5a44ff90032..79903df52cd2 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/VirtualMachinesRestOperations.cs +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/Generated/RestOperations/VirtualMachinesRestOperations.cs @@ -34,7 +34,7 @@ public VirtualMachinesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-01"; + _apiVersion = apiVersion ?? "2023-04-15-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/autorest.md b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/autorest.md index 3ffe6d7ac35b..1b1c42127b65 100644 --- a/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/autorest.md +++ b/sdk/hdinsight/Azure.ResourceManager.HDInsight/src/autorest.md @@ -9,7 +9,7 @@ generate-model-factory: false csharp: true library-name: HDInsight namespace: Azure.ResourceManager.HDInsight -require: https://github.com/Azure/azure-rest-api-specs/blob/bab2f4389eb5ca73cdf366ec0a4af3f3eb6e1f6d/specification/hdinsight/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/hdinsight/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true