예제 #1
0
 /// <summary>
 /// Lists all the disk access resources under a subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task<IPage<DiskAccess>> ListNextAsync(this IDiskAccessesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return _result.Body;
     }
 }
 /// <summary>
 /// Lists all the disk access resources under a subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <DiskAccessInner> > ListAsync(this IDiskAccessesOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #3
0
 /// <summary>
 /// Lists all the disk access resources under a resource group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task<IPage<DiskAccess>> ListByResourceGroupAsync(this IDiskAccessesOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false))
     {
         return _result.Body;
     }
 }
예제 #4
0
 /// <summary>
 /// Creates or updates a disk access resource
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='diskAccessName'>
 /// The name of the disk access resource that is being created. The name can't
 /// be changed after the disk encryption set is created. Supported characters
 /// for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
 /// characters.
 /// </param>
 /// <param name='diskAccess'>
 /// disk access object supplied in the body of the Put disk access operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task<DiskAccess> CreateOrUpdateAsync(this IDiskAccessesOperations operations, string resourceGroupName, string diskAccessName, DiskAccess diskAccess, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, diskAccessName, diskAccess, null, cancellationToken).ConfigureAwait(false))
     {
         return _result.Body;
     }
 }
예제 #5
0
 /// <summary>
 /// Updates (patches) a disk access resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='diskAccessName'>
 /// The name of the disk access resource that is being created. The name can't
 /// be changed after the disk encryption set is created. Supported characters
 /// for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
 /// characters.
 /// </param>
 /// <param name='tags'>
 /// Resource tags
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task<DiskAccess> BeginUpdateAsync(this IDiskAccessesOperations operations, string resourceGroupName, string diskAccessName, IDictionary<string, string> tags = default(IDictionary<string, string>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, diskAccessName, tags, null, cancellationToken).ConfigureAwait(false))
     {
         return _result.Body;
     }
 }
 /// <summary>
 /// Gets information about a disk access resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='diskAccessName'>
 /// The name of the disk access resource that is being created. The name can't
 /// be changed after the disk encryption set is created. Supported characters
 /// for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80
 /// characters.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DiskAccessInner> GetAsync(this IDiskAccessesOperations operations, string resourceGroupName, string diskAccessName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, diskAccessName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #7
0
 /// <summary>
 /// Approve or reject a private endpoint connection under disk access resource,
 /// this can't be used to create a new private endpoint connection.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='diskAccessName'>
 /// The name of the disk access resource that is being created. The name can't
 /// be changed after the disk encryption set is created. Supported characters
 /// for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
 /// characters.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// The name of the private endpoint connection.
 /// </param>
 /// <param name='privateEndpointConnection'>
 /// private endpoint connection object supplied in the body of the Put private
 /// endpoint connection operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task<PrivateEndpointConnection> BeginUpdateAPrivateEndpointConnectionAsync(this IDiskAccessesOperations operations, string resourceGroupName, string diskAccessName, string privateEndpointConnectionName, PrivateEndpointConnection privateEndpointConnection, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateAPrivateEndpointConnectionWithHttpMessagesAsync(resourceGroupName, diskAccessName, privateEndpointConnectionName, privateEndpointConnection, null, cancellationToken).ConfigureAwait(false))
     {
         return _result.Body;
     }
 }
예제 #8
0
 /// <summary>
 /// Approve or reject a private endpoint connection under disk access resource,
 /// this can't be used to create a new private endpoint connection.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='diskAccessName'>
 /// The name of the disk access resource that is being created. The name can't
 /// be changed after the disk encryption set is created. Supported characters
 /// for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
 /// characters.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// The name of the private endpoint connection.
 /// </param>
 /// <param name='privateEndpointConnection'>
 /// private endpoint connection object supplied in the body of the Put private
 /// endpoint connection operation.
 /// </param>
 public static PrivateEndpointConnection BeginUpdateAPrivateEndpointConnection(this IDiskAccessesOperations operations, string resourceGroupName, string diskAccessName, string privateEndpointConnectionName, PrivateEndpointConnection privateEndpointConnection)
 {
     return operations.BeginUpdateAPrivateEndpointConnectionAsync(resourceGroupName, diskAccessName, privateEndpointConnectionName, privateEndpointConnection).GetAwaiter().GetResult();
 }
