From 58fa23f4d08a9fbf2c0dd87ae9c72f1ddd85891f Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 5 Apr 2022 10:01:02 +0000 Subject: [PATCH] CodeGen from PR 18529 in Azure/azure-rest-api-specs Merge 73ae3929d818288c4d551484dcce2dbc89b2a77f into 66ce6ad1dae00197d8befa1199da7578f73c0cd5 --- .../Generated/DataBoxEdgeManagementClient.cs | 14 +- .../DeviceCapacityCheckOperations.cs | 283 ++++++++++++++++++ ...DeviceCapacityCheckOperationsExtensions.cs | 123 ++++++++ .../Generated/DeviceCapacityInfoOperations.cs | 250 ++++++++++++++++ .../DeviceCapacityInfoOperationsExtensions.cs | 65 ++++ .../Generated/DiagnosticSettingsOperations.cs | 58 +++- .../DiagnosticSettingsOperationsExtensions.cs | 44 ++- .../Generated/IDataBoxEdgeManagementClient.cs | 10 + .../IDeviceCapacityCheckOperations.cs | 83 +++++ .../IDeviceCapacityInfoOperations.cs | 52 ++++ .../IDiagnosticSettingsOperations.cs | 20 +- .../src/Generated/Models/Addon.cs | 7 +- .../src/Generated/Models/Alert.cs | 19 +- .../src/Generated/Models/ArcAddon.cs | 3 +- .../src/Generated/Models/BandwidthSchedule.cs | 19 +- .../Models/CloudEdgeManagementRole.cs | 3 +- .../Models/ClusterCapacityViewData.cs | 87 ++++++ .../Generated/Models/ClusterGpuCapacity.cs | 88 ++++++ .../Generated/Models/ClusterMemoryCapacity.cs | 125 ++++++++ .../Models/ClusterStorageViewData.cs | 61 ++++ .../Generated/Models/ClusterWitnessType.cs | 23 ++ .../src/Generated/Models/Container.cs | 20 +- .../src/Generated/Models/DataBoxEdgeDevice.cs | 8 +- .../Models/DataBoxEdgeDeviceExtendedInfo.cs | 68 ++++- .../src/Generated/Models/DataBoxEdgeSku.cs | 6 +- .../Generated/Models/DeviceCapacityInfo.cs | 99 ++++++ .../Models/DeviceCapacityRequestInfo.cs | 82 +++++ ...iagnosticProactiveLogCollectionSettings.cs | 19 +- .../Models/DiagnosticRemoteSupportSettings.cs | 19 +- .../src/Generated/Models/FileEventTrigger.cs | 3 +- .../src/Generated/Models/HostCapacity.cs | 100 +++++++ .../src/Generated/Models/IoTAddon.cs | 3 +- .../src/Generated/Models/IoTRole.cs | 3 +- .../src/Generated/Models/KubernetesRole.cs | 3 +- .../src/Generated/Models/MECRole.cs | 3 +- .../Models/MonitoringMetricConfiguration.cs | 19 +- .../src/Generated/Models/NetworkSettings.cs | 20 +- .../src/Generated/Models/NumaNodeData.cs | 107 +++++++ .../src/Generated/Models/Order.cs | 25 +- .../Models/PeriodicTimerEventTrigger.cs | 3 +- .../src/Generated/Models/ResourceTypeSku.cs | 61 ---- .../src/Generated/Models/Role.cs | 7 +- .../src/Generated/Models/Share.cs | 19 +- .../src/Generated/Models/Sku.cs | 6 +- .../src/Generated/Models/SkuInformation.cs | 121 -------- .../Generated/Models/SkuInformationList.cs | 61 ---- .../src/Generated/Models/SkuName.cs | 4 + .../src/Generated/Models/StorageAccount.cs | 21 +- .../Models/StorageAccountCredential.cs | 20 +- .../src/Generated/Models/SystemData.cs | 6 +- .../src/Generated/Models/SystemDataModel.cs | 103 +++++++ .../src/Generated/Models/Trigger.cs | 8 +- .../Models/TriggerSupportPackageRequest.cs | 6 +- .../src/Generated/Models/UpdateSummary.cs | 20 +- .../src/Generated/Models/User.cs | 19 +- .../src/Generated/Models/VmMemory.cs | 66 ++++ .../Models/VmPlacementRequestResult.cs | 83 +++++ .../SdkInfo_DataBoxEdgeManagementClient.cs | 53 ++-- 58 files changed, 2283 insertions(+), 448 deletions(-) create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DeviceCapacityCheckOperations.cs create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DeviceCapacityCheckOperationsExtensions.cs create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DeviceCapacityInfoOperations.cs create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DeviceCapacityInfoOperationsExtensions.cs create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/IDeviceCapacityCheckOperations.cs create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/IDeviceCapacityInfoOperations.cs create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterCapacityViewData.cs create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterGpuCapacity.cs create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterMemoryCapacity.cs create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterStorageViewData.cs create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterWitnessType.cs create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DeviceCapacityInfo.cs create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DeviceCapacityRequestInfo.cs create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/HostCapacity.cs create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/NumaNodeData.cs delete mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ResourceTypeSku.cs delete mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SkuInformation.cs delete mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SkuInformationList.cs create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SystemDataModel.cs create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/VmMemory.cs create mode 100644 sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/VmPlacementRequestResult.cs diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DataBoxEdgeManagementClient.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DataBoxEdgeManagementClient.cs index 3dcfbdc2fd23..3c7be27fb1d4 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DataBoxEdgeManagementClient.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DataBoxEdgeManagementClient.cs @@ -96,6 +96,16 @@ public partial class DataBoxEdgeManagementClient : ServiceClient public virtual IBandwidthSchedulesOperations BandwidthSchedules { get; private set; } + /// + /// Gets the IDeviceCapacityCheckOperations. + /// + public virtual IDeviceCapacityCheckOperations DeviceCapacityCheck { get; private set; } + + /// + /// Gets the IDeviceCapacityInfoOperations. + /// + public virtual IDeviceCapacityInfoOperations DeviceCapacityInfo { get; private set; } + /// /// Gets the IDiagnosticSettingsOperations. /// @@ -417,6 +427,8 @@ private void Initialize() Devices = new DevicesOperations(this); Alerts = new AlertsOperations(this); BandwidthSchedules = new BandwidthSchedulesOperations(this); + DeviceCapacityCheck = new DeviceCapacityCheckOperations(this); + DeviceCapacityInfo = new DeviceCapacityInfoOperations(this); DiagnosticSettings = new DiagnosticSettingsOperations(this); Jobs = new JobsOperations(this); Nodes = new NodesOperations(this); @@ -433,7 +445,7 @@ private void Initialize() SupportPackages = new SupportPackagesOperations(this); Users = new UsersOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2021-02-01"; + ApiVersion = "2022-03-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DeviceCapacityCheckOperations.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DeviceCapacityCheckOperations.cs new file mode 100644 index 000000000000..378141ec922f --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DeviceCapacityCheckOperations.cs @@ -0,0 +1,283 @@ +// +// 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.DataBoxEdge +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DeviceCapacityCheckOperations operations. + /// + internal partial class DeviceCapacityCheckOperations : IServiceOperations, IDeviceCapacityCheckOperations + { + /// + /// Initializes a new instance of the DeviceCapacityCheckOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DeviceCapacityCheckOperations(DataBoxEdgeManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DataBoxEdgeManagementClient + /// + public DataBoxEdgeManagementClient Client { get; private set; } + + /// + /// Posts the device capacity request info to check feasibility. + /// + /// + /// The resource group name. + /// + /// + /// The device name. + /// + /// + /// The device capacity request info. + /// + /// + /// The capacity name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task CheckResourceCreationFeasibilityWithHttpMessagesAsync(string resourceGroupName, string deviceName, DeviceCapacityRequestInfo deviceCapacityRequestInfo, string capacityName = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginCheckResourceCreationFeasibilityWithHttpMessagesAsync(resourceGroupName, deviceName, deviceCapacityRequestInfo, capacityName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Posts the device capacity request info to check feasibility. + /// + /// + /// The resource group name. + /// + /// + /// The device name. + /// + /// + /// The device capacity request info. + /// + /// + /// The capacity name. + /// + /// + /// 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 BeginCheckResourceCreationFeasibilityWithHttpMessagesAsync(string resourceGroupName, string deviceName, DeviceCapacityRequestInfo deviceCapacityRequestInfo, string capacityName = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + if (deviceCapacityRequestInfo == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceCapacityRequestInfo"); + } + if (deviceCapacityRequestInfo != null) + { + deviceCapacityRequestInfo.Validate(); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("deviceCapacityRequestInfo", deviceCapacityRequestInfo); + tracingParameters.Add("capacityName", capacityName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCheckResourceCreationFeasibility", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/deviceCapacityCheck").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (capacityName != null) + { + _queryParameters.Add(string.Format("capacityName={0}", System.Uri.EscapeDataString(capacityName))); + } + 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; + if(deviceCapacityRequestInfo != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(deviceCapacityRequestInfo, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // 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 && (int)_statusCode != 202) + { + 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; + } + + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DeviceCapacityCheckOperationsExtensions.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DeviceCapacityCheckOperationsExtensions.cs new file mode 100644 index 000000000000..d8103742220c --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DeviceCapacityCheckOperationsExtensions.cs @@ -0,0 +1,123 @@ +// +// 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.DataBoxEdge +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for DeviceCapacityCheckOperations. + /// + public static partial class DeviceCapacityCheckOperationsExtensions + { + /// + /// Posts the device capacity request info to check feasibility. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The device name. + /// + /// + /// The device capacity request info. + /// + /// + /// The capacity name. + /// + public static void CheckResourceCreationFeasibility(this IDeviceCapacityCheckOperations operations, string resourceGroupName, string deviceName, DeviceCapacityRequestInfo deviceCapacityRequestInfo, string capacityName = default(string)) + { + operations.CheckResourceCreationFeasibilityAsync(resourceGroupName, deviceName, deviceCapacityRequestInfo, capacityName).GetAwaiter().GetResult(); + } + + /// + /// Posts the device capacity request info to check feasibility. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The device name. + /// + /// + /// The device capacity request info. + /// + /// + /// The capacity name. + /// + /// + /// The cancellation token. + /// + public static async Task CheckResourceCreationFeasibilityAsync(this IDeviceCapacityCheckOperations operations, string resourceGroupName, string deviceName, DeviceCapacityRequestInfo deviceCapacityRequestInfo, string capacityName = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.CheckResourceCreationFeasibilityWithHttpMessagesAsync(resourceGroupName, deviceName, deviceCapacityRequestInfo, capacityName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Posts the device capacity request info to check feasibility. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The device name. + /// + /// + /// The device capacity request info. + /// + /// + /// The capacity name. + /// + public static void BeginCheckResourceCreationFeasibility(this IDeviceCapacityCheckOperations operations, string resourceGroupName, string deviceName, DeviceCapacityRequestInfo deviceCapacityRequestInfo, string capacityName = default(string)) + { + operations.BeginCheckResourceCreationFeasibilityAsync(resourceGroupName, deviceName, deviceCapacityRequestInfo, capacityName).GetAwaiter().GetResult(); + } + + /// + /// Posts the device capacity request info to check feasibility. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The device name. + /// + /// + /// The device capacity request info. + /// + /// + /// The capacity name. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCheckResourceCreationFeasibilityAsync(this IDeviceCapacityCheckOperations operations, string resourceGroupName, string deviceName, DeviceCapacityRequestInfo deviceCapacityRequestInfo, string capacityName = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginCheckResourceCreationFeasibilityWithHttpMessagesAsync(resourceGroupName, deviceName, deviceCapacityRequestInfo, capacityName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DeviceCapacityInfoOperations.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DeviceCapacityInfoOperations.cs new file mode 100644 index 000000000000..fa5ecf836ac5 --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DeviceCapacityInfoOperations.cs @@ -0,0 +1,250 @@ +// +// 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.DataBoxEdge +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DeviceCapacityInfoOperations operations. + /// + internal partial class DeviceCapacityInfoOperations : IServiceOperations, IDeviceCapacityInfoOperations + { + /// + /// Initializes a new instance of the DeviceCapacityInfoOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DeviceCapacityInfoOperations(DataBoxEdgeManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DataBoxEdgeManagementClient + /// + public DataBoxEdgeManagementClient Client { get; private set; } + + /// + /// Gets the properties of the specified device capacity info. + /// + /// + /// The resource group name. + /// + /// + /// The device name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetDeviceCapacityInfoWithHttpMessagesAsync(string resourceGroupName, string deviceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (deviceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deviceName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("deviceName", deviceName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetDeviceCapacityInfo", 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.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/deviceCapacityInfo/default").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{deviceName}", System.Uri.EscapeDataString(deviceName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("GET"); + _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(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DeviceCapacityInfoOperationsExtensions.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DeviceCapacityInfoOperationsExtensions.cs new file mode 100644 index 000000000000..49672b75b460 --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DeviceCapacityInfoOperationsExtensions.cs @@ -0,0 +1,65 @@ +// +// 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.DataBoxEdge +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for DeviceCapacityInfoOperations. + /// + public static partial class DeviceCapacityInfoOperationsExtensions + { + /// + /// Gets the properties of the specified device capacity info. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The device name. + /// + public static DeviceCapacityInfo GetDeviceCapacityInfo(this IDeviceCapacityInfoOperations operations, string resourceGroupName, string deviceName) + { + return operations.GetDeviceCapacityInfoAsync(resourceGroupName, deviceName).GetAwaiter().GetResult(); + } + + /// + /// Gets the properties of the specified device capacity info. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The device name. + /// + /// + /// The cancellation token. + /// + public static async Task GetDeviceCapacityInfoAsync(this IDeviceCapacityInfoOperations operations, string resourceGroupName, string deviceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetDeviceCapacityInfoWithHttpMessagesAsync(resourceGroupName, deviceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DiagnosticSettingsOperations.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DiagnosticSettingsOperations.cs index 30fa4aa6d35e..f23046bdc2a8 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DiagnosticSettingsOperations.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DiagnosticSettingsOperations.cs @@ -266,10 +266,10 @@ internal DiagnosticSettingsOperations(DataBoxEdgeManagementClient client) /// /// The cancellation token. /// - public async Task UpdateDiagnosticProactiveLogCollectionSettingsWithHttpMessagesAsync(string deviceName, DiagnosticProactiveLogCollectionSettings proactiveLogCollectionSettings, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateDiagnosticProactiveLogCollectionSettingsWithHttpMessagesAsync(string deviceName, DiagnosticProactiveLogCollectionSettings proactiveLogCollectionSettings, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginUpdateDiagnosticProactiveLogCollectionSettingsWithHttpMessagesAsync(deviceName, proactiveLogCollectionSettings, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginUpdateDiagnosticProactiveLogCollectionSettingsWithHttpMessagesAsync(deviceName, proactiveLogCollectionSettings, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -489,10 +489,10 @@ internal DiagnosticSettingsOperations(DataBoxEdgeManagementClient client) /// /// The cancellation token. /// - public async Task UpdateDiagnosticRemoteSupportSettingsWithHttpMessagesAsync(string deviceName, DiagnosticRemoteSupportSettings diagnosticRemoteSupportSettings, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateDiagnosticRemoteSupportSettingsWithHttpMessagesAsync(string deviceName, DiagnosticRemoteSupportSettings diagnosticRemoteSupportSettings, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginUpdateDiagnosticRemoteSupportSettingsWithHttpMessagesAsync(deviceName, diagnosticRemoteSupportSettings, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginUpdateDiagnosticRemoteSupportSettingsWithHttpMessagesAsync(deviceName, diagnosticRemoteSupportSettings, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -518,6 +518,9 @@ internal DiagnosticSettingsOperations(DataBoxEdgeManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -527,7 +530,7 @@ internal DiagnosticSettingsOperations(DataBoxEdgeManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginUpdateDiagnosticProactiveLogCollectionSettingsWithHttpMessagesAsync(string deviceName, DiagnosticProactiveLogCollectionSettings proactiveLogCollectionSettings, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUpdateDiagnosticProactiveLogCollectionSettingsWithHttpMessagesAsync(string deviceName, DiagnosticProactiveLogCollectionSettings proactiveLogCollectionSettings, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (deviceName == null) { @@ -676,13 +679,31 @@ internal DiagnosticSettingsOperations(DataBoxEdgeManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + 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(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -712,6 +733,9 @@ internal DiagnosticSettingsOperations(DataBoxEdgeManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -721,7 +745,7 @@ internal DiagnosticSettingsOperations(DataBoxEdgeManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginUpdateDiagnosticRemoteSupportSettingsWithHttpMessagesAsync(string deviceName, DiagnosticRemoteSupportSettings diagnosticRemoteSupportSettings, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUpdateDiagnosticRemoteSupportSettingsWithHttpMessagesAsync(string deviceName, DiagnosticRemoteSupportSettings diagnosticRemoteSupportSettings, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (deviceName == null) { @@ -866,13 +890,31 @@ internal DiagnosticSettingsOperations(DataBoxEdgeManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + 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(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DiagnosticSettingsOperationsExtensions.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DiagnosticSettingsOperationsExtensions.cs index e32115a2d2c1..a8134025b5d0 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DiagnosticSettingsOperationsExtensions.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/DiagnosticSettingsOperationsExtensions.cs @@ -79,9 +79,9 @@ public static DiagnosticProactiveLogCollectionSettings GetDiagnosticProactiveLog /// /// The resource group name. /// - public static void UpdateDiagnosticProactiveLogCollectionSettings(this IDiagnosticSettingsOperations operations, string deviceName, DiagnosticProactiveLogCollectionSettings proactiveLogCollectionSettings, string resourceGroupName) + public static DiagnosticProactiveLogCollectionSettings UpdateDiagnosticProactiveLogCollectionSettings(this IDiagnosticSettingsOperations operations, string deviceName, DiagnosticProactiveLogCollectionSettings proactiveLogCollectionSettings, string resourceGroupName) { - operations.UpdateDiagnosticProactiveLogCollectionSettingsAsync(deviceName, proactiveLogCollectionSettings, resourceGroupName).GetAwaiter().GetResult(); + return operations.UpdateDiagnosticProactiveLogCollectionSettingsAsync(deviceName, proactiveLogCollectionSettings, resourceGroupName).GetAwaiter().GetResult(); } /// @@ -103,9 +103,12 @@ public static void UpdateDiagnosticProactiveLogCollectionSettings(this IDiagnost /// /// The cancellation token. /// - public static async Task UpdateDiagnosticProactiveLogCollectionSettingsAsync(this IDiagnosticSettingsOperations operations, string deviceName, DiagnosticProactiveLogCollectionSettings proactiveLogCollectionSettings, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateDiagnosticProactiveLogCollectionSettingsAsync(this IDiagnosticSettingsOperations operations, string deviceName, DiagnosticProactiveLogCollectionSettings proactiveLogCollectionSettings, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.UpdateDiagnosticProactiveLogCollectionSettingsWithHttpMessagesAsync(deviceName, proactiveLogCollectionSettings, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.UpdateDiagnosticProactiveLogCollectionSettingsWithHttpMessagesAsync(deviceName, proactiveLogCollectionSettings, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// @@ -166,9 +169,9 @@ public static DiagnosticRemoteSupportSettings GetDiagnosticRemoteSupportSettings /// /// The resource group name. /// - public static void UpdateDiagnosticRemoteSupportSettings(this IDiagnosticSettingsOperations operations, string deviceName, DiagnosticRemoteSupportSettings diagnosticRemoteSupportSettings, string resourceGroupName) + public static DiagnosticRemoteSupportSettings UpdateDiagnosticRemoteSupportSettings(this IDiagnosticSettingsOperations operations, string deviceName, DiagnosticRemoteSupportSettings diagnosticRemoteSupportSettings, string resourceGroupName) { - operations.UpdateDiagnosticRemoteSupportSettingsAsync(deviceName, diagnosticRemoteSupportSettings, resourceGroupName).GetAwaiter().GetResult(); + return operations.UpdateDiagnosticRemoteSupportSettingsAsync(deviceName, diagnosticRemoteSupportSettings, resourceGroupName).GetAwaiter().GetResult(); } /// @@ -190,9 +193,12 @@ public static void UpdateDiagnosticRemoteSupportSettings(this IDiagnosticSetting /// /// The cancellation token. /// - public static async Task UpdateDiagnosticRemoteSupportSettingsAsync(this IDiagnosticSettingsOperations operations, string deviceName, DiagnosticRemoteSupportSettings diagnosticRemoteSupportSettings, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateDiagnosticRemoteSupportSettingsAsync(this IDiagnosticSettingsOperations operations, string deviceName, DiagnosticRemoteSupportSettings diagnosticRemoteSupportSettings, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.UpdateDiagnosticRemoteSupportSettingsWithHttpMessagesAsync(deviceName, diagnosticRemoteSupportSettings, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.UpdateDiagnosticRemoteSupportSettingsWithHttpMessagesAsync(deviceName, diagnosticRemoteSupportSettings, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// @@ -211,9 +217,9 @@ public static void UpdateDiagnosticRemoteSupportSettings(this IDiagnosticSetting /// /// The resource group name. /// - public static void BeginUpdateDiagnosticProactiveLogCollectionSettings(this IDiagnosticSettingsOperations operations, string deviceName, DiagnosticProactiveLogCollectionSettings proactiveLogCollectionSettings, string resourceGroupName) + public static DiagnosticProactiveLogCollectionSettings BeginUpdateDiagnosticProactiveLogCollectionSettings(this IDiagnosticSettingsOperations operations, string deviceName, DiagnosticProactiveLogCollectionSettings proactiveLogCollectionSettings, string resourceGroupName) { - operations.BeginUpdateDiagnosticProactiveLogCollectionSettingsAsync(deviceName, proactiveLogCollectionSettings, resourceGroupName).GetAwaiter().GetResult(); + return operations.BeginUpdateDiagnosticProactiveLogCollectionSettingsAsync(deviceName, proactiveLogCollectionSettings, resourceGroupName).GetAwaiter().GetResult(); } /// @@ -235,9 +241,12 @@ public static void BeginUpdateDiagnosticProactiveLogCollectionSettings(this IDia /// /// The cancellation token. /// - public static async Task BeginUpdateDiagnosticProactiveLogCollectionSettingsAsync(this IDiagnosticSettingsOperations operations, string deviceName, DiagnosticProactiveLogCollectionSettings proactiveLogCollectionSettings, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginUpdateDiagnosticProactiveLogCollectionSettingsAsync(this IDiagnosticSettingsOperations operations, string deviceName, DiagnosticProactiveLogCollectionSettings proactiveLogCollectionSettings, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginUpdateDiagnosticProactiveLogCollectionSettingsWithHttpMessagesAsync(deviceName, proactiveLogCollectionSettings, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.BeginUpdateDiagnosticProactiveLogCollectionSettingsWithHttpMessagesAsync(deviceName, proactiveLogCollectionSettings, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// @@ -256,9 +265,9 @@ public static void BeginUpdateDiagnosticProactiveLogCollectionSettings(this IDia /// /// The resource group name. /// - public static void BeginUpdateDiagnosticRemoteSupportSettings(this IDiagnosticSettingsOperations operations, string deviceName, DiagnosticRemoteSupportSettings diagnosticRemoteSupportSettings, string resourceGroupName) + public static DiagnosticRemoteSupportSettings BeginUpdateDiagnosticRemoteSupportSettings(this IDiagnosticSettingsOperations operations, string deviceName, DiagnosticRemoteSupportSettings diagnosticRemoteSupportSettings, string resourceGroupName) { - operations.BeginUpdateDiagnosticRemoteSupportSettingsAsync(deviceName, diagnosticRemoteSupportSettings, resourceGroupName).GetAwaiter().GetResult(); + return operations.BeginUpdateDiagnosticRemoteSupportSettingsAsync(deviceName, diagnosticRemoteSupportSettings, resourceGroupName).GetAwaiter().GetResult(); } /// @@ -280,9 +289,12 @@ public static void BeginUpdateDiagnosticRemoteSupportSettings(this IDiagnosticSe /// /// The cancellation token. /// - public static async Task BeginUpdateDiagnosticRemoteSupportSettingsAsync(this IDiagnosticSettingsOperations operations, string deviceName, DiagnosticRemoteSupportSettings diagnosticRemoteSupportSettings, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginUpdateDiagnosticRemoteSupportSettingsAsync(this IDiagnosticSettingsOperations operations, string deviceName, DiagnosticRemoteSupportSettings diagnosticRemoteSupportSettings, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginUpdateDiagnosticRemoteSupportSettingsWithHttpMessagesAsync(deviceName, diagnosticRemoteSupportSettings, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.BeginUpdateDiagnosticRemoteSupportSettingsWithHttpMessagesAsync(deviceName, diagnosticRemoteSupportSettings, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } } diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/IDataBoxEdgeManagementClient.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/IDataBoxEdgeManagementClient.cs index 826395381a15..e85688b8552f 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/IDataBoxEdgeManagementClient.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/IDataBoxEdgeManagementClient.cs @@ -93,6 +93,16 @@ public partial interface IDataBoxEdgeManagementClient : System.IDisposable /// IBandwidthSchedulesOperations BandwidthSchedules { get; } + /// + /// Gets the IDeviceCapacityCheckOperations. + /// + IDeviceCapacityCheckOperations DeviceCapacityCheck { get; } + + /// + /// Gets the IDeviceCapacityInfoOperations. + /// + IDeviceCapacityInfoOperations DeviceCapacityInfo { get; } + /// /// Gets the IDiagnosticSettingsOperations. /// diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/IDeviceCapacityCheckOperations.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/IDeviceCapacityCheckOperations.cs new file mode 100644 index 000000000000..62de47f2994a --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/IDeviceCapacityCheckOperations.cs @@ -0,0 +1,83 @@ +// +// 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.DataBoxEdge +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DeviceCapacityCheckOperations operations. + /// + public partial interface IDeviceCapacityCheckOperations + { + /// + /// Posts the device capacity request info to check feasibility. + /// + /// + /// The resource group name. + /// + /// + /// The device name. + /// + /// + /// The device capacity request info. + /// + /// + /// The capacity name. + /// + /// + /// 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 CheckResourceCreationFeasibilityWithHttpMessagesAsync(string resourceGroupName, string deviceName, DeviceCapacityRequestInfo deviceCapacityRequestInfo, string capacityName = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Posts the device capacity request info to check feasibility. + /// + /// + /// The resource group name. + /// + /// + /// The device name. + /// + /// + /// The device capacity request info. + /// + /// + /// The capacity name. + /// + /// + /// 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 BeginCheckResourceCreationFeasibilityWithHttpMessagesAsync(string resourceGroupName, string deviceName, DeviceCapacityRequestInfo deviceCapacityRequestInfo, string capacityName = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/IDeviceCapacityInfoOperations.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/IDeviceCapacityInfoOperations.cs new file mode 100644 index 000000000000..0563e7d0ec84 --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/IDeviceCapacityInfoOperations.cs @@ -0,0 +1,52 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataBoxEdge +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DeviceCapacityInfoOperations operations. + /// + public partial interface IDeviceCapacityInfoOperations + { + /// + /// Gets the properties of the specified device capacity info. + /// + /// + /// The resource group name. + /// + /// + /// The device name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetDeviceCapacityInfoWithHttpMessagesAsync(string resourceGroupName, string deviceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/IDiagnosticSettingsOperations.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/IDiagnosticSettingsOperations.cs index 074a52219b97..69601c3ada5c 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/IDiagnosticSettingsOperations.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/IDiagnosticSettingsOperations.cs @@ -71,10 +71,13 @@ public partial interface IDiagnosticSettingsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task UpdateDiagnosticProactiveLogCollectionSettingsWithHttpMessagesAsync(string deviceName, DiagnosticProactiveLogCollectionSettings proactiveLogCollectionSettings, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateDiagnosticProactiveLogCollectionSettingsWithHttpMessagesAsync(string deviceName, DiagnosticProactiveLogCollectionSettings proactiveLogCollectionSettings, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the diagnostic remote support settings of the specified Data /// Box Edge/Data Box Gateway device. @@ -123,10 +126,13 @@ public partial interface IDiagnosticSettingsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task UpdateDiagnosticRemoteSupportSettingsWithHttpMessagesAsync(string deviceName, DiagnosticRemoteSupportSettings diagnosticRemoteSupportSettings, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateDiagnosticRemoteSupportSettingsWithHttpMessagesAsync(string deviceName, DiagnosticRemoteSupportSettings diagnosticRemoteSupportSettings, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates the proactive log collection settings on a Data Box /// Edge/Data Box Gateway device. @@ -149,10 +155,13 @@ public partial interface IDiagnosticSettingsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task BeginUpdateDiagnosticProactiveLogCollectionSettingsWithHttpMessagesAsync(string deviceName, DiagnosticProactiveLogCollectionSettings proactiveLogCollectionSettings, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginUpdateDiagnosticProactiveLogCollectionSettingsWithHttpMessagesAsync(string deviceName, DiagnosticProactiveLogCollectionSettings proactiveLogCollectionSettings, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates the diagnostic remote support settings on a Data Box /// Edge/Data Box Gateway device. @@ -175,9 +184,12 @@ public partial interface IDiagnosticSettingsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task BeginUpdateDiagnosticRemoteSupportSettingsWithHttpMessagesAsync(string deviceName, DiagnosticRemoteSupportSettings diagnosticRemoteSupportSettings, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginUpdateDiagnosticRemoteSupportSettingsWithHttpMessagesAsync(string deviceName, DiagnosticRemoteSupportSettings diagnosticRemoteSupportSettings, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Addon.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Addon.cs index 3c3176fd740b..074a96336d1e 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Addon.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Addon.cs @@ -33,7 +33,8 @@ public Addon() /// object. /// The object name. /// The hierarchical type of the object. - /// Addon type + /// Metadata pertaining to creation and last + /// modification of Addon public Addon(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData)) : base(id, name, type) { @@ -47,10 +48,10 @@ public Addon() partial void CustomInit(); /// - /// Gets or sets addon type + /// Gets metadata pertaining to creation and last modification of Addon /// [JsonProperty(PropertyName = "systemData")] - public SystemData SystemData { get; set; } + public SystemData SystemData { get; private set; } } } diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Alert.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Alert.cs index c38ae8146a5c..b93795603734 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Alert.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Alert.cs @@ -38,7 +38,6 @@ public Alert() /// object. /// The object name. /// The hierarchical type of the object. - /// Alert generated in the resource /// Alert title. /// Alert type. /// UTC time when the alert @@ -48,10 +47,11 @@ public Alert() /// include: 'Informational', 'Warning', 'Critical' /// Error details of the alert. /// Alert details. - public Alert(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string title = default(string), string alertType = default(string), System.DateTime? appearedAtDateTime = default(System.DateTime?), string recommendation = default(string), string severity = default(string), AlertErrorDetails errorDetails = default(AlertErrorDetails), IDictionary detailedInformation = default(IDictionary)) + /// Metadata pertaining to creation and last + /// modification of Alert + public Alert(string id = default(string), string name = default(string), string type = default(string), string title = default(string), string alertType = default(string), System.DateTime? appearedAtDateTime = default(System.DateTime?), string recommendation = default(string), string severity = default(string), AlertErrorDetails errorDetails = default(AlertErrorDetails), IDictionary detailedInformation = default(IDictionary), SystemData systemData = default(SystemData)) : base(id, name, type) { - SystemData = systemData; Title = title; AlertType = alertType; AppearedAtDateTime = appearedAtDateTime; @@ -59,6 +59,7 @@ public Alert() Severity = severity; ErrorDetails = errorDetails; DetailedInformation = detailedInformation; + SystemData = systemData; CustomInit(); } @@ -67,12 +68,6 @@ public Alert() /// partial void CustomInit(); - /// - /// Gets or sets alert generated in the resource - /// - [JsonProperty(PropertyName = "systemData")] - public SystemData SystemData { get; set; } - /// /// Gets alert title. /// @@ -116,5 +111,11 @@ public Alert() [JsonProperty(PropertyName = "properties.detailedInformation")] public IDictionary DetailedInformation { get; private set; } + /// + /// Gets metadata pertaining to creation and last modification of Alert + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + } } diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ArcAddon.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ArcAddon.cs index cfacf2da313f..b3a4d79475da 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ArcAddon.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ArcAddon.cs @@ -41,7 +41,8 @@ public ArcAddon() /// object. /// The object name. /// The hierarchical type of the object. - /// Addon type + /// Metadata pertaining to creation and last + /// modification of Addon /// Arc resource version /// Host OS supported by the Arc addon. /// Possible values include: 'Windows', 'Linux' diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/BandwidthSchedule.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/BandwidthSchedule.cs index 77cd29250155..5c5bbd8fedc7 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/BandwidthSchedule.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/BandwidthSchedule.cs @@ -43,16 +43,16 @@ public BandwidthSchedule() /// object. /// The object name. /// The hierarchical type of the object. - /// Bandwidth object related to ASE - /// resource + /// Metadata pertaining to creation and last + /// modification of BandwidthSchedule public BandwidthSchedule(string start, string stop, int rateInMbps, IList days, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData)) : base(id, name, type) { - SystemData = systemData; Start = start; Stop = stop; RateInMbps = rateInMbps; Days = days; + SystemData = systemData; CustomInit(); } @@ -61,12 +61,6 @@ public BandwidthSchedule() /// partial void CustomInit(); - /// - /// Gets or sets bandwidth object related to ASE resource - /// - [JsonProperty(PropertyName = "systemData")] - public SystemData SystemData { get; set; } - /// /// Gets or sets the start time of the schedule in UTC. /// @@ -91,6 +85,13 @@ public BandwidthSchedule() [JsonProperty(PropertyName = "properties.days")] public IList Days { get; set; } + /// + /// Gets metadata pertaining to creation and last modification of + /// BandwidthSchedule + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/CloudEdgeManagementRole.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/CloudEdgeManagementRole.cs index 10f29dbb8de3..c9c77009457c 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/CloudEdgeManagementRole.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/CloudEdgeManagementRole.cs @@ -46,7 +46,8 @@ public CloudEdgeManagementRole() /// object. /// The object name. /// The hierarchical type of the object. - /// Role configured on ASE resource + /// Metadata pertaining to creation and last + /// modification of Role /// Local Edge Management Status. /// Possible values include: 'Enabled', 'Disabled' /// Edge Profile of the resource diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterCapacityViewData.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterCapacityViewData.cs new file mode 100644 index 000000000000..13ee0c71977c --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterCapacityViewData.cs @@ -0,0 +1,87 @@ +// +// 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.DataBoxEdge.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Cluster Compute Data. + /// + public partial class ClusterCapacityViewData + { + /// + /// Initializes a new instance of the ClusterCapacityViewData class. + /// + public ClusterCapacityViewData() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClusterCapacityViewData class. + /// + /// The FQDN of the cluster. + /// The cluster's GPU capacity. + /// The cluster's memory capacity. + /// The last time at which the + /// ClusterCapacityViewData was set. + /// The total # of vCPUs + /// provisioned by non-HPN VM per appliance. + public ClusterCapacityViewData(string fqdn = default(string), ClusterGpuCapacity gpuCapacity = default(ClusterGpuCapacity), ClusterMemoryCapacity memoryCapacity = default(ClusterMemoryCapacity), System.DateTime? lastRefreshedTime = default(System.DateTime?), long? totalProvisionedNonHpnCores = default(long?)) + { + Fqdn = fqdn; + GpuCapacity = gpuCapacity; + MemoryCapacity = memoryCapacity; + LastRefreshedTime = lastRefreshedTime; + TotalProvisionedNonHpnCores = totalProvisionedNonHpnCores; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the FQDN of the cluster. + /// + [JsonProperty(PropertyName = "fqdn")] + public string Fqdn { get; set; } + + /// + /// Gets or sets the cluster's GPU capacity. + /// + [JsonProperty(PropertyName = "gpuCapacity")] + public ClusterGpuCapacity GpuCapacity { get; set; } + + /// + /// Gets or sets the cluster's memory capacity. + /// + [JsonProperty(PropertyName = "memoryCapacity")] + public ClusterMemoryCapacity MemoryCapacity { get; set; } + + /// + /// Gets or sets the last time at which the ClusterCapacityViewData was + /// set. + /// + [JsonProperty(PropertyName = "lastRefreshedTime")] + public System.DateTime? LastRefreshedTime { get; set; } + + /// + /// Gets or sets the total # of vCPUs provisioned by non-HPN VM per + /// appliance. + /// + [JsonProperty(PropertyName = "totalProvisionedNonHpnCores")] + public long? TotalProvisionedNonHpnCores { get; set; } + + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterGpuCapacity.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterGpuCapacity.cs new file mode 100644 index 000000000000..e9618f5fbe77 --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterGpuCapacity.cs @@ -0,0 +1,88 @@ +// +// 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.DataBoxEdge.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Cluster GPU Data. + /// + public partial class ClusterGpuCapacity + { + /// + /// Initializes a new instance of the ClusterGpuCapacity class. + /// + public ClusterGpuCapacity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClusterGpuCapacity class. + /// + /// The cluster GPU Type. + /// The used GPU units count in the + /// cluster. + /// The free GPU units count in the + /// cluster. + /// The GPU units count + /// reserved for failover in the cluster. + /// The total GPU units count in the + /// cluster. + public ClusterGpuCapacity(string gpuType = default(string), int? gpuUsedUnitsCount = default(int?), int? gpuFreeUnitsCount = default(int?), int? gpuReservedForFailoverUnitsCount = default(int?), int? gpuTotalUnitsCount = default(int?)) + { + GpuType = gpuType; + GpuUsedUnitsCount = gpuUsedUnitsCount; + GpuFreeUnitsCount = gpuFreeUnitsCount; + GpuReservedForFailoverUnitsCount = gpuReservedForFailoverUnitsCount; + GpuTotalUnitsCount = gpuTotalUnitsCount; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the cluster GPU Type. + /// + [JsonProperty(PropertyName = "gpuType")] + public string GpuType { get; set; } + + /// + /// Gets or sets the used GPU units count in the cluster. + /// + [JsonProperty(PropertyName = "gpuUsedUnitsCount")] + public int? GpuUsedUnitsCount { get; set; } + + /// + /// Gets or sets the free GPU units count in the cluster. + /// + [JsonProperty(PropertyName = "gpuFreeUnitsCount")] + public int? GpuFreeUnitsCount { get; set; } + + /// + /// Gets or sets the GPU units count reserved for failover in the + /// cluster. + /// + [JsonProperty(PropertyName = "gpuReservedForFailoverUnitsCount")] + public int? GpuReservedForFailoverUnitsCount { get; set; } + + /// + /// Gets or sets the total GPU units count in the cluster. + /// + [JsonProperty(PropertyName = "gpuTotalUnitsCount")] + public int? GpuTotalUnitsCount { get; set; } + + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterMemoryCapacity.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterMemoryCapacity.cs new file mode 100644 index 000000000000..13efef2c76d0 --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterMemoryCapacity.cs @@ -0,0 +1,125 @@ +// +// 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.DataBoxEdge.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// NodeCapacityInfo defines the required information to determine the + /// placement of a VM. + /// + public partial class ClusterMemoryCapacity + { + /// + /// Initializes a new instance of the ClusterMemoryCapacity class. + /// + public ClusterMemoryCapacity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClusterMemoryCapacity class. + /// + /// The free memory in the cluster in + /// MB. + /// The used memory in the cluster in + /// MB. + /// The failover memory in the + /// cluster in MB. + /// The fragmentation memory + /// in the cluster in MB. + /// The memory reserved for + /// Hyper-V in the cluster in MB. + /// The memory of the Infra VM in + /// the cluster in MB. + /// The total memory in the cluster + /// in MB. + /// The non-failover memory in the + /// cluster in MB. + /// The memory used by VMs in + /// the cluster in MB. + public ClusterMemoryCapacity(double? clusterFreeMemoryMb = default(double?), double? clusterUsedMemoryMb = default(double?), double? clusterFailoverMemoryMb = default(double?), double? clusterFragmentationMemoryMb = default(double?), double? clusterHypervReserveMemoryMb = default(double?), double? clusterInfraVmMemoryMb = default(double?), double? clusterTotalMemoryMb = default(double?), double? clusterNonFailoverVmMb = default(double?), double? clusterMemoryUsedByVmsMb = default(double?)) + { + ClusterFreeMemoryMb = clusterFreeMemoryMb; + ClusterUsedMemoryMb = clusterUsedMemoryMb; + ClusterFailoverMemoryMb = clusterFailoverMemoryMb; + ClusterFragmentationMemoryMb = clusterFragmentationMemoryMb; + ClusterHypervReserveMemoryMb = clusterHypervReserveMemoryMb; + ClusterInfraVmMemoryMb = clusterInfraVmMemoryMb; + ClusterTotalMemoryMb = clusterTotalMemoryMb; + ClusterNonFailoverVmMb = clusterNonFailoverVmMb; + ClusterMemoryUsedByVmsMb = clusterMemoryUsedByVmsMb; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the free memory in the cluster in MB. + /// + [JsonProperty(PropertyName = "clusterFreeMemoryMb")] + public double? ClusterFreeMemoryMb { get; set; } + + /// + /// Gets or sets the used memory in the cluster in MB. + /// + [JsonProperty(PropertyName = "clusterUsedMemoryMb")] + public double? ClusterUsedMemoryMb { get; set; } + + /// + /// Gets or sets the failover memory in the cluster in MB. + /// + [JsonProperty(PropertyName = "clusterFailoverMemoryMb")] + public double? ClusterFailoverMemoryMb { get; set; } + + /// + /// Gets or sets the fragmentation memory in the cluster in MB. + /// + [JsonProperty(PropertyName = "clusterFragmentationMemoryMb")] + public double? ClusterFragmentationMemoryMb { get; set; } + + /// + /// Gets or sets the memory reserved for Hyper-V in the cluster in MB. + /// + [JsonProperty(PropertyName = "clusterHypervReserveMemoryMb")] + public double? ClusterHypervReserveMemoryMb { get; set; } + + /// + /// Gets or sets the memory of the Infra VM in the cluster in MB. + /// + [JsonProperty(PropertyName = "clusterInfraVmMemoryMb")] + public double? ClusterInfraVmMemoryMb { get; set; } + + /// + /// Gets or sets the total memory in the cluster in MB. + /// + [JsonProperty(PropertyName = "clusterTotalMemoryMb")] + public double? ClusterTotalMemoryMb { get; set; } + + /// + /// Gets or sets the non-failover memory in the cluster in MB. + /// + [JsonProperty(PropertyName = "clusterNonFailoverVmMb")] + public double? ClusterNonFailoverVmMb { get; set; } + + /// + /// Gets or sets the memory used by VMs in the cluster in MB. + /// + [JsonProperty(PropertyName = "clusterMemoryUsedByVmsMb")] + public double? ClusterMemoryUsedByVmsMb { get; set; } + + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterStorageViewData.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterStorageViewData.cs new file mode 100644 index 000000000000..a6e299d0b220 --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterStorageViewData.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.DataBoxEdge.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Cluster Storage Data. + /// + public partial class ClusterStorageViewData + { + /// + /// Initializes a new instance of the ClusterStorageViewData class. + /// + public ClusterStorageViewData() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClusterStorageViewData class. + /// + /// Total storage on the cluster in + /// MB. + /// The available or free storage on + /// the cluster in MB. + public ClusterStorageViewData(double? clusterTotalStorageMb = default(double?), double? clusterFreeStorageMb = default(double?)) + { + ClusterTotalStorageMb = clusterTotalStorageMb; + ClusterFreeStorageMb = clusterFreeStorageMb; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets total storage on the cluster in MB. + /// + [JsonProperty(PropertyName = "clusterTotalStorageMb")] + public double? ClusterTotalStorageMb { get; set; } + + /// + /// Gets or sets the available or free storage on the cluster in MB. + /// + [JsonProperty(PropertyName = "clusterFreeStorageMb")] + public double? ClusterFreeStorageMb { get; set; } + + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterWitnessType.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterWitnessType.cs new file mode 100644 index 000000000000..e710708fc653 --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ClusterWitnessType.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.DataBoxEdge.Models +{ + + /// + /// Defines values for ClusterWitnessType. + /// + public static class ClusterWitnessType + { + public const string None = "None"; + public const string Cloud = "Cloud"; + public const string FileShare = "FileShare"; + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Container.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Container.cs index 0bf8ccb9fb5f..845502218e22 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Container.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Container.cs @@ -38,7 +38,6 @@ public Container() /// object. /// The object name. /// The hierarchical type of the object. - /// Container in DataBoxEdge Resource /// Current status of the container. /// Possible values include: 'OK', 'Offline', 'Unknown', 'Updating', /// 'NeedsAttention' @@ -46,14 +45,16 @@ public Container() /// container. /// The UTC time when container got /// created. - public Container(string dataFormat, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string containerStatus = default(string), RefreshDetails refreshDetails = default(RefreshDetails), System.DateTime? createdDateTime = default(System.DateTime?)) + /// Metadata pertaining to creation and last + /// modification of Container + public Container(string dataFormat, string id = default(string), string name = default(string), string type = default(string), string containerStatus = default(string), RefreshDetails refreshDetails = default(RefreshDetails), System.DateTime? createdDateTime = default(System.DateTime?), SystemData systemData = default(SystemData)) : base(id, name, type) { - SystemData = systemData; ContainerStatus = containerStatus; DataFormat = dataFormat; RefreshDetails = refreshDetails; CreatedDateTime = createdDateTime; + SystemData = systemData; CustomInit(); } @@ -62,12 +63,6 @@ public Container() /// partial void CustomInit(); - /// - /// Gets or sets container in DataBoxEdge Resource - /// - [JsonProperty(PropertyName = "systemData")] - public SystemData SystemData { get; set; } - /// /// Gets current status of the container. Possible values include: /// 'OK', 'Offline', 'Unknown', 'Updating', 'NeedsAttention' @@ -94,6 +89,13 @@ public Container() [JsonProperty(PropertyName = "properties.createdDateTime")] public System.DateTime? CreatedDateTime { get; private set; } + /// + /// Gets metadata pertaining to creation and last modification of + /// Container + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DataBoxEdgeDevice.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DataBoxEdgeDevice.cs index 94fbd3bee2fb..8236d7547ed4 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DataBoxEdgeDevice.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DataBoxEdgeDevice.cs @@ -170,16 +170,16 @@ public DataBoxEdgeDevice() public string Kind { get; set; } /// - /// Gets or sets dataBoxEdge Resource + /// Gets dataBoxEdge Resource /// [JsonProperty(PropertyName = "systemData")] - public SystemData SystemData { get; set; } + public SystemData SystemData { get; private set; } /// - /// Gets or sets dataBoxEdge Device Properties + /// Gets dataBoxEdge Device Properties /// [JsonProperty(PropertyName = "properties.systemData")] - public SystemData SystemData1 { get; set; } + public SystemData SystemData1 { get; private set; } /// /// Gets or sets the status of the Data Box Edge/Gateway device. diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceExtendedInfo.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceExtendedInfo.cs index 13a1f1dd17e6..8c22a4835cd7 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceExtendedInfo.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DataBoxEdgeDeviceExtendedInfo.cs @@ -59,7 +59,21 @@ public DataBoxEdgeDeviceExtendedInfo() /// 'KeyVaultNotSynced' /// Device secrets, will be returned only /// with ODataFilter $expand=deviceSecrets - public DataBoxEdgeDeviceExtendedInfo(string id = default(string), string name = default(string), string type = default(string), string encryptionKeyThumbprint = default(string), string encryptionKey = default(string), string resourceKey = default(string), string clientSecretStoreId = default(string), string clientSecretStoreUrl = default(string), string channelIntegrityKeyName = default(string), string channelIntegrityKeyVersion = default(string), string keyVaultSyncStatus = default(string), IDictionary deviceSecrets = default(IDictionary)) + /// Cluster Witness Type. Possible + /// values include: 'None', 'Cloud', 'FileShare' + /// The witness location of file + /// share. + /// The username of file + /// share. + /// The Cloud Witness + /// Storage account name. + /// The Container for cloud + /// witness in the storage account. + /// The Azure service + /// endpoint of the cloud witness storage account. + /// Metadata pertaining to creation and last + /// modification of DataBoxEdgeDevice + public DataBoxEdgeDeviceExtendedInfo(string id = default(string), string name = default(string), string type = default(string), string encryptionKeyThumbprint = default(string), string encryptionKey = default(string), string resourceKey = default(string), string clientSecretStoreId = default(string), string clientSecretStoreUrl = default(string), string channelIntegrityKeyName = default(string), string channelIntegrityKeyVersion = default(string), string keyVaultSyncStatus = default(string), IDictionary deviceSecrets = default(IDictionary), string clusterWitnessType = default(string), string fileShareWitnessLocation = default(string), string fileShareWitnessUsername = default(string), string cloudWitnessStorageAccountName = default(string), string cloudWitnessContainerName = default(string), string cloudWitnessStorageEndpoint = default(string), SystemData systemData = default(SystemData)) : base(id, name, type) { EncryptionKeyThumbprint = encryptionKeyThumbprint; @@ -71,6 +85,13 @@ public DataBoxEdgeDeviceExtendedInfo() ChannelIntegrityKeyVersion = channelIntegrityKeyVersion; KeyVaultSyncStatus = keyVaultSyncStatus; DeviceSecrets = deviceSecrets; + ClusterWitnessType = clusterWitnessType; + FileShareWitnessLocation = fileShareWitnessLocation; + FileShareWitnessUsername = fileShareWitnessUsername; + CloudWitnessStorageAccountName = cloudWitnessStorageAccountName; + CloudWitnessContainerName = cloudWitnessContainerName; + CloudWitnessStorageEndpoint = cloudWitnessStorageEndpoint; + SystemData = systemData; CustomInit(); } @@ -139,5 +160,50 @@ public DataBoxEdgeDeviceExtendedInfo() [JsonProperty(PropertyName = "properties.deviceSecrets")] public IDictionary DeviceSecrets { get; private set; } + /// + /// Gets cluster Witness Type. Possible values include: 'None', + /// 'Cloud', 'FileShare' + /// + [JsonProperty(PropertyName = "properties.clusterWitnessType")] + public string ClusterWitnessType { get; private set; } + + /// + /// Gets the witness location of file share. + /// + [JsonProperty(PropertyName = "properties.fileShareWitnessLocation")] + public string FileShareWitnessLocation { get; private set; } + + /// + /// Gets the username of file share. + /// + [JsonProperty(PropertyName = "properties.fileShareWitnessUsername")] + public string FileShareWitnessUsername { get; private set; } + + /// + /// Gets the Cloud Witness Storage account name. + /// + [JsonProperty(PropertyName = "properties.cloudWitnessStorageAccountName")] + public string CloudWitnessStorageAccountName { get; private set; } + + /// + /// Gets the Container for cloud witness in the storage account. + /// + [JsonProperty(PropertyName = "properties.cloudWitnessContainerName")] + public string CloudWitnessContainerName { get; private set; } + + /// + /// Gets the Azure service endpoint of the cloud witness storage + /// account. + /// + [JsonProperty(PropertyName = "properties.cloudWitnessStorageEndpoint")] + public string CloudWitnessStorageEndpoint { get; private set; } + + /// + /// Gets metadata pertaining to creation and last modification of + /// DataBoxEdgeDevice + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + } } diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DataBoxEdgeSku.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DataBoxEdgeSku.cs index 450f07804f86..42aaca34a829 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DataBoxEdgeSku.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DataBoxEdgeSku.cs @@ -39,7 +39,8 @@ public DataBoxEdgeSku() /// 'TCA_Large', 'EdgeP_Base', 'EdgeP_High', 'EdgePR_Base', /// 'EdgePR_Base_UPS', 'EP2_64_1VPU_W', 'EP2_128_1T4_Mx1_W', /// 'EP2_256_2T4_W', 'EdgeMR_Mini', 'RCA_Small', 'RCA_Large', 'RDC', - /// 'Management' + /// 'Management', 'EP2_64_Mx1_W', 'EP2_128_GPU1_Mx1_W', + /// 'EP2_256_GPU2_Mx1', 'EdgeMR_TCP' /// The Sku kind. /// The Sku tier. Possible values include: /// 'Standard' @@ -99,7 +100,8 @@ public DataBoxEdgeSku() /// 'TMA', 'TDC', 'TCA_Small', 'GPU', 'TCA_Large', 'EdgeP_Base', /// 'EdgeP_High', 'EdgePR_Base', 'EdgePR_Base_UPS', 'EP2_64_1VPU_W', /// 'EP2_128_1T4_Mx1_W', 'EP2_256_2T4_W', 'EdgeMR_Mini', 'RCA_Small', - /// 'RCA_Large', 'RDC', 'Management' + /// 'RCA_Large', 'RDC', 'Management', 'EP2_64_Mx1_W', + /// 'EP2_128_GPU1_Mx1_W', 'EP2_256_GPU2_Mx1', 'EdgeMR_TCP' /// [JsonProperty(PropertyName = "name")] public string Name { get; private set; } diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DeviceCapacityInfo.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DeviceCapacityInfo.cs new file mode 100644 index 000000000000..5456493cf067 --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DeviceCapacityInfo.cs @@ -0,0 +1,99 @@ +// +// 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.DataBoxEdge.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Object for Capturing DeviceCapacityInfo + /// + [Rest.Serialization.JsonTransformation] + public partial class DeviceCapacityInfo : ARMBaseModel + { + /// + /// Initializes a new instance of the DeviceCapacityInfo class. + /// + public DeviceCapacityInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeviceCapacityInfo class. + /// + /// The path ID that uniquely identifies the + /// object. + /// The object name. + /// The hierarchical type of the object. + /// Timestamp of request in UTC + /// Cluster capacity data for + /// storage resources (CSV). + /// Cluster capacity data for + /// compute resources (Memory and GPU). + /// The dictionary of individual node + /// names and node capacities in the cluster. + /// Metadata pertaining to device capacity + /// info. + public DeviceCapacityInfo(string id = default(string), string name = default(string), string type = default(string), System.DateTime? timeStamp = default(System.DateTime?), ClusterStorageViewData clusterStorageCapacityInfo = default(ClusterStorageViewData), ClusterCapacityViewData clusterComputeCapacityInfo = default(ClusterCapacityViewData), IDictionary nodeCapacityInfos = default(IDictionary), SystemData systemData = default(SystemData)) + : base(id, name, type) + { + TimeStamp = timeStamp; + ClusterStorageCapacityInfo = clusterStorageCapacityInfo; + ClusterComputeCapacityInfo = clusterComputeCapacityInfo; + NodeCapacityInfos = nodeCapacityInfos; + SystemData = systemData; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets timestamp of request in UTC + /// + [JsonProperty(PropertyName = "properties.timeStamp")] + public System.DateTime? TimeStamp { get; set; } + + /// + /// Gets or sets cluster capacity data for storage resources (CSV). + /// + [JsonProperty(PropertyName = "properties.clusterStorageCapacityInfo")] + public ClusterStorageViewData ClusterStorageCapacityInfo { get; set; } + + /// + /// Gets or sets cluster capacity data for compute resources (Memory + /// and GPU). + /// + [JsonProperty(PropertyName = "properties.clusterComputeCapacityInfo")] + public ClusterCapacityViewData ClusterComputeCapacityInfo { get; set; } + + /// + /// Gets or sets the dictionary of individual node names and node + /// capacities in the cluster. + /// + [JsonProperty(PropertyName = "properties.nodeCapacityInfos")] + public IDictionary NodeCapacityInfos { get; set; } + + /// + /// Gets metadata pertaining to device capacity info. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DeviceCapacityRequestInfo.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DeviceCapacityRequestInfo.cs new file mode 100644 index 000000000000..40ccdb650308 --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DeviceCapacityRequestInfo.cs @@ -0,0 +1,82 @@ +// +// 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.DataBoxEdge.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Object for Capturing DeviceCapacityRequestInfo + /// + [Rest.Serialization.JsonTransformation] + public partial class DeviceCapacityRequestInfo + { + /// + /// Initializes a new instance of the DeviceCapacityRequestInfo class. + /// + public DeviceCapacityRequestInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeviceCapacityRequestInfo class. + /// + /// Array containing the sizes of the + /// VMs for checking if its feasible to create them on the + /// appliance. + /// Array of the VMs of the sizes in + /// VmSizes can be provisioned on the appliance. + public DeviceCapacityRequestInfo(IList> vmPlacementQuery, IList vmPlacementResults = default(IList)) + { + VmPlacementQuery = vmPlacementQuery; + VmPlacementResults = vmPlacementResults; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets array containing the sizes of the VMs for checking if + /// its feasible to create them on the appliance. + /// + [JsonProperty(PropertyName = "properties.vmPlacementQuery")] + public IList> VmPlacementQuery { get; set; } + + /// + /// Gets or sets array of the VMs of the sizes in VmSizes can be + /// provisioned on the appliance. + /// + [JsonProperty(PropertyName = "properties.vmPlacementResults")] + public IList VmPlacementResults { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (VmPlacementQuery == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "VmPlacementQuery"); + } + } + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DiagnosticProactiveLogCollectionSettings.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DiagnosticProactiveLogCollectionSettings.cs index f89ded5026a2..afb7a7946286 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DiagnosticProactiveLogCollectionSettings.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DiagnosticProactiveLogCollectionSettings.cs @@ -40,13 +40,13 @@ public DiagnosticProactiveLogCollectionSettings() /// object. /// The object name. /// The hierarchical type of the object. - /// DiagnosticProactiveLogCollectionSettings + /// Metadata pertaining to creation and last + /// modification of DiagnosticProactiveLogCollectionSettings public DiagnosticProactiveLogCollectionSettings(string userConsent, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData)) : base(id, name, type) { - SystemData = systemData; UserConsent = userConsent; + SystemData = systemData; CustomInit(); } @@ -55,12 +55,6 @@ public DiagnosticProactiveLogCollectionSettings() /// partial void CustomInit(); - /// - /// Gets or sets diagnosticProactiveLogCollectionSettings - /// - [JsonProperty(PropertyName = "systemData")] - public SystemData SystemData { get; set; } - /// /// Gets or sets proactive diagnostic collection consent flag. Possible /// values include: 'Enabled', 'Disabled' @@ -68,6 +62,13 @@ public DiagnosticProactiveLogCollectionSettings() [JsonProperty(PropertyName = "properties.userConsent")] public string UserConsent { get; set; } + /// + /// Gets metadata pertaining to creation and last modification of + /// DiagnosticProactiveLogCollectionSettings + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DiagnosticRemoteSupportSettings.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DiagnosticRemoteSupportSettings.cs index 52e0fb563c4c..460d888faaa4 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DiagnosticRemoteSupportSettings.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/DiagnosticRemoteSupportSettings.cs @@ -40,14 +40,15 @@ public DiagnosticRemoteSupportSettings() /// object. /// The object name. /// The hierarchical type of the object. - /// DiagnosticRemoteSupportSettings /// Remote support settings /// list according to the RemoteApplicationType - public DiagnosticRemoteSupportSettings(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), IList remoteSupportSettingsList = default(IList)) + /// Represents resource creation and updation + /// time + public DiagnosticRemoteSupportSettings(string id = default(string), string name = default(string), string type = default(string), IList remoteSupportSettingsList = default(IList), SystemData systemData = default(SystemData)) : base(id, name, type) { - SystemData = systemData; RemoteSupportSettingsList = remoteSupportSettingsList; + SystemData = systemData; CustomInit(); } @@ -56,12 +57,6 @@ public DiagnosticRemoteSupportSettings() /// partial void CustomInit(); - /// - /// Gets or sets diagnosticRemoteSupportSettings - /// - [JsonProperty(PropertyName = "systemData")] - public SystemData SystemData { get; set; } - /// /// Gets or sets remote support settings list according to the /// RemoteApplicationType @@ -69,5 +64,11 @@ public DiagnosticRemoteSupportSettings() [JsonProperty(PropertyName = "properties.remoteSupportSettingsList")] public IList RemoteSupportSettingsList { get; set; } + /// + /// Gets represents resource creation and updation time + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + } } diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/FileEventTrigger.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/FileEventTrigger.cs index 78c4285ac914..b932c46e5c55 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/FileEventTrigger.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/FileEventTrigger.cs @@ -39,7 +39,8 @@ public FileEventTrigger() /// object. /// The object name. /// The hierarchical type of the object. - /// Trigger in DataBoxEdge Resource + /// Metadata pertaining to creation and last + /// modification of Trigger /// A custom context tag typically used /// to correlate the trigger against its usage. For example, if a /// periodic timer trigger is intended for certain specific IoT modules diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/HostCapacity.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/HostCapacity.cs new file mode 100644 index 000000000000..e4e79040a356 --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/HostCapacity.cs @@ -0,0 +1,100 @@ +// +// 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.DataBoxEdge.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Host Capacity Data. + /// + public partial class HostCapacity + { + /// + /// Initializes a new instance of the HostCapacity class. + /// + public HostCapacity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the HostCapacity class. + /// + /// The name of the host. + /// The available memory + /// on the host accounting for VM placement size and any host VM + /// reservations. + /// The available amount of GPUs on the + /// host to use after accounting for GPUS used by reservations on the + /// host. + /// The VM used memory per VmId. + /// The GPU type of the VM. + /// The numa nodes information for Hpn + /// VMs. + public HostCapacity(string hostName = default(string), long? effectiveAvailableMemoryMbOnHost = default(long?), int? availableGpuCount = default(int?), IDictionary vmUsedMemory = default(IDictionary), string gpuType = default(string), IList numaNodesData = default(IList)) + { + HostName = hostName; + EffectiveAvailableMemoryMbOnHost = effectiveAvailableMemoryMbOnHost; + AvailableGpuCount = availableGpuCount; + VmUsedMemory = vmUsedMemory; + GpuType = gpuType; + NumaNodesData = numaNodesData; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the host. + /// + [JsonProperty(PropertyName = "hostName")] + public string HostName { get; set; } + + /// + /// Gets or sets the available memory on the host accounting for VM + /// placement size and any host VM reservations. + /// + [JsonProperty(PropertyName = "effectiveAvailableMemoryMbOnHost")] + public long? EffectiveAvailableMemoryMbOnHost { get; set; } + + /// + /// Gets or sets the available amount of GPUs on the host to use after + /// accounting for GPUS used by reservations on the host. + /// + [JsonProperty(PropertyName = "availableGpuCount")] + public int? AvailableGpuCount { get; set; } + + /// + /// Gets or sets the VM used memory per VmId. + /// + [JsonProperty(PropertyName = "vmUsedMemory")] + public IDictionary VmUsedMemory { get; set; } + + /// + /// Gets or sets the GPU type of the VM. + /// + [JsonProperty(PropertyName = "gpuType")] + public string GpuType { get; set; } + + /// + /// Gets or sets the numa nodes information for Hpn VMs. + /// + [JsonProperty(PropertyName = "numaNodesData")] + public IList NumaNodesData { get; set; } + + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/IoTAddon.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/IoTAddon.cs index 48f9de7adfab..f907159343b9 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/IoTAddon.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/IoTAddon.cs @@ -41,7 +41,8 @@ public IoTAddon() /// object. /// The object name. /// The hierarchical type of the object. - /// Addon type + /// Metadata pertaining to creation and last + /// modification of Addon /// Version of IoT running on the /// appliance. /// Host OS supported by the IoT addon. diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/IoTRole.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/IoTRole.cs index 543c8cd8854e..395f9b594e30 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/IoTRole.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/IoTRole.cs @@ -47,7 +47,8 @@ public IoTRole() /// object. /// The object name. /// The hierarchical type of the object. - /// Role configured on ASE resource + /// Metadata pertaining to creation and last + /// modification of Role /// Mount points of shares in /// role(s). /// Iot edge agent details to download diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/KubernetesRole.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/KubernetesRole.cs index 00ca7daf64ad..00f3f6b9be1e 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/KubernetesRole.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/KubernetesRole.cs @@ -61,7 +61,8 @@ public KubernetesRole() /// object. /// The object name. /// The hierarchical type of the object. - /// Role configured on ASE resource + /// Metadata pertaining to creation and last + /// modification of Role /// State of Kubernetes deployment. /// Possible values include: 'Invalid', 'Creating', 'Created', /// 'Updating', 'Reconfiguring', 'Failed', 'Deleting' diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/MECRole.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/MECRole.cs index ddb38874742b..41eca22d2fef 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/MECRole.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/MECRole.cs @@ -39,7 +39,8 @@ public MECRole() /// object. /// The object name. /// The hierarchical type of the object. - /// Role configured on ASE resource + /// Metadata pertaining to creation and last + /// modification of Role /// Activation key of the MEC. /// Controller Endpoint. /// Unique Id of the Resource. diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/MonitoringMetricConfiguration.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/MonitoringMetricConfiguration.cs index d24c0efdd02e..025bb34d66ed 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/MonitoringMetricConfiguration.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/MonitoringMetricConfiguration.cs @@ -42,13 +42,13 @@ public MonitoringMetricConfiguration() /// object. /// The object name. /// The hierarchical type of the object. - /// MonitoringConfiguration on ASE - /// device + /// Metadata pertaining to creation and last + /// modification of MonitoringConfiguration public MonitoringMetricConfiguration(IList metricConfigurations, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData)) : base(id, name, type) { - SystemData = systemData; MetricConfigurations = metricConfigurations; + SystemData = systemData; CustomInit(); } @@ -57,18 +57,19 @@ public MonitoringMetricConfiguration() /// partial void CustomInit(); - /// - /// Gets or sets monitoringConfiguration on ASE device - /// - [JsonProperty(PropertyName = "systemData")] - public SystemData SystemData { get; set; } - /// /// Gets or sets the metrics configuration details /// [JsonProperty(PropertyName = "properties.metricConfigurations")] public IList MetricConfigurations { get; set; } + /// + /// Gets metadata pertaining to creation and last modification of + /// MonitoringConfiguration + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/NetworkSettings.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/NetworkSettings.cs index faf696fbe635..fa6d8eba3507 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/NetworkSettings.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/NetworkSettings.cs @@ -38,14 +38,15 @@ public NetworkSettings() /// object. /// The object name. /// The hierarchical type of the object. - /// NetworkSettings on ASE device /// The network adapter list on the /// device. - public NetworkSettings(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), IList networkAdapters = default(IList)) + /// Metadata pertaining to creation and last + /// modification of NetworkSettings + public NetworkSettings(string id = default(string), string name = default(string), string type = default(string), IList networkAdapters = default(IList), SystemData systemData = default(SystemData)) : base(id, name, type) { - SystemData = systemData; NetworkAdapters = networkAdapters; + SystemData = systemData; CustomInit(); } @@ -54,17 +55,18 @@ public NetworkSettings() /// partial void CustomInit(); - /// - /// Gets or sets networkSettings on ASE device - /// - [JsonProperty(PropertyName = "systemData")] - public SystemData SystemData { get; set; } - /// /// Gets the network adapter list on the device. /// [JsonProperty(PropertyName = "properties.networkAdapters")] public IList NetworkAdapters { get; private set; } + /// + /// Gets metadata pertaining to creation and last modification of + /// NetworkSettings + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + } } diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/NumaNodeData.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/NumaNodeData.cs new file mode 100644 index 000000000000..94a5cc6f32f3 --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/NumaNodeData.cs @@ -0,0 +1,107 @@ +// +// 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.DataBoxEdge.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// NUMA node data. + /// + public partial class NumaNodeData + { + /// + /// Initializes a new instance of the NumaNodeData class. + /// + public NumaNodeData() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NumaNodeData class. + /// + /// The NUMA node index. + /// The total memory on the NUMA + /// node. + /// The logical cores per core + /// count. + /// The effective available + /// memory on the NUMA node in MB. + /// The free VCPU indices for the + /// Hpn VMs. + /// The VCPU indices for Hpn + /// VMs + /// The VCPU indices for the + /// root. + public NumaNodeData(int? numaNodeIndex = default(int?), long? totalMemoryInMb = default(long?), int? logicalCoreCountPerCore = default(int?), long? effectiveAvailableMemoryInMb = default(long?), IList freeVCpuIndexesForHpn = default(IList), IList vCpuIndexesForHpn = default(IList), IList vCpuIndexesForRoot = default(IList)) + { + NumaNodeIndex = numaNodeIndex; + TotalMemoryInMb = totalMemoryInMb; + LogicalCoreCountPerCore = logicalCoreCountPerCore; + EffectiveAvailableMemoryInMb = effectiveAvailableMemoryInMb; + FreeVCpuIndexesForHpn = freeVCpuIndexesForHpn; + VCpuIndexesForHpn = vCpuIndexesForHpn; + VCpuIndexesForRoot = vCpuIndexesForRoot; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the NUMA node index. + /// + [JsonProperty(PropertyName = "numaNodeIndex")] + public int? NumaNodeIndex { get; set; } + + /// + /// Gets or sets the total memory on the NUMA node. + /// + [JsonProperty(PropertyName = "totalMemoryInMb")] + public long? TotalMemoryInMb { get; set; } + + /// + /// Gets or sets the logical cores per core count. + /// + [JsonProperty(PropertyName = "logicalCoreCountPerCore")] + public int? LogicalCoreCountPerCore { get; set; } + + /// + /// Gets or sets the effective available memory on the NUMA node in MB. + /// + [JsonProperty(PropertyName = "effectiveAvailableMemoryInMb")] + public long? EffectiveAvailableMemoryInMb { get; set; } + + /// + /// Gets or sets the free VCPU indices for the Hpn VMs. + /// + [JsonProperty(PropertyName = "freeVCpuIndexesForHpn")] + public IList FreeVCpuIndexesForHpn { get; set; } + + /// + /// Gets or sets the VCPU indices for Hpn VMs + /// + [JsonProperty(PropertyName = "vCpuIndexesForHpn")] + public IList VCpuIndexesForHpn { get; set; } + + /// + /// Gets or sets the VCPU indices for the root. + /// + [JsonProperty(PropertyName = "vCpuIndexesForRoot")] + public IList VCpuIndexesForRoot { get; set; } + + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Order.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Order.cs index 3321213c69af..268137c49e10 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Order.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Order.cs @@ -39,7 +39,10 @@ public Order() /// object. /// The object name. /// The hierarchical type of the object. - /// Order configured on ASE resource + /// It specify the order api version. + /// Metadata pertaining to creation and last + /// modification of Order + /// It specify the order resource id. /// The shipping address. /// Current status of the order. /// List of status changes in the @@ -54,10 +57,12 @@ public Order() /// ShipmentType of the order. Possible /// values include: 'NotApplicable', 'ShippedToCustomer', /// 'SelfPickup' - public Order(ContactDetails contactInformation, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), Address shippingAddress = default(Address), OrderStatus currentStatus = default(OrderStatus), IList orderHistory = default(IList), string serialNumber = default(string), IList deliveryTrackingInfo = default(IList), IList returnTrackingInfo = default(IList), string shipmentType = default(string)) + public Order(ContactDetails contactInformation, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), SystemData systemData = default(SystemData), string orderId = default(string), Address shippingAddress = default(Address), OrderStatus currentStatus = default(OrderStatus), IList orderHistory = default(IList), string serialNumber = default(string), IList deliveryTrackingInfo = default(IList), IList returnTrackingInfo = default(IList), string shipmentType = default(string)) : base(id, name, type) { + Kind = kind; SystemData = systemData; + OrderId = orderId; ContactInformation = contactInformation; ShippingAddress = shippingAddress; CurrentStatus = currentStatus; @@ -75,10 +80,22 @@ public Order() partial void CustomInit(); /// - /// Gets or sets order configured on ASE resource + /// Gets it specify the order api version. + /// + [JsonProperty(PropertyName = "kind")] + public string Kind { get; private set; } + + /// + /// Gets metadata pertaining to creation and last modification of Order /// [JsonProperty(PropertyName = "systemData")] - public SystemData SystemData { get; set; } + public SystemData SystemData { get; private set; } + + /// + /// Gets it specify the order resource id. + /// + [JsonProperty(PropertyName = "properties.orderId")] + public string OrderId { get; private set; } /// /// Gets or sets the contact details. diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/PeriodicTimerEventTrigger.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/PeriodicTimerEventTrigger.cs index dfb631559c7b..018891f3ec21 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/PeriodicTimerEventTrigger.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/PeriodicTimerEventTrigger.cs @@ -39,7 +39,8 @@ public PeriodicTimerEventTrigger() /// object. /// The object name. /// The hierarchical type of the object. - /// Trigger in DataBoxEdge Resource + /// Metadata pertaining to creation and last + /// modification of Trigger /// A custom context tag typically used /// to correlate the trigger against its usage. For example, if a /// periodic timer trigger is intended for certain specific IoT modules diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ResourceTypeSku.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ResourceTypeSku.cs deleted file mode 100644 index 907d0db91ca5..000000000000 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/ResourceTypeSku.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.DataBoxEdge.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Resource type Sku object - /// - public partial class ResourceTypeSku - { - /// - /// Initializes a new instance of the ResourceTypeSku class. - /// - public ResourceTypeSku() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ResourceTypeSku class. - /// - /// The resource type. - /// The skus. - public ResourceTypeSku(string resourceType = default(string), IList skus = default(IList)) - { - ResourceType = resourceType; - Skus = skus; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets the resource type. - /// - [JsonProperty(PropertyName = "resourceType")] - public string ResourceType { get; private set; } - - /// - /// Gets the skus. - /// - [JsonProperty(PropertyName = "skus")] - public IList Skus { get; private set; } - - } -} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Role.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Role.cs index 4517a52c1bf2..c5a11cc68336 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Role.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Role.cs @@ -33,7 +33,8 @@ public Role() /// object. /// The object name. /// The hierarchical type of the object. - /// Role configured on ASE resource + /// Metadata pertaining to creation and last + /// modification of Role public Role(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData)) : base(id, name, type) { @@ -47,10 +48,10 @@ public Role() partial void CustomInit(); /// - /// Gets or sets role configured on ASE resource + /// Gets metadata pertaining to creation and last modification of Role /// [JsonProperty(PropertyName = "systemData")] - public SystemData SystemData { get; set; } + public SystemData SystemData { get; private set; } } } diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Share.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Share.cs index 40ef50f18000..639c913e79de 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Share.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Share.cs @@ -45,7 +45,6 @@ public Share() /// object. /// The object name. /// The hierarchical type of the object. - /// Share on ASE device /// Description for the share. /// Azure container mapping for the /// share. @@ -59,10 +58,11 @@ public Share() /// Share mount point to the role. /// Data policy of the share. Possible values /// include: 'Cloud', 'Local' - public Share(string shareStatus, string monitoringStatus, string accessProtocol, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string description = default(string), AzureContainerInfo azureContainerInfo = default(AzureContainerInfo), IList userAccessRights = default(IList), IList clientAccessRights = default(IList), RefreshDetails refreshDetails = default(RefreshDetails), IList shareMappings = default(IList), string dataPolicy = default(string)) + /// Metadata pertaining to creation and last + /// modification of Share + public Share(string shareStatus, string monitoringStatus, string accessProtocol, string id = default(string), string name = default(string), string type = default(string), string description = default(string), AzureContainerInfo azureContainerInfo = default(AzureContainerInfo), IList userAccessRights = default(IList), IList clientAccessRights = default(IList), RefreshDetails refreshDetails = default(RefreshDetails), IList shareMappings = default(IList), string dataPolicy = default(string), SystemData systemData = default(SystemData)) : base(id, name, type) { - SystemData = systemData; Description = description; ShareStatus = shareStatus; MonitoringStatus = monitoringStatus; @@ -73,6 +73,7 @@ public Share() RefreshDetails = refreshDetails; ShareMappings = shareMappings; DataPolicy = dataPolicy; + SystemData = systemData; CustomInit(); } @@ -81,12 +82,6 @@ public Share() /// partial void CustomInit(); - /// - /// Gets or sets share on ASE device - /// - [JsonProperty(PropertyName = "systemData")] - public SystemData SystemData { get; set; } - /// /// Gets or sets description for the share. /// @@ -153,6 +148,12 @@ public Share() [JsonProperty(PropertyName = "properties.dataPolicy")] public string DataPolicy { get; set; } + /// + /// Gets metadata pertaining to creation and last modification of Share + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Sku.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Sku.cs index b41d590ed579..6d735538a9f9 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Sku.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Sku.cs @@ -35,7 +35,8 @@ public Sku() /// 'TMA', 'TDC', 'TCA_Small', 'GPU', 'TCA_Large', 'EdgeP_Base', /// 'EdgeP_High', 'EdgePR_Base', 'EdgePR_Base_UPS', 'EP2_64_1VPU_W', /// 'EP2_128_1T4_Mx1_W', 'EP2_256_2T4_W', 'EdgeMR_Mini', 'RCA_Small', - /// 'RCA_Large', 'RDC', 'Management' + /// 'RCA_Large', 'RDC', 'Management', 'EP2_64_Mx1_W', + /// 'EP2_128_GPU1_Mx1_W', 'EP2_256_GPU2_Mx1', 'EdgeMR_TCP' /// The SKU tier. This is based on the SKU name. /// Possible values include: 'Standard' public Sku(string name = default(string), string tier = default(string)) @@ -57,7 +58,8 @@ public Sku() /// 'TMA', 'TDC', 'TCA_Small', 'GPU', 'TCA_Large', 'EdgeP_Base', /// 'EdgeP_High', 'EdgePR_Base', 'EdgePR_Base_UPS', 'EP2_64_1VPU_W', /// 'EP2_128_1T4_Mx1_W', 'EP2_256_2T4_W', 'EdgeMR_Mini', 'RCA_Small', - /// 'RCA_Large', 'RDC', 'Management' + /// 'RCA_Large', 'RDC', 'Management', 'EP2_64_Mx1_W', + /// 'EP2_128_GPU1_Mx1_W', 'EP2_256_GPU2_Mx1', 'EdgeMR_TCP' /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SkuInformation.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SkuInformation.cs deleted file mode 100644 index 34bb0ffd803f..000000000000 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SkuInformation.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.DataBoxEdge.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Sku information - /// - public partial class SkuInformation - { - /// - /// Initializes a new instance of the SkuInformation class. - /// - public SkuInformation() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the SkuInformation class. - /// - /// The sku name. - /// The sku tier. - /// The sku kind. - /// The Sku family. - /// The pricing info of the Sku. - /// The locations where Sku is - /// available. - /// The locations where Sku is available - /// with zones and sites info - /// The required quotaIds for the sku to - /// be available. - /// The required features for the sku to - /// be available. - public SkuInformation(string name = default(string), string tier = default(string), string kind = default(string), string family = default(string), IList costs = default(IList), IList locations = default(IList), IList locationInfo = default(IList), IList requiredQuotaIds = default(IList), IList requiredFeatures = default(IList)) - { - Name = name; - Tier = tier; - Kind = kind; - Family = family; - Costs = costs; - Locations = locations; - LocationInfo = locationInfo; - RequiredQuotaIds = requiredQuotaIds; - RequiredFeatures = requiredFeatures; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets the sku name. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; private set; } - - /// - /// Gets the sku tier. - /// - [JsonProperty(PropertyName = "tier")] - public string Tier { get; private set; } - - /// - /// Gets the sku kind. - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; private set; } - - /// - /// Gets the Sku family. - /// - [JsonProperty(PropertyName = "family")] - public string Family { get; private set; } - - /// - /// Gets the pricing info of the Sku. - /// - [JsonProperty(PropertyName = "costs")] - public IList Costs { get; private set; } - - /// - /// Gets the locations where Sku is available. - /// - [JsonProperty(PropertyName = "locations")] - public IList Locations { get; private set; } - - /// - /// Gets the locations where Sku is available with zones and sites info - /// - [JsonProperty(PropertyName = "locationInfo")] - public IList LocationInfo { get; private set; } - - /// - /// Gets the required quotaIds for the sku to be available. - /// - [JsonProperty(PropertyName = "requiredQuotaIds")] - public IList RequiredQuotaIds { get; private set; } - - /// - /// Gets the required features for the sku to be available. - /// - [JsonProperty(PropertyName = "requiredFeatures")] - public IList RequiredFeatures { get; private set; } - - } -} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SkuInformationList.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SkuInformationList.cs deleted file mode 100644 index 8d1bcc1fbcf0..000000000000 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SkuInformationList.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.DataBoxEdge.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// List of SKU Information objects - /// - public partial class SkuInformationList - { - /// - /// Initializes a new instance of the SkuInformationList class. - /// - public SkuInformationList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the SkuInformationList class. - /// - /// List of ResourceTypeSku objects - /// Links to the next set of results - public SkuInformationList(IList value = default(IList), string nextLink = default(string)) - { - Value = value; - NextLink = nextLink; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets list of ResourceTypeSku objects - /// - [JsonProperty(PropertyName = "value")] - public IList Value { get; private set; } - - /// - /// Gets links to the next set of results - /// - [JsonProperty(PropertyName = "nextLink")] - public string NextLink { get; private set; } - - } -} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SkuName.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SkuName.cs index b0b289937c65..8d7f07e78535 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SkuName.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SkuName.cs @@ -41,5 +41,9 @@ public static class SkuName public const string RCALarge = "RCA_Large"; public const string RDC = "RDC"; public const string Management = "Management"; + public const string EP264Mx1W = "EP2_64_Mx1_W"; + public const string EP2128GPU1Mx1W = "EP2_128_GPU1_Mx1_W"; + public const string EP2256GPU2Mx1 = "EP2_256_GPU2_Mx1"; + public const string EdgeMRTCP = "EdgeMR_TCP"; } } diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/StorageAccount.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/StorageAccount.cs index c4c8df92119d..f48d0603ca7d 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/StorageAccount.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/StorageAccount.cs @@ -38,8 +38,6 @@ public StorageAccount() /// object. /// The object name. /// The hierarchical type of the object. - /// StorageAccount object on ASE - /// device /// Description for the storage /// Account. /// Current status of the storage @@ -50,16 +48,18 @@ public StorageAccount() /// BlobEndpoint of Storage Account /// The Container Count. Present only for /// Storage Accounts with DataPolicy set to Cloud. - public StorageAccount(string dataPolicy, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string description = default(string), string storageAccountStatus = default(string), string storageAccountCredentialId = default(string), string blobEndpoint = default(string), int? containerCount = default(int?)) + /// Metadata pertaining to creation and last + /// modification of StorageAccount + public StorageAccount(string dataPolicy, string id = default(string), string name = default(string), string type = default(string), string description = default(string), string storageAccountStatus = default(string), string storageAccountCredentialId = default(string), string blobEndpoint = default(string), int? containerCount = default(int?), SystemData systemData = default(SystemData)) : base(id, name, type) { - SystemData = systemData; Description = description; StorageAccountStatus = storageAccountStatus; DataPolicy = dataPolicy; StorageAccountCredentialId = storageAccountCredentialId; BlobEndpoint = blobEndpoint; ContainerCount = containerCount; + SystemData = systemData; CustomInit(); } @@ -68,12 +68,6 @@ public StorageAccount() /// partial void CustomInit(); - /// - /// Gets or sets storageAccount object on ASE device - /// - [JsonProperty(PropertyName = "systemData")] - public SystemData SystemData { get; set; } - /// /// Gets or sets description for the storage Account. /// @@ -113,6 +107,13 @@ public StorageAccount() [JsonProperty(PropertyName = "properties.containerCount")] public int? ContainerCount { get; private set; } + /// + /// Gets metadata pertaining to creation and last modification of + /// StorageAccount + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/StorageAccountCredential.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/StorageAccountCredential.cs index 493339debf6f..c2932af5ed41 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/StorageAccountCredential.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/StorageAccountCredential.cs @@ -42,7 +42,6 @@ public StorageAccountCredential() /// object. /// The object name. /// The hierarchical type of the object. - /// StorageAccountCredential object /// Username for the storage account. /// Encrypted storage key. /// Connection string for the storage @@ -51,10 +50,11 @@ public StorageAccountCredential() /// Blob end point for private /// clouds. /// Id of the storage account. - public StorageAccountCredential(string alias, string sslStatus, string accountType, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string userName = default(string), AsymmetricEncryptedSecret accountKey = default(AsymmetricEncryptedSecret), string connectionString = default(string), string blobDomainName = default(string), string storageAccountId = default(string)) + /// Metadata pertaining to creation and last + /// modification of StorageAccountCredential + public StorageAccountCredential(string alias, string sslStatus, string accountType, string id = default(string), string name = default(string), string type = default(string), string userName = default(string), AsymmetricEncryptedSecret accountKey = default(AsymmetricEncryptedSecret), string connectionString = default(string), string blobDomainName = default(string), string storageAccountId = default(string), SystemData systemData = default(SystemData)) : base(id, name, type) { - SystemData = systemData; Alias = alias; UserName = userName; AccountKey = accountKey; @@ -63,6 +63,7 @@ public StorageAccountCredential() BlobDomainName = blobDomainName; AccountType = accountType; StorageAccountId = storageAccountId; + SystemData = systemData; CustomInit(); } @@ -71,12 +72,6 @@ public StorageAccountCredential() /// partial void CustomInit(); - /// - /// Gets or sets storageAccountCredential object - /// - [JsonProperty(PropertyName = "systemData")] - public SystemData SystemData { get; set; } - /// /// Gets or sets alias for the storage account. /// @@ -128,6 +123,13 @@ public StorageAccountCredential() [JsonProperty(PropertyName = "properties.storageAccountId")] public string StorageAccountId { get; set; } + /// + /// Gets metadata pertaining to creation and last modification of + /// StorageAccountCredential + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SystemData.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SystemData.cs index 036ed1c2c356..a716e97d089b 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SystemData.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SystemData.cs @@ -41,8 +41,8 @@ public SystemData() /// The type of identity that last /// modified the resource. Possible values include: 'User', /// 'Application', 'ManagedIdentity', 'Key' - /// The type of identity that last - /// modified the resource. + /// The timestamp of resource last + /// modification (UTC) public SystemData(string createdBy = default(string), string createdByType = default(string), System.DateTime? createdAt = default(System.DateTime?), string lastModifiedBy = default(string), string lastModifiedByType = default(string), System.DateTime? lastModifiedAt = default(System.DateTime?)) { CreatedBy = createdBy; @@ -94,7 +94,7 @@ public SystemData() public string LastModifiedByType { get; set; } /// - /// Gets or sets the type of identity that last modified the resource. + /// Gets or sets the timestamp of resource last modification (UTC) /// [JsonProperty(PropertyName = "lastModifiedAt")] public System.DateTime? LastModifiedAt { get; set; } diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SystemDataModel.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SystemDataModel.cs new file mode 100644 index 000000000000..87ddeea106d5 --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/SystemDataModel.cs @@ -0,0 +1,103 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataBoxEdge.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Metadata pertaining to creation and last modification of the resource. + /// + public partial class SystemDataModel + { + /// + /// Initializes a new instance of the SystemDataModel class. + /// + public SystemDataModel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SystemDataModel class. + /// + /// The identity that created the + /// resource. + /// The type of identity that created the + /// resource. Possible values include: 'User', 'Application', + /// 'ManagedIdentity', 'Key' + /// The timestamp of resource creation + /// (UTC). + /// The identity that last modified the + /// resource. + /// The type of identity that last + /// modified the resource. Possible values include: 'User', + /// 'Application', 'ManagedIdentity', 'Key' + /// The type of identity that last + /// modified the resource. + public SystemDataModel(string createdBy = default(string), string createdByType = default(string), System.DateTime? createdAt = default(System.DateTime?), string lastModifiedBy = default(string), string lastModifiedByType = default(string), System.DateTime? lastModifiedAt = default(System.DateTime?)) + { + CreatedBy = createdBy; + CreatedByType = createdByType; + CreatedAt = createdAt; + LastModifiedBy = lastModifiedBy; + LastModifiedByType = lastModifiedByType; + LastModifiedAt = lastModifiedAt; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the identity that created the resource. + /// + [JsonProperty(PropertyName = "createdBy")] + public string CreatedBy { get; set; } + + /// + /// Gets or sets the type of identity that created the resource. + /// Possible values include: 'User', 'Application', 'ManagedIdentity', + /// 'Key' + /// + [JsonProperty(PropertyName = "createdByType")] + public string CreatedByType { get; set; } + + /// + /// Gets or sets the timestamp of resource creation (UTC). + /// + [JsonProperty(PropertyName = "createdAt")] + public System.DateTime? CreatedAt { get; set; } + + /// + /// Gets or sets the identity that last modified the resource. + /// + [JsonProperty(PropertyName = "lastModifiedBy")] + public string LastModifiedBy { get; set; } + + /// + /// Gets or sets the type of identity that last modified the resource. + /// Possible values include: 'User', 'Application', 'ManagedIdentity', + /// 'Key' + /// + [JsonProperty(PropertyName = "lastModifiedByType")] + public string LastModifiedByType { get; set; } + + /// + /// Gets or sets the type of identity that last modified the resource. + /// + [JsonProperty(PropertyName = "lastModifiedAt")] + public System.DateTime? LastModifiedAt { get; set; } + + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Trigger.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Trigger.cs index 3b284d18668f..cedcba65c3be 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Trigger.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/Trigger.cs @@ -33,7 +33,8 @@ public Trigger() /// object. /// The object name. /// The hierarchical type of the object. - /// Trigger in DataBoxEdge Resource + /// Metadata pertaining to creation and last + /// modification of Trigger public Trigger(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData)) : base(id, name, type) { @@ -47,10 +48,11 @@ public Trigger() partial void CustomInit(); /// - /// Gets or sets trigger in DataBoxEdge Resource + /// Gets metadata pertaining to creation and last modification of + /// Trigger /// [JsonProperty(PropertyName = "systemData")] - public SystemData SystemData { get; set; } + public SystemData SystemData { get; private set; } } } diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/TriggerSupportPackageRequest.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/TriggerSupportPackageRequest.cs index fedf74826336..593e17cc154b 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/TriggerSupportPackageRequest.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/TriggerSupportPackageRequest.cs @@ -40,8 +40,8 @@ public TriggerSupportPackageRequest() /// The hierarchical type of the object. /// MinimumTimeStamp from where logs /// need to be collected - /// MaximumTimeStamp until where logs - /// need to be collected + /// Start of the timespan of the log + /// collection /// Type of files, which need to be included in /// the logs /// This will contain the type of logs @@ -68,7 +68,7 @@ public TriggerSupportPackageRequest() public System.DateTime? MinimumTimeStamp { get; set; } /// - /// Gets or sets maximumTimeStamp until where logs need to be collected + /// Gets or sets start of the timespan of the log collection /// [JsonProperty(PropertyName = "properties.maximumTimeStamp")] public System.DateTime? MaximumTimeStamp { get; set; } diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/UpdateSummary.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/UpdateSummary.cs index 28df83fb8012..6da151abc2ae 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/UpdateSummary.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/UpdateSummary.cs @@ -39,7 +39,6 @@ public UpdateSummary() /// object. /// The object name. /// The hierarchical type of the object. - /// UpdateSummary Result /// The current version of the device /// in format: 1.2.17312.13.", /// The current version of the @@ -98,10 +97,11 @@ public UpdateSummary() /// The total size of updates /// available for download in bytes. /// The total time in Minutes - public UpdateSummary(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string deviceVersionNumber = default(string), string friendlyDeviceVersionName = default(string), System.DateTime? deviceLastScannedDateTime = default(System.DateTime?), System.DateTime? lastCompletedScanJobDateTime = default(System.DateTime?), System.DateTime? lastSuccessfulScanJobTime = default(System.DateTime?), System.DateTime? lastCompletedDownloadJobDateTime = default(System.DateTime?), string lastCompletedDownloadJobId = default(string), string lastDownloadJobStatus = default(string), System.DateTime? lastSuccessfulInstallJobDateTime = default(System.DateTime?), System.DateTime? lastCompletedInstallJobDateTime = default(System.DateTime?), string lastCompletedInstallJobId = default(string), string lastInstallJobStatus = default(string), int? totalNumberOfUpdatesAvailable = default(int?), int? totalNumberOfUpdatesPendingDownload = default(int?), int? totalNumberOfUpdatesPendingInstall = default(int?), string rebootBehavior = default(string), string ongoingUpdateOperation = default(string), string inProgressDownloadJobId = default(string), string inProgressInstallJobId = default(string), System.DateTime? inProgressDownloadJobStartedDateTime = default(System.DateTime?), System.DateTime? inProgressInstallJobStartedDateTime = default(System.DateTime?), IList updateTitles = default(IList), IList updates = default(IList), double? totalUpdateSizeInBytes = default(double?), int? totalTimeInMinutes = default(int?)) + /// Metadata pertaining to creation and last + /// modification of UpdateSummary + public UpdateSummary(string id = default(string), string name = default(string), string type = default(string), string deviceVersionNumber = default(string), string friendlyDeviceVersionName = default(string), System.DateTime? deviceLastScannedDateTime = default(System.DateTime?), System.DateTime? lastCompletedScanJobDateTime = default(System.DateTime?), System.DateTime? lastSuccessfulScanJobTime = default(System.DateTime?), System.DateTime? lastCompletedDownloadJobDateTime = default(System.DateTime?), string lastCompletedDownloadJobId = default(string), string lastDownloadJobStatus = default(string), System.DateTime? lastSuccessfulInstallJobDateTime = default(System.DateTime?), System.DateTime? lastCompletedInstallJobDateTime = default(System.DateTime?), string lastCompletedInstallJobId = default(string), string lastInstallJobStatus = default(string), int? totalNumberOfUpdatesAvailable = default(int?), int? totalNumberOfUpdatesPendingDownload = default(int?), int? totalNumberOfUpdatesPendingInstall = default(int?), string rebootBehavior = default(string), string ongoingUpdateOperation = default(string), string inProgressDownloadJobId = default(string), string inProgressInstallJobId = default(string), System.DateTime? inProgressDownloadJobStartedDateTime = default(System.DateTime?), System.DateTime? inProgressInstallJobStartedDateTime = default(System.DateTime?), IList updateTitles = default(IList), IList updates = default(IList), double? totalUpdateSizeInBytes = default(double?), int? totalTimeInMinutes = default(int?), SystemData systemData = default(SystemData)) : base(id, name, type) { - SystemData = systemData; DeviceVersionNumber = deviceVersionNumber; FriendlyDeviceVersionName = friendlyDeviceVersionName; DeviceLastScannedDateTime = deviceLastScannedDateTime; @@ -127,6 +127,7 @@ public UpdateSummary() Updates = updates; TotalUpdateSizeInBytes = totalUpdateSizeInBytes; TotalTimeInMinutes = totalTimeInMinutes; + SystemData = systemData; CustomInit(); } @@ -135,12 +136,6 @@ public UpdateSummary() /// partial void CustomInit(); - /// - /// Gets or sets updateSummary Result - /// - [JsonProperty(PropertyName = "systemData")] - public SystemData SystemData { get; set; } - /// /// Gets or sets the current version of the device in format: /// 1.2.17312.13.", @@ -306,5 +301,12 @@ public UpdateSummary() [JsonProperty(PropertyName = "properties.totalTimeInMinutes")] public int? TotalTimeInMinutes { get; private set; } + /// + /// Gets metadata pertaining to creation and last modification of + /// UpdateSummary + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + } } diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/User.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/User.cs index 6844aa7daf98..553a4d276478 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/User.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/User.cs @@ -41,18 +41,19 @@ public User() /// object. /// The object name. /// The hierarchical type of the object. - /// User in DataBoxEdge Resource /// The password details. /// List of shares that the user has /// rights on. This field should not be specified during user /// creation. - public User(string userType, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), AsymmetricEncryptedSecret encryptedPassword = default(AsymmetricEncryptedSecret), IList shareAccessRights = default(IList)) + /// Metadata pertaining to creation and last + /// modification of User + public User(string userType, string id = default(string), string name = default(string), string type = default(string), AsymmetricEncryptedSecret encryptedPassword = default(AsymmetricEncryptedSecret), IList shareAccessRights = default(IList), SystemData systemData = default(SystemData)) : base(id, name, type) { - SystemData = systemData; EncryptedPassword = encryptedPassword; ShareAccessRights = shareAccessRights; UserType = userType; + SystemData = systemData; CustomInit(); } @@ -61,12 +62,6 @@ public User() /// partial void CustomInit(); - /// - /// Gets or sets user in DataBoxEdge Resource - /// - [JsonProperty(PropertyName = "systemData")] - public SystemData SystemData { get; set; } - /// /// Gets or sets the password details. /// @@ -87,6 +82,12 @@ public User() [JsonProperty(PropertyName = "properties.userType")] public string UserType { get; set; } + /// + /// Gets metadata pertaining to creation and last modification of User + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/VmMemory.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/VmMemory.cs new file mode 100644 index 000000000000..71202270a68a --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/VmMemory.cs @@ -0,0 +1,66 @@ +// +// 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.DataBoxEdge.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// VmMemory Data. + /// + public partial class VmMemory + { + /// + /// Initializes a new instance of the VmMemory class. + /// + public VmMemory() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the VmMemory class. + /// + /// The total amount of RAM in the + /// virtual machine, as seen by the guest operating system. For a + /// virtual machine with dynamic memory enabled, this represents the + /// initial memory available at startup. + /// The current memory used by the + /// virtual machine. + public VmMemory(long? startupMemoryMB = default(long?), long? currentMemoryUsageMB = default(long?)) + { + StartupMemoryMB = startupMemoryMB; + CurrentMemoryUsageMB = currentMemoryUsageMB; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the total amount of RAM in the virtual machine, as + /// seen by the guest operating system. For a virtual machine with + /// dynamic memory enabled, this represents the initial memory + /// available at startup. + /// + [JsonProperty(PropertyName = "startupMemoryMB")] + public long? StartupMemoryMB { get; set; } + + /// + /// Gets or sets the current memory used by the virtual machine. + /// + [JsonProperty(PropertyName = "currentMemoryUsageMB")] + public long? CurrentMemoryUsageMB { get; set; } + + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/VmPlacementRequestResult.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/VmPlacementRequestResult.cs new file mode 100644 index 000000000000..a23b2b8f1848 --- /dev/null +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/VmPlacementRequestResult.cs @@ -0,0 +1,83 @@ +// +// 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.DataBoxEdge.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// List of VM sizes being checked for creation on appliance along with + /// corresponding result. + /// + public partial class VmPlacementRequestResult + { + /// + /// Initializes a new instance of the VmPlacementRequestResult class. + /// + public VmPlacementRequestResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the VmPlacementRequestResult class. + /// + /// List of VM sizes being checked. + /// Boolean value indicating if the VM(s) in + /// VmSize can be created. + /// MessageCode indicating reason for success + /// or failure. + /// Localized message to be displayed to the user + /// to explain the check result. + public VmPlacementRequestResult(IList vmSize = default(IList), bool? isFeasible = default(bool?), string messageCode = default(string), string message = default(string)) + { + VmSize = vmSize; + IsFeasible = isFeasible; + MessageCode = messageCode; + Message = message; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of VM sizes being checked. + /// + [JsonProperty(PropertyName = "vmSize")] + public IList VmSize { get; set; } + + /// + /// Gets or sets boolean value indicating if the VM(s) in VmSize can be + /// created. + /// + [JsonProperty(PropertyName = "isFeasible")] + public bool? IsFeasible { get; set; } + + /// + /// Gets or sets messageCode indicating reason for success or failure. + /// + [JsonProperty(PropertyName = "messageCode")] + public string MessageCode { get; set; } + + /// + /// Gets or sets localized message to be displayed to the user to + /// explain the check result. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/SdkInfo_DataBoxEdgeManagementClient.cs b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/SdkInfo_DataBoxEdgeManagementClient.cs index 642505b1e888..52eb548d19b4 100644 --- a/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/SdkInfo_DataBoxEdgeManagementClient.cs +++ b/sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/SdkInfo_DataBoxEdgeManagementClient.cs @@ -19,39 +19,30 @@ public static IEnumerable> ApiInfo_DataBoxEdgeMana { return new Tuple[] { - new Tuple("DataBoxEdge", "Addons", "2021-02-01"), - new Tuple("DataBoxEdge", "Alerts", "2021-02-01"), - new Tuple("DataBoxEdge", "AvailableSkus", "2021-02-01"), - new Tuple("DataBoxEdge", "BandwidthSchedules", "2021-02-01"), - new Tuple("DataBoxEdge", "Containers", "2021-02-01"), - new Tuple("DataBoxEdge", "Devices", "2021-02-01"), - new Tuple("DataBoxEdge", "DiagnosticSettings", "2021-02-01"), - new Tuple("DataBoxEdge", "Jobs", "2021-02-01"), - new Tuple("DataBoxEdge", "MonitoringConfig", "2021-02-01"), - new Tuple("DataBoxEdge", "Nodes", "2021-02-01"), - new Tuple("DataBoxEdge", "Operations", "2021-02-01"), - new Tuple("DataBoxEdge", "OperationsStatus", "2021-02-01"), - new Tuple("DataBoxEdge", "Orders", "2021-02-01"), - new Tuple("DataBoxEdge", "Roles", "2021-02-01"), - new Tuple("DataBoxEdge", "Shares", "2021-02-01"), - new Tuple("DataBoxEdge", "StorageAccountCredentials", "2021-02-01"), - new Tuple("DataBoxEdge", "StorageAccounts", "2021-02-01"), - new Tuple("DataBoxEdge", "SupportPackages", "2021-02-01"), - new Tuple("DataBoxEdge", "Triggers", "2021-02-01"), - new Tuple("DataBoxEdge", "Users", "2021-02-01"), + new Tuple("DataBoxEdge", "Addons", "2022-03-01"), + new Tuple("DataBoxEdge", "Alerts", "2022-03-01"), + new Tuple("DataBoxEdge", "AvailableSkus", "2022-03-01"), + new Tuple("DataBoxEdge", "BandwidthSchedules", "2022-03-01"), + new Tuple("DataBoxEdge", "Containers", "2022-03-01"), + new Tuple("DataBoxEdge", "DeviceCapacityCheck", "2022-03-01"), + new Tuple("DataBoxEdge", "DeviceCapacityInfo", "2022-03-01"), + new Tuple("DataBoxEdge", "Devices", "2022-03-01"), + new Tuple("DataBoxEdge", "DiagnosticSettings", "2022-03-01"), + new Tuple("DataBoxEdge", "Jobs", "2022-03-01"), + new Tuple("DataBoxEdge", "MonitoringConfig", "2022-03-01"), + new Tuple("DataBoxEdge", "Nodes", "2022-03-01"), + new Tuple("DataBoxEdge", "Operations", "2022-03-01"), + new Tuple("DataBoxEdge", "OperationsStatus", "2022-03-01"), + new Tuple("DataBoxEdge", "Orders", "2022-03-01"), + new Tuple("DataBoxEdge", "Roles", "2022-03-01"), + new Tuple("DataBoxEdge", "Shares", "2022-03-01"), + new Tuple("DataBoxEdge", "StorageAccountCredentials", "2022-03-01"), + new Tuple("DataBoxEdge", "StorageAccounts", "2022-03-01"), + new Tuple("DataBoxEdge", "SupportPackages", "2022-03-01"), + new Tuple("DataBoxEdge", "Triggers", "2022-03-01"), + new Tuple("DataBoxEdge", "Users", "2022-03-01"), }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/databoxedge/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\SDKRepos\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "b020247789ba2ab0065ebbcfa69050ce729493b8"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -