/// <summary> /// Check if a domain is available for registration. /// </summary> /// <remarks> /// Description for Check if a domain is available for registration. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='identifier'> /// Name of the domain. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <DomainAvailabilityCheckResult> CheckAvailabilityAsync(this IDomainsOperations operations, NameIdentifier identifier, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CheckAvailabilityWithHttpMessagesAsync(identifier, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates or updates a domain. /// </summary> /// <remarks> /// Creates or updates a domain. /// </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='domainName'> /// Name of the domain. /// </param> /// <param name='domain'> /// Domain registration information. /// </param> public static Domain Update(this IDomainsOperations operations, string resourceGroupName, string domainName, DomainPatchResource domain) { return(operations.UpdateAsync(resourceGroupName, domainName, domain).GetAwaiter().GetResult()); }
/// <summary> /// Lists domain ownership identifiers. /// </summary> /// <remarks> /// Lists domain ownership identifiers. /// </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='domainName'> /// Name of domain. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <DomainOwnershipIdentifier> > ListOwnershipIdentifiersAsync(this IDomainsOperations operations, string resourceGroupName, string domainName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListOwnershipIdentifiersWithHttpMessagesAsync(resourceGroupName, domainName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get a domain. /// </summary> /// <remarks> /// Get a domain. /// </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='domainName'> /// Name of the domain. /// </param> public static Domain Get(this IDomainsOperations operations, string resourceGroupName, string domainName) { return(operations.GetAsync(resourceGroupName, domainName).GetAwaiter().GetResult()); }
/// <summary> /// Check if a domain is available for registration. /// </summary> /// <remarks> /// Check if a domain is available for registration. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='name'> /// Name of the object. /// </param> public static DomainAvailablilityCheckResult CheckAvailability(this IDomainsOperations operations, string name = default(string)) { return(operations.CheckAvailabilityAsync(name).GetAwaiter().GetResult()); }
/// <summary> /// Generate a single sign-on request for the domain management portal. /// </summary> /// <remarks> /// Generate a single sign-on request for the domain management portal. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static DomainControlCenterSsoRequest GetControlCenterSsoRequest(this IDomainsOperations operations) { return(operations.GetControlCenterSsoRequestAsync().GetAwaiter().GetResult()); }
/// <summary> /// Get domain name recommendations based on keywords. /// </summary> /// <remarks> /// Get domain name recommendations based on keywords. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='keywords'> /// Keywords to be used for generating domain recommendations. /// </param> /// <param name='maxDomainRecommendations'> /// Maximum number of recommendations. /// </param> public static IPage <NameIdentifier> ListRecommendations(this IDomainsOperations operations, string keywords = default(string), int?maxDomainRecommendations = default(int?)) { return(operations.ListRecommendationsAsync(keywords, maxDomainRecommendations).GetAwaiter().GetResult()); }
/// <summary> /// Get domain name recommendations based on keywords. /// </summary> /// <remarks> /// Description for Get domain name recommendations based on keywords. /// </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 <NameIdentifier> ListRecommendationsNext(this IDomainsOperations operations, string nextPageLink) { return(operations.ListRecommendationsNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Lists domain ownership identifiers. /// </summary> /// <remarks> /// Description for Lists domain ownership identifiers. /// </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 <DomainOwnershipIdentifier> ListOwnershipIdentifiersNext(this IDomainsOperations operations, string nextPageLink) { return(operations.ListOwnershipIdentifiersNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Get all domains in a subscription. /// </summary> /// <remarks> /// Description for Get all domains in a subscription. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <Domain> List(this IDomainsOperations operations) { return(operations.ListAsync().GetAwaiter().GetResult()); }
/// <summary> /// Renew a domain. /// </summary> /// <remarks> /// Description for Renew a domain. /// </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='domainName'> /// Name of the domain. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task RenewAsync(this IDomainsOperations operations, string resourceGroupName, string domainName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.RenewWithHttpMessagesAsync(resourceGroupName, domainName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Renew a domain. /// </summary> /// <remarks> /// Description for Renew a domain. /// </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='domainName'> /// Name of the domain. /// </param> public static void Renew(this IDomainsOperations operations, string resourceGroupName, string domainName) { operations.RenewAsync(resourceGroupName, domainName).GetAwaiter().GetResult(); }
/// <summary> /// Delete ownership identifier for domain /// </summary> /// <remarks> /// Description for Delete ownership identifier for domain /// </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='domainName'> /// Name of domain. /// </param> /// <param name='name'> /// Name of identifier. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteOwnershipIdentifierAsync(this IDomainsOperations operations, string resourceGroupName, string domainName, string name, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteOwnershipIdentifierWithHttpMessagesAsync(resourceGroupName, domainName, name, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Delete ownership identifier for domain /// </summary> /// <remarks> /// Description for Delete ownership identifier for domain /// </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='domainName'> /// Name of domain. /// </param> /// <param name='name'> /// Name of identifier. /// </param> public static void DeleteOwnershipIdentifier(this IDomainsOperations operations, string resourceGroupName, string domainName, string name) { operations.DeleteOwnershipIdentifierAsync(resourceGroupName, domainName, name).GetAwaiter().GetResult(); }
/// <summary> /// List domains under a resource group. /// </summary> /// <remarks> /// List all the domains under 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 <Domain> ListByResourceGroupNext(this IDomainsOperations operations, string nextPageLink) { return(operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Lists domain ownership identifiers. /// </summary> /// <remarks> /// Description for Lists domain ownership identifiers. /// </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> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <DomainOwnershipIdentifier> > ListOwnershipIdentifiersNextAsync(this IDomainsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListOwnershipIdentifiersNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Create or update a domain. /// </summary> /// <remarks> /// Asynchronously creates or updates a new domain with the specified /// parameters. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the user's subscription. /// </param> /// <param name='domainName'> /// Name of the domain. /// </param> /// <param name='domainInfo'> /// Domain information. /// </param> public static Domain CreateOrUpdate(this IDomainsOperations operations, string resourceGroupName, string domainName, Domain domainInfo) { return(operations.CreateOrUpdateAsync(resourceGroupName, domainName, domainInfo).GetAwaiter().GetResult()); }
/// <summary> /// List domains under an Azure subscription. /// </summary> /// <remarks> /// List all the domains under an Azure subscription. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='filter'> /// The query used to filter the search results using OData syntax. Filtering /// is permitted on the 'name' property only and with limited number of OData /// operations. These operations are: the 'contains' function as well as the /// following logical operations: not, and, or, eq (for equal), and ne (for not /// equal). No arithmetic operations are supported. The following is a valid /// filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. /// The following is not a valid filter example: $filter=location eq 'westus'. /// </param> /// <param name='top'> /// The number of results to return per page for the list operation. Valid /// range for top parameter is 1 to 100. If not specified, the default number /// of results to be returned is 20 items per page. /// </param> public static IPage <Domain> ListBySubscription(this IDomainsOperations operations, string filter = default(string), int?top = default(int?)) { return(operations.ListBySubscriptionAsync(filter, top).GetAwaiter().GetResult()); }
/// <summary> /// Generate a single sign-on request for the domain management portal. /// </summary> /// <remarks> /// Generate a single sign-on request for the domain management portal. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <DomainControlCenterSsoRequest> GetControlCenterSsoRequestAsync(this IDomainsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetControlCenterSsoRequestWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List domains under a resource group. /// </summary> /// <remarks> /// List all the domains under a resource group. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the user's subscription. /// </param> /// <param name='filter'> /// The query used to filter the search results using OData syntax. Filtering /// is permitted on the 'name' property only and with limited number of OData /// operations. These operations are: the 'contains' function as well as the /// following logical operations: not, and, or, eq (for equal), and ne (for not /// equal). No arithmetic operations are supported. The following is a valid /// filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. /// The following is not a valid filter example: $filter=location eq 'westus'. /// </param> /// <param name='top'> /// The number of results to return per page for the list operation. Valid /// range for top parameter is 1 to 100. If not specified, the default number /// of results to be returned is 20 items per page. /// </param> public static IPage <Domain> ListByResourceGroup(this IDomainsOperations operations, string resourceGroupName, string filter = default(string), int?top = default(int?)) { return(operations.ListByResourceGroupAsync(resourceGroupName, filter, top).GetAwaiter().GetResult()); }
/// <summary> /// Get all domains in a resource group. /// </summary> /// <remarks> /// Get all domains in a resource group. /// </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> public static IPage <Domain> ListByResourceGroup(this IDomainsOperations operations, string resourceGroupName) { return(operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult()); }
/// <summary> /// List keys for a domain. /// </summary> /// <remarks> /// List the two keys used to publish to a domain. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the user's subscription. /// </param> /// <param name='domainName'> /// Name of the domain. /// </param> public static DomainSharedAccessKeys ListSharedAccessKeys(this IDomainsOperations operations, string resourceGroupName, string domainName) { return(operations.ListSharedAccessKeysAsync(resourceGroupName, domainName).GetAwaiter().GetResult()); }
/// <summary> /// Delete a domain. /// </summary> /// <remarks> /// Delete a domain. /// </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='domainName'> /// Name of the domain. /// </param> /// <param name='forceHardDeleteDomain'> /// Specify <code>true</code> to delete the domain immediately. The /// default is <code>false</code> which deletes the domain after 24 /// hours. /// </param> public static void Delete(this IDomainsOperations operations, string resourceGroupName, string domainName, bool?forceHardDeleteDomain = default(bool?)) { operations.DeleteAsync(resourceGroupName, domainName, forceHardDeleteDomain).GetAwaiter().GetResult(); }
/// <summary> /// Regenerate key for a domain. /// </summary> /// <remarks> /// Regenerate a shared access key for a domain. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the user's subscription. /// </param> /// <param name='domainName'> /// Name of the domain. /// </param> /// <param name='keyName'> /// Key name to regenerate key1 or key2. /// </param> public static DomainSharedAccessKeys RegenerateKey(this IDomainsOperations operations, string resourceGroupName, string domainName, string keyName) { return(operations.RegenerateKeyAsync(resourceGroupName, domainName, keyName).GetAwaiter().GetResult()); }
/// <summary> /// Delete a domain. /// </summary> /// <remarks> /// Delete a domain. /// </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='domainName'> /// Name of the domain. /// </param> /// <param name='forceHardDeleteDomain'> /// Specify <code>true</code> to delete the domain immediately. The /// default is <code>false</code> which deletes the domain after 24 /// hours. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IDomainsOperations operations, string resourceGroupName, string domainName, bool?forceHardDeleteDomain = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, domainName, forceHardDeleteDomain, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Delete a domain. /// </summary> /// <remarks> /// Delete existing domain. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the user's subscription. /// </param> /// <param name='domainName'> /// Name of the domain. /// </param> public static void BeginDelete(this IDomainsOperations operations, string resourceGroupName, string domainName) { operations.BeginDeleteAsync(resourceGroupName, domainName).GetAwaiter().GetResult(); }
/// <summary> /// Lists domain ownership identifiers. /// </summary> /// <remarks> /// Lists domain ownership identifiers. /// </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='domainName'> /// Name of domain. /// </param> public static IPage <DomainOwnershipIdentifier> ListOwnershipIdentifiers(this IDomainsOperations operations, string resourceGroupName, string domainName) { return(operations.ListOwnershipIdentifiersAsync(resourceGroupName, domainName).GetAwaiter().GetResult()); }
/// <summary> /// Update a domain. /// </summary> /// <remarks> /// Asynchronously updates a domain with the specified parameters. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the user's subscription. /// </param> /// <param name='domainName'> /// Name of the domain. /// </param> /// <param name='tags'> /// Tags of the domains resource. /// </param> public static Domain BeginUpdate(this IDomainsOperations operations, string resourceGroupName, string domainName, IDictionary <string, string> tags = default(IDictionary <string, string>)) { return(operations.BeginUpdateAsync(resourceGroupName, domainName, tags).GetAwaiter().GetResult()); }
/// <summary> /// Get ownership identifier for domain /// </summary> /// <remarks> /// Get ownership identifier for domain /// </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='domainName'> /// Name of domain. /// </param> /// <param name='name'> /// Name of identifier. /// </param> public static DomainOwnershipIdentifier GetOwnershipIdentifier(this IDomainsOperations operations, string resourceGroupName, string domainName, string name) { return(operations.GetOwnershipIdentifierAsync(resourceGroupName, domainName, name).GetAwaiter().GetResult()); }
/// <summary> /// Check if a domain is available for registration. /// </summary> /// <remarks> /// Description for Check if a domain is available for registration. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='identifier'> /// Name of the domain. /// </param> public static DomainAvailabilityCheckResult CheckAvailability(this IDomainsOperations operations, NameIdentifier identifier) { return(operations.CheckAvailabilityAsync(identifier).GetAwaiter().GetResult()); }