diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/AvailabilitySetsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/AvailabilitySetsOperations.cs index 248842d77644..796bcf8b80ee 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/AvailabilitySetsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/AvailabilitySetsOperations.cs @@ -105,7 +105,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -313,7 +313,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -511,7 +511,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -687,7 +687,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -871,7 +871,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1059,7 +1059,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1252,7 +1252,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CapacityReservationGroupsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CapacityReservationGroupsOperations.cs index bad13963fd4e..975b9cd742c7 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CapacityReservationGroupsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CapacityReservationGroupsOperations.cs @@ -107,7 +107,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -330,7 +330,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; CapacityReservationGroupUpdate parameters = new CapacityReservationGroupUpdate(); if (tags != null) { @@ -537,7 +537,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -722,7 +722,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -923,7 +923,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1115,7 +1115,7 @@ internal CapacityReservationGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CapacityReservationsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CapacityReservationsOperations.cs index 7e86b56a5c49..a2ee2c00f75f 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CapacityReservationsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CapacityReservationsOperations.cs @@ -193,7 +193,7 @@ internal CapacityReservationsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -396,7 +396,7 @@ internal CapacityReservationsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -610,7 +610,7 @@ internal CapacityReservationsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -845,7 +845,7 @@ internal CapacityReservationsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1055,7 +1055,7 @@ internal CapacityReservationsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostGroupsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostGroupsOperations.cs index abf8d3e9b44f..ac37a2972856 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostGroupsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostGroupsOperations.cs @@ -107,7 +107,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -333,7 +333,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -531,7 +531,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -713,7 +713,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -907,7 +907,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1087,7 +1087,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperations.cs index fe9b4551dfa3..26f65a2f9a86 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperations.cs @@ -188,7 +188,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -391,7 +391,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -541,6 +541,36 @@ internal DedicatedHostsOperations(ComputeManagementClient client) return _result; } + /// + /// Restart the dedicated host. The operation will complete successfully once + /// the dedicated host has restarted and is running. To determine the health of + /// VMs deployed on the dedicated host after the restart check the Resource + /// Health Center in the Azure Portal. Please refer to + /// https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview + /// for more details. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the dedicated host group. + /// + /// + /// The name of the dedicated host. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task RestartWithHttpMessagesAsync(string resourceGroupName, string hostGroupName, string hostName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginRestartWithHttpMessagesAsync(resourceGroupName, hostGroupName, hostName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Create or update a dedicated host . /// @@ -603,7 +633,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -838,7 +868,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1045,7 +1075,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1179,6 +1209,193 @@ internal DedicatedHostsOperations(ComputeManagementClient client) return _result; } + /// + /// Restart the dedicated host. The operation will complete successfully once + /// the dedicated host has restarted and is running. To determine the health of + /// VMs deployed on the dedicated host after the restart check the Resource + /// Health Center in the Azure Portal. Please refer to + /// https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview + /// for more details. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the dedicated host group. + /// + /// + /// The name of the dedicated host. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// 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 BeginRestartWithHttpMessagesAsync(string resourceGroupName, string hostGroupName, string hostName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (hostGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "hostGroupName"); + } + if (hostName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "hostName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2021-11-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("hostGroupName", hostGroupName); + tracingParameters.Add("hostName", hostName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginRestart", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/restart").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{hostGroupName}", System.Uri.EscapeDataString(hostGroupName)); + _url = _url.Replace("{hostName}", System.Uri.EscapeDataString(hostName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Lists all of the dedicated hosts in the specified dedicated host group. Use /// the nextLink property in the response to get the next page of dedicated diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperationsExtensions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperationsExtensions.cs index f2220b4a5782..fabf22468b17 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperationsExtensions.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperationsExtensions.cs @@ -270,6 +270,59 @@ public static IPage ListByHostGroup(this IDedicatedHostsOperation } } + /// + /// Restart the dedicated host. The operation will complete successfully once + /// the dedicated host has restarted and is running. To determine the health of + /// VMs deployed on the dedicated host after the restart check the Resource + /// Health Center in the Azure Portal. Please refer to + /// https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview + /// for more details. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the dedicated host group. + /// + /// + /// The name of the dedicated host. + /// + public static void Restart(this IDedicatedHostsOperations operations, string resourceGroupName, string hostGroupName, string hostName) + { + operations.RestartAsync(resourceGroupName, hostGroupName, hostName).GetAwaiter().GetResult(); + } + + /// + /// Restart the dedicated host. The operation will complete successfully once + /// the dedicated host has restarted and is running. To determine the health of + /// VMs deployed on the dedicated host after the restart check the Resource + /// Health Center in the Azure Portal. Please refer to + /// https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview + /// for more details. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the dedicated host group. + /// + /// + /// The name of the dedicated host. + /// + /// + /// The cancellation token. + /// + public static async Task RestartAsync(this IDedicatedHostsOperations operations, string resourceGroupName, string hostGroupName, string hostName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.RestartWithHttpMessagesAsync(resourceGroupName, hostGroupName, hostName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// Create or update a dedicated host . /// @@ -417,6 +470,59 @@ public static void BeginDelete(this IDedicatedHostsOperations operations, string (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, hostGroupName, hostName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Restart the dedicated host. The operation will complete successfully once + /// the dedicated host has restarted and is running. To determine the health of + /// VMs deployed on the dedicated host after the restart check the Resource + /// Health Center in the Azure Portal. Please refer to + /// https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview + /// for more details. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the dedicated host group. + /// + /// + /// The name of the dedicated host. + /// + public static void BeginRestart(this IDedicatedHostsOperations operations, string resourceGroupName, string hostGroupName, string hostName) + { + operations.BeginRestartAsync(resourceGroupName, hostGroupName, hostName).GetAwaiter().GetResult(); + } + + /// + /// Restart the dedicated host. The operation will complete successfully once + /// the dedicated host has restarted and is running. To determine the health of + /// VMs deployed on the dedicated host after the restart check the Resource + /// Health Center in the Azure Portal. Please refer to + /// https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview + /// for more details. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the dedicated host group. + /// + /// + /// The name of the dedicated host. + /// + /// + /// The cancellation token. + /// + public static async Task BeginRestartAsync(this IDedicatedHostsOperations operations, string resourceGroupName, string hostGroupName, string hostName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginRestartWithHttpMessagesAsync(resourceGroupName, hostGroupName, hostName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// Lists all of the dedicated hosts in the specified dedicated host group. Use /// the nextLink property in the response to get the next page of dedicated diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IDedicatedHostsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IDedicatedHostsOperations.cs index 3f21a00e6770..e67471db2663 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IDedicatedHostsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IDedicatedHostsOperations.cs @@ -172,6 +172,37 @@ public partial interface IDedicatedHostsOperations /// Task>> ListByHostGroupWithHttpMessagesAsync(string resourceGroupName, string hostGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Restart the dedicated host. The operation will complete + /// successfully once the dedicated host has restarted and is running. + /// To determine the health of VMs deployed on the dedicated host after + /// the restart check the Resource Health Center in the Azure Portal. + /// Please refer to + /// https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview + /// for more details. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the dedicated host group. + /// + /// + /// The name of the dedicated host. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task RestartWithHttpMessagesAsync(string resourceGroupName, string hostGroupName, string hostName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Create or update a dedicated host . /// /// @@ -259,6 +290,37 @@ public partial interface IDedicatedHostsOperations /// Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string hostGroupName, string hostName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Restart the dedicated host. The operation will complete + /// successfully once the dedicated host has restarted and is running. + /// To determine the health of VMs deployed on the dedicated host after + /// the restart check the Resource Health Center in the Azure Portal. + /// Please refer to + /// https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview + /// for more details. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the dedicated host group. + /// + /// + /// The name of the dedicated host. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginRestartWithHttpMessagesAsync(string resourceGroupName, string hostGroupName, string hostName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Lists all of the dedicated hosts in the specified dedicated host /// group. Use the nextLink property in the response to get the next /// page of dedicated hosts. diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IRestorePointsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IRestorePointsOperations.cs index 3153ddfdeafb..f8811ef42ea6 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IRestorePointsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IRestorePointsOperations.cs @@ -92,6 +92,11 @@ public partial interface IRestorePointsOperations /// /// The name of the restore point. /// + /// + /// The expand expression to apply on the operation. 'InstanceView' + /// retrieves information about the run-time state of a restore point. + /// Possible values include: 'instanceView' + /// /// /// The headers that will be added to request. /// @@ -107,7 +112,7 @@ public partial interface IRestorePointsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, string restorePointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, string restorePointName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// The operation to create the restore point. Updating properties of /// an existing restore point is not allowed diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineScaleSetsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineScaleSetsOperations.cs index 3f374cc248d5..f7e63a1b2a60 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineScaleSetsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineScaleSetsOperations.cs @@ -584,6 +584,14 @@ public partial interface IVirtualMachineScaleSetsOperations /// The platform update domain for which a manual recovery walk is /// requested /// + /// + /// The zone in which the manual recovery walk is requested for cross + /// zone virtual machine scale set + /// + /// + /// The placement group id for which the manual recovery walk is + /// requested. + /// /// /// The headers that will be added to request. /// @@ -599,7 +607,7 @@ public partial interface IVirtualMachineScaleSetsOperations /// /// Thrown when a required parameter is null /// - Task> ForceRecoveryServiceFabricPlatformUpdateDomainWalkWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, int platformUpdateDomain, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ForceRecoveryServiceFabricPlatformUpdateDomainWalkWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, int platformUpdateDomain, string zone = default(string), string placementGroupId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Converts SinglePlacementGroup property to false for a existing /// virtual machine scale set. diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachinesOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachinesOperations.cs index 2cd6e2ee3cf6..8df51681fff8 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachinesOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachinesOperations.cs @@ -308,6 +308,11 @@ public partial interface IVirtualMachinesOperations /// /// The name of the resource group. /// + /// + /// The system query option to filter VMs returned in the response. + /// Allowed value is 'virtualMachineScaleSet/id' eq + /// /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' + /// /// /// The headers that will be added to request. /// @@ -323,7 +328,7 @@ public partial interface IVirtualMachinesOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists all of the virtual machines in the specified subscription. /// Use the nextLink property in the response to get the next page of @@ -333,6 +338,11 @@ public partial interface IVirtualMachinesOperations /// statusOnly=true enables fetching run time status of all Virtual /// Machines in the subscription. /// + /// + /// The system query option to filter VMs returned in the response. + /// Allowed value is 'virtualMachineScaleSet/id' eq + /// /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' + /// /// /// The headers that will be added to request. /// @@ -348,7 +358,7 @@ public partial interface IVirtualMachinesOperations /// /// Thrown when a required parameter is null /// - Task>> ListAllWithHttpMessagesAsync(string statusOnly = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListAllWithHttpMessagesAsync(string statusOnly = default(string), string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists all available virtual machine sizes to which the specified /// virtual machine can be resized. diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ImagesOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ImagesOperations.cs index 56cc968444fd..0f6785cf40c8 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ImagesOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ImagesOperations.cs @@ -169,7 +169,7 @@ internal ImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -361,7 +361,7 @@ internal ImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -541,7 +541,7 @@ internal ImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -742,7 +742,7 @@ internal ImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -968,7 +968,7 @@ internal ImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1184,7 +1184,7 @@ internal ImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/LogAnalyticsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/LogAnalyticsOperations.cs index 9a93953caff3..069bc48d3c6a 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/LogAnalyticsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/LogAnalyticsOperations.cs @@ -152,7 +152,7 @@ internal LogAnalyticsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -363,7 +363,7 @@ internal LogAnalyticsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/AutomaticRepairsPolicy.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/AutomaticRepairsPolicy.cs index bb24e531ad19..77069f584cc0 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/AutomaticRepairsPolicy.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/AutomaticRepairsPolicy.cs @@ -38,12 +38,17 @@ public AutomaticRepairsPolicy() /// starts after the state change has completed. This helps avoid /// premature or accidental repairs. The time duration should be /// specified in ISO 8601 format. The minimum allowed grace period is - /// 30 minutes (PT30M), which is also the default value. The maximum + /// 10 minutes (PT10M), which is also the default value. The maximum /// allowed grace period is 90 minutes (PT90M). - public AutomaticRepairsPolicy(bool? enabled = default(bool?), string gracePeriod = default(string)) + /// Type of repair action (replace, restart, + /// reimage) that will be used for repairing unhealthy virtual machines + /// in the scale set. Default value is replace. Possible values + /// include: 'Replace', 'Restart', 'Reimage' + public AutomaticRepairsPolicy(bool? enabled = default(bool?), string gracePeriod = default(string), string repairAction = default(string)) { Enabled = enabled; GracePeriod = gracePeriod; + RepairAction = repairAction; CustomInit(); } @@ -64,12 +69,21 @@ public AutomaticRepairsPolicy() /// suspended due to a state change on VM. The grace time starts after /// the state change has completed. This helps avoid premature or /// accidental repairs. The time duration should be specified in ISO - /// 8601 format. The minimum allowed grace period is 30 minutes - /// (PT30M), which is also the default value. The maximum allowed grace + /// 8601 format. The minimum allowed grace period is 10 minutes + /// (PT10M), which is also the default value. The maximum allowed grace /// period is 90 minutes (PT90M). /// [JsonProperty(PropertyName = "gracePeriod")] public string GracePeriod { get; set; } + /// + /// Gets or sets type of repair action (replace, restart, reimage) that + /// will be used for repairing unhealthy virtual machines in the scale + /// set. Default value is replace. Possible values include: 'Replace', + /// 'Restart', 'Reimage' + /// + [JsonProperty(PropertyName = "repairAction")] + public string RepairAction { get; set; } + } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/CapacityReservation.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/CapacityReservation.cs index b91f4e540400..d25a1505eb93 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/CapacityReservation.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/CapacityReservation.cs @@ -58,6 +58,9 @@ public CapacityReservation() /// appears in the response. /// The Capacity reservation instance /// view. + /// Specifies the time at which the Capacity + /// Reservation resource was created.<br><br>Minimum + /// api-version: 2021-11-01. /// Availability Zone to use for this capacity /// reservation. The zone has to be single value and also should be /// part for the list of zones specified during the capacity @@ -65,7 +68,7 @@ public CapacityReservation() /// creation. If not provided, the reservation supports only non-zonal /// deployments. If provided, enforces VM/VMSS using this capacity /// reservation to be in same zone. - public CapacityReservation(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string reservationId = default(string), IList virtualMachinesAssociated = default(IList), System.DateTime? provisioningTime = default(System.DateTime?), string provisioningState = default(string), CapacityReservationInstanceView instanceView = default(CapacityReservationInstanceView), IList zones = default(IList)) + public CapacityReservation(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string reservationId = default(string), IList virtualMachinesAssociated = default(IList), System.DateTime? provisioningTime = default(System.DateTime?), string provisioningState = default(string), CapacityReservationInstanceView instanceView = default(CapacityReservationInstanceView), System.DateTime? timeCreated = default(System.DateTime?), IList zones = default(IList)) : base(location, id, name, type, tags) { ReservationId = reservationId; @@ -73,6 +76,7 @@ public CapacityReservation() ProvisioningTime = provisioningTime; ProvisioningState = provisioningState; InstanceView = instanceView; + TimeCreated = timeCreated; Sku = sku; Zones = zones; CustomInit(); @@ -116,6 +120,14 @@ public CapacityReservation() [JsonProperty(PropertyName = "properties.instanceView")] public CapacityReservationInstanceView InstanceView { get; private set; } + /// + /// Gets specifies the time at which the Capacity Reservation resource + /// was created.&lt;br&gt;&lt;br&gt;Minimum + /// api-version: 2021-11-01. + /// + [JsonProperty(PropertyName = "properties.timeCreated")] + public System.DateTime? TimeCreated { get; private set; } + /// /// Gets or sets SKU of the resource for which capacity needs be /// reserved. The SKU name and capacity is required to be set. diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/CapacityReservationUpdate.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/CapacityReservationUpdate.cs index b49accbf972d..8af25f4738fd 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/CapacityReservationUpdate.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/CapacityReservationUpdate.cs @@ -48,6 +48,9 @@ public CapacityReservationUpdate() /// appears in the response. /// The Capacity reservation instance /// view. + /// Specifies the time at which the Capacity + /// Reservation resource was created.<br><br>Minimum + /// api-version: 2021-11-01. /// SKU of the resource for which capacity needs be /// reserved. The SKU name and capacity is required to be set. /// Currently VM Skus with the capability called @@ -55,7 +58,7 @@ public CapacityReservationUpdate() /// List Microsoft.Compute SKUs in a region /// (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for /// supported values. - public CapacityReservationUpdate(IDictionary tags = default(IDictionary), string reservationId = default(string), IList virtualMachinesAssociated = default(IList), System.DateTime? provisioningTime = default(System.DateTime?), string provisioningState = default(string), CapacityReservationInstanceView instanceView = default(CapacityReservationInstanceView), Sku sku = default(Sku)) + public CapacityReservationUpdate(IDictionary tags = default(IDictionary), string reservationId = default(string), IList virtualMachinesAssociated = default(IList), System.DateTime? provisioningTime = default(System.DateTime?), string provisioningState = default(string), CapacityReservationInstanceView instanceView = default(CapacityReservationInstanceView), System.DateTime? timeCreated = default(System.DateTime?), Sku sku = default(Sku)) : base(tags) { ReservationId = reservationId; @@ -63,6 +66,7 @@ public CapacityReservationUpdate() ProvisioningTime = provisioningTime; ProvisioningState = provisioningState; InstanceView = instanceView; + TimeCreated = timeCreated; Sku = sku; CustomInit(); } @@ -105,6 +109,14 @@ public CapacityReservationUpdate() [JsonProperty(PropertyName = "properties.instanceView")] public CapacityReservationInstanceView InstanceView { get; private set; } + /// + /// Gets specifies the time at which the Capacity Reservation resource + /// was created.&lt;br&gt;&lt;br&gt;Minimum + /// api-version: 2021-11-01. + /// + [JsonProperty(PropertyName = "properties.timeCreated")] + public System.DateTime? TimeCreated { get; private set; } + /// /// Gets or sets SKU of the resource for which capacity needs be /// reserved. The SKU name and capacity is required to be set. diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DedicatedHost.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DedicatedHost.cs index 2492e07e7fed..faac3438b484 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DedicatedHost.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DedicatedHost.cs @@ -65,7 +65,10 @@ public DedicatedHost() /// appears in the response. /// The dedicated host instance /// view. - public DedicatedHost(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), int? platformFaultDomain = default(int?), bool? autoReplaceOnFailure = default(bool?), string hostId = default(string), IList virtualMachines = default(IList), DedicatedHostLicenseTypes? licenseType = default(DedicatedHostLicenseTypes?), System.DateTime? provisioningTime = default(System.DateTime?), string provisioningState = default(string), DedicatedHostInstanceView instanceView = default(DedicatedHostInstanceView)) + /// Specifies the time at which the Dedicated + /// Host resource was created.<br><br>Minimum api-version: + /// 2021-11-01. + public DedicatedHost(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), int? platformFaultDomain = default(int?), bool? autoReplaceOnFailure = default(bool?), string hostId = default(string), IList virtualMachines = default(IList), DedicatedHostLicenseTypes? licenseType = default(DedicatedHostLicenseTypes?), System.DateTime? provisioningTime = default(System.DateTime?), string provisioningState = default(string), DedicatedHostInstanceView instanceView = default(DedicatedHostInstanceView), System.DateTime? timeCreated = default(System.DateTime?)) : base(location, id, name, type, tags) { PlatformFaultDomain = platformFaultDomain; @@ -76,6 +79,7 @@ public DedicatedHost() ProvisioningTime = provisioningTime; ProvisioningState = provisioningState; InstanceView = instanceView; + TimeCreated = timeCreated; Sku = sku; CustomInit(); } @@ -147,6 +151,14 @@ public DedicatedHost() [JsonProperty(PropertyName = "properties.instanceView")] public DedicatedHostInstanceView InstanceView { get; private set; } + /// + /// Gets specifies the time at which the Dedicated Host resource was + /// created.&lt;br&gt;&lt;br&gt;Minimum api-version: + /// 2021-11-01. + /// + [JsonProperty(PropertyName = "properties.timeCreated")] + public System.DateTime? TimeCreated { get; private set; } + /// /// Gets or sets SKU of the dedicated host for Hardware Generation and /// VM family. Only name is required to be set. List Microsoft.Compute diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DedicatedHostUpdate.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DedicatedHostUpdate.cs index b49fbb5da148..43040c861db1 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DedicatedHostUpdate.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DedicatedHostUpdate.cs @@ -59,7 +59,10 @@ public DedicatedHostUpdate() /// appears in the response. /// The dedicated host instance /// view. - public DedicatedHostUpdate(IDictionary tags = default(IDictionary), int? platformFaultDomain = default(int?), bool? autoReplaceOnFailure = default(bool?), string hostId = default(string), IList virtualMachines = default(IList), DedicatedHostLicenseTypes? licenseType = default(DedicatedHostLicenseTypes?), System.DateTime? provisioningTime = default(System.DateTime?), string provisioningState = default(string), DedicatedHostInstanceView instanceView = default(DedicatedHostInstanceView)) + /// Specifies the time at which the Dedicated + /// Host resource was created.<br><br>Minimum api-version: + /// 2021-11-01. + public DedicatedHostUpdate(IDictionary tags = default(IDictionary), int? platformFaultDomain = default(int?), bool? autoReplaceOnFailure = default(bool?), string hostId = default(string), IList virtualMachines = default(IList), DedicatedHostLicenseTypes? licenseType = default(DedicatedHostLicenseTypes?), System.DateTime? provisioningTime = default(System.DateTime?), string provisioningState = default(string), DedicatedHostInstanceView instanceView = default(DedicatedHostInstanceView), System.DateTime? timeCreated = default(System.DateTime?)) : base(tags) { PlatformFaultDomain = platformFaultDomain; @@ -70,6 +73,7 @@ public DedicatedHostUpdate() ProvisioningTime = provisioningTime; ProvisioningState = provisioningState; InstanceView = instanceView; + TimeCreated = timeCreated; CustomInit(); } @@ -140,6 +144,14 @@ public DedicatedHostUpdate() [JsonProperty(PropertyName = "properties.instanceView")] public DedicatedHostInstanceView InstanceView { get; private set; } + /// + /// Gets specifies the time at which the Dedicated Host resource was + /// created.&lt;br&gt;&lt;br&gt;Minimum api-version: + /// 2021-11-01. + /// + [JsonProperty(PropertyName = "properties.timeCreated")] + public System.DateTime? TimeCreated { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiskRestorePointInstanceView.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiskRestorePointInstanceView.cs new file mode 100644 index 000000000000..ec126bab7991 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiskRestorePointInstanceView.cs @@ -0,0 +1,62 @@ +// +// 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.Compute.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The instance view of a disk restore point. + /// + public partial class DiskRestorePointInstanceView + { + /// + /// Initializes a new instance of the DiskRestorePointInstanceView + /// class. + /// + public DiskRestorePointInstanceView() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DiskRestorePointInstanceView + /// class. + /// + /// Disk restore point Id. + /// The disk restore point replication + /// status information. + public DiskRestorePointInstanceView(string id = default(string), object replicationStatus = default(object)) + { + Id = id; + ReplicationStatus = replicationStatus; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets disk restore point Id. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the disk restore point replication status information. + /// + [JsonProperty(PropertyName = "replicationStatus")] + public object ReplicationStatus { get; set; } + + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiskRestorePointReplicationStatus.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiskRestorePointReplicationStatus.cs new file mode 100644 index 000000000000..c3f5bac1a2be --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiskRestorePointReplicationStatus.cs @@ -0,0 +1,53 @@ +// +// 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.Compute.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The instance view of a disk restore point. + /// + public partial class DiskRestorePointReplicationStatus + { + /// + /// Initializes a new instance of the DiskRestorePointReplicationStatus + /// class. + /// + public DiskRestorePointReplicationStatus() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DiskRestorePointReplicationStatus + /// class. + /// + /// The resource status information. + public DiskRestorePointReplicationStatus(object status = default(object)) + { + Status = status; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource status information. + /// + [JsonProperty(PropertyName = "status")] + public object Status { get; set; } + + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ImageReference.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ImageReference.cs index 564ade3e0901..a84ee1117dc7 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ImageReference.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ImageReference.cs @@ -53,7 +53,10 @@ public ImageReference() /// Specified the shared gallery /// image unique id for vm deployment. This can be fetched from shared /// gallery image GET call. - public ImageReference(string id = default(string), string publisher = default(string), string offer = default(string), string sku = default(string), string version = default(string), string exactVersion = default(string), string sharedGalleryImageId = default(string)) + /// Specified the community + /// gallery image unique id for vm deployment. This can be fetched from + /// community gallery image GET call. + public ImageReference(string id = default(string), string publisher = default(string), string offer = default(string), string sku = default(string), string version = default(string), string exactVersion = default(string), string sharedGalleryImageId = default(string), string communityGalleryImageId = default(string)) : base(id) { Publisher = publisher; @@ -62,6 +65,7 @@ public ImageReference() Version = version; ExactVersion = exactVersion; SharedGalleryImageId = sharedGalleryImageId; + CommunityGalleryImageId = communityGalleryImageId; CustomInit(); } @@ -117,5 +121,13 @@ public ImageReference() [JsonProperty(PropertyName = "sharedGalleryImageId")] public string SharedGalleryImageId { get; set; } + /// + /// Gets or sets specified the community gallery image unique id for vm + /// deployment. This can be fetched from community gallery image GET + /// call. + /// + [JsonProperty(PropertyName = "communityGalleryImageId")] + public string CommunityGalleryImageId { get; set; } + } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ManagedDiskParameters.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ManagedDiskParameters.cs index 7042c7d19476..207b9484db26 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ManagedDiskParameters.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ManagedDiskParameters.cs @@ -37,11 +37,14 @@ public ManagedDiskParameters() /// 'Premium_ZRS', 'StandardSSD_ZRS' /// Specifies the customer managed disk /// encryption set resource id for the managed disk. - public ManagedDiskParameters(string id = default(string), string storageAccountType = default(string), DiskEncryptionSetParameters diskEncryptionSet = default(DiskEncryptionSetParameters)) + /// Specifies the security profile for + /// the managed disk. + public ManagedDiskParameters(string id = default(string), string storageAccountType = default(string), DiskEncryptionSetParameters diskEncryptionSet = default(DiskEncryptionSetParameters), VMDiskSecurityProfile securityProfile = default(VMDiskSecurityProfile)) : base(id) { StorageAccountType = storageAccountType; DiskEncryptionSet = diskEncryptionSet; + SecurityProfile = securityProfile; CustomInit(); } @@ -67,5 +70,11 @@ public ManagedDiskParameters() [JsonProperty(PropertyName = "diskEncryptionSet")] public DiskEncryptionSetParameters DiskEncryptionSet { get; set; } + /// + /// Gets or sets specifies the security profile for the managed disk. + /// + [JsonProperty(PropertyName = "securityProfile")] + public VMDiskSecurityProfile SecurityProfile { get; set; } + } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAddressSku.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAddressSku.cs index 8a3daf217a1a..7c58f0e6e932 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAddressSku.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAddressSku.cs @@ -14,7 +14,8 @@ namespace Microsoft.Azure.Management.Compute.Models using System.Linq; /// - /// Describes the public IP Sku + /// Describes the public IP Sku. It can only be set with OrchestrationMode + /// as Flexible. /// public partial class PublicIPAddressSku { diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RepairAction.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RepairAction.cs new file mode 100644 index 000000000000..93036df29aa9 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RepairAction.cs @@ -0,0 +1,23 @@ +// +// 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.Compute.Models +{ + + /// + /// Defines values for RepairAction. + /// + public static class RepairAction + { + public const string Replace = "Replace"; + public const string Restart = "Restart"; + public const string Reimage = "Reimage"; + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePoint.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePoint.cs index c109d3786060..3f5b173c24ac 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePoint.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePoint.cs @@ -50,7 +50,10 @@ public RestorePoint() /// 'FileSystemConsistent', 'ApplicationConsistent' /// Gets the creation time of the restore /// point. - public RestorePoint(string id = default(string), string name = default(string), string type = default(string), IList excludeDisks = default(IList), RestorePointSourceMetadata sourceMetadata = default(RestorePointSourceMetadata), string provisioningState = default(string), string consistencyMode = default(string), System.DateTime? timeCreated = default(System.DateTime?)) + /// Resource Id of the source restore + /// point from which a copy needs to be created. + /// The restore point instance view. + public RestorePoint(string id = default(string), string name = default(string), string type = default(string), IList excludeDisks = default(IList), RestorePointSourceMetadata sourceMetadata = default(RestorePointSourceMetadata), string provisioningState = default(string), string consistencyMode = default(string), System.DateTime? timeCreated = default(System.DateTime?), ApiEntityReference sourceRestorePoint = default(ApiEntityReference), RestorePointInstanceView instanceView = default(RestorePointInstanceView)) : base(id, name, type) { ExcludeDisks = excludeDisks; @@ -58,6 +61,8 @@ public RestorePoint() ProvisioningState = provisioningState; ConsistencyMode = consistencyMode; TimeCreated = timeCreated; + SourceRestorePoint = sourceRestorePoint; + InstanceView = instanceView; CustomInit(); } @@ -102,6 +107,19 @@ public RestorePoint() [JsonProperty(PropertyName = "properties.timeCreated")] public System.DateTime? TimeCreated { get; set; } + /// + /// Gets or sets resource Id of the source restore point from which a + /// copy needs to be created. + /// + [JsonProperty(PropertyName = "properties.sourceRestorePoint")] + public ApiEntityReference SourceRestorePoint { get; set; } + + /// + /// Gets the restore point instance view. + /// + [JsonProperty(PropertyName = "properties.instanceView")] + public RestorePointInstanceView InstanceView { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointExpandOptions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointExpandOptions.cs new file mode 100644 index 000000000000..8c9c16f10b61 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointExpandOptions.cs @@ -0,0 +1,21 @@ +// +// 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.Compute.Models +{ + + /// + /// Defines values for RestorePointExpandOptions. + /// + public static class RestorePointExpandOptions + { + public const string InstanceView = "instanceView"; + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointInstanceView.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointInstanceView.cs new file mode 100644 index 000000000000..9e1bfde85d71 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointInstanceView.cs @@ -0,0 +1,62 @@ +// +// 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.Compute.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The instance view of a restore point. + /// + public partial class RestorePointInstanceView + { + /// + /// Initializes a new instance of the RestorePointInstanceView class. + /// + public RestorePointInstanceView() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RestorePointInstanceView class. + /// + /// The disk restore points + /// information. + /// The resource status information. + public RestorePointInstanceView(IList diskRestorePoints = default(IList), IList statuses = default(IList)) + { + DiskRestorePoints = diskRestorePoints; + Statuses = statuses; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the disk restore points information. + /// + [JsonProperty(PropertyName = "diskRestorePoints")] + public IList DiskRestorePoints { get; set; } + + /// + /// Gets or sets the resource status information. + /// + [JsonProperty(PropertyName = "statuses")] + public IList Statuses { get; set; } + + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SecurityEncryptionTypes.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SecurityEncryptionTypes.cs new file mode 100644 index 000000000000..2a6faf169094 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SecurityEncryptionTypes.cs @@ -0,0 +1,22 @@ +// +// 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.Compute.Models +{ + + /// + /// Defines values for SecurityEncryptionTypes. + /// + public static class SecurityEncryptionTypes + { + public const string VMGuestStateOnly = "VMGuestStateOnly"; + public const string DiskWithVMGuestState = "DiskWithVMGuestState"; + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SecurityProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SecurityProfile.cs index 195674740d18..97ced4fef357 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SecurityProfile.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SecurityProfile.cs @@ -41,10 +41,10 @@ public SecurityProfile() /// be disabled unless this property is set to true for the /// resource. /// Specifies the SecurityType of the - /// virtual machine. It is set as TrustedLaunch to enable UefiSettings. - /// <br><br> Default: UefiSettings will not be enabled - /// unless this property is set as TrustedLaunch. Possible values - /// include: 'TrustedLaunch' + /// virtual machine. It has to be set to any specified value to enable + /// UefiSettings. <br><br> Default: UefiSettings will not + /// be enabled unless this property is set. Possible values include: + /// 'TrustedLaunch', 'ConfidentialVM' public SecurityProfile(UefiSettings uefiSettings = default(UefiSettings), bool? encryptionAtHost = default(bool?), string securityType = default(string)) { UefiSettings = uefiSettings; @@ -80,10 +80,10 @@ public SecurityProfile() /// /// Gets or sets specifies the SecurityType of the virtual machine. It - /// is set as TrustedLaunch to enable UefiSettings. + /// has to be set to any specified value to enable UefiSettings. /// &lt;br&gt;&lt;br&gt; Default: UefiSettings will not - /// be enabled unless this property is set as TrustedLaunch. Possible - /// values include: 'TrustedLaunch' + /// be enabled unless this property is set. Possible values include: + /// 'TrustedLaunch', 'ConfidentialVM' /// [JsonProperty(PropertyName = "securityType")] public string SecurityType { get; set; } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SecurityTypes.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SecurityTypes.cs index d85c553e8c4d..4c887f9ed9f1 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SecurityTypes.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SecurityTypes.cs @@ -17,5 +17,6 @@ namespace Microsoft.Azure.Management.Compute.Models public static class SecurityTypes { public const string TrustedLaunch = "TrustedLaunch"; + public const string ConfidentialVM = "ConfidentialVM"; } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VMDiskSecurityProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VMDiskSecurityProfile.cs new file mode 100644 index 000000000000..0120b6024929 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VMDiskSecurityProfile.cs @@ -0,0 +1,77 @@ +// +// 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.Compute.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Specifies the security profile settings for the managed disk. + /// <br><br> NOTE: It can only be set for Confidential VMs + /// + public partial class VMDiskSecurityProfile + { + /// + /// Initializes a new instance of the VMDiskSecurityProfile class. + /// + public VMDiskSecurityProfile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the VMDiskSecurityProfile class. + /// + /// Specifies the EncryptionType + /// of the managed disk. <br> It is set to DiskWithVMGuestState + /// for encryption of the managed disk along with VMGuestState blob, + /// and VMGuestStateOnly for encryption of just the VMGuestState blob. + /// <br><br> NOTE: It can be set for only Confidential VMs. + /// Possible values include: 'VMGuestStateOnly', + /// 'DiskWithVMGuestState' + /// Specifies the customer managed disk + /// encryption set resource id for the managed disk that is used for + /// Customer Managed Key encrypted ConfidentialVM OS Disk and VMGuest + /// blob. + public VMDiskSecurityProfile(string securityEncryptionType = default(string), DiskEncryptionSetParameters diskEncryptionSet = default(DiskEncryptionSetParameters)) + { + SecurityEncryptionType = securityEncryptionType; + DiskEncryptionSet = diskEncryptionSet; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specifies the EncryptionType of the managed disk. + /// &lt;br&gt; It is set to DiskWithVMGuestState for encryption + /// of the managed disk along with VMGuestState blob, and + /// VMGuestStateOnly for encryption of just the VMGuestState blob. + /// &lt;br&gt;&lt;br&gt; NOTE: It can be set for only + /// Confidential VMs. Possible values include: 'VMGuestStateOnly', + /// 'DiskWithVMGuestState' + /// + [JsonProperty(PropertyName = "securityEncryptionType")] + public string SecurityEncryptionType { get; set; } + + /// + /// Gets or sets specifies the customer managed disk encryption set + /// resource id for the managed disk that is used for Customer Managed + /// Key encrypted ConfidentialVM OS Disk and VMGuest blob. + /// + [JsonProperty(PropertyName = "diskEncryptionSet")] + public DiskEncryptionSetParameters DiskEncryptionSet { get; set; } + + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachine.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachine.cs index 77427d65be44..5d2db6ded20b 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachine.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachine.cs @@ -160,6 +160,9 @@ public VirtualMachine() /// <br><br>Minimum api-version: 2021-04-01. /// Specifies the gallery applications /// that should be made available to the VM/VMSS + /// Specifies the time at which the Virtual + /// Machine resource was created.<br><br>Minimum + /// api-version: 2021-11-01. /// The virtual machine child extension /// resources. /// The identity of the virtual machine, if @@ -167,7 +170,7 @@ public VirtualMachine() /// The virtual machine zones. /// The extended location of the Virtual /// Machine. - public VirtualMachine(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Plan plan = default(Plan), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), SubResource virtualMachineScaleSet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), string priority = default(string), string evictionPolicy = default(string), BillingProfile billingProfile = default(BillingProfile), SubResource host = default(SubResource), SubResource hostGroup = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), string extensionsTimeBudget = default(string), int? platformFaultDomain = default(int?), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), CapacityReservationProfile capacityReservation = default(CapacityReservationProfile), ApplicationProfile applicationProfile = default(ApplicationProfile), IList resources = default(IList), VirtualMachineIdentity identity = default(VirtualMachineIdentity), IList zones = default(IList), ExtendedLocation extendedLocation = default(ExtendedLocation)) + public VirtualMachine(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Plan plan = default(Plan), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), SubResource virtualMachineScaleSet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), string priority = default(string), string evictionPolicy = default(string), BillingProfile billingProfile = default(BillingProfile), SubResource host = default(SubResource), SubResource hostGroup = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), string extensionsTimeBudget = default(string), int? platformFaultDomain = default(int?), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), CapacityReservationProfile capacityReservation = default(CapacityReservationProfile), ApplicationProfile applicationProfile = default(ApplicationProfile), System.DateTime? timeCreated = default(System.DateTime?), IList resources = default(IList), VirtualMachineIdentity identity = default(VirtualMachineIdentity), IList zones = default(IList), ExtendedLocation extendedLocation = default(ExtendedLocation)) : base(location, id, name, type, tags) { Plan = plan; @@ -196,6 +199,7 @@ public VirtualMachine() UserData = userData; CapacityReservation = capacityReservation; ApplicationProfile = applicationProfile; + TimeCreated = timeCreated; Resources = resources; Identity = identity; Zones = zones; @@ -465,6 +469,14 @@ public VirtualMachine() [JsonProperty(PropertyName = "properties.applicationProfile")] public ApplicationProfile ApplicationProfile { get; set; } + /// + /// Gets specifies the time at which the Virtual Machine resource was + /// created.&lt;br&gt;&lt;br&gt;Minimum api-version: + /// 2021-11-01. + /// + [JsonProperty(PropertyName = "properties.timeCreated")] + public System.DateTime? TimeCreated { get; private set; } + /// /// Gets the virtual machine child extension resources. /// diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineExtension.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineExtension.cs index a760052cbaa7..168a0c16da1b 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineExtension.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineExtension.cs @@ -69,7 +69,10 @@ public VirtualMachineExtension() /// from the extension will be suppressed (Operational failures such as /// not connecting to the VM will not be suppressed regardless of this /// value). The default is false. - public VirtualMachineExtension(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string forceUpdateTag = default(string), string publisher = default(string), string virtualMachineExtensionType = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), VirtualMachineExtensionInstanceView instanceView = default(VirtualMachineExtensionInstanceView), bool? suppressFailures = default(bool?)) + /// The extensions + /// protected settings that are passed by reference, and consumed from + /// key vault + public VirtualMachineExtension(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string forceUpdateTag = default(string), string publisher = default(string), string virtualMachineExtensionType = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), VirtualMachineExtensionInstanceView instanceView = default(VirtualMachineExtensionInstanceView), bool? suppressFailures = default(bool?), object protectedSettingsFromKeyVault = default(object)) : base(location, id, name, type, tags) { ForceUpdateTag = forceUpdateTag; @@ -83,6 +86,7 @@ public VirtualMachineExtension() ProvisioningState = provisioningState; InstanceView = instanceView; SuppressFailures = suppressFailures; + ProtectedSettingsFromKeyVault = protectedSettingsFromKeyVault; CustomInit(); } @@ -168,6 +172,13 @@ public VirtualMachineExtension() [JsonProperty(PropertyName = "properties.suppressFailures")] public bool? SuppressFailures { get; set; } + /// + /// Gets or sets the extensions protected settings that are passed by + /// reference, and consumed from key vault + /// + [JsonProperty(PropertyName = "properties.protectedSettingsFromKeyVault")] + public object ProtectedSettingsFromKeyVault { get; set; } + /// /// Validate the object. /// diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineExtensionUpdate.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineExtensionUpdate.cs index 3e7d76f71caf..3839a8f107a7 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineExtensionUpdate.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineExtensionUpdate.cs @@ -63,7 +63,10 @@ public VirtualMachineExtensionUpdate() /// from the extension will be suppressed (Operational failures such as /// not connecting to the VM will not be suppressed regardless of this /// value). The default is false. - public VirtualMachineExtensionUpdate(IDictionary tags = default(IDictionary), string forceUpdateTag = default(string), string publisher = default(string), string type = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), bool? suppressFailures = default(bool?)) + /// The extensions + /// protected settings that are passed by reference, and consumed from + /// key vault + public VirtualMachineExtensionUpdate(IDictionary tags = default(IDictionary), string forceUpdateTag = default(string), string publisher = default(string), string type = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), bool? suppressFailures = default(bool?), object protectedSettingsFromKeyVault = default(object)) : base(tags) { ForceUpdateTag = forceUpdateTag; @@ -75,6 +78,7 @@ public VirtualMachineExtensionUpdate() Settings = settings; ProtectedSettings = protectedSettings; SuppressFailures = suppressFailures; + ProtectedSettingsFromKeyVault = protectedSettingsFromKeyVault; CustomInit(); } @@ -148,5 +152,12 @@ public VirtualMachineExtensionUpdate() [JsonProperty(PropertyName = "properties.suppressFailures")] public bool? SuppressFailures { get; set; } + /// + /// Gets or sets the extensions protected settings that are passed by + /// reference, and consumed from key vault + /// + [JsonProperty(PropertyName = "properties.protectedSettingsFromKeyVault")] + public object ProtectedSettingsFromKeyVault { get; set; } + } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSet.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSet.cs index 3254d8ae1e4d..90b1b73de66a 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSet.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSet.cs @@ -96,6 +96,9 @@ public VirtualMachineScaleSet() /// 'Uniform', 'Flexible' /// Specifies the Spot Restore /// properties for the virtual machine scale set. + /// Specifies the time at which the Virtual + /// Machine Scale Set resource was created.<br><br>Minimum + /// api-version: 2021-11-01. /// The identity of the virtual machine scale /// set, if configured. /// The virtual machine scale set zones. NOTE: @@ -103,7 +106,7 @@ public VirtualMachineScaleSet() /// set /// The extended location of the Virtual /// Machine Scale Set. - public VirtualMachineScaleSet(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), Plan plan = default(Plan), UpgradePolicy upgradePolicy = default(UpgradePolicy), AutomaticRepairsPolicy automaticRepairsPolicy = default(AutomaticRepairsPolicy), VirtualMachineScaleSetVMProfile virtualMachineProfile = default(VirtualMachineScaleSetVMProfile), string provisioningState = default(string), bool? overprovision = default(bool?), bool? doNotRunExtensionsOnOverprovisionedVMs = default(bool?), string uniqueId = default(string), bool? singlePlacementGroup = default(bool?), bool? zoneBalance = default(bool?), int? platformFaultDomainCount = default(int?), SubResource proximityPlacementGroup = default(SubResource), SubResource hostGroup = default(SubResource), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), ScaleInPolicy scaleInPolicy = default(ScaleInPolicy), string orchestrationMode = default(string), SpotRestorePolicy spotRestorePolicy = default(SpotRestorePolicy), VirtualMachineScaleSetIdentity identity = default(VirtualMachineScaleSetIdentity), IList zones = default(IList), ExtendedLocation extendedLocation = default(ExtendedLocation)) + public VirtualMachineScaleSet(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), Plan plan = default(Plan), UpgradePolicy upgradePolicy = default(UpgradePolicy), AutomaticRepairsPolicy automaticRepairsPolicy = default(AutomaticRepairsPolicy), VirtualMachineScaleSetVMProfile virtualMachineProfile = default(VirtualMachineScaleSetVMProfile), string provisioningState = default(string), bool? overprovision = default(bool?), bool? doNotRunExtensionsOnOverprovisionedVMs = default(bool?), string uniqueId = default(string), bool? singlePlacementGroup = default(bool?), bool? zoneBalance = default(bool?), int? platformFaultDomainCount = default(int?), SubResource proximityPlacementGroup = default(SubResource), SubResource hostGroup = default(SubResource), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), ScaleInPolicy scaleInPolicy = default(ScaleInPolicy), string orchestrationMode = default(string), SpotRestorePolicy spotRestorePolicy = default(SpotRestorePolicy), System.DateTime? timeCreated = default(System.DateTime?), VirtualMachineScaleSetIdentity identity = default(VirtualMachineScaleSetIdentity), IList zones = default(IList), ExtendedLocation extendedLocation = default(ExtendedLocation)) : base(location, id, name, type, tags) { Sku = sku; @@ -124,6 +127,7 @@ public VirtualMachineScaleSet() ScaleInPolicy = scaleInPolicy; OrchestrationMode = orchestrationMode; SpotRestorePolicy = spotRestorePolicy; + TimeCreated = timeCreated; Identity = identity; Zones = zones; ExtendedLocation = extendedLocation; @@ -275,6 +279,14 @@ public VirtualMachineScaleSet() [JsonProperty(PropertyName = "properties.spotRestorePolicy")] public SpotRestorePolicy SpotRestorePolicy { get; set; } + /// + /// Gets specifies the time at which the Virtual Machine Scale Set + /// resource was created.&lt;br&gt;&lt;br&gt;Minimum + /// api-version: 2021-11-01. + /// + [JsonProperty(PropertyName = "properties.timeCreated")] + public System.DateTime? TimeCreated { get; private set; } + /// /// Gets or sets the identity of the virtual machine scale set, if /// configured. diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetExtension.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetExtension.cs index ee8b08c29649..7e4057f6157a 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetExtension.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetExtension.cs @@ -70,7 +70,10 @@ public VirtualMachineScaleSetExtension() /// from the extension will be suppressed (Operational failures such as /// not connecting to the VM will not be suppressed regardless of this /// value). The default is false. - public VirtualMachineScaleSetExtension(string id = default(string), string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), IList provisionAfterExtensions = default(IList), bool? suppressFailures = default(bool?)) + /// The extensions + /// protected settings that are passed by reference, and consumed from + /// key vault + public VirtualMachineScaleSetExtension(string id = default(string), string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), IList provisionAfterExtensions = default(IList), bool? suppressFailures = default(bool?), object protectedSettingsFromKeyVault = default(object)) : base(id) { Name = name; @@ -86,6 +89,7 @@ public VirtualMachineScaleSetExtension() ProvisioningState = provisioningState; ProvisionAfterExtensions = provisionAfterExtensions; SuppressFailures = suppressFailures; + ProtectedSettingsFromKeyVault = protectedSettingsFromKeyVault; CustomInit(); } @@ -185,5 +189,12 @@ public VirtualMachineScaleSetExtension() [JsonProperty(PropertyName = "properties.suppressFailures")] public bool? SuppressFailures { get; set; } + /// + /// Gets or sets the extensions protected settings that are passed by + /// reference, and consumed from key vault + /// + [JsonProperty(PropertyName = "properties.protectedSettingsFromKeyVault")] + public object ProtectedSettingsFromKeyVault { get; set; } + } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionUpdate.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionUpdate.cs index 249442c28882..09aae47b27db 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionUpdate.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionUpdate.cs @@ -70,7 +70,10 @@ public VirtualMachineScaleSetExtensionUpdate() /// from the extension will be suppressed (Operational failures such as /// not connecting to the VM will not be suppressed regardless of this /// value). The default is false. - public VirtualMachineScaleSetExtensionUpdate(string id = default(string), string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), IList provisionAfterExtensions = default(IList), bool? suppressFailures = default(bool?)) + /// The extensions + /// protected settings that are passed by reference, and consumed from + /// key vault + public VirtualMachineScaleSetExtensionUpdate(string id = default(string), string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), IList provisionAfterExtensions = default(IList), bool? suppressFailures = default(bool?), object protectedSettingsFromKeyVault = default(object)) : base(id) { Name = name; @@ -86,6 +89,7 @@ public VirtualMachineScaleSetExtensionUpdate() ProvisioningState = provisioningState; ProvisionAfterExtensions = provisionAfterExtensions; SuppressFailures = suppressFailures; + ProtectedSettingsFromKeyVault = protectedSettingsFromKeyVault; CustomInit(); } @@ -185,5 +189,12 @@ public VirtualMachineScaleSetExtensionUpdate() [JsonProperty(PropertyName = "properties.suppressFailures")] public bool? SuppressFailures { get; set; } + /// + /// Gets or sets the extensions protected settings that are passed by + /// reference, and consumed from key vault + /// + [JsonProperty(PropertyName = "properties.protectedSettingsFromKeyVault")] + public object ProtectedSettingsFromKeyVault { get; set; } + } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetHardwareProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetHardwareProfile.cs new file mode 100644 index 000000000000..37d388cad89d --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetHardwareProfile.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.Compute.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Specifies the hardware settings for the virtual machine scale set. + /// + public partial class VirtualMachineScaleSetHardwareProfile + { + /// + /// Initializes a new instance of the + /// VirtualMachineScaleSetHardwareProfile class. + /// + public VirtualMachineScaleSetHardwareProfile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// VirtualMachineScaleSetHardwareProfile class. + /// + /// Specifies the properties for + /// customizing the size of the virtual machine. Minimum api-version: + /// 2021-11-01. <br><br> Please follow the instructions in + /// [VM Customization](https://aka.ms/vmcustomization) for more + /// details. + public VirtualMachineScaleSetHardwareProfile(VMSizeProperties vmSizeProperties = default(VMSizeProperties)) + { + VmSizeProperties = vmSizeProperties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specifies the properties for customizing the size of + /// the virtual machine. Minimum api-version: 2021-11-01. + /// &lt;br&gt;&lt;br&gt; Please follow the instructions + /// in [VM Customization](https://aka.ms/vmcustomization) for more + /// details. + /// + [JsonProperty(PropertyName = "vmSizeProperties")] + public VMSizeProperties VmSizeProperties { get; set; } + + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetManagedDiskParameters.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetManagedDiskParameters.cs index 2cb366199f19..8d8d9b27c654 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetManagedDiskParameters.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetManagedDiskParameters.cs @@ -38,10 +38,13 @@ public VirtualMachineScaleSetManagedDiskParameters() /// 'Premium_ZRS', 'StandardSSD_ZRS' /// Specifies the customer managed disk /// encryption set resource id for the managed disk. - public VirtualMachineScaleSetManagedDiskParameters(string storageAccountType = default(string), DiskEncryptionSetParameters diskEncryptionSet = default(DiskEncryptionSetParameters)) + /// Specifies the security profile for + /// the managed disk. + public VirtualMachineScaleSetManagedDiskParameters(string storageAccountType = default(string), DiskEncryptionSetParameters diskEncryptionSet = default(DiskEncryptionSetParameters), VMDiskSecurityProfile securityProfile = default(VMDiskSecurityProfile)) { StorageAccountType = storageAccountType; DiskEncryptionSet = diskEncryptionSet; + SecurityProfile = securityProfile; CustomInit(); } @@ -67,5 +70,11 @@ public VirtualMachineScaleSetManagedDiskParameters() [JsonProperty(PropertyName = "diskEncryptionSet")] public DiskEncryptionSetParameters DiskEncryptionSet { get; set; } + /// + /// Gets or sets specifies the security profile for the managed disk. + /// + [JsonProperty(PropertyName = "securityProfile")] + public VMDiskSecurityProfile SecurityProfile { get; set; } + } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetOSProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetOSProfile.cs index d2079c5f7ab8..a3ec8efe0469 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetOSProfile.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetOSProfile.cs @@ -86,7 +86,11 @@ public VirtualMachineScaleSetOSProfile() /// Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) /// or the [Azure Key Vault virtual machine extension for /// Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). - public VirtualMachineScaleSetOSProfile(string computerNamePrefix = default(string), string adminUsername = default(string), string adminPassword = default(string), string customData = default(string), WindowsConfiguration windowsConfiguration = default(WindowsConfiguration), LinuxConfiguration linuxConfiguration = default(LinuxConfiguration), IList secrets = default(IList)) + /// Specifies whether extension + /// operations should be allowed on the virtual machine scale set. + /// <br><br>This may only be set to False when no + /// extensions are present on the virtual machine scale set. + public VirtualMachineScaleSetOSProfile(string computerNamePrefix = default(string), string adminUsername = default(string), string adminPassword = default(string), string customData = default(string), WindowsConfiguration windowsConfiguration = default(WindowsConfiguration), LinuxConfiguration linuxConfiguration = default(LinuxConfiguration), IList secrets = default(IList), bool? allowExtensionOperations = default(bool?)) { ComputerNamePrefix = computerNamePrefix; AdminUsername = adminUsername; @@ -95,6 +99,7 @@ public VirtualMachineScaleSetOSProfile() WindowsConfiguration = windowsConfiguration; LinuxConfiguration = linuxConfiguration; Secrets = secrets; + AllowExtensionOperations = allowExtensionOperations; CustomInit(); } @@ -195,5 +200,14 @@ public VirtualMachineScaleSetOSProfile() [JsonProperty(PropertyName = "secrets")] public IList Secrets { get; set; } + /// + /// Gets or sets specifies whether extension operations should be + /// allowed on the virtual machine scale set. + /// &lt;br&gt;&lt;br&gt;This may only be set to False + /// when no extensions are present on the virtual machine scale set. + /// + [JsonProperty(PropertyName = "allowExtensionOperations")] + public bool? AllowExtensionOperations { get; set; } + } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.cs index e7c0d661e4cf..ec3945e12369 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.cs @@ -40,14 +40,17 @@ public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration() /// IP address. /// The dns settings to be applied on the /// publicIP addresses . + /// The PublicIPPrefix from which to + /// allocate publicIP addresses. /// Specify what happens to the public IP /// when the VM is deleted. Possible values include: 'Delete', /// 'Detach' - public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration(string name = default(string), int? idleTimeoutInMinutes = default(int?), VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings), string deleteOption = default(string)) + public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration(string name = default(string), int? idleTimeoutInMinutes = default(int?), VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings), SubResource publicIPPrefix = default(SubResource), string deleteOption = default(string)) { Name = name; IdleTimeoutInMinutes = idleTimeoutInMinutes; DnsSettings = dnsSettings; + PublicIPPrefix = publicIPPrefix; DeleteOption = deleteOption; CustomInit(); } @@ -76,6 +79,13 @@ public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration() [JsonProperty(PropertyName = "properties.dnsSettings")] public VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings DnsSettings { get; set; } + /// + /// Gets or sets the PublicIPPrefix from which to allocate publicIP + /// addresses. + /// + [JsonProperty(PropertyName = "properties.publicIPPrefix")] + public SubResource PublicIPPrefix { get; set; } + /// /// Gets or sets specify what happens to the public IP when the VM is /// deleted. Possible values include: 'Delete', 'Detach' diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMExtension.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMExtension.cs index 2d1b34907402..fdb767f44b90 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMExtension.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMExtension.cs @@ -67,7 +67,10 @@ public VirtualMachineScaleSetVMExtension() /// from the extension will be suppressed (Operational failures such as /// not connecting to the VM will not be suppressed regardless of this /// value). The default is false. - public VirtualMachineScaleSetVMExtension(string id = default(string), string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), VirtualMachineExtensionInstanceView instanceView = default(VirtualMachineExtensionInstanceView), bool? suppressFailures = default(bool?)) + /// The extensions + /// protected settings that are passed by reference, and consumed from + /// key vault + public VirtualMachineScaleSetVMExtension(string id = default(string), string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), VirtualMachineExtensionInstanceView instanceView = default(VirtualMachineExtensionInstanceView), bool? suppressFailures = default(bool?), object protectedSettingsFromKeyVault = default(object)) : base(id) { Name = name; @@ -83,6 +86,7 @@ public VirtualMachineScaleSetVMExtension() ProvisioningState = provisioningState; InstanceView = instanceView; SuppressFailures = suppressFailures; + ProtectedSettingsFromKeyVault = protectedSettingsFromKeyVault; CustomInit(); } @@ -180,5 +184,12 @@ public VirtualMachineScaleSetVMExtension() [JsonProperty(PropertyName = "properties.suppressFailures")] public bool? SuppressFailures { get; set; } + /// + /// Gets or sets the extensions protected settings that are passed by + /// reference, and consumed from key vault + /// + [JsonProperty(PropertyName = "properties.protectedSettingsFromKeyVault")] + public object ProtectedSettingsFromKeyVault { get; set; } + } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMExtensionUpdate.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMExtensionUpdate.cs index fbf9ed439e64..dcaf3098b7ae 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMExtensionUpdate.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMExtensionUpdate.cs @@ -63,7 +63,10 @@ public VirtualMachineScaleSetVMExtensionUpdate() /// from the extension will be suppressed (Operational failures such as /// not connecting to the VM will not be suppressed regardless of this /// value). The default is false. - public VirtualMachineScaleSetVMExtensionUpdate(string id = default(string), string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), bool? suppressFailures = default(bool?)) + /// The extensions + /// protected settings that are passed by reference, and consumed from + /// key vault + public VirtualMachineScaleSetVMExtensionUpdate(string id = default(string), string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string type1 = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), bool? suppressFailures = default(bool?), object protectedSettingsFromKeyVault = default(object)) : base(id) { Name = name; @@ -77,6 +80,7 @@ public VirtualMachineScaleSetVMExtensionUpdate() Settings = settings; ProtectedSettings = protectedSettings; SuppressFailures = suppressFailures; + ProtectedSettingsFromKeyVault = protectedSettingsFromKeyVault; CustomInit(); } @@ -162,5 +166,12 @@ public VirtualMachineScaleSetVMExtensionUpdate() [JsonProperty(PropertyName = "properties.suppressFailures")] public bool? SuppressFailures { get; set; } + /// + /// Gets or sets the extensions protected settings that are passed by + /// reference, and consumed from key vault + /// + [JsonProperty(PropertyName = "properties.protectedSettingsFromKeyVault")] + public object ProtectedSettingsFromKeyVault { get; set; } + } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMProfile.cs index c9ad05baf38a..73d41b362555 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMProfile.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMProfile.cs @@ -84,7 +84,10 @@ public VirtualMachineScaleSetVMProfile() /// <br><br>Minimum api-version: 2021-04-01. /// Specifies the gallery applications /// that should be made available to the VM/VMSS - public VirtualMachineScaleSetVMProfile(VirtualMachineScaleSetOSProfile osProfile = default(VirtualMachineScaleSetOSProfile), VirtualMachineScaleSetStorageProfile storageProfile = default(VirtualMachineScaleSetStorageProfile), VirtualMachineScaleSetNetworkProfile networkProfile = default(VirtualMachineScaleSetNetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), VirtualMachineScaleSetExtensionProfile extensionProfile = default(VirtualMachineScaleSetExtensionProfile), string licenseType = default(string), string priority = default(string), string evictionPolicy = default(string), BillingProfile billingProfile = default(BillingProfile), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), CapacityReservationProfile capacityReservation = default(CapacityReservationProfile), ApplicationProfile applicationProfile = default(ApplicationProfile)) + /// Specifies the hardware profile + /// related details of a scale set. <br><br>Minimum + /// api-version: 2021-11-01. + public VirtualMachineScaleSetVMProfile(VirtualMachineScaleSetOSProfile osProfile = default(VirtualMachineScaleSetOSProfile), VirtualMachineScaleSetStorageProfile storageProfile = default(VirtualMachineScaleSetStorageProfile), VirtualMachineScaleSetNetworkProfile networkProfile = default(VirtualMachineScaleSetNetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), VirtualMachineScaleSetExtensionProfile extensionProfile = default(VirtualMachineScaleSetExtensionProfile), string licenseType = default(string), string priority = default(string), string evictionPolicy = default(string), BillingProfile billingProfile = default(BillingProfile), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), CapacityReservationProfile capacityReservation = default(CapacityReservationProfile), ApplicationProfile applicationProfile = default(ApplicationProfile), VirtualMachineScaleSetHardwareProfile hardwareProfile = default(VirtualMachineScaleSetHardwareProfile)) { OsProfile = osProfile; StorageProfile = storageProfile; @@ -100,6 +103,7 @@ public VirtualMachineScaleSetVMProfile() UserData = userData; CapacityReservation = capacityReservation; ApplicationProfile = applicationProfile; + HardwareProfile = hardwareProfile; CustomInit(); } @@ -233,6 +237,14 @@ public VirtualMachineScaleSetVMProfile() [JsonProperty(PropertyName = "applicationProfile")] public ApplicationProfile ApplicationProfile { get; set; } + /// + /// Gets or sets specifies the hardware profile related details of a + /// scale set. &lt;br&gt;&lt;br&gt;Minimum api-version: + /// 2021-11-01. + /// + [JsonProperty(PropertyName = "hardwareProfile")] + public VirtualMachineScaleSetHardwareProfile HardwareProfile { get; set; } + /// /// Validate the object. /// diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineUpdate.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineUpdate.cs index dac1a5e776a4..7f9bef22ff2f 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineUpdate.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineUpdate.cs @@ -156,10 +156,13 @@ public VirtualMachineUpdate() /// <br><br>Minimum api-version: 2021-04-01. /// Specifies the gallery applications /// that should be made available to the VM/VMSS + /// Specifies the time at which the Virtual + /// Machine resource was created.<br><br>Minimum + /// api-version: 2021-11-01. /// The identity of the virtual machine, if /// configured. /// The virtual machine zones. - public VirtualMachineUpdate(IDictionary tags = default(IDictionary), Plan plan = default(Plan), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), SubResource virtualMachineScaleSet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), string priority = default(string), string evictionPolicy = default(string), BillingProfile billingProfile = default(BillingProfile), SubResource host = default(SubResource), SubResource hostGroup = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), string extensionsTimeBudget = default(string), int? platformFaultDomain = default(int?), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), CapacityReservationProfile capacityReservation = default(CapacityReservationProfile), ApplicationProfile applicationProfile = default(ApplicationProfile), VirtualMachineIdentity identity = default(VirtualMachineIdentity), IList zones = default(IList)) + public VirtualMachineUpdate(IDictionary tags = default(IDictionary), Plan plan = default(Plan), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), SubResource virtualMachineScaleSet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), string priority = default(string), string evictionPolicy = default(string), BillingProfile billingProfile = default(BillingProfile), SubResource host = default(SubResource), SubResource hostGroup = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), string extensionsTimeBudget = default(string), int? platformFaultDomain = default(int?), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), CapacityReservationProfile capacityReservation = default(CapacityReservationProfile), ApplicationProfile applicationProfile = default(ApplicationProfile), System.DateTime? timeCreated = default(System.DateTime?), VirtualMachineIdentity identity = default(VirtualMachineIdentity), IList zones = default(IList)) : base(tags) { Plan = plan; @@ -188,6 +191,7 @@ public VirtualMachineUpdate() UserData = userData; CapacityReservation = capacityReservation; ApplicationProfile = applicationProfile; + TimeCreated = timeCreated; Identity = identity; Zones = zones; CustomInit(); @@ -455,6 +459,14 @@ public VirtualMachineUpdate() [JsonProperty(PropertyName = "properties.applicationProfile")] public ApplicationProfile ApplicationProfile { get; set; } + /// + /// Gets specifies the time at which the Virtual Machine resource was + /// created.&lt;br&gt;&lt;br&gt;Minimum api-version: + /// 2021-11-01. + /// + [JsonProperty(PropertyName = "properties.timeCreated")] + public System.DateTime? TimeCreated { get; private set; } + /// /// Gets or sets the identity of the virtual machine, if configured. /// diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Operations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Operations.cs index 94bd08474b5e..30f5e935f442 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Operations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Operations.cs @@ -70,7 +70,7 @@ internal Operations(ComputeManagementClient client) /// public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ProximityPlacementGroupsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ProximityPlacementGroupsOperations.cs index 232fb1b06887..8d242af27b82 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ProximityPlacementGroupsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ProximityPlacementGroupsOperations.cs @@ -105,7 +105,7 @@ internal ProximityPlacementGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -327,7 +327,7 @@ internal ProximityPlacementGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; ProximityPlacementGroupUpdate parameters = new ProximityPlacementGroupUpdate(); if (tags != null) { @@ -530,7 +530,7 @@ internal ProximityPlacementGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -710,7 +710,7 @@ internal ProximityPlacementGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -895,7 +895,7 @@ internal ProximityPlacementGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1078,7 +1078,7 @@ internal ProximityPlacementGroupsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointCollectionsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointCollectionsOperations.cs index c6bdccf0ef8a..2e18de6b4458 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointCollectionsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointCollectionsOperations.cs @@ -108,7 +108,7 @@ internal RestorePointCollectionsOperations(ComputeManagementClient client) { parameters.Validate(); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -334,7 +334,7 @@ internal RestorePointCollectionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -563,7 +563,7 @@ internal RestorePointCollectionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "restorePointCollectionName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -755,7 +755,7 @@ internal RestorePointCollectionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -936,7 +936,7 @@ internal RestorePointCollectionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1124,7 +1124,7 @@ internal RestorePointCollectionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "restorePointCollectionName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointsOperations.cs index 1aba65c053dd..72db253c9883 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointsOperations.cs @@ -116,6 +116,11 @@ internal RestorePointsOperations(ComputeManagementClient client) /// /// The name of the restore point. /// + /// + /// The expand expression to apply on the operation. 'InstanceView' retrieves + /// information about the run-time state of a restore point. Possible values + /// include: 'instanceView' + /// /// /// Headers that will be added to request. /// @@ -137,7 +142,7 @@ internal RestorePointsOperations(ComputeManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, string restorePointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, string restorePointName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -155,7 +160,7 @@ internal RestorePointsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "restorePointName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -166,6 +171,7 @@ internal RestorePointsOperations(ComputeManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("restorePointCollectionName", restorePointCollectionName); tracingParameters.Add("restorePointName", restorePointName); + tracingParameters.Add("expand", expand); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); @@ -178,6 +184,10 @@ internal RestorePointsOperations(ComputeManagementClient client) _url = _url.Replace("{restorePointCollectionName}", System.Uri.EscapeDataString(restorePointCollectionName)); _url = _url.Replace("{restorePointName}", System.Uri.EscapeDataString(restorePointName)); List _queryParameters = new List(); + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } if (apiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); @@ -370,7 +380,7 @@ internal RestorePointsOperations(ComputeManagementClient client) { parameters.Validate(); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -577,7 +587,7 @@ internal RestorePointsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "restorePointName"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointsOperationsExtensions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointsOperationsExtensions.cs index 02909b2296e0..83dbdacd7df4 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointsOperationsExtensions.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointsOperationsExtensions.cs @@ -133,9 +133,14 @@ public static void Delete(this IRestorePointsOperations operations, string resou /// /// The name of the restore point. /// - public static RestorePoint Get(this IRestorePointsOperations operations, string resourceGroupName, string restorePointCollectionName, string restorePointName) + /// + /// The expand expression to apply on the operation. 'InstanceView' retrieves + /// information about the run-time state of a restore point. Possible values + /// include: 'instanceView' + /// + public static RestorePoint Get(this IRestorePointsOperations operations, string resourceGroupName, string restorePointCollectionName, string restorePointName, string expand = default(string)) { - return operations.GetAsync(resourceGroupName, restorePointCollectionName, restorePointName).GetAwaiter().GetResult(); + return operations.GetAsync(resourceGroupName, restorePointCollectionName, restorePointName, expand).GetAwaiter().GetResult(); } /// @@ -153,12 +158,17 @@ public static RestorePoint Get(this IRestorePointsOperations operations, string /// /// The name of the restore point. /// + /// + /// The expand expression to apply on the operation. 'InstanceView' retrieves + /// information about the run-time state of a restore point. Possible values + /// include: 'instanceView' + /// /// /// The cancellation token. /// - public static async Task GetAsync(this IRestorePointsOperations operations, string resourceGroupName, string restorePointCollectionName, string restorePointName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IRestorePointsOperations operations, string resourceGroupName, string restorePointCollectionName, string restorePointName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, restorePointCollectionName, restorePointName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, restorePointCollectionName, restorePointName, expand, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs index 000b94036160..76d1b022e320 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs @@ -19,9 +19,9 @@ public static IEnumerable> ApiInfo_ComputeManageme { return new Tuple[] { - new Tuple("Compute", "AvailabilitySets", "2021-07-01"), - new Tuple("Compute", "CapacityReservationGroups", "2021-07-01"), - new Tuple("Compute", "CapacityReservations", "2021-07-01"), + new Tuple("Compute", "AvailabilitySets", "2021-11-01"), + new Tuple("Compute", "CapacityReservationGroups", "2021-11-01"), + new Tuple("Compute", "CapacityReservations", "2021-11-01"), new Tuple("Compute", "CloudServiceOperatingSystems", "2021-03-01"), new Tuple("Compute", "CloudServiceRoleInstances", "2021-03-01"), new Tuple("Compute", "CloudServiceRoles", "2021-03-01"), @@ -30,8 +30,8 @@ public static IEnumerable> ApiInfo_ComputeManageme new Tuple("Compute", "CommunityGalleries", "2021-07-01"), new Tuple("Compute", "CommunityGalleryImageVersions", "2021-07-01"), new Tuple("Compute", "CommunityGalleryImages", "2021-07-01"), - new Tuple("Compute", "DedicatedHostGroups", "2021-07-01"), - new Tuple("Compute", "DedicatedHosts", "2021-07-01"), + new Tuple("Compute", "DedicatedHostGroups", "2021-11-01"), + new Tuple("Compute", "DedicatedHosts", "2021-11-01"), new Tuple("Compute", "DiskAccesses", "2021-08-01"), new Tuple("Compute", "DiskEncryptionSets", "2021-08-01"), new Tuple("Compute", "DiskRestorePoint", "2021-08-01"), @@ -42,32 +42,32 @@ public static IEnumerable> ApiInfo_ComputeManageme new Tuple("Compute", "GalleryImageVersions", "2021-07-01"), new Tuple("Compute", "GalleryImages", "2021-07-01"), new Tuple("Compute", "GallerySharingProfile", "2021-07-01"), - new Tuple("Compute", "Images", "2021-07-01"), - new Tuple("Compute", "LogAnalytics", "2021-07-01"), - new Tuple("Compute", "Operations", "2021-07-01"), - new Tuple("Compute", "ProximityPlacementGroups", "2021-07-01"), + new Tuple("Compute", "Images", "2021-11-01"), + new Tuple("Compute", "LogAnalytics", "2021-11-01"), + new Tuple("Compute", "Operations", "2021-11-01"), + new Tuple("Compute", "ProximityPlacementGroups", "2021-11-01"), new Tuple("Compute", "ResourceSkus", "2021-07-01"), - new Tuple("Compute", "RestorePointCollections", "2021-07-01"), - new Tuple("Compute", "RestorePoints", "2021-07-01"), + new Tuple("Compute", "RestorePointCollections", "2021-11-01"), + new Tuple("Compute", "RestorePoints", "2021-11-01"), new Tuple("Compute", "SharedGalleries", "2021-07-01"), new Tuple("Compute", "SharedGalleryImageVersions", "2021-07-01"), new Tuple("Compute", "SharedGalleryImages", "2021-07-01"), new Tuple("Compute", "Snapshots", "2021-08-01"), - new Tuple("Compute", "SshPublicKeys", "2021-07-01"), - new Tuple("Compute", "Usage", "2021-07-01"), - new Tuple("Compute", "VirtualMachineExtensionImages", "2021-07-01"), - new Tuple("Compute", "VirtualMachineExtensions", "2021-07-01"), - new Tuple("Compute", "VirtualMachineImages", "2021-07-01"), - new Tuple("Compute", "VirtualMachineImagesEdgeZone", "2021-07-01"), - new Tuple("Compute", "VirtualMachineRunCommands", "2021-07-01"), - new Tuple("Compute", "VirtualMachineScaleSetExtensions", "2021-07-01"), - new Tuple("Compute", "VirtualMachineScaleSetRollingUpgrades", "2021-07-01"), - new Tuple("Compute", "VirtualMachineScaleSetVMExtensions", "2021-07-01"), - new Tuple("Compute", "VirtualMachineScaleSetVMRunCommands", "2021-07-01"), - new Tuple("Compute", "VirtualMachineScaleSetVMs", "2021-07-01"), - new Tuple("Compute", "VirtualMachineScaleSets", "2021-07-01"), - new Tuple("Compute", "VirtualMachineSizes", "2021-07-01"), - new Tuple("Compute", "VirtualMachines", "2021-07-01"), + new Tuple("Compute", "SshPublicKeys", "2021-11-01"), + new Tuple("Compute", "Usage", "2021-11-01"), + new Tuple("Compute", "VirtualMachineExtensionImages", "2021-11-01"), + new Tuple("Compute", "VirtualMachineExtensions", "2021-11-01"), + new Tuple("Compute", "VirtualMachineImages", "2021-11-01"), + new Tuple("Compute", "VirtualMachineImagesEdgeZone", "2021-11-01"), + new Tuple("Compute", "VirtualMachineRunCommands", "2021-11-01"), + new Tuple("Compute", "VirtualMachineScaleSetExtensions", "2021-11-01"), + new Tuple("Compute", "VirtualMachineScaleSetRollingUpgrades", "2021-11-01"), + new Tuple("Compute", "VirtualMachineScaleSetVMExtensions", "2021-11-01"), + new Tuple("Compute", "VirtualMachineScaleSetVMRunCommands", "2021-11-01"), + new Tuple("Compute", "VirtualMachineScaleSetVMs", "2021-11-01"), + new Tuple("Compute", "VirtualMachineScaleSets", "2021-11-01"), + new Tuple("Compute", "VirtualMachineSizes", "2021-11-01"), + new Tuple("Compute", "VirtualMachines", "2021-11-01"), }.AsEnumerable(); } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SshPublicKeysOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SshPublicKeysOperations.cs index 16fd594b4992..63b1749ac05d 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SshPublicKeysOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SshPublicKeysOperations.cs @@ -81,7 +81,7 @@ internal SshPublicKeysOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -265,7 +265,7 @@ internal SshPublicKeysOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -468,7 +468,7 @@ internal SshPublicKeysOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -694,7 +694,7 @@ internal SshPublicKeysOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -892,7 +892,7 @@ internal SshPublicKeysOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1068,7 +1068,7 @@ internal SshPublicKeysOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1265,7 +1265,7 @@ internal SshPublicKeysOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/UsageOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/UsageOperations.cs index 94f20653b9ce..03be34e68fb9 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/UsageOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/UsageOperations.cs @@ -96,7 +96,7 @@ internal UsageOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineExtensionImagesOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineExtensionImagesOperations.cs index 8970700b699f..abd565843a9f 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineExtensionImagesOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineExtensionImagesOperations.cs @@ -106,7 +106,7 @@ internal VirtualMachineExtensionImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -303,7 +303,7 @@ internal VirtualMachineExtensionImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -505,7 +505,7 @@ internal VirtualMachineExtensionImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineExtensionsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineExtensionsOperations.cs index 09a34f8dc6d1..f733ff5db496 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineExtensionsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineExtensionsOperations.cs @@ -186,7 +186,7 @@ internal VirtualMachineExtensionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -390,7 +390,7 @@ internal VirtualMachineExtensionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -608,7 +608,7 @@ internal VirtualMachineExtensionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -843,7 +843,7 @@ internal VirtualMachineExtensionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1050,7 +1050,7 @@ internal VirtualMachineExtensionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineImagesEdgeZoneOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineImagesEdgeZoneOperations.cs index dd14474dea59..646ac7ce3839 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineImagesEdgeZoneOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineImagesEdgeZoneOperations.cs @@ -122,7 +122,7 @@ internal VirtualMachineImagesEdgeZoneOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -356,7 +356,7 @@ internal VirtualMachineImagesEdgeZoneOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -579,7 +579,7 @@ internal VirtualMachineImagesEdgeZoneOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -776,7 +776,7 @@ internal VirtualMachineImagesEdgeZoneOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -985,7 +985,7 @@ internal VirtualMachineImagesEdgeZoneOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineImagesOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineImagesOperations.cs index 4d56d5bbe60e..1133deeaa2cb 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineImagesOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineImagesOperations.cs @@ -115,7 +115,7 @@ internal VirtualMachineImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -337,7 +337,7 @@ internal VirtualMachineImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -551,7 +551,7 @@ internal VirtualMachineImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -739,7 +739,7 @@ internal VirtualMachineImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -939,7 +939,7 @@ internal VirtualMachineImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineRunCommandsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineRunCommandsOperations.cs index 2217782c98ba..8afb5b943619 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineRunCommandsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineRunCommandsOperations.cs @@ -94,7 +94,7 @@ internal VirtualMachineRunCommandsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -293,7 +293,7 @@ internal VirtualMachineRunCommandsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -579,7 +579,7 @@ internal VirtualMachineRunCommandsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -783,7 +783,7 @@ internal VirtualMachineRunCommandsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1001,7 +1001,7 @@ internal VirtualMachineRunCommandsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1236,7 +1236,7 @@ internal VirtualMachineRunCommandsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1443,7 +1443,7 @@ internal VirtualMachineRunCommandsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetExtensionsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetExtensionsOperations.cs index 17889f91eaed..03f139b58fee 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetExtensionsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetExtensionsOperations.cs @@ -186,7 +186,7 @@ internal VirtualMachineScaleSetExtensionsOperations(ComputeManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -387,7 +387,7 @@ internal VirtualMachineScaleSetExtensionsOperations(ComputeManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -596,7 +596,7 @@ internal VirtualMachineScaleSetExtensionsOperations(ComputeManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -831,7 +831,7 @@ internal VirtualMachineScaleSetExtensionsOperations(ComputeManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1056,7 +1056,7 @@ internal VirtualMachineScaleSetExtensionsOperations(ComputeManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetRollingUpgradesOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetRollingUpgradesOperations.cs index 8374b91baeee..3553ab075d61 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetRollingUpgradesOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetRollingUpgradesOperations.cs @@ -164,7 +164,7 @@ internal VirtualMachineScaleSetRollingUpgradesOperations(ComputeManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -355,7 +355,7 @@ internal VirtualMachineScaleSetRollingUpgradesOperations(ComputeManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -530,7 +530,7 @@ internal VirtualMachineScaleSetRollingUpgradesOperations(ComputeManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -705,7 +705,7 @@ internal VirtualMachineScaleSetRollingUpgradesOperations(ComputeManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetVMExtensionsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetVMExtensionsOperations.cs index acb0f38adbee..f412902ffcb6 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetVMExtensionsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetVMExtensionsOperations.cs @@ -201,7 +201,7 @@ internal VirtualMachineScaleSetVMExtensionsOperations(ComputeManagementClient cl { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -415,7 +415,7 @@ internal VirtualMachineScaleSetVMExtensionsOperations(ComputeManagementClient cl { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -637,7 +637,7 @@ internal VirtualMachineScaleSetVMExtensionsOperations(ComputeManagementClient cl { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -881,7 +881,7 @@ internal VirtualMachineScaleSetVMExtensionsOperations(ComputeManagementClient cl { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1097,7 +1097,7 @@ internal VirtualMachineScaleSetVMExtensionsOperations(ComputeManagementClient cl { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetVMRunCommandsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetVMRunCommandsOperations.cs index 1b0d5dec01fa..512849258647 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetVMRunCommandsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetVMRunCommandsOperations.cs @@ -201,7 +201,7 @@ internal VirtualMachineScaleSetVMRunCommandsOperations(ComputeManagementClient c { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -415,7 +415,7 @@ internal VirtualMachineScaleSetVMRunCommandsOperations(ComputeManagementClient c { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -641,7 +641,7 @@ internal VirtualMachineScaleSetVMRunCommandsOperations(ComputeManagementClient c { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -885,7 +885,7 @@ internal VirtualMachineScaleSetVMRunCommandsOperations(ComputeManagementClient c { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1101,7 +1101,7 @@ internal VirtualMachineScaleSetVMRunCommandsOperations(ComputeManagementClient c { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetVMsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetVMsOperations.cs index 549c83d2724a..0a9addf5a840 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetVMsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetVMsOperations.cs @@ -251,7 +251,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -269,7 +269,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{vmScaleSetName}", System.Uri.EscapeDataString(vmScaleSetName)); _url = _url.Replace("{instanceId}", System.Uri.EscapeDataString(instanceId)); @@ -459,7 +459,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -476,7 +476,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/instanceView").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/instanceView").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{vmScaleSetName}", System.Uri.EscapeDataString(vmScaleSetName)); _url = _url.Replace("{instanceId}", System.Uri.EscapeDataString(instanceId)); @@ -662,7 +662,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -991,7 +991,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1222,7 +1222,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1438,7 +1438,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput = default(VirtualMachineScaleSetVMReimageParameters); if (tempDisk != null) { @@ -1462,7 +1462,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimage").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimage").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{vmScaleSetName}", System.Uri.EscapeDataString(vmScaleSetName)); _url = _url.Replace("{instanceId}", System.Uri.EscapeDataString(instanceId)); @@ -1634,7 +1634,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1651,7 +1651,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimageall").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimageall").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{vmScaleSetName}", System.Uri.EscapeDataString(vmScaleSetName)); _url = _url.Replace("{instanceId}", System.Uri.EscapeDataString(instanceId)); @@ -1819,7 +1819,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1836,7 +1836,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/deallocate").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/deallocate").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{vmScaleSetName}", System.Uri.EscapeDataString(vmScaleSetName)); _url = _url.Replace("{instanceId}", System.Uri.EscapeDataString(instanceId)); @@ -2016,7 +2016,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2034,7 +2034,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{vmScaleSetName}", System.Uri.EscapeDataString(vmScaleSetName)); _url = _url.Replace("{instanceId}", System.Uri.EscapeDataString(instanceId)); @@ -2245,7 +2245,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2263,7 +2263,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{vmScaleSetName}", System.Uri.EscapeDataString(vmScaleSetName)); _url = _url.Replace("{instanceId}", System.Uri.EscapeDataString(instanceId)); @@ -2439,7 +2439,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2626,7 +2626,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2808,7 +2808,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2991,7 +2991,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3173,7 +3173,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3369,7 +3369,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetsOperations.cs index f23d30f991ba..6fd786c49c0a 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetsOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetsOperations.cs @@ -95,7 +95,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -368,7 +368,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -625,7 +625,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -812,7 +812,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -993,7 +993,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1184,7 +1184,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1378,7 +1378,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1768,6 +1768,13 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) /// /// The platform update domain for which a manual recovery walk is requested /// + /// + /// The zone in which the manual recovery walk is requested for cross zone + /// virtual machine scale set + /// + /// + /// The placement group id for which the manual recovery walk is requested. + /// /// /// Headers that will be added to request. /// @@ -1789,7 +1796,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ForceRecoveryServiceFabricPlatformUpdateDomainWalkWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, int platformUpdateDomain, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ForceRecoveryServiceFabricPlatformUpdateDomainWalkWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, int platformUpdateDomain, string zone = default(string), string placementGroupId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1803,7 +1810,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1815,6 +1822,8 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) tracingParameters.Add("vmScaleSetName", vmScaleSetName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("platformUpdateDomain", platformUpdateDomain); + tracingParameters.Add("zone", zone); + tracingParameters.Add("placementGroupId", placementGroupId); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ForceRecoveryServiceFabricPlatformUpdateDomainWalk", tracingParameters); } @@ -1830,6 +1839,14 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } _queryParameters.Add(string.Format("platformUpdateDomain={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(platformUpdateDomain, Client.SerializationSettings).Trim('"')))); + if (zone != null) + { + _queryParameters.Add(string.Format("zone={0}", System.Uri.EscapeDataString(zone))); + } + if (placementGroupId != null) + { + _queryParameters.Add(string.Format("placementGroupId={0}", System.Uri.EscapeDataString(placementGroupId))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -2003,7 +2020,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; VMScaleSetConvertToSinglePlacementGroupInput parameters = new VMScaleSetConvertToSinglePlacementGroupInput(); if (activePlacementGroupId != null) { @@ -2227,7 +2244,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2453,7 +2470,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2654,7 +2671,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2839,7 +2856,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = default(VirtualMachineScaleSetVMInstanceIDs); if (instanceIds != null) { @@ -3036,7 +3053,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "instanceIds"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs = new VirtualMachineScaleSetVMInstanceRequiredIDs(); if (instanceIds != null) { @@ -3238,7 +3255,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = default(VirtualMachineScaleSetVMInstanceIDs); if (instanceIds != null) { @@ -3434,7 +3451,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = default(VirtualMachineScaleSetVMInstanceIDs); if (instanceIds != null) { @@ -3625,7 +3642,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = default(VirtualMachineScaleSetVMInstanceIDs); if (instanceIds != null) { @@ -3817,7 +3834,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = default(VirtualMachineScaleSetVMInstanceIDs); if (instanceIds != null) { @@ -4011,7 +4028,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = default(VirtualMachineScaleSetVMInstanceIDs); if (instanceIds != null) { @@ -4205,7 +4222,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "instanceIds"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs = new VirtualMachineScaleSetVMInstanceRequiredIDs(); if (instanceIds != null) { @@ -4395,7 +4412,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4581,7 +4598,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = default(VirtualMachineScaleSetVMInstanceIDs); if (instanceIds != null) { @@ -4778,7 +4795,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetsOperationsExtensions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetsOperationsExtensions.cs index 2464f42725f3..0a336a613878 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetsOperationsExtensions.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetsOperationsExtensions.cs @@ -952,9 +952,16 @@ public static void UpdateInstances(this IVirtualMachineScaleSetsOperations opera /// /// The platform update domain for which a manual recovery walk is requested /// - public static RecoveryWalkResponse ForceRecoveryServiceFabricPlatformUpdateDomainWalk(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, int platformUpdateDomain) + /// + /// The zone in which the manual recovery walk is requested for cross zone + /// virtual machine scale set + /// + /// + /// The placement group id for which the manual recovery walk is requested. + /// + public static RecoveryWalkResponse ForceRecoveryServiceFabricPlatformUpdateDomainWalk(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, int platformUpdateDomain, string zone = default(string), string placementGroupId = default(string)) { - return operations.ForceRecoveryServiceFabricPlatformUpdateDomainWalkAsync(resourceGroupName, vmScaleSetName, platformUpdateDomain).GetAwaiter().GetResult(); + return operations.ForceRecoveryServiceFabricPlatformUpdateDomainWalkAsync(resourceGroupName, vmScaleSetName, platformUpdateDomain, zone, placementGroupId).GetAwaiter().GetResult(); } /// @@ -973,12 +980,19 @@ public static RecoveryWalkResponse ForceRecoveryServiceFabricPlatformUpdateDomai /// /// The platform update domain for which a manual recovery walk is requested /// + /// + /// The zone in which the manual recovery walk is requested for cross zone + /// virtual machine scale set + /// + /// + /// The placement group id for which the manual recovery walk is requested. + /// /// /// The cancellation token. /// - public static async Task ForceRecoveryServiceFabricPlatformUpdateDomainWalkAsync(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, int platformUpdateDomain, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ForceRecoveryServiceFabricPlatformUpdateDomainWalkAsync(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, int platformUpdateDomain, string zone = default(string), string placementGroupId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ForceRecoveryServiceFabricPlatformUpdateDomainWalkWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, platformUpdateDomain, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ForceRecoveryServiceFabricPlatformUpdateDomainWalkWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, platformUpdateDomain, zone, placementGroupId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineSizesOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineSizesOperations.cs index e02ad90a0646..a6eb7468d01d 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineSizesOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineSizesOperations.cs @@ -95,7 +95,7 @@ internal VirtualMachineSizesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachinesOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachinesOperations.cs index 6404614d40af..a14aa3f2f3a5 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachinesOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachinesOperations.cs @@ -95,7 +95,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -398,7 +398,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -597,7 +597,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -843,7 +843,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -982,6 +982,11 @@ internal VirtualMachinesOperations(ComputeManagementClient client) /// /// The name of the resource group. /// + /// + /// The system query option to filter VMs returned in the response. Allowed + /// value is 'virtualMachineScaleSet/id' eq + /// /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' + /// /// /// Headers that will be added to request. /// @@ -1003,7 +1008,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1013,7 +1018,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1022,6 +1027,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("filter", filter); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); @@ -1032,6 +1038,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client) _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } if (apiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); @@ -1169,6 +1179,11 @@ internal VirtualMachinesOperations(ComputeManagementClient client) /// statusOnly=true enables fetching run time status of all Virtual Machines in /// the subscription. /// + /// + /// The system query option to filter VMs returned in the response. Allowed + /// value is 'virtualMachineScaleSet/id' eq + /// /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' + /// /// /// Headers that will be added to request. /// @@ -1190,13 +1205,13 @@ internal VirtualMachinesOperations(ComputeManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListAllWithHttpMessagesAsync(string statusOnly = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListAllWithHttpMessagesAsync(string statusOnly = default(string), string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1206,6 +1221,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("statusOnly", statusOnly); + tracingParameters.Add("filter", filter); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListAll", tracingParameters); } @@ -1222,6 +1238,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { _queryParameters.Add(string.Format("statusOnly={0}", System.Uri.EscapeDataString(statusOnly))); } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -1392,7 +1412,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1738,7 +1758,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1956,7 +1976,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2216,7 +2236,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2429,7 +2449,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2655,7 +2675,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2856,7 +2876,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3035,7 +3055,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3212,7 +3232,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3397,7 +3417,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3575,7 +3595,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3748,7 +3768,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3921,7 +3941,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4095,7 +4115,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4274,7 +4294,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; VirtualMachineReimageParameters parameters = default(VirtualMachineReimageParameters); if (tempDisk != null) { @@ -4460,7 +4480,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4636,7 +4656,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4841,7 +4861,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -5053,7 +5073,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2021-07-01"; + string apiVersion = "2021-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachinesOperationsExtensions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachinesOperationsExtensions.cs index 27cec29011fc..9bcbb2d693b9 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachinesOperationsExtensions.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachinesOperationsExtensions.cs @@ -485,9 +485,14 @@ public static void Generalize(this IVirtualMachinesOperations operations, string /// /// The name of the resource group. /// - public static IPage List(this IVirtualMachinesOperations operations, string resourceGroupName) + /// + /// The system query option to filter VMs returned in the response. Allowed + /// value is 'virtualMachineScaleSet/id' eq + /// /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' + /// + public static IPage List(this IVirtualMachinesOperations operations, string resourceGroupName, string filter = default(string)) { - return operations.ListAsync(resourceGroupName).GetAwaiter().GetResult(); + return operations.ListAsync(resourceGroupName, filter).GetAwaiter().GetResult(); } /// @@ -500,12 +505,17 @@ public static IPage List(this IVirtualMachinesOperations operati /// /// The name of the resource group. /// + /// + /// The system query option to filter VMs returned in the response. Allowed + /// value is 'virtualMachineScaleSet/id' eq + /// /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' + /// /// /// The cancellation token. /// - public static async Task> ListAsync(this IVirtualMachinesOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IVirtualMachinesOperations operations, string resourceGroupName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -522,9 +532,14 @@ public static IPage List(this IVirtualMachinesOperations operati /// statusOnly=true enables fetching run time status of all Virtual Machines in /// the subscription. /// - public static IPage ListAll(this IVirtualMachinesOperations operations, string statusOnly = default(string)) + /// + /// The system query option to filter VMs returned in the response. Allowed + /// value is 'virtualMachineScaleSet/id' eq + /// /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' + /// + public static IPage ListAll(this IVirtualMachinesOperations operations, string statusOnly = default(string), string filter = default(string)) { - return operations.ListAllAsync(statusOnly).GetAwaiter().GetResult(); + return operations.ListAllAsync(statusOnly, filter).GetAwaiter().GetResult(); } /// @@ -538,12 +553,17 @@ public static IPage List(this IVirtualMachinesOperations operati /// statusOnly=true enables fetching run time status of all Virtual Machines in /// the subscription. /// + /// + /// The system query option to filter VMs returned in the response. Allowed + /// value is 'virtualMachineScaleSet/id' eq + /// /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' + /// /// /// The cancellation token. /// - public static async Task> ListAllAsync(this IVirtualMachinesOperations operations, string statusOnly = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAllAsync(this IVirtualMachinesOperations operations, string statusOnly = default(string), string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListAllWithHttpMessagesAsync(statusOnly, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListAllWithHttpMessagesAsync(statusOnly, filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; }