/// <summary> /// Get the Spring Cloud Gateway custom domain. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='serviceName'> /// The name of the Service resource. /// </param> /// <param name='gatewayName'> /// The name of Spring Cloud Gateway. /// </param> /// <param name='domainName'> /// The name of the Spring Cloud Gateway custom domain. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <GatewayCustomDomainResource> GetAsync(this IGatewayCustomDomainsOperations operations, string resourceGroupName, string serviceName, string gatewayName, string domainName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serviceName, gatewayName, domainName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Create or update the Spring Cloud Gateway custom domain. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='serviceName'> /// The name of the Service resource. /// </param> /// <param name='gatewayName'> /// The name of Spring Cloud Gateway. /// </param> /// <param name='domainName'> /// The name of the Spring Cloud Gateway custom domain. /// </param> /// <param name='gatewayCustomDomainResource'> /// The gateway custom domain resource for the create or update operation /// </param> public static GatewayCustomDomainResource CreateOrUpdate(this IGatewayCustomDomainsOperations operations, string resourceGroupName, string serviceName, string gatewayName, string domainName, GatewayCustomDomainResource gatewayCustomDomainResource) { return(operations.CreateOrUpdateAsync(resourceGroupName, serviceName, gatewayName, domainName, gatewayCustomDomainResource).GetAwaiter().GetResult()); }
/// <summary> /// Handle requests to list all Spring Cloud Gateway custom domains. /// </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 <GatewayCustomDomainResource> > ListNextAsync(this IGatewayCustomDomainsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Handle requests to list all Spring Cloud Gateway custom domains. /// </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 <GatewayCustomDomainResource> ListNext(this IGatewayCustomDomainsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Delete the Spring Cloud Gateway custom domain. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='serviceName'> /// The name of the Service resource. /// </param> /// <param name='gatewayName'> /// The name of Spring Cloud Gateway. /// </param> /// <param name='domainName'> /// The name of the Spring Cloud Gateway custom domain. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteAsync(this IGatewayCustomDomainsOperations operations, string resourceGroupName, string serviceName, string gatewayName, string domainName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, serviceName, gatewayName, domainName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Delete the Spring Cloud Gateway custom domain. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='serviceName'> /// The name of the Service resource. /// </param> /// <param name='gatewayName'> /// The name of Spring Cloud Gateway. /// </param> /// <param name='domainName'> /// The name of the Spring Cloud Gateway custom domain. /// </param> public static void BeginDelete(this IGatewayCustomDomainsOperations operations, string resourceGroupName, string serviceName, string gatewayName, string domainName) { operations.BeginDeleteAsync(resourceGroupName, serviceName, gatewayName, domainName).GetAwaiter().GetResult(); }
/// <summary> /// Handle requests to list all Spring Cloud Gateway custom domains. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='serviceName'> /// The name of the Service resource. /// </param> /// <param name='gatewayName'> /// The name of Spring Cloud Gateway. /// </param> public static IPage <GatewayCustomDomainResource> List(this IGatewayCustomDomainsOperations operations, string resourceGroupName, string serviceName, string gatewayName) { return(operations.ListAsync(resourceGroupName, serviceName, gatewayName).GetAwaiter().GetResult()); }