/// <summary> /// Retrieves a policy set definition. /// </summary> /// <remarks> /// This operation retrieves the policy set definition in the given /// subscription with the given name. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='policySetDefinitionName'> /// The name of the policy set definition to get. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PolicySetDefinition> GetAsync(this IPolicySetDefinitionsOperations operations, string policySetDefinitionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(policySetDefinitionName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }