Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ internal ApplicationPackageOperations (BatchManagementClient client)
/// <param name='versionName'>
/// The version of the application.
/// </param>
/// <param name='tags'>
/// The tags of the resource.
/// </param>
/// <param name='customHeaders'>
/// Headers that will be added to request.
/// </param>
Expand All @@ -370,7 +373,7 @@ internal ApplicationPackageOperations (BatchManagementClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<ApplicationPackage>> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, string applicationName, string versionName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<ApplicationPackage>> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, string applicationName, string versionName, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{


Expand Down Expand Up @@ -449,6 +452,10 @@ internal ApplicationPackageOperations (BatchManagementClient client)
}

ApplicationPackage parameters = new ApplicationPackage();
if(tags != null)
{
parameters.Tags = tags;
}
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ public static ApplicationPackage Activate(this IApplicationPackageOperations ope
/// <param name='versionName'>
/// The version of the application.
/// </param>
public static ApplicationPackage Create(this IApplicationPackageOperations operations, string resourceGroupName, string accountName, string applicationName, string versionName)
public static ApplicationPackage Create(this IApplicationPackageOperations operations, string resourceGroupName, string accountName, string applicationName, string versionName, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>))
{
return ((IApplicationPackageOperations)operations).CreateAsync(resourceGroupName, accountName, applicationName, versionName).GetAwaiter().GetResult();
return ((IApplicationPackageOperations)operations).CreateAsync(resourceGroupName, accountName, applicationName, versionName, tags).GetAwaiter().GetResult();
}

/// <summary>
Expand Down Expand Up @@ -119,9 +119,9 @@ public static ApplicationPackage Create(this IApplicationPackageOperations opera
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async System.Threading.Tasks.Task<ApplicationPackage> CreateAsync(this IApplicationPackageOperations operations, string resourceGroupName, string accountName, string applicationName, string versionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
public static async System.Threading.Tasks.Task<ApplicationPackage> CreateAsync(this IApplicationPackageOperations operations, string resourceGroupName, string accountName, string applicationName, string versionName, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, accountName, applicationName, versionName, null, cancellationToken).ConfigureAwait(false))
using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, accountName, applicationName, versionName, tags, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2111,7 +2111,7 @@ internal BatchAccountOperations (BatchManagementClient client)
/// network allows outbound access to these endpoints. Failure to allow access
/// to these endpoints may cause Batch to mark the affected nodes as unusable.
/// For more information about creating a pool inside of a virtual network, see
/// https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
/// https://learn.microsoft.com/azure/batch/batch-virtual-network.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group that contains the Batch account.
Expand Down Expand Up @@ -3375,7 +3375,7 @@ internal BatchAccountOperations (BatchManagementClient client)
/// network allows outbound access to these endpoints. Failure to allow access
/// to these endpoints may cause Batch to mark the affected nodes as unusable.
/// For more information about creating a pool inside of a virtual network, see
/// https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
/// https://learn.microsoft.com/azure/batch/batch-virtual-network.
/// </summary>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ public static DetectorResponse GetDetector(this IBatchAccountOperations operatio
/// network allows outbound access to these endpoints. Failure to allow access
/// to these endpoints may cause Batch to mark the affected nodes as unusable.
/// For more information about creating a pool inside of a virtual network, see
/// https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
/// https://learn.microsoft.com/azure/batch/batch-virtual-network.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -494,7 +494,7 @@ public static Microsoft.Rest.Azure.IPage<OutboundEnvironmentEndpoint> ListOutbou
/// network allows outbound access to these endpoints. Failure to allow access
/// to these endpoints may cause Batch to mark the affected nodes as unusable.
/// For more information about creating a pool inside of a virtual network, see
/// https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
/// https://learn.microsoft.com/azure/batch/batch-virtual-network.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand Down Expand Up @@ -715,7 +715,7 @@ public static Microsoft.Rest.Azure.IPage<DetectorResponse> ListDetectorsNext(thi
/// network allows outbound access to these endpoints. Failure to allow access
/// to these endpoints may cause Batch to mark the affected nodes as unusable.
/// For more information about creating a pool inside of a virtual network, see
/// https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
/// https://learn.microsoft.com/azure/batch/batch-virtual-network.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -735,7 +735,7 @@ public static Microsoft.Rest.Azure.IPage<OutboundEnvironmentEndpoint> ListOutbou
/// network allows outbound access to these endpoints. Failure to allow access
/// to these endpoints may cause Batch to mark the affected nodes as unusable.
/// For more information about creating a pool inside of a virtual network, see
/// https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
/// https://learn.microsoft.com/azure/batch/batch-virtual-network.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ public partial class BatchManagementClient : Microsoft.Rest.ServiceClient<BatchM
/// </summary>
public virtual IPoolOperations Pool { get; private set; }
/// <summary>
/// Gets the INetworkSecurityPerimeterOperations
/// </summary>
public virtual INetworkSecurityPerimeterOperations NetworkSecurityPerimeter { get; private set; }
/// <summary>
/// Initializes a new instance of the BatchManagementClient class.
/// </summary>
/// <param name='httpClient'>
Expand Down Expand Up @@ -301,6 +305,9 @@ public BatchManagementClient(System.Uri baseUri, Microsoft.Rest.ServiceClientCre
/// <param name='rootHandler'>
/// Optional. The http client handler used to handle http transport.
/// </param>
/// <param name='handlers'>
/// Optional. The delegating handlers to add to the http client pipeline.
/// </param>
/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null
/// </exception>
Expand Down Expand Up @@ -341,8 +348,9 @@ private void Initialize()
this.PrivateLinkResource = new PrivateLinkResourceOperations(this);
this.PrivateEndpointConnection = new PrivateEndpointConnectionOperations(this);
this.Pool = new PoolOperations(this);
this.NetworkSecurityPerimeter = new NetworkSecurityPerimeterOperations(this);
this.BaseUri = new System.Uri("https://management.azure.com");
this.ApiVersion = "2022-10-01";
this.ApiVersion = "2024-07-01";
this.AcceptLanguage = "en-US";
this.LongRunningOperationRetryTimeout = 30;
this.GenerateClientRequestId = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ public partial interface IApplicationPackageOperations
/// <param name='versionName'>
/// The version of the application.
/// </param>
/// <param name='tags'>
/// The tags of the resource.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
Expand All @@ -90,7 +93,7 @@ public partial interface IApplicationPackageOperations
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<ApplicationPackage>> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, string applicationName, string versionName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<ApplicationPackage>> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, string applicationName, string versionName, System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Deletes an application package record and its associated binary file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ public partial interface IBatchAccountOperations
/// network allows outbound access to these endpoints. Failure to allow access
/// to these endpoints may cause Batch to mark the affected nodes as unusable.
/// For more information about creating a pool inside of a virtual network, see
/// https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
/// https://learn.microsoft.com/azure/batch/batch-virtual-network.
/// </summary>
/// <remarks>
/// Lists the endpoints that a Batch Compute Node under this Batch Account may
Expand All @@ -345,7 +345,7 @@ public partial interface IBatchAccountOperations
/// network allows outbound access to these endpoints. Failure to allow access
/// to these endpoints may cause Batch to mark the affected nodes as unusable.
/// For more information about creating a pool inside of a virtual network, see
/// https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
/// https://learn.microsoft.com/azure/batch/batch-virtual-network.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group that contains the Batch account.
Expand Down Expand Up @@ -506,7 +506,7 @@ public partial interface IBatchAccountOperations
/// network allows outbound access to these endpoints. Failure to allow access
/// to these endpoints may cause Batch to mark the affected nodes as unusable.
/// For more information about creating a pool inside of a virtual network, see
/// https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
/// https://learn.microsoft.com/azure/batch/batch-virtual-network.
/// </summary>
/// <remarks>
/// Lists the endpoints that a Batch Compute Node under this Batch Account may
Expand All @@ -515,7 +515,7 @@ public partial interface IBatchAccountOperations
/// network allows outbound access to these endpoints. Failure to allow access
/// to these endpoints may cause Batch to mark the affected nodes as unusable.
/// For more information about creating a pool inside of a virtual network, see
/// https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
/// https://learn.microsoft.com/azure/batch/batch-virtual-network.
/// </remarks>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,10 @@ public partial interface IBatchManagementClient : System.IDisposable
/// </summary>
IPoolOperations Pool { get; }

/// <summary>
/// Gets the INetworkSecurityPerimeterOperations
/// </summary>
INetworkSecurityPerimeterOperations NetworkSecurityPerimeter { get; }

}
}
56 changes: 0 additions & 56 deletions src/Batch/Batch.Management.Sdk/Generated/ILocationOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,37 +69,6 @@ public partial interface ILocationOperations
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<SupportedSku>>> ListSupportedVirtualMachineSkusWithHttpMessagesAsync(string locationName, int? maxresults = default(int?), string filter = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Gets the list of Batch supported Cloud Service VM sizes available at the
/// given location.
/// </summary>
/// <remarks>
/// Gets the list of Batch supported Cloud Service VM sizes available at the
/// given location.
/// </remarks>
/// <param name='locationName'>
/// The region for which to retrieve Batch service supported SKUs.
/// </param>
/// <param name='maxresults'>
/// The maximum number of items to return in the response.
/// </param>
/// <param name='filter'>
/// OData filter expression. Valid properties for filtering are &#34;familyName&#34;.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<SupportedSku>>> ListSupportedCloudServiceSkusWithHttpMessagesAsync(string locationName, int? maxresults = default(int?), string filter = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Checks whether the Batch account name is available in the specified region.
/// </summary>
Expand Down Expand Up @@ -151,30 +120,5 @@ public partial interface ILocationOperations
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<SupportedSku>>> ListSupportedVirtualMachineSkusNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Gets the list of Batch supported Cloud Service VM sizes available at the
/// given location.
/// </summary>
/// <remarks>
/// Gets the list of Batch supported Cloud Service VM sizes available at the
/// given location.
/// </remarks>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<SupportedSku>>> ListSupportedCloudServiceSkusNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

}
}
Loading
Loading