/// <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); } }
/// <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); } }
/// <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); } }
/// <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); } }
/// <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()); }
/// <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()); }
/// <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()); }
/// <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(); }
/// <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(); }
/// <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()); }
/// <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()); }
/// <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()); }
/// <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); } }
/// <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()); }
/// <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(); }