コード例 #1
0
 /// <summary>
 /// Get the Container Apps in a given resource group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ContainerApp> > ListByResourceGroupAsync(this IContainerAppsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Get the Container Apps in a given 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 <ContainerApp> > ListBySubscriptionAsync(this IContainerAppsOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #3
0
 /// <summary>
 /// Create or update a Container App.
 /// </summary>
 /// <remarks>
 /// Description for Create or update a Container App.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 /// <param name='name'>
 /// Name of the Container App.
 /// </param>
 /// <param name='containerAppEnvelope'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ContainerApp> BeginCreateOrUpdateAsync(this IContainerAppsOperations operations, string resourceGroupName, string name, ContainerApp containerAppEnvelope, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, name, containerAppEnvelope, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #4
0
 /// <summary>
 /// List secrets for a container app
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='name'>
 /// Name of the Container App.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SecretsCollection> ListSecretsAsync(this IContainerAppsOperations operations, string name, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListSecretsWithHttpMessagesAsync(name, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #5
0
 /// <summary>
 /// Get the properties of a Container App.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 /// <param name='name'>
 /// Name of the Container App.
 /// </param>
 public static ContainerApp Get(this IContainerAppsOperations operations, string resourceGroupName, string name)
 {
     return(operations.GetAsync(resourceGroupName, name).GetAwaiter().GetResult());
 }
コード例 #6
0
 /// <summary>
 /// Get the Container Apps in a given resource group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 public static IPage <ContainerApp> ListByResourceGroup(this IContainerAppsOperations operations, string resourceGroupName)
 {
     return(operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult());
 }
コード例 #7
0
 /// <summary>
 /// Get the Container Apps in a given resource group.
 /// </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 <ContainerApp> ListByResourceGroupNext(this IContainerAppsOperations operations, string nextPageLink)
 {
     return(operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
コード例 #8
0
 /// <summary>
 /// Delete a Container App.
 /// </summary>
 /// <remarks>
 /// Description for Delete a Container App.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 /// <param name='name'>
 /// Name of the Container App.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IContainerAppsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
コード例 #9
0
 /// <summary>
 /// Delete a Container App.
 /// </summary>
 /// <remarks>
 /// Description for Delete a Container App.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 /// <param name='name'>
 /// Name of the Container App.
 /// </param>
 public static void BeginDelete(this IContainerAppsOperations operations, string resourceGroupName, string name)
 {
     operations.BeginDeleteAsync(resourceGroupName, name).GetAwaiter().GetResult();
 }
コード例 #10
0
 /// <summary>
 /// Get the Container Apps in a given subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <ContainerApp> ListBySubscription(this IContainerAppsOperations operations)
 {
     return(operations.ListBySubscriptionAsync().GetAwaiter().GetResult());
 }
コード例 #11
0
 /// <summary>
 /// Create or update a Container App.
 /// </summary>
 /// <remarks>
 /// Description for Create or update a Container App.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 /// <param name='name'>
 /// Name of the Container App.
 /// </param>
 /// <param name='containerAppEnvelope'>
 /// </param>
 public static ContainerApp BeginCreateOrUpdate(this IContainerAppsOperations operations, string resourceGroupName, string name, ContainerApp containerAppEnvelope)
 {
     return(operations.BeginCreateOrUpdateAsync(resourceGroupName, name, containerAppEnvelope).GetAwaiter().GetResult());
 }
コード例 #12
0
 /// <summary>
 /// List secrets for a container app
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='name'>
 /// Name of the Container App.
 /// </param>
 public static SecretsCollection ListSecrets(this IContainerAppsOperations operations, string name)
 {
     return(operations.ListSecretsAsync(name).GetAwaiter().GetResult());
 }
コード例 #13
0
 /// <summary>
 /// Analyzes a custom hostname for a Container App
 /// </summary>
 /// <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='containerAppName'>
 /// Name of the Container App.
 /// </param>
 /// <param name='customHostname'>
 /// Custom hostname.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CustomHostnameAnalysisResult> ListCustomHostNameAnalysisAsync(this IContainerAppsOperations operations, string resourceGroupName, string containerAppName, string customHostname = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListCustomHostNameAnalysisWithHttpMessagesAsync(resourceGroupName, containerAppName, customHostname, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #14
0
 /// <summary>
 /// Analyzes a custom hostname for a Container App
 /// </summary>
 /// <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='containerAppName'>
 /// Name of the Container App.
 /// </param>
 /// <param name='customHostname'>
 /// Custom hostname.
 /// </param>
 public static CustomHostnameAnalysisResult ListCustomHostNameAnalysis(this IContainerAppsOperations operations, string resourceGroupName, string containerAppName, string customHostname = default(string))
 {
     return(operations.ListCustomHostNameAnalysisAsync(resourceGroupName, containerAppName, customHostname).GetAwaiter().GetResult());
 }
コード例 #15
0
 /// <summary>
 /// Update properties of a Container App
 /// </summary>
 /// <remarks>
 /// Patches a Container App 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 Container App.
 /// </param>
 /// <param name='containerAppEnvelope'>
 /// Properties of a Container App that need to be updated
 /// </param>
 public static void Update(this IContainerAppsOperations operations, string resourceGroupName, string name, ContainerApp containerAppEnvelope)
 {
     operations.UpdateAsync(resourceGroupName, name, containerAppEnvelope).GetAwaiter().GetResult();
 }