/// <summary> /// Gets all legal agreements that user needs to accept before purchasing a /// domain. /// </summary> /// <remarks> /// Description for Gets all legal agreements that user needs to accept before /// purchasing a domain. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='name'> /// Name of the top-level domain. /// </param> /// <param name='agreementOption'> /// Domain agreement options. /// </param> public static IPage <TldLegalAgreement> ListAgreements(this ITopLevelDomainsOperations operations, string name, TopLevelDomainAgreementOption agreementOption) { return(operations.ListAgreementsAsync(name, agreementOption).GetAwaiter().GetResult()); }
/// <summary> /// Gets all legal agreements that user needs to accept before purchasing a /// domain. /// </summary> /// <remarks> /// Gets all legal agreements that user needs to accept before purchasing a /// domain. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='name'> /// Name of the top-level domain. /// </param> /// <param name='includePrivacy'> /// If <code>true</code>, then the list of agreements will include /// agreements for domain privacy as well; otherwise, /// <code>false</code>. /// </param> /// <param name='forTransfer'> /// If <code>true</code>, then the list of agreements will include /// agreements for domain transfer as well; otherwise, /// <code>false</code>. /// </param> public static IPage <TldLegalAgreement> ListAgreements(this ITopLevelDomainsOperations operations, string name, bool?includePrivacy = default(bool?), bool?forTransfer = default(bool?)) { return(operations.ListAgreementsAsync(name, includePrivacy, forTransfer).GetAwaiter().GetResult()); }