예제 #9
0
 /// <summary>
 /// Deletes a disk access resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='diskAccessName'>
 /// The name of the disk access resource that is being created. The name can't
 /// be changed after the disk encryption set is created. Supported characters
 /// for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
 /// characters.
 /// </param>
 public static void BeginDelete(this IDiskAccessesOperations operations, string resourceGroupName, string diskAccessName)
 {
     operations.BeginDeleteAsync(resourceGroupName, diskAccessName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// List information about private endpoint connections under a disk access
 /// resource
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='diskAccessName'>
 /// The name of the disk access resource that is being created. The name can't
 /// be changed after the disk encryption set is created. Supported characters
 /// for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80
 /// characters.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <PrivateEndpointConnection> > ListPrivateEndpointConnectionsAsync(this IDiskAccessesOperations operations, string resourceGroupName, string diskAccessName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListPrivateEndpointConnectionsWithHttpMessagesAsync(resourceGroupName, diskAccessName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #11
0
 /// <summary>
 /// Lists all the disk access resources under a subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage<DiskAccess> ListNext(this IDiskAccessesOperations operations, string nextPageLink)
 {
     return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
 }
예제 #12
0
 /// <summary>
 /// Gets the private link resources possible under disk access resource
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='diskAccessName'>
 /// The name of the disk access resource that is being created. The name can't
 /// be changed after the disk encryption set is created. Supported characters
 /// for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
 /// characters.
 /// </param>
 public static PrivateLinkResourceListResult GetPrivateLinkResources(this IDiskAccessesOperations operations, string resourceGroupName, string diskAccessName)
 {
     return operations.GetPrivateLinkResourcesAsync(resourceGroupName, diskAccessName).GetAwaiter().GetResult();
 }
예제 #13
0
 /// <summary>
 /// Lists all the disk access resources under a subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage<DiskAccess> List(this IDiskAccessesOperations operations)
 {
     return operations.ListAsync().GetAwaiter().GetResult();
 }
예제 #14
0
 /// <summary>
 /// Lists all the disk access resources under a resource group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 public static IPage<DiskAccess> ListByResourceGroup(this IDiskAccessesOperations operations, string resourceGroupName)
 {
     return operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult();
 }
예제 #15
0
 /// <summary>
 /// Deletes a disk access resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='diskAccessName'>
 /// The name of the disk access resource that is being created. The name can't
 /// be changed after the disk encryption set is created. Supported characters
 /// for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
 /// characters.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IDiskAccessesOperations operations, string resourceGroupName, string diskAccessName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, diskAccessName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
예제 #16
0
 /// <summary>
 /// Gets information about a disk access resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='diskAccessName'>
 /// The name of the disk access resource that is being created. The name can't
 /// be changed after the disk encryption set is created. Supported characters
 /// for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
 /// characters.
 /// </param>
 public static DiskAccess Get(this IDiskAccessesOperations operations, string resourceGroupName, string diskAccessName)
 {
     return operations.GetAsync(resourceGroupName, diskAccessName).GetAwaiter().GetResult();
 }
예제 #17
0
 /// <summary>
 /// Deletes a private endpoint connection under a disk access resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='diskAccessName'>
 /// The name of the disk access resource that is being created. The name can't
 /// be changed after the disk encryption set is created. Supported characters
 /// for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
 /// characters.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// The name of the private endpoint connection.
 /// </param>
 public static void BeginDeleteAPrivateEndpointConnection(this IDiskAccessesOperations operations, string resourceGroupName, string diskAccessName, string privateEndpointConnectionName)
 {
     operations.BeginDeleteAPrivateEndpointConnectionAsync(resourceGroupName, diskAccessName, privateEndpointConnectionName).GetAwaiter().GetResult();
 }
예제 #18
0
 /// <summary>
 /// Deletes a private endpoint connection under a disk access resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='diskAccessName'>
 /// The name of the disk access resource that is being created. The name can't
 /// be changed after the disk encryption set is created. Supported characters
 /// for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
 /// characters.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// The name of the private endpoint connection.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAPrivateEndpointConnectionAsync(this IDiskAccessesOperations operations, string resourceGroupName, string diskAccessName, string privateEndpointConnectionName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteAPrivateEndpointConnectionWithHttpMessagesAsync(resourceGroupName, diskAccessName, privateEndpointConnectionName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
예제 #19
0
 /// <summary>
 /// List information about private endpoint connections under a disk access
 /// resource
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage<PrivateEndpointConnection> ListPrivateEndpointConnectionsNext(this IDiskAccessesOperations operations, string nextPageLink)
 {
     return operations.ListPrivateEndpointConnectionsNextAsync(nextPageLink).GetAwaiter().GetResult();
 }
예제 #20
0
 /// <summary>
 /// List information about private endpoint connections under a disk access
 /// resource
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='diskAccessName'>
 /// The name of the disk access resource that is being created. The name can't
 /// be changed after the disk encryption set is created. Supported characters
 /// for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
 /// characters.
 /// </param>
 public static IPage<PrivateEndpointConnection> ListPrivateEndpointConnections(this IDiskAccessesOperations operations, string resourceGroupName, string diskAccessName)
 {
     return operations.ListPrivateEndpointConnectionsAsync(resourceGroupName, diskAccessName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Gets information about a private endpoint connection under a disk access
 /// resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='diskAccessName'>
 /// The name of the disk access resource that is being created. The name can't
 /// be changed after the disk encryption set is created. Supported characters
 /// for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80
 /// characters.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// The name of the private endpoint connection
 /// </param>
 public static PrivateEndpointConnection GetAPrivateEndpointConnection(this IDiskAccessesOperations operations, string resourceGroupName, string diskAccessName, string privateEndpointConnectionName)
 {
     return(operations.GetAPrivateEndpointConnectionAsync(resourceGroupName, diskAccessName, privateEndpointConnectionName).GetAwaiter().GetResult());
 }
예제 #22
0
 /// <summary>
 /// Updates (patches) a disk access resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='diskAccessName'>
 /// The name of the disk access resource that is being created. The name can't
 /// be changed after the disk encryption set is created. Supported characters
 /// for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
 /// characters.
 /// </param>
 /// <param name='tags'>
 /// Resource tags
 /// </param>
 public static DiskAccess Update(this IDiskAccessesOperations operations, string resourceGroupName, string diskAccessName, IDictionary<string, string> tags = default(IDictionary<string, string>))
 {
     return operations.UpdateAsync(resourceGroupName, diskAccessName, tags).GetAwaiter().GetResult();
 }
예제 #23
0
 /// <summary>
 /// Creates or updates a disk access resource
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='diskAccessName'>
 /// The name of the disk access resource that is being created. The name can't
 /// be changed after the disk encryption set is created. Supported characters
 /// for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80
 /// characters.
 /// </param>
 /// <param name='diskAccess'>
 /// disk access object supplied in the body of the Put disk access operation.
 /// </param>
 public static DiskAccess BeginCreateOrUpdate(this IDiskAccessesOperations operations, string resourceGroupName, string diskAccessName, DiskAccess diskAccess)
 {
     return operations.BeginCreateOrUpdateAsync(resourceGroupName, diskAccessName, diskAccess).GetAwaiter().GetResult();
 }