Skip to content

Commit

Permalink
.NET SDK Resource Provider:'Compute'
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5618'
REST Spec PR Author 'jhendrixMSFT'
REST Spec PR Last commit
  • Loading branch information
adxsdknet committed Apr 11, 2019
1 parent 27dc1a5 commit 3343c95
Show file tree
Hide file tree
Showing 32 changed files with 507 additions and 169 deletions.
2 changes: 1 addition & 1 deletion src/SDKs/Compute/AzSdk.RP.props
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_2018-10-01;Compute_2018-09-30;Compute_2018-06-01;Compute_2017-09-01;ContainerService_2017-01-31;</AzureApiTag>
<AzureApiTag>Compute_2019-03-01;Compute_2018-09-30;Compute_2017-09-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 @@ -105,7 +105,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-10-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -313,7 +313,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-10-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -511,7 +511,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-10-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -687,7 +687,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-10-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -867,7 +867,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-10-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1050,7 +1050,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-10-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1243,7 +1243,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-10-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ internal GalleriesOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "galleryName");
}
string apiVersion = "2018-06-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -330,7 +330,7 @@ internal GalleriesOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
string apiVersion = "2018-06-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -508,7 +508,7 @@ internal GalleriesOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-06-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -711,7 +711,7 @@ internal GalleriesOperations(ComputeManagementClient client)
{
gallery.Validate();
}
string apiVersion = "2018-06-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -945,7 +945,7 @@ internal GalleriesOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "galleryName");
}
string apiVersion = "2018-06-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ internal GalleryImageVersionsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "galleryImageVersionName");
}
string apiVersion = "2018-06-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -389,7 +389,7 @@ internal GalleryImageVersionsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "galleryImageName");
}
string apiVersion = "2018-06-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -615,7 +615,7 @@ internal GalleryImageVersionsOperations(ComputeManagementClient client)
{
galleryImageVersion.Validate();
}
string apiVersion = "2018-06-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -868,7 +868,7 @@ internal GalleryImageVersionsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "galleryImageVersionName");
}
string apiVersion = "2018-06-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ internal GalleryImagesOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "galleryImageName");
}
string apiVersion = "2018-06-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -356,7 +356,7 @@ internal GalleryImagesOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "galleryName");
}
string apiVersion = "2018-06-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -571,7 +571,7 @@ internal GalleryImagesOperations(ComputeManagementClient client)
{
galleryImage.Validate();
}
string apiVersion = "2018-06-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -815,7 +815,7 @@ internal GalleryImagesOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "galleryImageName");
}
string apiVersion = "2018-06-01";
string apiVersion = "2019-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,11 @@ public partial interface IVirtualMachineScaleSetVMsOperations
/// <param name='instanceId'>
/// The instance ID of the virtual machine.
/// </param>
/// <param name='skipShutdown'>
/// The parameter to request non-graceful VM shutdown. True value for
/// this flag indicates non-graceful shutdown whereas false indicates
/// otherwise. Default value for this flag is false if not specified
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
Expand All @@ -280,7 +285,7 @@ public partial interface IVirtualMachineScaleSetVMsOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse> PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, bool? skipShutdown = false, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Restarts a virtual machine in a VM scale set.
/// </summary>
Expand Down Expand Up @@ -569,6 +574,11 @@ public partial interface IVirtualMachineScaleSetVMsOperations
/// <param name='instanceId'>
/// The instance ID of the virtual machine.
/// </param>
/// <param name='skipShutdown'>
/// The parameter to request non-graceful VM shutdown. True value for
/// this flag indicates non-graceful shutdown whereas false indicates
/// otherwise. Default value for this flag is false if not specified
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
Expand All @@ -581,7 +591,7 @@ public partial interface IVirtualMachineScaleSetVMsOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse> BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, bool? skipShutdown = false, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Restarts a virtual machine in a VM scale set.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@ public partial interface IVirtualMachineScaleSetsOperations
/// <param name='vmScaleSetName'>
/// The name of the VM scale set.
/// </param>
/// <param name='skipShutdown'>
/// The parameter to request non-graceful VM shutdown. True value for
/// this flag indicates non-graceful shutdown whereas false indicates
/// otherwise. Default value for this flag is false if not specified
/// </param>
/// <param name='instanceIds'>
/// The virtual machine scale set instance ids. Omitting the virtual
/// machine scale set instance ids will result in the operation being
Expand All @@ -330,7 +335,7 @@ public partial interface IVirtualMachineScaleSetsOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, IList<string> instanceIds = default(IList<string>), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse> PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, bool? skipShutdown = false, IList<string> instanceIds = default(IList<string>), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Restarts one or more virtual machines in a VM scale set.
/// </summary>
Expand Down Expand Up @@ -701,6 +706,11 @@ public partial interface IVirtualMachineScaleSetsOperations
/// <param name='vmScaleSetName'>
/// The name of the VM scale set.
/// </param>
/// <param name='skipShutdown'>
/// The parameter to request non-graceful VM shutdown. True value for
/// this flag indicates non-graceful shutdown whereas false indicates
/// otherwise. Default value for this flag is false if not specified
/// </param>
/// <param name='instanceIds'>
/// The virtual machine scale set instance ids. Omitting the virtual
/// machine scale set instance ids will result in the operation being
Expand All @@ -718,7 +728,7 @@ public partial interface IVirtualMachineScaleSetsOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, IList<string> instanceIds = default(IList<string>), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse> BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, bool? skipShutdown = false, IList<string> instanceIds = default(IList<string>), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Restarts one or more virtual machines in a VM scale set.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,11 @@ public partial interface IVirtualMachinesOperations
/// <param name='vmName'>
/// The name of the virtual machine.
/// </param>
/// <param name='skipShutdown'>
/// The parameter to request non-graceful VM shutdown. True value for
/// this flag indicates non-graceful shutdown whereas false indicates
/// otherwise. Default value for this flag is false if not specified
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
Expand All @@ -374,7 +379,7 @@ public partial interface IVirtualMachinesOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse> PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmName, bool? skipShutdown = false, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// The operation to restart a virtual machine.
/// </summary>
Expand Down Expand Up @@ -683,6 +688,11 @@ public partial interface IVirtualMachinesOperations
/// <param name='vmName'>
/// The name of the virtual machine.
/// </param>
/// <param name='skipShutdown'>
/// The parameter to request non-graceful VM shutdown. True value for
/// this flag indicates non-graceful shutdown whereas false indicates
/// otherwise. Default value for this flag is false if not specified
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
Expand All @@ -695,7 +705,7 @@ public partial interface IVirtualMachinesOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse> BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmName, bool? skipShutdown = false, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// The operation to restart a virtual machine.
/// </summary>
Expand Down
Loading

0 comments on commit 3343c95

Please sign in to comment.