Skip to content

Commit

Permalink
Generate new compute import for SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
szimmer-dev committed Aug 2, 2019
1 parent ab3ffbc commit 1a2b39c
Show file tree
Hide file tree
Showing 12 changed files with 177 additions and 20 deletions.
6 changes: 3 additions & 3 deletions eng/mgmt/mgmtmetadata/compute_resource-manager.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/compute/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=E:\hylee-sdk\july2\sdk
2019-07-18 00:16:54 UTC
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/compute/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=G:\Code\azure-sdk-for-net\sdk
2019-08-02 00:04:37 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: 6b6a445819212313e466b2f77f8b3e6d4f9d18fb
Commit: ab88105b1fd4d8b982869c43b1fbf365f24fc0af
AutoRest information
Requested version: latest
Bootstrapper version: [email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file-->
<PropertyGroup>
<AzureApiTag>Compute_2019-03-01;Compute_2018-09-30;Compute_2019-04-01;ContainerService_2017-01-31;</AzureApiTag>
<AzureApiTag>Compute_2019-03-01;Compute_2018-09-30;Compute_2019-07-01;Compute_2019-04-01;ContainerService_2017-01-31;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ public partial interface IVirtualMachineScaleSetVMsOperations
/// <param name='instanceId'>
/// The instance ID of the virtual machine.
/// </param>
/// <param name='expand'>
/// The expand expression to apply on the operation. Possible values
/// include: 'instanceView'
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
Expand All @@ -195,7 +199,7 @@ public partial interface IVirtualMachineScaleSetVMsOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<VirtualMachineScaleSetVM>> GetWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<VirtualMachineScaleSetVM>> GetWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, InstanceViewTypes? expand = default(InstanceViewTypes?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Gets the status of a virtual machine from a VM scale set.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public DedicatedHostGroup()
/// <param name="tags">Resource tags</param>
/// <param name="hosts">A list of references to all dedicated hosts in
/// the dedicated host group.</param>
/// <param name="zones">Availability Zone to use for this host group
/// only single zone is supported. The zone can be assigned only during
/// <param name="zones">Availability Zone to use for this host group.
/// Only single zone is supported. The zone can be assigned only during
/// creation. If not provided, the group supports all zones in the
/// region. If provided, enforces each host in the group to be in the
/// same zone.</param>
Expand Down Expand Up @@ -80,7 +80,7 @@ public DedicatedHostGroup()
public IList<SubResourceReadOnly> Hosts { get; private set; }

/// <summary>
/// Gets or sets availability Zone to use for this host group � only
/// Gets or sets availability Zone to use for this host group. Only
/// single zone is supported. The zone can be assigned only during
/// creation. If not provided, the group supports all zones in the
/// region. If provided, enforces each host in the group to be in the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public DedicatedHostGroupUpdate()
/// <param name="tags">Resource tags</param>
/// <param name="hosts">A list of references to all dedicated hosts in
/// the dedicated host group.</param>
/// <param name="zones">Availability Zone to use for this host group
/// only single zone is supported. The zone can be assigned only during
/// <param name="zones">Availability Zone to use for this host group.
/// Only single zone is supported. The zone can be assigned only during
/// creation. If not provided, the group supports all zones in the
/// region. If provided, enforces each host in the group to be in the
/// same zone.</param>
Expand Down Expand Up @@ -73,7 +73,7 @@ public DedicatedHostGroupUpdate()
public IList<SubResourceReadOnly> Hosts { get; private set; }

/// <summary>
/// Gets or sets availability Zone to use for this host group � only
/// Gets or sets availability Zone to use for this host group. Only
/// single zone is supported. The zone can be assigned only during
/// creation. If not provided, the group supports all zones in the
/// region. If provided, enforces each host in the group to be in the
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.Compute.Models
{
using Newtonsoft.Json;
using System.Linq;

public partial class ScheduledEventsProfile
{
/// <summary>
/// Initializes a new instance of the ScheduledEventsProfile class.
/// </summary>
public ScheduledEventsProfile()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ScheduledEventsProfile class.
/// </summary>
/// <param name="terminateNotificationProfile">Specifies Terminate
/// Scheduled Event related configurations.</param>
public ScheduledEventsProfile(TerminateNotificationProfile terminateNotificationProfile = default(TerminateNotificationProfile))
{
TerminateNotificationProfile = terminateNotificationProfile;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets specifies Terminate Scheduled Event related
/// configurations.
/// </summary>
[JsonProperty(PropertyName = "terminateNotificationProfile")]
public TerminateNotificationProfile TerminateNotificationProfile { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.Compute.Models
{
using Newtonsoft.Json;
using System.Linq;

public partial class TerminateNotificationProfile
{
/// <summary>
/// Initializes a new instance of the TerminateNotificationProfile
/// class.
/// </summary>
public TerminateNotificationProfile()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the TerminateNotificationProfile
/// class.
/// </summary>
/// <param name="notBeforeTimeout">Configurable length of time a
/// Virtual Machine being deleted will have to potentially approve the
/// Terminate Scheduled Event before the event is auto approved (timed
/// out). The configuration must be specified in ISO 8601 format, the
/// default value is 5 minutes (PT5M)</param>
/// <param name="enable">Specifies whether the Terminate Scheduled
/// event is enabled or disabled.</param>
public TerminateNotificationProfile(string notBeforeTimeout = default(string), bool? enable = default(bool?))
{
NotBeforeTimeout = notBeforeTimeout;
Enable = enable;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets configurable length of time a Virtual Machine being
/// deleted will have to potentially approve the Terminate Scheduled
/// Event before the event is auto approved (timed out). The
/// configuration must be specified in ISO 8601 format, the default
/// value is 5 minutes (PT5M)
/// </summary>
[JsonProperty(PropertyName = "notBeforeTimeout")]
public string NotBeforeTimeout { get; set; }

/// <summary>
/// Gets or sets specifies whether the Terminate Scheduled event is
/// enabled or disabled.
/// </summary>
[JsonProperty(PropertyName = "enable")]
public bool? Enable { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,17 @@ public VirtualMachineScaleSetUpdateVMProfile()
/// extension profile.</param>
/// <param name="licenseType">The license type, which is for bring your
/// own license scenario.</param>
public VirtualMachineScaleSetUpdateVMProfile(VirtualMachineScaleSetUpdateOSProfile osProfile = default(VirtualMachineScaleSetUpdateOSProfile), VirtualMachineScaleSetUpdateStorageProfile storageProfile = default(VirtualMachineScaleSetUpdateStorageProfile), VirtualMachineScaleSetUpdateNetworkProfile networkProfile = default(VirtualMachineScaleSetUpdateNetworkProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), VirtualMachineScaleSetExtensionProfile extensionProfile = default(VirtualMachineScaleSetExtensionProfile), string licenseType = default(string))
/// <param name="scheduledEventsProfile">Specifies Scheduled Event
/// related configurations.</param>
public VirtualMachineScaleSetUpdateVMProfile(VirtualMachineScaleSetUpdateOSProfile osProfile = default(VirtualMachineScaleSetUpdateOSProfile), VirtualMachineScaleSetUpdateStorageProfile storageProfile = default(VirtualMachineScaleSetUpdateStorageProfile), VirtualMachineScaleSetUpdateNetworkProfile networkProfile = default(VirtualMachineScaleSetUpdateNetworkProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), VirtualMachineScaleSetExtensionProfile extensionProfile = default(VirtualMachineScaleSetExtensionProfile), string licenseType = default(string), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile))
{
OsProfile = osProfile;
StorageProfile = storageProfile;
NetworkProfile = networkProfile;
DiagnosticsProfile = diagnosticsProfile;
ExtensionProfile = extensionProfile;
LicenseType = licenseType;
ScheduledEventsProfile = scheduledEventsProfile;
CustomInit();
}

Expand Down Expand Up @@ -96,5 +99,11 @@ public VirtualMachineScaleSetUpdateVMProfile()
[JsonProperty(PropertyName = "licenseType")]
public string LicenseType { get; set; }

/// <summary>
/// Gets or sets specifies Scheduled Event related configurations.
/// </summary>
[JsonProperty(PropertyName = "scheduledEventsProfile")]
public ScheduledEventsProfile ScheduledEventsProfile { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public VirtualMachineScaleSetVMProfile()
/// virtual machines in a low priority scale set.
/// &lt;br&gt;&lt;br&gt;Minimum api-version: 2017-10-30-preview.
/// Possible values include: 'Deallocate', 'Delete'</param>
public VirtualMachineScaleSetVMProfile(VirtualMachineScaleSetOSProfile osProfile = default(VirtualMachineScaleSetOSProfile), VirtualMachineScaleSetStorageProfile storageProfile = default(VirtualMachineScaleSetStorageProfile), VirtualMachineScaleSetNetworkProfile networkProfile = default(VirtualMachineScaleSetNetworkProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), VirtualMachineScaleSetExtensionProfile extensionProfile = default(VirtualMachineScaleSetExtensionProfile), string licenseType = default(string), string priority = default(string), string evictionPolicy = default(string))
/// <param name="scheduledEventsProfile">Specifies Scheduled Event
/// related configurations.</param>
public VirtualMachineScaleSetVMProfile(VirtualMachineScaleSetOSProfile osProfile = default(VirtualMachineScaleSetOSProfile), VirtualMachineScaleSetStorageProfile storageProfile = default(VirtualMachineScaleSetStorageProfile), VirtualMachineScaleSetNetworkProfile networkProfile = default(VirtualMachineScaleSetNetworkProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), VirtualMachineScaleSetExtensionProfile extensionProfile = default(VirtualMachineScaleSetExtensionProfile), string licenseType = default(string), string priority = default(string), string evictionPolicy = default(string), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile))
{
OsProfile = osProfile;
StorageProfile = storageProfile;
Expand All @@ -72,6 +74,7 @@ public VirtualMachineScaleSetVMProfile()
LicenseType = licenseType;
Priority = priority;
EvictionPolicy = evictionPolicy;
ScheduledEventsProfile = scheduledEventsProfile;
CustomInit();
}

Expand Down Expand Up @@ -151,6 +154,12 @@ public VirtualMachineScaleSetVMProfile()
[JsonProperty(PropertyName = "evictionPolicy")]
public string EvictionPolicy { get; set; }

/// <summary>
/// Gets or sets specifies Scheduled Event related configurations.
/// </summary>
[JsonProperty(PropertyName = "scheduledEventsProfile")]
public ScheduledEventsProfile ScheduledEventsProfile { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_ComputeManageme
// BEGIN: Code Generation Metadata Section
public static readonly String AutoRestVersion = "latest";
public static readonly String AutoRestBootStrapperVersion = "[email protected]";
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/compute/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=E:\\hylee-sdk\\july2\\sdk";
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/compute/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=G:\\Code\\azure-sdk-for-net\\sdk";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
public static readonly String GithubCommidId = "6b6a445819212313e466b2f77f8b3e6d4f9d18fb";
public static readonly String GithubCommidId = "ab88105b1fd4d8b982869c43b1fbf365f24fc0af";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client)
/// <param name='instanceId'>
/// The instance ID of the virtual machine.
/// </param>
/// <param name='expand'>
/// The expand expression to apply on the operation. Possible values include:
/// 'instanceView'
/// </param>
/// <param name='customHeaders'>
/// Headers that will be added to request.
/// </param>
Expand All @@ -223,7 +227,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async Task<AzureOperationResponse<VirtualMachineScaleSetVM>> GetWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
public async Task<AzureOperationResponse<VirtualMachineScaleSetVM>> GetWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, InstanceViewTypes? expand = default(InstanceViewTypes?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
Expand Down Expand Up @@ -252,6 +256,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("vmScaleSetName", vmScaleSetName);
tracingParameters.Add("instanceId", instanceId);
tracingParameters.Add("expand", expand);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
Expand All @@ -264,6 +269,10 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client)
_url = _url.Replace("{instanceId}", System.Uri.EscapeDataString(instanceId));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List<string> _queryParameters = new List<string>();
if (expand != null)
{
_queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(expand, Client.SerializationSettings).Trim('"'))));
}
if (apiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
Expand Down
Loading

0 comments on commit 1a2b39c

Please sign in to comment.