/// <summary> /// Validate the object. /// </summary> /// <exception cref="ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (EncryptionConfig != null) { EncryptionConfig.Validate(); } }
/// <summary> /// Initializes a new instance of the DataLakeStoreAccountProperties /// class. /// </summary> /// <param name="provisioningState">the status of the Data Lake Store /// account while being provisioned. Possible values include: /// 'Failed', 'Creating', 'Running', 'Succeeded', 'Patching', /// 'Suspending', 'Resuming', 'Deleting', 'Deleted'</param> /// <param name="state">the status of the Data Lake Store account /// after provisioning has completed. Possible values include: /// 'active', 'suspended'</param> /// <param name="creationTime">the account creation time.</param> /// <param name="encryptionState">The current state of encryption for /// this Data Lake store account. Possible values include: 'Enabled', /// 'Disabled'</param> /// <param name="encryptionProvisioningState">The current state of /// encryption provisioning for this Data Lake store account. /// Possible values include: 'Creating', 'Succeeded'</param> /// <param name="encryptionConfig">The Key vault encryption /// configuration.</param> /// <param name="lastModifiedTime">the account last modified /// time.</param> /// <param name="endpoint">the gateway host.</param> /// <param name="defaultGroup">the default owner group for all new /// folders and files created in the Data Lake Store account.</param> public DataLakeStoreAccountProperties(DataLakeStoreAccountStatus?provisioningState = default(DataLakeStoreAccountStatus?), DataLakeStoreAccountState?state = default(DataLakeStoreAccountState?), DateTime?creationTime = default(DateTime?), EncryptionState?encryptionState = default(EncryptionState?), EncryptionProvisioningState?encryptionProvisioningState = default(EncryptionProvisioningState?), EncryptionConfig encryptionConfig = default(EncryptionConfig), DateTime?lastModifiedTime = default(DateTime?), string endpoint = default(string), string defaultGroup = default(string)) { ProvisioningState = provisioningState; State = state; CreationTime = creationTime; EncryptionState = encryptionState; EncryptionProvisioningState = encryptionProvisioningState; EncryptionConfig = encryptionConfig; LastModifiedTime = lastModifiedTime; Endpoint = endpoint; DefaultGroup = defaultGroup; }
/// <summary> /// Initializes a new instance of the /// CreateDataLakeStoreAccountParameters class. /// </summary> /// <param name="location">The resource location.</param> /// <param name="tags">The resource tags.</param> /// <param name="identity">The Key Vault encryption identity, if /// any.</param> /// <param name="defaultGroup">The default owner group for all new /// folders and files created in the Data Lake Store account.</param> /// <param name="encryptionConfig">The Key Vault encryption /// configuration.</param> /// <param name="encryptionState">The current state of encryption for /// this Data Lake Store account. Possible values include: 'Enabled', /// 'Disabled'</param> /// <param name="firewallRules">The list of firewall rules associated /// with this Data Lake Store account.</param> /// <param name="virtualNetworkRules">The list of virtual network rules /// associated with this Data Lake Store account.</param> /// <param name="firewallState">The current state of the IP address /// firewall for this Data Lake Store account. Possible values include: /// 'Enabled', 'Disabled'</param> /// <param name="firewallAllowAzureIps">The current state of allowing /// or disallowing IPs originating within Azure through the firewall. /// If the firewall is disabled, this is not enforced. Possible values /// include: 'Enabled', 'Disabled'</param> /// <param name="trustedIdProviders">The list of trusted identity /// providers associated with this Data Lake Store account.</param> /// <param name="trustedIdProviderState">The current state of the /// trusted identity provider feature for this Data Lake Store account. /// Possible values include: 'Enabled', 'Disabled'</param> /// <param name="newTier">The commitment tier to use for next month. /// Possible values include: 'Consumption', 'Commitment_1TB', /// 'Commitment_10TB', 'Commitment_100TB', 'Commitment_500TB', /// 'Commitment_1PB', 'Commitment_5PB'</param> public CreateDataLakeStoreAccountParameters(string location, IDictionary <string, string> tags = default(IDictionary <string, string>), EncryptionIdentity identity = default(EncryptionIdentity), string defaultGroup = default(string), EncryptionConfig encryptionConfig = default(EncryptionConfig), EncryptionState?encryptionState = default(EncryptionState?), IList <CreateFirewallRuleWithAccountParameters> firewallRules = default(IList <CreateFirewallRuleWithAccountParameters>), IList <CreateVirtualNetworkRuleWithAccountParameters> virtualNetworkRules = default(IList <CreateVirtualNetworkRuleWithAccountParameters>), FirewallState?firewallState = default(FirewallState?), FirewallAllowAzureIpsState?firewallAllowAzureIps = default(FirewallAllowAzureIpsState?), IList <CreateTrustedIdProviderWithAccountParameters> trustedIdProviders = default(IList <CreateTrustedIdProviderWithAccountParameters>), TrustedIdProviderState?trustedIdProviderState = default(TrustedIdProviderState?), TierType?newTier = default(TierType?)) { Location = location; Tags = tags; Identity = identity; DefaultGroup = defaultGroup; EncryptionConfig = encryptionConfig; EncryptionState = encryptionState; FirewallRules = firewallRules; VirtualNetworkRules = virtualNetworkRules; FirewallState = firewallState; FirewallAllowAzureIps = firewallAllowAzureIps; TrustedIdProviders = trustedIdProviders; TrustedIdProviderState = trustedIdProviderState; NewTier = newTier; CustomInit(); }
/// <summary> /// Validate the object. /// </summary> /// <exception cref="ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (Location == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Location"); } if (EncryptionConfig != null) { EncryptionConfig.Validate(); } if (FirewallRules != null) { foreach (var element in FirewallRules) { if (element != null) { element.Validate(); } } } if (VirtualNetworkRules != null) { foreach (var element1 in VirtualNetworkRules) { if (element1 != null) { element1.Validate(); } } } if (TrustedIdProviders != null) { foreach (var element2 in TrustedIdProviders) { if (element2 != null) { element2.Validate(); } } } }
/// <summary> /// Initializes a new instance of the DataLakeStoreAccount class. /// </summary> /// <param name="id">The resource identifier.</param> /// <param name="name">The resource name.</param> /// <param name="type">The resource type.</param> /// <param name="location">The resource location.</param> /// <param name="tags">The resource tags.</param> /// <param name="identity">The Key Vault encryption identity, if /// any.</param> /// <param name="accountId">The unique identifier associated with this /// Data Lake Store account.</param> /// <param name="provisioningState">The provisioning status of the Data /// Lake Store account. Possible values include: 'Failed', 'Creating', /// 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', /// 'Deleting', 'Deleted', 'Undeleting', 'Canceled'</param> /// <param name="state">The state of the Data Lake Store account. /// Possible values include: 'Active', 'Suspended'</param> /// <param name="creationTime">The account creation time.</param> /// <param name="lastModifiedTime">The account last modified /// time.</param> /// <param name="endpoint">The full CName endpoint for this /// account.</param> /// <param name="defaultGroup">The default owner group for all new /// folders and files created in the Data Lake Store account.</param> /// <param name="encryptionConfig">The Key Vault encryption /// configuration.</param> /// <param name="encryptionState">The current state of encryption for /// this Data Lake Store account. Possible values include: 'Enabled', /// 'Disabled'</param> /// <param name="encryptionProvisioningState">The current state of /// encryption provisioning for this Data Lake Store account. Possible /// values include: 'Creating', 'Succeeded'</param> /// <param name="firewallRules">The list of firewall rules associated /// with this Data Lake Store account.</param> /// <param name="virtualNetworkRules">The list of virtual network rules /// associated with this Data Lake Store account.</param> /// <param name="firewallState">The current state of the IP address /// firewall for this Data Lake Store account. Possible values include: /// 'Enabled', 'Disabled'</param> /// <param name="firewallAllowAzureIps">The current state of allowing /// or disallowing IPs originating within Azure through the firewall. /// If the firewall is disabled, this is not enforced. Possible values /// include: 'Enabled', 'Disabled'</param> /// <param name="trustedIdProviders">The list of trusted identity /// providers associated with this Data Lake Store account.</param> /// <param name="trustedIdProviderState">The current state of the /// trusted identity provider feature for this Data Lake Store account. /// Possible values include: 'Enabled', 'Disabled'</param> /// <param name="newTier">The commitment tier to use for next month. /// Possible values include: 'Consumption', 'Commitment_1TB', /// 'Commitment_10TB', 'Commitment_100TB', 'Commitment_500TB', /// 'Commitment_1PB', 'Commitment_5PB'</param> /// <param name="currentTier">The commitment tier in use for the /// current month. Possible values include: 'Consumption', /// 'Commitment_1TB', 'Commitment_10TB', 'Commitment_100TB', /// 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB'</param> public DataLakeStoreAccount(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), EncryptionIdentity identity = default(EncryptionIdentity), System.Guid?accountId = default(System.Guid?), DataLakeStoreAccountStatus?provisioningState = default(DataLakeStoreAccountStatus?), DataLakeStoreAccountState?state = default(DataLakeStoreAccountState?), System.DateTime?creationTime = default(System.DateTime?), System.DateTime?lastModifiedTime = default(System.DateTime?), string endpoint = default(string), string defaultGroup = default(string), EncryptionConfig encryptionConfig = default(EncryptionConfig), EncryptionState?encryptionState = default(EncryptionState?), EncryptionProvisioningState?encryptionProvisioningState = default(EncryptionProvisioningState?), IList <FirewallRule> firewallRules = default(IList <FirewallRule>), IList <VirtualNetworkRule> virtualNetworkRules = default(IList <VirtualNetworkRule>), FirewallState?firewallState = default(FirewallState?), FirewallAllowAzureIpsState?firewallAllowAzureIps = default(FirewallAllowAzureIpsState?), IList <TrustedIdProvider> trustedIdProviders = default(IList <TrustedIdProvider>), TrustedIdProviderState?trustedIdProviderState = default(TrustedIdProviderState?), TierType?newTier = default(TierType?), TierType?currentTier = default(TierType?)) : base(id, name, type, location, tags) { Identity = identity; AccountId = accountId; ProvisioningState = provisioningState; State = state; CreationTime = creationTime; LastModifiedTime = lastModifiedTime; Endpoint = endpoint; DefaultGroup = defaultGroup; EncryptionConfig = encryptionConfig; EncryptionState = encryptionState; EncryptionProvisioningState = encryptionProvisioningState; FirewallRules = firewallRules; VirtualNetworkRules = virtualNetworkRules; FirewallState = firewallState; FirewallAllowAzureIps = firewallAllowAzureIps; TrustedIdProviders = trustedIdProviders; TrustedIdProviderState = trustedIdProviderState; NewTier = newTier; CurrentTier = currentTier; CustomInit(); }