コード例 #1
0
 /// <summary>
 /// Creates or updates a Managed Environment.
 /// </summary>
 /// <remarks>
 /// Creates or updates a Managed Environment used to host container apps.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='name'>
 /// Name of the Environment.
 /// </param>
 /// <param name='environmentEnvelope'>
 /// Configuration details of the Environment.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ManagedEnvironment> BeginCreateOrUpdateAsync(this IManagedEnvironmentsOperations operations, string resourceGroupName, string name, ManagedEnvironment environmentEnvelope, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, name, environmentEnvelope, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Get all the Environments in a resource group.
 /// </summary>
 /// <remarks>
 /// Get all the Managed Environments in a resource group.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ManagedEnvironment> > ListByResourceGroupAsync(this IManagedEnvironmentsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #3
0
 /// <summary>
 /// Get all the Environments in a resource group.
 /// </summary>
 /// <remarks>
 /// Get all the Managed Environments in a resource group.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 public static IPage <ManagedEnvironment> ListByResourceGroup(this IManagedEnvironmentsOperations operations, string resourceGroupName)
 {
     return(operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult());
 }
コード例 #4
0
 /// <summary>
 /// Get all Environments for a subscription.
 /// </summary>
 /// <remarks>
 /// Get all Managed Environments for a subscription.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ManagedEnvironment> > ListBySubscriptionAsync(this IManagedEnvironmentsOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #5
0
 /// <summary>
 /// Get all the Environments in a resource group.
 /// </summary>
 /// <remarks>
 /// Get all the Managed Environments in a resource group.
 /// </remarks>
 /// <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 <ManagedEnvironment> ListByResourceGroupNext(this IManagedEnvironmentsOperations operations, string nextPageLink)
 {
     return(operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
コード例 #6
0
 /// <summary>
 /// Update Managed Environment's properties.
 /// </summary>
 /// <remarks>
 /// Patches a Managed Environment using JSON Merge Patch
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='name'>
 /// Name of the Environment.
 /// </param>
 /// <param name='environmentEnvelope'>
 /// Configuration details of the Environment.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginUpdateAsync(this IManagedEnvironmentsOperations operations, string resourceGroupName, string name, ManagedEnvironment environmentEnvelope, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, name, environmentEnvelope, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
コード例 #7
0
 /// <summary>
 /// Update Managed Environment's properties.
 /// </summary>
 /// <remarks>
 /// Patches a Managed Environment using JSON Merge Patch
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='name'>
 /// Name of the Environment.
 /// </param>
 /// <param name='environmentEnvelope'>
 /// Configuration details of the Environment.
 /// </param>
 public static void BeginUpdate(this IManagedEnvironmentsOperations operations, string resourceGroupName, string name, ManagedEnvironment environmentEnvelope)
 {
     operations.BeginUpdateAsync(resourceGroupName, name, environmentEnvelope).GetAwaiter().GetResult();
 }
コード例 #8
0
 /// <summary>
 /// Get all Environments for a subscription.
 /// </summary>
 /// <remarks>
 /// Get all Managed Environments for a subscription.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <ManagedEnvironment> ListBySubscription(this IManagedEnvironmentsOperations operations)
 {
     return(operations.ListBySubscriptionAsync().GetAwaiter().GetResult());
 }
コード例 #9
0
 /// <summary>
 /// Creates or updates a Managed Environment.
 /// </summary>
 /// <remarks>
 /// Creates or updates a Managed Environment used to host container apps.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='name'>
 /// Name of the Environment.
 /// </param>
 /// <param name='environmentEnvelope'>
 /// Configuration details of the Environment.
 /// </param>
 public static ManagedEnvironment BeginCreateOrUpdate(this IManagedEnvironmentsOperations operations, string resourceGroupName, string name, ManagedEnvironment environmentEnvelope)
 {
     return(operations.BeginCreateOrUpdateAsync(resourceGroupName, name, environmentEnvelope).GetAwaiter().GetResult());
 }
コード例 #10
0
 /// <summary>
 /// Delete a Managed Environment.
 /// </summary>
 /// <remarks>
 /// Delete a Managed Environment if it does not have any container apps.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='name'>
 /// Name of the Environment.
 /// </param>
 public static void Delete(this IManagedEnvironmentsOperations operations, string resourceGroupName, string name)
 {
     operations.DeleteAsync(resourceGroupName, name).GetAwaiter().GetResult();
 }
コード例 #11
0
 /// <summary>
 /// Get the properties of a Managed Environment.
 /// </summary>
 /// <remarks>
 /// Get the properties of a Managed Environment used to host container apps.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='name'>
 /// Name of the Environment.
 /// </param>
 public static ManagedEnvironment Get(this IManagedEnvironmentsOperations operations, string resourceGroupName, string name)
 {
     return(operations.GetAsync(resourceGroupName, name).GetAwaiter().GetResult());
 }