From fa4a16535430d08af35d629bf845c1c7b660bd26 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 20 Jan 2021 06:23:22 +0000 Subject: [PATCH] CodeGen from PR 12493 in Azure/azure-rest-api-specs Merge 6cd4f70f5e2bf476594b6b03333bfd5ec975a4d2 into a501906eeb0bb2d17cde6acc49d6a9c64dc9d03c --- .../src/Generated/ApplicationsOperations.cs | 2 +- .../src/Generated/ClustersOperations.cs | 2 +- .../src/Generated/ExtensionsOperations.cs | 4 +- .../Models/ApplicationGetEndpoint.cs | 11 +- .../Models/BillingResponseListResult.cs | 19 +- .../Generated/Models/ClusterGetProperties.cs | 28 ++- ...sterIdentityUserAssignedIdentitiesValue.cs | 11 +- .../Generated/Models/ConnectivityEndpoint.cs | 11 +- .../src/Generated/Models/Dimension.cs | 79 +++++++ .../Models/ExcludedServicesConfig.cs | 61 ++++++ .../src/Generated/Models/FilterMode.cs | 2 + .../Generated/Models/MetricSpecifications.cs | 197 ++++++++++++++++++ .../src/Generated/Models/Operation.cs | 10 +- .../src/Generated/Models/OperationDisplay.cs | 11 +- .../Generated/Models/OperationProperties.cs | 52 +++++ .../src/Generated/Models/Role.cs | 11 +- .../Generated/Models/ServiceSpecification.cs | 54 +++++ .../Models/VmSizeCompatibilityFilterV2.cs | 5 +- .../src/Generated/Models/VmSizeProperty.cs | 135 ++++++++++++ .../src/Generated/ScriptActionsOperations.cs | 2 +- .../SdkInfo_HDInsightManagementClient.cs | 11 - 21 files changed, 692 insertions(+), 26 deletions(-) create mode 100644 sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/Dimension.cs create mode 100644 sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ExcludedServicesConfig.cs create mode 100644 sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/MetricSpecifications.cs create mode 100644 sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/OperationProperties.cs create mode 100644 sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ServiceSpecification.cs create mode 100644 sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/VmSizeProperty.cs diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/ApplicationsOperations.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/ApplicationsOperations.cs index a5039330988eb..a27f5d06282a2 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/ApplicationsOperations.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/ApplicationsOperations.cs @@ -843,7 +843,7 @@ internal ApplicationsOperations(HDInsightManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/ClustersOperations.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/ClustersOperations.cs index 082f0a4e03ce0..fc1809da9a789 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/ClustersOperations.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/ClustersOperations.cs @@ -1495,7 +1495,7 @@ internal ClustersOperations(HDInsightManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/ExtensionsOperations.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/ExtensionsOperations.cs index 46a79d885e68b..d188741825178 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/ExtensionsOperations.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/ExtensionsOperations.cs @@ -853,7 +853,7 @@ internal ExtensionsOperations(HDInsightManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1225,7 +1225,7 @@ internal ExtensionsOperations(HDInsightManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ApplicationGetEndpoint.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ApplicationGetEndpoint.cs index 3cd9cca914c91..4441df9f937ba 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ApplicationGetEndpoint.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ApplicationGetEndpoint.cs @@ -33,11 +33,14 @@ public ApplicationGetEndpoint() /// The destination port to connect /// to. /// The public port to connect to. - public ApplicationGetEndpoint(string location = default(string), int? destinationPort = default(int?), int? publicPort = default(int?)) + /// The private ip address of the + /// endpoint. + public ApplicationGetEndpoint(string location = default(string), int? destinationPort = default(int?), int? publicPort = default(int?), string privateIPAddress = default(string)) { Location = location; DestinationPort = destinationPort; PublicPort = publicPort; + PrivateIPAddress = privateIPAddress; CustomInit(); } @@ -64,5 +67,11 @@ public ApplicationGetEndpoint() [JsonProperty(PropertyName = "publicPort")] public int? PublicPort { get; set; } + /// + /// Gets or sets the private ip address of the endpoint. + /// + [JsonProperty(PropertyName = "privateIPAddress")] + public string PrivateIPAddress { get; set; } + } } diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/BillingResponseListResult.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/BillingResponseListResult.cs index e90841475b443..52dc1d1556bb4 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/BillingResponseListResult.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/BillingResponseListResult.cs @@ -34,15 +34,20 @@ public BillingResponseListResult() /// /// The virtual machine sizes to include or /// exclude. + /// The vm sizes which enable + /// encryption at host. /// The virtual machine filtering mode. /// Effectively this can enabling or disabling the virtual machine /// sizes in a particular set. + /// The vm size properties. /// The billing and managed disk billing /// resources for a region. - public BillingResponseListResult(IList vmSizes = default(IList), IList vmSizeFilters = default(IList), IList billingResources = default(IList)) + public BillingResponseListResult(IList vmSizes = default(IList), IList vmSizesWithEncryptionAtHost = default(IList), IList vmSizeFilters = default(IList), IList vmSizeProperties = default(IList), IList billingResources = default(IList)) { VmSizes = vmSizes; + VmSizesWithEncryptionAtHost = vmSizesWithEncryptionAtHost; VmSizeFilters = vmSizeFilters; + VmSizeProperties = vmSizeProperties; BillingResources = billingResources; CustomInit(); } @@ -58,6 +63,12 @@ public BillingResponseListResult() [JsonProperty(PropertyName = "vmSizes")] public IList VmSizes { get; set; } + /// + /// Gets or sets the vm sizes which enable encryption at host. + /// + [JsonProperty(PropertyName = "vmSizesWithEncryptionAtHost")] + public IList VmSizesWithEncryptionAtHost { get; set; } + /// /// Gets or sets the virtual machine filtering mode. Effectively this /// can enabling or disabling the virtual machine sizes in a particular @@ -66,6 +77,12 @@ public BillingResponseListResult() [JsonProperty(PropertyName = "vmSizeFilters")] public IList VmSizeFilters { get; set; } + /// + /// Gets the vm size properties. + /// + [JsonProperty(PropertyName = "vmSizeProperties")] + public IList VmSizeProperties { get; private set; } + /// /// Gets or sets the billing and managed disk billing resources for a /// region. diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ClusterGetProperties.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ClusterGetProperties.cs index 94bf5c79b6110..008887981aef1 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ClusterGetProperties.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ClusterGetProperties.cs @@ -34,6 +34,8 @@ public ClusterGetProperties() /// /// The cluster definition. /// The version of the cluster. + /// The hdp version of the + /// cluster. /// The type of operating system. Possible values /// include: 'Windows', 'Linux' /// The cluster tier. Possible values include: @@ -57,14 +59,18 @@ public ClusterGetProperties() /// properties. /// The /// encryption-in-transit properties. + /// The storage profile. /// The minimal supported tls /// version. + /// The excluded services + /// config. /// The network properties. /// The compute isolation /// properties. - public ClusterGetProperties(ClusterDefinition clusterDefinition, string clusterVersion = default(string), OSType? osType = default(OSType?), Tier? tier = default(Tier?), string clusterId = default(string), KafkaRestProperties kafkaRestProperties = default(KafkaRestProperties), SecurityProfile securityProfile = default(SecurityProfile), ComputeProfile computeProfile = default(ComputeProfile), HDInsightClusterProvisioningState? provisioningState = default(HDInsightClusterProvisioningState?), string createdDate = default(string), string clusterState = default(string), QuotaInfo quotaInfo = default(QuotaInfo), IList errors = default(IList), IList connectivityEndpoints = default(IList), DiskEncryptionProperties diskEncryptionProperties = default(DiskEncryptionProperties), EncryptionInTransitProperties encryptionInTransitProperties = default(EncryptionInTransitProperties), string minSupportedTlsVersion = default(string), NetworkProperties networkProperties = default(NetworkProperties), ComputeIsolationProperties computeIsolationProperties = default(ComputeIsolationProperties)) + public ClusterGetProperties(ClusterDefinition clusterDefinition, string clusterVersion = default(string), string clusterHdpVersion = default(string), OSType? osType = default(OSType?), Tier? tier = default(Tier?), string clusterId = default(string), KafkaRestProperties kafkaRestProperties = default(KafkaRestProperties), SecurityProfile securityProfile = default(SecurityProfile), ComputeProfile computeProfile = default(ComputeProfile), HDInsightClusterProvisioningState? provisioningState = default(HDInsightClusterProvisioningState?), string createdDate = default(string), string clusterState = default(string), QuotaInfo quotaInfo = default(QuotaInfo), IList errors = default(IList), IList connectivityEndpoints = default(IList), DiskEncryptionProperties diskEncryptionProperties = default(DiskEncryptionProperties), EncryptionInTransitProperties encryptionInTransitProperties = default(EncryptionInTransitProperties), StorageProfile storageProfile = default(StorageProfile), string minSupportedTlsVersion = default(string), ExcludedServicesConfig excludedServicesConfig = default(ExcludedServicesConfig), NetworkProperties networkProperties = default(NetworkProperties), ComputeIsolationProperties computeIsolationProperties = default(ComputeIsolationProperties)) { ClusterVersion = clusterVersion; + ClusterHdpVersion = clusterHdpVersion; OsType = osType; Tier = tier; ClusterId = clusterId; @@ -80,7 +86,9 @@ public ClusterGetProperties() ConnectivityEndpoints = connectivityEndpoints; DiskEncryptionProperties = diskEncryptionProperties; EncryptionInTransitProperties = encryptionInTransitProperties; + StorageProfile = storageProfile; MinSupportedTlsVersion = minSupportedTlsVersion; + ExcludedServicesConfig = excludedServicesConfig; NetworkProperties = networkProperties; ComputeIsolationProperties = computeIsolationProperties; CustomInit(); @@ -97,6 +105,12 @@ public ClusterGetProperties() [JsonProperty(PropertyName = "clusterVersion")] public string ClusterVersion { get; set; } + /// + /// Gets or sets the hdp version of the cluster. + /// + [JsonProperty(PropertyName = "clusterHdpVersion")] + public string ClusterHdpVersion { get; set; } + /// /// Gets or sets the type of operating system. Possible values include: /// 'Windows', 'Linux' @@ -191,12 +205,24 @@ public ClusterGetProperties() [JsonProperty(PropertyName = "encryptionInTransitProperties")] public EncryptionInTransitProperties EncryptionInTransitProperties { get; set; } + /// + /// Gets or sets the storage profile. + /// + [JsonProperty(PropertyName = "storageProfile")] + public StorageProfile StorageProfile { get; set; } + /// /// Gets or sets the minimal supported tls version. /// [JsonProperty(PropertyName = "minSupportedTlsVersion")] public string MinSupportedTlsVersion { get; set; } + /// + /// Gets or sets the excluded services config. + /// + [JsonProperty(PropertyName = "excludedServicesConfig")] + public ExcludedServicesConfig ExcludedServicesConfig { get; set; } + /// /// Gets or sets the network properties. /// diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ClusterIdentityUserAssignedIdentitiesValue.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ClusterIdentityUserAssignedIdentitiesValue.cs index bf0af507ad8a8..120866ef191d2 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ClusterIdentityUserAssignedIdentitiesValue.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ClusterIdentityUserAssignedIdentitiesValue.cs @@ -32,10 +32,13 @@ public ClusterIdentityUserAssignedIdentitiesValue() /// identity. /// The client id of user assigned /// identity. - public ClusterIdentityUserAssignedIdentitiesValue(string principalId = default(string), string clientId = default(string)) + /// The tenant id of user assigned + /// identity. + public ClusterIdentityUserAssignedIdentitiesValue(string principalId = default(string), string clientId = default(string), string tenantId = default(string)) { PrincipalId = principalId; ClientId = clientId; + TenantId = tenantId; CustomInit(); } @@ -56,5 +59,11 @@ public ClusterIdentityUserAssignedIdentitiesValue() [JsonProperty(PropertyName = "clientId")] public string ClientId { get; private set; } + /// + /// Gets or sets the tenant id of user assigned identity. + /// + [JsonProperty(PropertyName = "tenantId")] + public string TenantId { get; set; } + } } diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ConnectivityEndpoint.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ConnectivityEndpoint.cs index ab4f18845cf36..fdd25114716f7 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ConnectivityEndpoint.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ConnectivityEndpoint.cs @@ -33,12 +33,15 @@ public ConnectivityEndpoint() /// The protocol of the endpoint. /// The location of the endpoint. /// The port to connect to. - public ConnectivityEndpoint(string name = default(string), string protocol = default(string), string location = default(string), int? port = default(int?)) + /// The private ip address of the + /// endpoint. + public ConnectivityEndpoint(string name = default(string), string protocol = default(string), string location = default(string), int? port = default(int?), string privateIPAddress = default(string)) { Name = name; Protocol = protocol; Location = location; Port = port; + PrivateIPAddress = privateIPAddress; CustomInit(); } @@ -71,5 +74,11 @@ public ConnectivityEndpoint() [JsonProperty(PropertyName = "port")] public int? Port { get; set; } + /// + /// Gets or sets the private ip address of the endpoint. + /// + [JsonProperty(PropertyName = "privateIPAddress")] + public string PrivateIPAddress { get; set; } + } } diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/Dimension.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/Dimension.cs new file mode 100644 index 0000000000000..77b46d47f1776 --- /dev/null +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/Dimension.cs @@ -0,0 +1,79 @@ +// +// 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.HDInsight.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The definition of Dimension. + /// + public partial class Dimension + { + /// + /// Initializes a new instance of the Dimension class. + /// + public Dimension() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Dimension class. + /// + /// The name of the dimension. + /// The display name of the + /// dimension. + /// The display name of the + /// dimension. + /// The flag indicates whether the + /// metric will be exported for shoebox or not. + public Dimension(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(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the dimension. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the display name of the dimension. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets the display name of the dimension. + /// + [JsonProperty(PropertyName = "internalName")] + public string InternalName { get; set; } + + /// + /// Gets or sets the flag indicates whether the metric will be exported + /// for shoebox or not. + /// + [JsonProperty(PropertyName = "toBeExportedForShoebox")] + public bool? ToBeExportedForShoebox { get; set; } + + } +} diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ExcludedServicesConfig.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ExcludedServicesConfig.cs new file mode 100644 index 0000000000000..68679f307525c --- /dev/null +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ExcludedServicesConfig.cs @@ -0,0 +1,61 @@ +// +// 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.HDInsight.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The configuration that services will be excluded when creating cluster. + /// + public partial class ExcludedServicesConfig + { + /// + /// Initializes a new instance of the ExcludedServicesConfig class. + /// + public ExcludedServicesConfig() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExcludedServicesConfig class. + /// + /// The config id of excluded + /// services. + /// The list of excluded + /// services. + public ExcludedServicesConfig(string excludedServicesConfigId = default(string), string excludedServicesList = default(string)) + { + ExcludedServicesConfigId = excludedServicesConfigId; + ExcludedServicesList = excludedServicesList; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the config id of excluded services. + /// + [JsonProperty(PropertyName = "excludedServicesConfigId")] + public string ExcludedServicesConfigId { get; set; } + + /// + /// Gets or sets the list of excluded services. + /// + [JsonProperty(PropertyName = "excludedServicesList")] + public string ExcludedServicesList { get; set; } + + } +} diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/FilterMode.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/FilterMode.cs index 5e0236dd7af95..55e7f0a5f3e48 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/FilterMode.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/FilterMode.cs @@ -18,5 +18,7 @@ public static class FilterMode { public const string Exclude = "Exclude"; public const string Include = "Include"; + public const string Recommend = "Recommend"; + public const string Default = "Default"; } } diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/MetricSpecifications.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/MetricSpecifications.cs new file mode 100644 index 0000000000000..91571a85f5ce2 --- /dev/null +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/MetricSpecifications.cs @@ -0,0 +1,197 @@ +// +// 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.HDInsight.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The details of metric specifications. + /// + public partial class MetricSpecifications + { + /// + /// Initializes a new instance of the MetricSpecifications class. + /// + public MetricSpecifications() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MetricSpecifications class. + /// + /// The name of the metric specification. + /// The display name of the metric + /// specification. + /// The display description of the + /// metric specification. + /// The unit of the metric specification. + /// The aggregation type of the metric + /// specification. + /// The supported aggregation + /// types of the metric specification. + /// The supported time grain + /// types of the metric specification. + /// The flag indicates whether + /// enable regional mdm account or not. + /// The source mdm account. + /// The source mdm namespace. + /// The metric filter + /// pattern. + /// The flag indicates whether filling + /// gap with zero. + /// The category of the metric. + /// The override name of + /// resource id dimension name. + /// The flag indicates whether the metric is + /// internal or not. + /// The override name of + /// delegate metric. + /// The dimensions of the metric + /// specification. + public MetricSpecifications(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 resourceIdDimensionNameOverride = default(string), bool? isInternal = default(bool?), string delegateMetricNameOverride = default(string), IList dimensions = default(IList)) + { + 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; + ResourceIdDimensionNameOverride = resourceIdDimensionNameOverride; + IsInternal = isInternal; + DelegateMetricNameOverride = delegateMetricNameOverride; + Dimensions = dimensions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the metric specification. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the display name of the metric specification. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets the display description of the metric specification. + /// + [JsonProperty(PropertyName = "displayDescription")] + public string DisplayDescription { get; set; } + + /// + /// Gets or sets the unit of the metric specification. + /// + [JsonProperty(PropertyName = "unit")] + public string Unit { get; set; } + + /// + /// Gets or sets the aggregation type of the metric specification. + /// + [JsonProperty(PropertyName = "aggregationType")] + public string AggregationType { get; set; } + + /// + /// Gets or sets the supported aggregation types of the metric + /// specification. + /// + [JsonProperty(PropertyName = "supportedAggregationTypes")] + public IList SupportedAggregationTypes { get; set; } + + /// + /// Gets or sets the supported time grain types of the metric + /// specification. + /// + [JsonProperty(PropertyName = "supportedTimeGrainTypes")] + public IList SupportedTimeGrainTypes { get; set; } + + /// + /// Gets or sets the flag indicates whether enable regional mdm account + /// or not. + /// + [JsonProperty(PropertyName = "enableRegionalMdmAccount")] + public bool? EnableRegionalMdmAccount { get; set; } + + /// + /// Gets or sets the source mdm account. + /// + [JsonProperty(PropertyName = "sourceMdmAccount")] + public string SourceMdmAccount { get; set; } + + /// + /// Gets or sets the source mdm namespace. + /// + [JsonProperty(PropertyName = "sourceMdmNamespace")] + public string SourceMdmNamespace { get; set; } + + /// + /// Gets or sets the metric filter pattern. + /// + [JsonProperty(PropertyName = "metricFilterPattern")] + public string MetricFilterPattern { get; set; } + + /// + /// Gets or sets the flag indicates whether filling gap with zero. + /// + [JsonProperty(PropertyName = "fillGapWithZero")] + public bool? FillGapWithZero { get; set; } + + /// + /// Gets or sets the category of the metric. + /// + [JsonProperty(PropertyName = "category")] + public string Category { get; set; } + + /// + /// Gets or sets the override name of resource id dimension name. + /// + [JsonProperty(PropertyName = "resourceIdDimensionNameOverride")] + public string ResourceIdDimensionNameOverride { get; set; } + + /// + /// Gets or sets the flag indicates whether the metric is internal or + /// not. + /// + [JsonProperty(PropertyName = "isInternal")] + public bool? IsInternal { get; set; } + + /// + /// Gets or sets the override name of delegate metric. + /// + [JsonProperty(PropertyName = "delegateMetricNameOverride")] + public string DelegateMetricNameOverride { get; set; } + + /// + /// Gets or sets the dimensions of the metric specification. + /// + [JsonProperty(PropertyName = "dimensions")] + public IList Dimensions { get; set; } + + } +} diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/Operation.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/Operation.cs index 66354e1b3961c..63ec3c8a83ed9 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/Operation.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/Operation.cs @@ -33,10 +33,12 @@ public Operation() /// {provider}/{resource}/{operation} /// The object that represents the /// operation. - public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay)) + /// The operation properties. + public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), OperationProperties properties = default(OperationProperties)) { Name = name; Display = display; + Properties = properties; CustomInit(); } @@ -57,5 +59,11 @@ public Operation() [JsonProperty(PropertyName = "display")] public OperationDisplay Display { get; set; } + /// + /// Gets or sets the operation properties. + /// + [JsonProperty(PropertyName = "properties")] + public OperationProperties Properties { get; set; } + } } diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/OperationDisplay.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/OperationDisplay.cs index 112435eea4177..35d33f449dd8b 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/OperationDisplay.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/OperationDisplay.cs @@ -35,11 +35,14 @@ public OperationDisplay() /// performed: Cluster, Applications, etc. /// The operation type: read, write, delete, /// etc. - public OperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string)) + /// Localized friendly description for the + /// operation + public OperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string)) { Provider = provider; Resource = resource; Operation = operation; + Description = description; CustomInit(); } @@ -67,5 +70,11 @@ public OperationDisplay() [JsonProperty(PropertyName = "operation")] public string Operation { get; set; } + /// + /// Gets or sets localized friendly description for the operation + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + } } diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/OperationProperties.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/OperationProperties.cs new file mode 100644 index 0000000000000..27039bff7e6b8 --- /dev/null +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/OperationProperties.cs @@ -0,0 +1,52 @@ +// +// 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.HDInsight.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The details of operation. + /// + public partial class OperationProperties + { + /// + /// Initializes a new instance of the OperationProperties class. + /// + public OperationProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationProperties class. + /// + /// The specification of the + /// service. + 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 the specification of the service. + /// + [JsonProperty(PropertyName = "serviceSpecification")] + public ServiceSpecification ServiceSpecification { get; set; } + + } +} diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/Role.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/Role.cs index f1cd3ad7d9a06..0152e0613d31c 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/Role.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/Role.cs @@ -46,7 +46,9 @@ public Role() /// role. /// The list of script actions on the /// role. - public Role(string name = default(string), int? minInstanceCount = default(int?), int? targetInstanceCount = default(int?), Autoscale autoscaleConfiguration = default(Autoscale), HardwareProfile hardwareProfile = default(HardwareProfile), OsProfile osProfile = default(OsProfile), VirtualNetworkProfile virtualNetworkProfile = default(VirtualNetworkProfile), IList dataDisksGroups = default(IList), IList scriptActions = default(IList)) + /// Indicates whether encrypt the data + /// disks. + public Role(string name = default(string), int? minInstanceCount = default(int?), int? targetInstanceCount = default(int?), Autoscale autoscaleConfiguration = default(Autoscale), HardwareProfile hardwareProfile = default(HardwareProfile), OsProfile osProfile = default(OsProfile), VirtualNetworkProfile virtualNetworkProfile = default(VirtualNetworkProfile), IList dataDisksGroups = default(IList), IList scriptActions = default(IList), bool? encryptDataDisks = default(bool?)) { Name = name; MinInstanceCount = minInstanceCount; @@ -57,6 +59,7 @@ public Role() VirtualNetworkProfile = virtualNetworkProfile; DataDisksGroups = dataDisksGroups; ScriptActions = scriptActions; + EncryptDataDisks = encryptDataDisks; CustomInit(); } @@ -119,5 +122,11 @@ public Role() [JsonProperty(PropertyName = "scriptActions")] public IList ScriptActions { get; set; } + /// + /// Gets or sets indicates whether encrypt the data disks. + /// + [JsonProperty(PropertyName = "encryptDataDisks")] + public bool? EncryptDataDisks { get; set; } + } } diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ServiceSpecification.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ServiceSpecification.cs new file mode 100644 index 0000000000000..e77adad870d97 --- /dev/null +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ServiceSpecification.cs @@ -0,0 +1,54 @@ +// +// 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.HDInsight.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The specification of the service. + /// + public partial class ServiceSpecification + { + /// + /// Initializes a new instance of the ServiceSpecification class. + /// + public ServiceSpecification() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServiceSpecification class. + /// + /// The metric + /// specifications. + public ServiceSpecification(IList metricSpecifications = default(IList)) + { + MetricSpecifications = metricSpecifications; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the metric specifications. + /// + [JsonProperty(PropertyName = "metricSpecifications")] + public IList MetricSpecifications { get; set; } + + } +} diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/VmSizeCompatibilityFilterV2.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/VmSizeCompatibilityFilterV2.cs index 308b9de05cb94..67b813ca44545 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/VmSizeCompatibilityFilterV2.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/VmSizeCompatibilityFilterV2.cs @@ -41,7 +41,8 @@ public VmSizeCompatibilityFilterV2() /// /// The filtering mode. Effectively this can /// enabling or disabling the VM sizes in a particular set. Possible - /// values include: 'Exclude', 'Include' + /// values include: 'Exclude', 'Include', 'Recommend', + /// 'Default' /// The list of regions under the effect of the /// filter. /// The list of cluster flavors under the @@ -73,7 +74,7 @@ public VmSizeCompatibilityFilterV2() /// /// Gets or sets the filtering mode. Effectively this can enabling or /// disabling the VM sizes in a particular set. Possible values - /// include: 'Exclude', 'Include' + /// include: 'Exclude', 'Include', 'Recommend', 'Default' /// [JsonProperty(PropertyName = "filterMode")] public string FilterMode { get; set; } diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/VmSizeProperty.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/VmSizeProperty.cs new file mode 100644 index 0000000000000..aaa7f5e64d7ec --- /dev/null +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/VmSizeProperty.cs @@ -0,0 +1,135 @@ +// +// 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.HDInsight.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The vm size property + /// + public partial class VmSizeProperty + { + /// + /// Initializes a new instance of the VmSizeProperty class. + /// + public VmSizeProperty() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the VmSizeProperty class. + /// + /// The vm size name. + /// The number of cores that the vm size + /// has. + /// The data disk storage tier of the + /// vm size. + /// The label of the vm size. + /// The max data disk count of the vm + /// size. + /// The memory whose unit is MB of the vm + /// size. + /// This indicates this vm + /// size is supported by virtual machines or not + /// The indicates this vm size + /// is supported by web worker roles or not + /// The virtual + /// machine resource disk size whose unit is MB of the vm size. + /// The web worker resource + /// disk size whose unit is MB of the vm size. + public VmSizeProperty(string name = default(string), int? cores = default(int?), string dataDiskStorageTier = default(string), string label = default(string), long? maxDataDiskCount = default(long?), long? memoryInMb = default(long?), bool? supportedByVirtualMachines = default(bool?), bool? supportedByWebWorkerRoles = default(bool?), long? virtualMachineResourceDiskSizeInMb = default(long?), long? webWorkerResourceDiskSizeInMb = default(long?)) + { + Name = name; + Cores = cores; + DataDiskStorageTier = dataDiskStorageTier; + Label = label; + MaxDataDiskCount = maxDataDiskCount; + MemoryInMb = memoryInMb; + SupportedByVirtualMachines = supportedByVirtualMachines; + SupportedByWebWorkerRoles = supportedByWebWorkerRoles; + VirtualMachineResourceDiskSizeInMb = virtualMachineResourceDiskSizeInMb; + WebWorkerResourceDiskSizeInMb = webWorkerResourceDiskSizeInMb; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the vm size name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the number of cores that the vm size has. + /// + [JsonProperty(PropertyName = "cores")] + public int? Cores { get; set; } + + /// + /// Gets or sets the data disk storage tier of the vm size. + /// + [JsonProperty(PropertyName = "dataDiskStorageTier")] + public string DataDiskStorageTier { get; set; } + + /// + /// Gets or sets the label of the vm size. + /// + [JsonProperty(PropertyName = "label")] + public string Label { get; set; } + + /// + /// Gets or sets the max data disk count of the vm size. + /// + [JsonProperty(PropertyName = "maxDataDiskCount")] + public long? MaxDataDiskCount { get; set; } + + /// + /// Gets or sets the memory whose unit is MB of the vm size. + /// + [JsonProperty(PropertyName = "memoryInMb")] + public long? MemoryInMb { get; set; } + + /// + /// Gets or sets this indicates this vm size is supported by virtual + /// machines or not + /// + [JsonProperty(PropertyName = "supportedByVirtualMachines")] + public bool? SupportedByVirtualMachines { get; set; } + + /// + /// Gets or sets the indicates this vm size is supported by web worker + /// roles or not + /// + [JsonProperty(PropertyName = "supportedByWebWorkerRoles")] + public bool? SupportedByWebWorkerRoles { get; set; } + + /// + /// Gets or sets the virtual machine resource disk size whose unit is + /// MB of the vm size. + /// + [JsonProperty(PropertyName = "virtualMachineResourceDiskSizeInMb")] + public long? VirtualMachineResourceDiskSizeInMb { get; set; } + + /// + /// Gets or sets the web worker resource disk size whose unit is MB of + /// the vm size. + /// + [JsonProperty(PropertyName = "webWorkerResourceDiskSizeInMb")] + public long? WebWorkerResourceDiskSizeInMb { get; set; } + + } +} diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/ScriptActionsOperations.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/ScriptActionsOperations.cs index c534f6dcd50f8..ee326b357956a 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/ScriptActionsOperations.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/ScriptActionsOperations.cs @@ -185,7 +185,7 @@ internal ScriptActionsOperations(HDInsightManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 204) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/SdkInfo_HDInsightManagementClient.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/SdkInfo_HDInsightManagementClient.cs index 04b774d9224cc..0a7e2fcd1f2e7 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/SdkInfo_HDInsightManagementClient.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/SdkInfo_HDInsightManagementClient.cs @@ -31,16 +31,5 @@ public static IEnumerable> ApiInfo_HDInsightManage }.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/hdinsight/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\source\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "7a9a26f1fc8ca57aea81a37eaac7019a958d2424"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -