/// <summary>
 /// Initializes a new instance of the Domain class.
 /// </summary>
 /// <param name="location">Resource Location.</param>
 /// <param name="contactAdmin">Administrative contact.</param>
 /// <param name="contactBilling">Billing contact.</param>
 /// <param name="contactRegistrant">Registrant contact.</param>
 /// <param name="contactTech">Technical contact.</param>
 /// <param name="consent">Legal agreement consent.</param>
 /// <param name="id">Resource Id.</param>
 /// <param name="name">Resource Name.</param>
 /// <param name="kind">Kind of resource.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="registrationStatus">Domain registration status.
 /// Possible values include: 'Active', 'Awaiting', 'Cancelled',
 /// 'Confiscated', 'Disabled', 'Excluded', 'Expired', 'Failed', 'Held',
 /// 'Locked', 'Parked', 'Pending', 'Reserved', 'Reverted', 'Suspended',
 /// 'Transferred', 'Unknown', 'Unlocked', 'Unparked', 'Updated',
 /// 'JsonConverterFailed'</param>
 /// <param name="provisioningState">Domain provisioning state. Possible
 /// values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress',
 /// 'Deleting'</param>
 /// <param name="nameServers">Name servers.</param>
 /// <param name="privacy">&lt;code&gt;true&lt;/code&gt; if domain
 /// privacy is enabled for this domain; otherwise,
 /// &lt;code&gt;false&lt;/code&gt;.</param>
 /// <param name="createdTime">Domain creation timestamp.</param>
 /// <param name="expirationTime">Domain expiration timestamp.</param>
 /// <param name="lastRenewedTime">Timestamp when the domain was renewed
 /// last time.</param>
 /// <param name="autoRenew">&lt;code&gt;true&lt;/code&gt; if the domain
 /// should be automatically renewed; otherwise,
 /// &lt;code&gt;false&lt;/code&gt;.</param>
 /// <param
 /// name="readyForDnsRecordManagement">&lt;code&gt;true&lt;/code&gt; if
 /// Azure can assign this domain to App Service apps; otherwise,
 /// &lt;code&gt;false&lt;/code&gt;. This value will be
 /// &lt;code&gt;true&lt;/code&gt; if domain registration status is
 /// active and
 /// it is hosted on name servers Azure has programmatic access
 /// to.</param>
 /// <param name="managedHostNames">All hostnames derived from the
 /// domain and assigned to Azure resources.</param>
 /// <param name="domainNotRenewableReasons">Reasons why domain is not
 /// renewable.</param>
 /// <param name="dnsType">Current DNS type. Possible values include:
 /// 'AzureDns', 'DefaultDomainRegistrarDns'</param>
 /// <param name="dnsZoneId">Azure DNS Zone to use</param>
 /// <param name="targetDnsType">Target DNS type (would be used for
 /// migration). Possible values include: 'AzureDns',
 /// 'DefaultDomainRegistrarDns'</param>
 public Domain(string location, Contact contactAdmin, Contact contactBilling, Contact contactRegistrant, Contact contactTech, DomainPurchaseConsent consent, string id = default(string), string name = default(string), string kind = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), DomainStatus?registrationStatus = default(DomainStatus?), ProvisioningState?provisioningState = default(ProvisioningState?), IList <string> nameServers = default(IList <string>), bool?privacy = default(bool?), System.DateTime?createdTime = default(System.DateTime?), System.DateTime?expirationTime = default(System.DateTime?), System.DateTime?lastRenewedTime = default(System.DateTime?), bool?autoRenew = default(bool?), bool?readyForDnsRecordManagement = default(bool?), IList <HostName> managedHostNames = default(IList <HostName>), IList <string> domainNotRenewableReasons = default(IList <string>), DnsType?dnsType = default(DnsType?), string dnsZoneId = default(string), DnsType?targetDnsType = default(DnsType?), string authCode = default(string))
     : base(location, id, name, kind, type, tags)
 {
     ContactAdmin                = contactAdmin;
     ContactBilling              = contactBilling;
     ContactRegistrant           = contactRegistrant;
     ContactTech                 = contactTech;
     RegistrationStatus          = registrationStatus;
     ProvisioningState           = provisioningState;
     NameServers                 = nameServers;
     Privacy                     = privacy;
     CreatedTime                 = createdTime;
     ExpirationTime              = expirationTime;
     LastRenewedTime             = lastRenewedTime;
     AutoRenew                   = autoRenew;
     ReadyForDnsRecordManagement = readyForDnsRecordManagement;
     ManagedHostNames            = managedHostNames;
     Consent                     = consent;
     DomainNotRenewableReasons   = domainNotRenewableReasons;
     DnsType                     = dnsType;
     DnsZoneId                   = dnsZoneId;
     TargetDnsType               = targetDnsType;
     AuthCode                    = authCode;
     CustomInit();
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the Domain class.
 /// </summary>
 public Domain(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), Contact contactAdmin = default(Contact), Contact contactBilling = default(Contact), Contact contactRegistrant = default(Contact), Contact contactTech = default(Contact), DomainStatus?registrationStatus = default(DomainStatus?), ProvisioningState?provisioningState = default(ProvisioningState?), IList <string> nameServers = default(IList <string>), bool?privacy = default(bool?), DateTime?createdTime = default(DateTime?), DateTime?expirationTime = default(DateTime?), DateTime?lastRenewedTime = default(DateTime?), bool?autoRenew = default(bool?), bool?readyForDnsRecordManagement = default(bool?), IList <HostName> managedHostNames = default(IList <HostName>), DomainPurchaseConsent consent = default(DomainPurchaseConsent))
     : base(location, id, name, type, tags)
 {
     ContactAdmin                = contactAdmin;
     ContactBilling              = contactBilling;
     ContactRegistrant           = contactRegistrant;
     ContactTech                 = contactTech;
     RegistrationStatus          = registrationStatus;
     ProvisioningState           = provisioningState;
     NameServers                 = nameServers;
     Privacy                     = privacy;
     CreatedTime                 = createdTime;
     ExpirationTime              = expirationTime;
     LastRenewedTime             = lastRenewedTime;
     AutoRenew                   = autoRenew;
     ReadyForDnsRecordManagement = readyForDnsRecordManagement;
     ManagedHostNames            = managedHostNames;
     Consent                     = consent;
 }