コード例 #1
0
 /// <summary>
 /// Get Private Endpoint Connection. This call is made by Backup Admin.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='vaultName'>
 /// The name of the recovery services vault.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group where the recovery services vault is
 /// present.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// The name of the private endpoint connection.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <PrivateEndpointConnectionResource> GetAsync(this IPrivateEndpointConnectionOperations operations, string vaultName, string resourceGroupName, string privateEndpointConnectionName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(vaultName, resourceGroupName, privateEndpointConnectionName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Updates the properties of an existing private endpoint connection.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the Batch account.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Batch account.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// The private endpoint connection name. This must be unique within the
 /// account.
 /// </param>
 /// <param name='parameters'>
 /// PrivateEndpointConnection properties that should be updated. Properties
 /// that are supplied will be updated, any property not supplied will be
 /// unchanged.
 /// </param>
 /// <param name='ifMatch'>
 /// The state (ETag) version of the private endpoint connection to update. This
 /// value can be omitted or set to "*" to apply the operation unconditionally.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <PrivateEndpointConnection> BeginUpdateAsync(this IPrivateEndpointConnectionOperations operations, string resourceGroupName, string accountName, string privateEndpointConnectionName, PrivateEndpointConnection parameters, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, accountName, privateEndpointConnectionName, parameters, ifMatch, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Creates a new Private Endpoint Connection or updates an existing one.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// Name of the private endpoint connection.
 /// </param>
 /// <param name='privateEndpointConnectionRequest'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <PrivateEndpointConnection> CreateOrUpdateAsync(this IPrivateEndpointConnectionOperations operations, string resourceGroupName, string serviceName, string privateEndpointConnectionName, PrivateEndpointConnectionRequest privateEndpointConnectionRequest, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serviceName, privateEndpointConnectionName, privateEndpointConnectionRequest, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets the details of the Private Endpoint Connection specified by its
 /// identifier.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// Name of the private endpoint connection.
 /// </param>
 public static PrivateEndpointConnection GetByName(this IPrivateEndpointConnectionOperations operations, string resourceGroupName, string serviceName, string privateEndpointConnectionName)
 {
     return(operations.GetByNameAsync(resourceGroupName, serviceName, privateEndpointConnectionName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists all private endpoint connections of the API Management service
 /// instance.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IEnumerable <PrivateEndpointConnection> > ListByServiceAsync(this IPrivateEndpointConnectionOperations operations, string resourceGroupName, string serviceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByServiceWithHttpMessagesAsync(resourceGroupName, serviceName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Lists all private endpoint connections of the API Management service
 /// instance.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 public static IEnumerable <PrivateEndpointConnection> ListByService(this IPrivateEndpointConnectionOperations operations, string resourceGroupName, string serviceName)
 {
     return(operations.ListByServiceAsync(resourceGroupName, serviceName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Creates a new Private Endpoint Connection or updates an existing one.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// Name of the private endpoint connection.
 /// </param>
 /// <param name='privateEndpointConnectionRequest'>
 /// </param>
 public static PrivateEndpointConnection BeginCreateOrUpdate(this IPrivateEndpointConnectionOperations operations, string resourceGroupName, string serviceName, string privateEndpointConnectionName, PrivateEndpointConnectionRequest privateEndpointConnectionRequest)
 {
     return(operations.BeginCreateOrUpdateAsync(resourceGroupName, serviceName, privateEndpointConnectionName, privateEndpointConnectionRequest).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Description for Gets the private link resources
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 public static PrivateLinkResourceListResult ListPrivateLinkResources(this IPrivateEndpointConnectionOperations operations, string resourceGroupName, string serviceName)
 {
     return(operations.ListPrivateLinkResourcesAsync(resourceGroupName, serviceName).GetAwaiter().GetResult());
 }
コード例 #9
0
 /// <summary>
 /// Approves or rejects a private endpoint connection
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='factoryName'>
 /// The factory name.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// The private endpoint connection name.
 /// </param>
 /// <param name='privateEndpointWrapper'>
 /// </param>
 /// <param name='ifMatch'>
 /// ETag of the private endpoint connection entity.  Should only be specified
 /// for update, for which it should match existing entity or can be * for
 /// unconditional update.
 /// </param>
 public static PrivateEndpointConnectionResource CreateOrUpdate(this IPrivateEndpointConnectionOperations operations, string resourceGroupName, string factoryName, string privateEndpointConnectionName, PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper, string ifMatch = default(string))
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, factoryName, privateEndpointConnectionName, privateEndpointWrapper, ifMatch).GetAwaiter().GetResult());
 }
コード例 #10
0
 /// <summary>
 /// Lists all of the private endpoint connections in the specified account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the Batch account.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Batch account.
 /// </param>
 /// <param name='maxresults'>
 /// The maximum number of items to return in the response.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <PrivateEndpointConnection> > ListByBatchAccountAsync(this IPrivateEndpointConnectionOperations operations, string resourceGroupName, string accountName, int?maxresults = default(int?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByBatchAccountWithHttpMessagesAsync(resourceGroupName, accountName, maxresults, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #11
0
 /// <summary>
 /// Lists all of the private endpoint connections in the specified account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the Batch account.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Batch account.
 /// </param>
 /// <param name='maxresults'>
 /// The maximum number of items to return in the response.
 /// </param>
 public static IPage <PrivateEndpointConnection> ListByBatchAccount(this IPrivateEndpointConnectionOperations operations, string resourceGroupName, string accountName, int?maxresults = default(int?))
 {
     return(operations.ListByBatchAccountAsync(resourceGroupName, accountName, maxresults).GetAwaiter().GetResult());
 }
コード例 #12
0
 /// <summary>
 /// Lists all of the private endpoint connections in the specified account.
 /// </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 <PrivateEndpointConnection> > ListByBatchAccountNextAsync(this IPrivateEndpointConnectionOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByBatchAccountNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #13
0
 /// <summary>
 /// Lists all of the private endpoint connections in the specified account.
 /// </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> ListByBatchAccountNext(this IPrivateEndpointConnectionOperations operations, string nextPageLink)
 {
     return(operations.ListByBatchAccountNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
コード例 #14
0
 /// <summary>
 /// Updates the properties of an existing private endpoint connection.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the Batch account.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Batch account.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// The private endpoint connection name. This must be unique within the
 /// account.
 /// </param>
 /// <param name='parameters'>
 /// PrivateEndpointConnection properties that should be updated. Properties
 /// that are supplied will be updated, any property not supplied will be
 /// unchanged.
 /// </param>
 /// <param name='ifMatch'>
 /// The state (ETag) version of the private endpoint connection to update. This
 /// value can be omitted or set to "*" to apply the operation unconditionally.
 /// </param>
 public static PrivateEndpointConnection BeginUpdate(this IPrivateEndpointConnectionOperations operations, string resourceGroupName, string accountName, string privateEndpointConnectionName, PrivateEndpointConnection parameters, string ifMatch = default(string))
 {
     return(operations.BeginUpdateAsync(resourceGroupName, accountName, privateEndpointConnectionName, parameters, ifMatch).GetAwaiter().GetResult());
 }
コード例 #15
0
 /// <summary>
 /// Approves or rejects a private endpoint connection
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='factoryName'>
 /// The factory name.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// The private endpoint connection name.
 /// </param>
 /// <param name='privateEndpointWrapper'>
 /// </param>
 /// <param name='ifMatch'>
 /// ETag of the private endpoint connection entity.  Should only be specified
 /// for update, for which it should match existing entity or can be * for
 /// unconditional update.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <PrivateEndpointConnectionResource> CreateOrUpdateAsync(this IPrivateEndpointConnectionOperations operations, string resourceGroupName, string factoryName, string privateEndpointConnectionName, PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, factoryName, privateEndpointConnectionName, privateEndpointWrapper, ifMatch, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #16
0
 /// <summary>
 /// Delete Private Endpoint requests. This call is made by Backup Admin.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='vaultName'>
 /// The name of the recovery services vault.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group where the recovery services vault is
 /// present.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// The name of the private endpoint connection.
 /// </param>
 public static void BeginDelete(this IPrivateEndpointConnectionOperations operations, string vaultName, string resourceGroupName, string privateEndpointConnectionName)
 {
     operations.BeginDeleteAsync(vaultName, resourceGroupName, privateEndpointConnectionName).GetAwaiter().GetResult();
 }
コード例 #17
0
 /// <summary>
 /// Delete Private Endpoint requests. This call is made by Backup Admin.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='vaultName'>
 /// The name of the recovery services vault.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group where the recovery services vault is
 /// present.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// The name of the private endpoint connection.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IPrivateEndpointConnectionOperations operations, string vaultName, string resourceGroupName, string privateEndpointConnectionName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(vaultName, resourceGroupName, privateEndpointConnectionName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Deletes the specified 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='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// Name of the private endpoint connection.
 /// </param>
 public static void Delete(this IPrivateEndpointConnectionOperations operations, string resourceGroupName, string serviceName, string privateEndpointConnectionName)
 {
     operations.DeleteAsync(resourceGroupName, serviceName, privateEndpointConnectionName).GetAwaiter().GetResult();
 }
コード例 #19
0
 /// <summary>
 /// Approve or Reject Private Endpoint requests. This call is made by Backup
 /// Admin.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='vaultName'>
 /// The name of the recovery services vault.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group where the recovery services vault is
 /// present.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// The name of the private endpoint connection.
 /// </param>
 /// <param name='parameters'>
 /// Request body for operation
 /// </param>
 public static PrivateEndpointConnectionResource Put(this IPrivateEndpointConnectionOperations operations, string vaultName, string resourceGroupName, string privateEndpointConnectionName, PrivateEndpointConnectionResource parameters)
 {
     return(operations.PutAsync(vaultName, resourceGroupName, privateEndpointConnectionName, parameters).GetAwaiter().GetResult());
 }
コード例 #20
0
 /// <summary>
 /// Gets a private endpoint connection
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='factoryName'>
 /// The factory name.
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// The private endpoint connection name.
 /// </param>
 /// <param name='ifNoneMatch'>
 /// ETag of the private endpoint connection entity. Should only be specified
 /// for get. If the ETag matches the existing entity tag, or if * was provided,
 /// then no content will be returned.
 /// </param>
 public static PrivateEndpointConnectionResource Get(this IPrivateEndpointConnectionOperations operations, string resourceGroupName, string factoryName, string privateEndpointConnectionName, string ifNoneMatch = default(string))
 {
     return(operations.GetAsync(resourceGroupName, factoryName, privateEndpointConnectionName, ifNoneMatch).GetAwaiter().GetResult());
 }