/// <summary> /// Creates an ownership identifier for a domain or updates identifier details /// for an existing identifer /// </summary> /// <remarks> /// Creates an ownership identifier for a domain or updates identifier details /// for an existing identifer /// </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='domainOwnershipIdentifier'> /// A JSON representation of the domain ownership properties. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <DomainOwnershipIdentifier> UpdateOwnershipIdentifierAsync(this IDomainsOperations operations, string resourceGroupName, string domainName, string name, DomainOwnershipIdentifier domainOwnershipIdentifier, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateOwnershipIdentifierWithHttpMessagesAsync(resourceGroupName, domainName, name, domainOwnershipIdentifier, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates an ownership identifier for a domain or updates identifier details /// for an existing identifer /// </summary> /// <remarks> /// Creates an ownership identifier for a domain or updates identifier details /// for an existing identifer /// </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='domainOwnershipIdentifier'> /// A JSON representation of the domain ownership properties. /// </param> public static DomainOwnershipIdentifier UpdateOwnershipIdentifier(this IDomainsOperations operations, string resourceGroupName, string domainName, string name, DomainOwnershipIdentifier domainOwnershipIdentifier) { return(operations.UpdateOwnershipIdentifierAsync(resourceGroupName, domainName, name, domainOwnershipIdentifier).GetAwaiter().GetResult()); }