internal DatabaseAccountCreateOrUpdateContent(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary <string, string> tags, AzureLocation location, DatabaseAccountKind?kind, ManagedServiceIdentity identity, ConsistencyPolicy consistencyPolicy, IList <DatabaseAccountLocation> locations, string databaseAccountOfferType, IList <IPAddressOrRange> ipRules, bool?isVirtualNetworkFilterEnabled, bool?enableAutomaticFailover, IList <DatabaseAccountCapability> capabilities, IList <VirtualNetworkRule> virtualNetworkRules, bool?enableMultipleWriteLocations, bool?enableCassandraConnector, ConnectorOffer?connectorOffer, bool?disableKeyBasedMetadataWriteAccess, Uri keyVaultKeyUri, string defaultIdentity, PublicNetworkAccess?publicNetworkAccess, bool?enableFreeTier, ApiProperties apiProperties, bool?enableAnalyticalStorage, AnalyticalStorageConfiguration analyticalStorageConfiguration, CreateMode?createMode, BackupPolicy backupPolicy, IList <CorsPolicy> cors, NetworkAclBypass?networkAclBypass, IList <string> networkAclBypassResourceIds, bool?disableLocalAuth, RestoreParameters restoreParameters, Capacity capacity) : base(id, name, resourceType, systemData, tags, location)
 {
     Kind                               = kind;
     Identity                           = identity;
     ConsistencyPolicy                  = consistencyPolicy;
     Locations                          = locations;
     DatabaseAccountOfferType           = databaseAccountOfferType;
     IPRules                            = ipRules;
     IsVirtualNetworkFilterEnabled      = isVirtualNetworkFilterEnabled;
     EnableAutomaticFailover            = enableAutomaticFailover;
     Capabilities                       = capabilities;
     VirtualNetworkRules                = virtualNetworkRules;
     EnableMultipleWriteLocations       = enableMultipleWriteLocations;
     EnableCassandraConnector           = enableCassandraConnector;
     ConnectorOffer                     = connectorOffer;
     DisableKeyBasedMetadataWriteAccess = disableKeyBasedMetadataWriteAccess;
     KeyVaultKeyUri                     = keyVaultKeyUri;
     DefaultIdentity                    = defaultIdentity;
     PublicNetworkAccess                = publicNetworkAccess;
     EnableFreeTier                     = enableFreeTier;
     ApiProperties                      = apiProperties;
     EnableAnalyticalStorage            = enableAnalyticalStorage;
     AnalyticalStorageConfiguration     = analyticalStorageConfiguration;
     CreateMode                         = createMode;
     BackupPolicy                       = backupPolicy;
     Cors                               = cors;
     NetworkAclBypass                   = networkAclBypass;
     NetworkAclBypassResourceIds        = networkAclBypassResourceIds;
     DisableLocalAuth                   = disableLocalAuth;
     RestoreParameters                  = restoreParameters;
     Capacity                           = capacity;
 }
 /// <summary>
 /// Initializes a new instance of the VaultPatchProperties class.
 /// </summary>
 /// <param name="tenantId">The Azure Active Directory tenant ID that
 /// should be used for authenticating requests to the key
 /// vault.</param>
 /// <param name="sku">SKU details</param>
 /// <param name="accessPolicies">An array of 0 to 16 identities that
 /// have access to the key vault. All identities in the array must use
 /// the same tenant ID as the key vault's tenant ID.</param>
 /// <param name="enabledForDeployment">Property to specify whether
 /// Azure Virtual Machines are permitted to retrieve certificates
 /// stored as secrets from the key vault.</param>
 /// <param name="enabledForDiskEncryption">Property to specify whether
 /// Azure Disk Encryption is permitted to retrieve secrets from the
 /// vault and unwrap keys.</param>
 /// <param name="enabledForTemplateDeployment">Property to specify
 /// whether Azure Resource Manager is permitted to retrieve secrets
 /// from the key vault.</param>
 /// <param name="enableSoftDelete">Property to specify whether the
 /// 'soft delete' functionality is enabled for this key vault. It does
 /// not accept false value.</param>
 /// <param name="createMode">The vault's create mode to indicate
 /// whether the vault need to be recovered or not. Possible values
 /// include: 'recover', 'default'</param>
 public VaultPatchProperties(System.Guid?tenantId = default(System.Guid?), Sku sku = default(Sku), IList <AccessPolicyEntry> accessPolicies = default(IList <AccessPolicyEntry>), bool?enabledForDeployment = default(bool?), bool?enabledForDiskEncryption = default(bool?), bool?enabledForTemplateDeployment = default(bool?), bool?enableSoftDelete = default(bool?), CreateMode?createMode = default(CreateMode?))
 {
     TenantId                     = tenantId;
     Sku                          = sku;
     AccessPolicies               = accessPolicies;
     EnabledForDeployment         = enabledForDeployment;
     EnabledForDiskEncryption     = enabledForDiskEncryption;
     EnabledForTemplateDeployment = enabledForTemplateDeployment;
     EnableSoftDelete             = enableSoftDelete;
     CreateMode                   = createMode;
     CustomInit();
 }
 internal SqlPool(string id, string name, string type, IDictionary <string, string> tags, string location, Sku sku, long?maxSizeBytes, string collation, string sourceDatabaseId, string recoverableDatabaseId, string provisioningState, string status, string restorePointInTime, CreateMode?createMode, DateTimeOffset?creationDate) : base(id, name, type, tags, location)
 {
     Sku                   = sku;
     MaxSizeBytes          = maxSizeBytes;
     Collation             = collation;
     SourceDatabaseId      = sourceDatabaseId;
     RecoverableDatabaseId = recoverableDatabaseId;
     ProvisioningState     = provisioningState;
     Status                = status;
     RestorePointInTime    = restorePointInTime;
     CreateMode            = createMode;
     CreationDate          = creationDate;
 }
示例#4
0
 internal VaultPatchProperties(Guid?tenantId, Sku sku, IList <AccessPolicyEntry> accessPolicies, bool?enabledForDeployment, bool?enabledForDiskEncryption, bool?enabledForTemplateDeployment, bool?enableSoftDelete, CreateMode?createMode, bool?enablePurgeProtection, NetworkRuleSet networkAcls)
 {
     TenantId                     = tenantId;
     Sku                          = sku;
     AccessPolicies               = accessPolicies;
     EnabledForDeployment         = enabledForDeployment;
     EnabledForDiskEncryption     = enabledForDiskEncryption;
     EnabledForTemplateDeployment = enabledForTemplateDeployment;
     EnableSoftDelete             = enableSoftDelete;
     CreateMode                   = createMode;
     EnablePurgeProtection        = enablePurgeProtection;
     NetworkAcls                  = networkAcls;
 }
示例#5
0
 /// <summary>
 /// Initializes a new instance of the ManagedHsmProperties class.
 /// </summary>
 /// <param name="tenantId">The Azure Active Directory tenant ID that
 /// should be used for authenticating requests to the managed HSM
 /// pool.</param>
 /// <param name="initialAdminObjectIds">Array of initial administrators
 /// object ids for this managed hsm pool.</param>
 /// <param name="hsmUri">The URI of the managed hsm pool for performing
 /// operations on keys.</param>
 /// <param name="enableSoftDelete">Property to specify whether the
 /// 'soft delete' functionality is enabled for this managed HSM pool.
 /// If it's not set to any value(true or false) when creating new
 /// managed HSM pool, it will be set to true by default. Once set to
 /// true, it cannot be reverted to false.</param>
 /// <param name="softDeleteRetentionInDays">softDelete data retention
 /// days. It accepts &gt;=7 and &lt;=90.</param>
 /// <param name="enablePurgeProtection">Property specifying whether
 /// protection against purge is enabled for this managed HSM pool.
 /// Setting this property to true activates protection against purge
 /// for this managed HSM pool and its content - only the Managed HSM
 /// service may initiate a hard, irrecoverable deletion. The setting is
 /// effective only if soft delete is also enabled. Enabling this
 /// functionality is irreversible.</param>
 /// <param name="createMode">The create mode to indicate whether the
 /// resource is being created or is being recovered from a deleted
 /// resource. Possible values include: 'recover', 'default'</param>
 /// <param name="statusMessage">Resource Status Message.</param>
 /// <param name="provisioningState">Provisioning state. Possible values
 /// include: 'Succeeded', 'Provisioning', 'Failed', 'Updating',
 /// 'Deleting', 'Activated', 'SecurityDomainRestore',
 /// 'Restoring'</param>
 public ManagedHsmProperties(System.Guid?tenantId = default(System.Guid?), IList <string> initialAdminObjectIds = default(IList <string>), string hsmUri = default(string), bool?enableSoftDelete = default(bool?), int?softDeleteRetentionInDays = default(int?), bool?enablePurgeProtection = default(bool?), CreateMode?createMode = default(CreateMode?), string statusMessage = default(string), string provisioningState = default(string))
 {
     TenantId = tenantId;
     InitialAdminObjectIds = initialAdminObjectIds;
     HsmUri                    = hsmUri;
     EnableSoftDelete          = enableSoftDelete;
     SoftDeleteRetentionInDays = softDeleteRetentionInDays;
     EnablePurgeProtection     = enablePurgeProtection;
     CreateMode                = createMode;
     StatusMessage             = statusMessage;
     ProvisioningState         = provisioningState;
     CustomInit();
 }
示例#6
0
 /// <summary>
 /// Initializes a new instance of the VaultProperties class.
 /// </summary>
 /// <param name="tenantId">The Azure Active Directory tenant ID that
 /// should be used for authenticating requests to the key
 /// vault.</param>
 /// <param name="sku">SKU details</param>
 /// <param name="accessPolicies">An array of 0 to 16 identities that
 /// have access to the key vault. All identities in the array must use
 /// the same tenant ID as the key vault's tenant ID.</param>
 /// <param name="vaultUri">The URI of the vault for performing
 /// operations on keys and secrets.</param>
 /// <param name="enabledForDeployment">Property to specify whether
 /// Azure Virtual Machines are permitted to retrieve certificates
 /// stored as secrets from the key vault.</param>
 /// <param name="enabledForDiskEncryption">Property to specify whether
 /// Azure Disk Encryption is permitted to retrieve secrets from the
 /// vault and unwrap keys.</param>
 /// <param name="enabledForTemplateDeployment">Property to specify
 /// whether Azure Resource Manager is permitted to retrieve secrets
 /// from the key vault.</param>
 /// <param name="enableSoftDelete">Property specifying whether
 /// recoverable deletion is enabled for this key vault. Setting this
 /// property to true activates the soft delete feature, whereby vaults
 /// or vault entities can be recovered after deletion. Enabling this
 /// functionality is irreversible - that is, the property does not
 /// accept false as its value.</param>
 /// <param name="createMode">The vault's create mode to indicate
 /// whether the vault need to be recovered or not. Possible values
 /// include: 'recover', 'default'</param>
 /// <param name="enablePurgeProtection">Property specifying whether
 /// protection against purge is enabled for this vault. Setting this
 /// property to true activates protection against purge for this vault
 /// and its content - only the Key Vault service may initiate a hard,
 /// irrecoverable deletion. The setting is effective only if soft
 /// delete is also enabled. Enabling this functionality is irreversible
 /// - that is, the property does not accept false as its value.</param>
 public VaultProperties(System.Guid tenantId, Sku sku, IList <AccessPolicyEntry> accessPolicies = default(IList <AccessPolicyEntry>), string vaultUri = default(string), bool?enabledForDeployment = default(bool?), bool?enabledForDiskEncryption = default(bool?), bool?enabledForTemplateDeployment = default(bool?), bool?enableSoftDelete = default(bool?), CreateMode?createMode = default(CreateMode?), bool?enablePurgeProtection = default(bool?))
 {
     TenantId                     = tenantId;
     Sku                          = sku;
     AccessPolicies               = accessPolicies;
     VaultUri                     = vaultUri;
     EnabledForDeployment         = enabledForDeployment;
     EnabledForDiskEncryption     = enabledForDiskEncryption;
     EnabledForTemplateDeployment = enabledForTemplateDeployment;
     EnableSoftDelete             = enableSoftDelete;
     CreateMode                   = createMode;
     EnablePurgeProtection        = enablePurgeProtection;
     CustomInit();
 }
 internal ConfigurationStoreData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary <string, string> tags, AzureLocation location, ManagedServiceIdentity identity, AppConfigurationSku sku, ProvisioningState?provisioningState, DateTimeOffset?creationOn, string endpoint, Models.EncryptionProperties encryption, IReadOnlyList <PrivateEndpointConnectionReference> privateEndpointConnections, PublicNetworkAccess?publicNetworkAccess, bool?disableLocalAuth, int?softDeleteRetentionInDays, bool?enablePurgeProtection, CreateMode?createMode) : base(id, name, resourceType, systemData, tags, location)
 {
     Identity                   = identity;
     Sku                        = sku;
     ProvisioningState          = provisioningState;
     CreationOn                 = creationOn;
     Endpoint                   = endpoint;
     Encryption                 = encryption;
     PrivateEndpointConnections = privateEndpointConnections;
     PublicNetworkAccess        = publicNetworkAccess;
     DisableLocalAuth           = disableLocalAuth;
     SoftDeleteRetentionInDays  = softDeleteRetentionInDays;
     EnablePurgeProtection      = enablePurgeProtection;
     CreateMode                 = createMode;
 }
 internal VaultProperties(Guid tenantId, Sku sku, IList <AccessPolicyEntry> accessPolicies, string vaultUri, bool?enabledForDeployment, bool?enabledForDiskEncryption, bool?enabledForTemplateDeployment, bool?enableSoftDelete, CreateMode?createMode, bool?enablePurgeProtection, NetworkRuleSet networkAcls, IList <PrivateEndpointConnectionItem> privateEndpointConnections)
 {
     TenantId                     = tenantId;
     Sku                          = sku;
     AccessPolicies               = accessPolicies;
     VaultUri                     = vaultUri;
     EnabledForDeployment         = enabledForDeployment;
     EnabledForDiskEncryption     = enabledForDiskEncryption;
     EnabledForTemplateDeployment = enabledForTemplateDeployment;
     EnableSoftDelete             = enableSoftDelete;
     CreateMode                   = createMode;
     EnablePurgeProtection        = enablePurgeProtection;
     NetworkAcls                  = networkAcls;
     PrivateEndpointConnections   = privateEndpointConnections;
 }
 /// <summary>
 /// Initializes a new instance of the VaultPatchProperties class.
 /// </summary>
 /// <param name="tenantId">The Azure Active Directory tenant ID that
 /// should be used for authenticating requests to the key
 /// vault.</param>
 /// <param name="sku">SKU details</param>
 /// <param name="accessPolicies">An array of 0 to 16 identities that
 /// have access to the key vault. All identities in the array must use
 /// the same tenant ID as the key vault's tenant ID.</param>
 /// <param name="enabledForDeployment">Property to specify whether
 /// Azure Virtual Machines are permitted to retrieve certificates
 /// stored as secrets from the key vault.</param>
 /// <param name="enabledForDiskEncryption">Property to specify whether
 /// Azure Disk Encryption is permitted to retrieve secrets from the
 /// vault and unwrap keys.</param>
 /// <param name="enabledForTemplateDeployment">Property to specify
 /// whether Azure Resource Manager is permitted to retrieve secrets
 /// from the key vault.</param>
 /// <param name="enableSoftDelete">Property to specify whether the
 /// 'soft delete' functionality is enabled for this key vault. Once set
 /// to true, it cannot be reverted to false.</param>
 /// <param name="enableRbacAuthorization">Property that controls how
 /// data actions are authorized. When true, the key vault will use Role
 /// Based Access Control (RBAC) for authorization of data actions, and
 /// the access policies specified in vault properties will be  ignored
 /// (warning: this is a preview feature). When false, the key vault
 /// will use the access policies specified in vault properties, and any
 /// policy stored on Azure Resource Manager will be ignored. If null or
 /// not specified, the value of this property will not change.</param>
 /// <param name="softDeleteRetentionInDays">softDelete data retention
 /// days. It accepts &gt;=7 and &lt;=90.</param>
 /// <param name="createMode">The vault's create mode to indicate
 /// whether the vault need to be recovered or not. Possible values
 /// include: 'recover', 'default'</param>
 /// <param name="enablePurgeProtection">Property specifying whether
 /// protection against purge is enabled for this vault. Setting this
 /// property to true activates protection against purge for this vault
 /// and its content - only the Key Vault service may initiate a hard,
 /// irrecoverable deletion. The setting is effective only if soft
 /// delete is also enabled. Enabling this functionality is irreversible
 /// - that is, the property does not accept false as its value.</param>
 /// <param name="networkAcls">A collection of rules governing the
 /// accessibility of the vault from specific network locations.</param>
 public VaultPatchProperties(System.Guid?tenantId = default(System.Guid?), Sku sku = default(Sku), IList <AccessPolicyEntry> accessPolicies = default(IList <AccessPolicyEntry>), bool?enabledForDeployment = default(bool?), bool?enabledForDiskEncryption = default(bool?), bool?enabledForTemplateDeployment = default(bool?), bool?enableSoftDelete = default(bool?), bool?enableRbacAuthorization = default(bool?), int?softDeleteRetentionInDays = default(int?), CreateMode?createMode = default(CreateMode?), bool?enablePurgeProtection = default(bool?), NetworkRuleSet networkAcls = default(NetworkRuleSet))
 {
     TenantId                     = tenantId;
     Sku                          = sku;
     AccessPolicies               = accessPolicies;
     EnabledForDeployment         = enabledForDeployment;
     EnabledForDiskEncryption     = enabledForDiskEncryption;
     EnabledForTemplateDeployment = enabledForTemplateDeployment;
     EnableSoftDelete             = enableSoftDelete;
     EnableRbacAuthorization      = enableRbacAuthorization;
     SoftDeleteRetentionInDays    = softDeleteRetentionInDays;
     CreateMode                   = createMode;
     EnablePurgeProtection        = enablePurgeProtection;
     NetworkAcls                  = networkAcls;
     CustomInit();
 }
 internal ManagedHsmProperties(Guid?tenantId, IList <string> initialAdminObjectIds, Uri hsmUri, bool?enableSoftDelete, int?softDeleteRetentionInDays, bool?enablePurgeProtection, CreateMode?createMode, string statusMessage, HsmProvisioningState?provisioningState, ManagedHsmNetworkRuleSet networkRuleSet, IReadOnlyList <ManagedHsmPrivateEndpointConnectionItem> privateEndpointConnections, PublicNetworkAccess?publicNetworkAccess, DateTimeOffset?scheduledPurgeOn)
 {
     TenantId = tenantId;
     InitialAdminObjectIds = initialAdminObjectIds;
     HsmUri                     = hsmUri;
     EnableSoftDelete           = enableSoftDelete;
     SoftDeleteRetentionInDays  = softDeleteRetentionInDays;
     EnablePurgeProtection      = enablePurgeProtection;
     CreateMode                 = createMode;
     StatusMessage              = statusMessage;
     ProvisioningState          = provisioningState;
     NetworkRuleSet             = networkRuleSet;
     PrivateEndpointConnections = privateEndpointConnections;
     PublicNetworkAccess        = publicNetworkAccess;
     ScheduledPurgeOn           = scheduledPurgeOn;
 }
示例#11
0
 internal SqlDatabaseData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary <string, string> tags, AzureLocation location, SqlSku sku, string kind, string managedBy, DatabaseIdentity identity, CreateMode?createMode, string collation, long?maxSizeBytes, SampleSchemaName?sampleName, string elasticPoolId, string sourceDatabaseId, DatabaseStatus?status, Guid?databaseId, DateTimeOffset?creationOn, string currentServiceObjectiveName, string requestedServiceObjectiveName, string defaultSecondaryLocation, string failoverGroupId, DateTimeOffset?restorePointInOn, DateTimeOffset?sourceDatabaseDeletionOn, string recoveryServicesRecoveryPointId, string longTermRetentionBackupResourceId, string recoverableDatabaseId, string restorableDroppedDatabaseId, CatalogCollationType?catalogCollation, bool?zoneRedundant, DatabaseLicenseType?licenseType, long?maxLogSizeBytes, DateTimeOffset?earliestRestoreOn, DatabaseReadScale?readScale, int?highAvailabilityReplicaCount, SecondaryType?secondaryType, SqlSku currentSku, int?autoPauseDelay, BackupStorageRedundancy?currentBackupStorageRedundancy, BackupStorageRedundancy?requestedBackupStorageRedundancy, double?minCapacity, DateTimeOffset?pausedOn, DateTimeOffset?resumedOn, string maintenanceConfigurationId, bool?isLedgerOn, bool?isInfraEncryptionEnabled, Guid?federatedClientId, string sourceResourceId) : base(id, name, resourceType, systemData, tags, location)
 {
     Sku                               = sku;
     Kind                              = kind;
     ManagedBy                         = managedBy;
     Identity                          = identity;
     CreateMode                        = createMode;
     Collation                         = collation;
     MaxSizeBytes                      = maxSizeBytes;
     SampleName                        = sampleName;
     ElasticPoolId                     = elasticPoolId;
     SourceDatabaseId                  = sourceDatabaseId;
     Status                            = status;
     DatabaseId                        = databaseId;
     CreationOn                        = creationOn;
     CurrentServiceObjectiveName       = currentServiceObjectiveName;
     RequestedServiceObjectiveName     = requestedServiceObjectiveName;
     DefaultSecondaryLocation          = defaultSecondaryLocation;
     FailoverGroupId                   = failoverGroupId;
     RestorePointInOn                  = restorePointInOn;
     SourceDatabaseDeletionOn          = sourceDatabaseDeletionOn;
     RecoveryServicesRecoveryPointId   = recoveryServicesRecoveryPointId;
     LongTermRetentionBackupResourceId = longTermRetentionBackupResourceId;
     RecoverableDatabaseId             = recoverableDatabaseId;
     RestorableDroppedDatabaseId       = restorableDroppedDatabaseId;
     CatalogCollation                  = catalogCollation;
     ZoneRedundant                     = zoneRedundant;
     LicenseType                       = licenseType;
     MaxLogSizeBytes                   = maxLogSizeBytes;
     EarliestRestoreOn                 = earliestRestoreOn;
     ReadScale                         = readScale;
     HighAvailabilityReplicaCount      = highAvailabilityReplicaCount;
     SecondaryType                     = secondaryType;
     CurrentSku                        = currentSku;
     AutoPauseDelay                    = autoPauseDelay;
     CurrentBackupStorageRedundancy    = currentBackupStorageRedundancy;
     RequestedBackupStorageRedundancy  = requestedBackupStorageRedundancy;
     MinCapacity                       = minCapacity;
     PausedOn                          = pausedOn;
     ResumedOn                         = resumedOn;
     MaintenanceConfigurationId        = maintenanceConfigurationId;
     IsLedgerOn                        = isLedgerOn;
     IsInfraEncryptionEnabled          = isInfraEncryptionEnabled;
     FederatedClientId                 = federatedClientId;
     SourceResourceId                  = sourceResourceId;
 }
 /// <summary>
 /// Initializes a new instance of the ManagedHsmProperties class.
 /// </summary>
 /// <param name="tenantId">The Azure Active Directory tenant ID that
 /// should be used for authenticating requests to the managed HSM
 /// pool.</param>
 /// <param name="initialAdminObjectIds">Array of initial administrators
 /// object ids for this managed hsm pool.</param>
 /// <param name="hsmUri">The URI of the managed hsm pool for performing
 /// operations on keys.</param>
 /// <param name="enableSoftDelete">Property to specify whether the
 /// 'soft delete' functionality is enabled for this managed HSM pool.
 /// If it's not set to any value(true or false) when creating new
 /// managed HSM pool, it will be set to true by default. Once set to
 /// true, it cannot be reverted to false.</param>
 /// <param name="softDeleteRetentionInDays">softDelete data retention
 /// days. It accepts &gt;=7 and &lt;=90.</param>
 /// <param name="enablePurgeProtection">Property specifying whether
 /// protection against purge is enabled for this managed HSM pool.
 /// Setting this property to true activates protection against purge
 /// for this managed HSM pool and its content - only the Managed HSM
 /// service may initiate a hard, irrecoverable deletion. The setting is
 /// effective only if soft delete is also enabled. Enabling this
 /// functionality is irreversible.</param>
 /// <param name="createMode">The create mode to indicate whether the
 /// resource is being created or is being recovered from a deleted
 /// resource. Possible values include: 'recover', 'default'</param>
 /// <param name="statusMessage">Resource Status Message.</param>
 /// <param name="provisioningState">Provisioning state. Possible values
 /// include: 'Succeeded', 'Provisioning', 'Failed', 'Updating',
 /// 'Deleting', 'Activated', 'SecurityDomainRestore',
 /// 'Restoring'</param>
 /// <param name="networkAcls">Rules governing the accessibility of the
 /// key vault from specific network locations.</param>
 /// <param name="privateEndpointConnections">List of private endpoint
 /// connections associated with the managed hsm pool.</param>
 /// <param name="publicNetworkAccess">Control permission for data plane
 /// traffic coming from public networks while private endpoint is
 /// enabled. Possible values include: 'Enabled', 'Disabled'</param>
 /// <param name="scheduledPurgeDate">The scheduled purge date in
 /// UTC.</param>
 public ManagedHsmProperties(System.Guid?tenantId = default(System.Guid?), IList <string> initialAdminObjectIds = default(IList <string>), string hsmUri = default(string), bool?enableSoftDelete = default(bool?), int?softDeleteRetentionInDays = default(int?), bool?enablePurgeProtection = default(bool?), CreateMode?createMode = default(CreateMode?), string statusMessage = default(string), string provisioningState = default(string), MHSMNetworkRuleSet networkAcls = default(MHSMNetworkRuleSet), IList <MHSMPrivateEndpointConnectionItem> privateEndpointConnections = default(IList <MHSMPrivateEndpointConnectionItem>), string publicNetworkAccess = default(string), System.DateTime?scheduledPurgeDate = default(System.DateTime?))
 {
     TenantId = tenantId;
     InitialAdminObjectIds = initialAdminObjectIds;
     HsmUri                     = hsmUri;
     EnableSoftDelete           = enableSoftDelete;
     SoftDeleteRetentionInDays  = softDeleteRetentionInDays;
     EnablePurgeProtection      = enablePurgeProtection;
     CreateMode                 = createMode;
     StatusMessage              = statusMessage;
     ProvisioningState          = provisioningState;
     NetworkAcls                = networkAcls;
     PrivateEndpointConnections = privateEndpointConnections;
     PublicNetworkAccess        = publicNetworkAccess;
     ScheduledPurgeDate         = scheduledPurgeDate;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the VaultProperties class.
 /// </summary>
 /// <param name="tenantId">The Azure Active Directory tenant ID that
 /// should be used for authenticating requests to the key
 /// vault.</param>
 /// <param name="sku">SKU details</param>
 /// <param name="accessPolicies">An array of 0 to 1024 identities that
 /// have access to the key vault. All identities in the array must use
 /// the same tenant ID as the key vault's tenant ID. When `createMode`
 /// is set to `recover`, access policies are not required. Otherwise,
 /// access policies are required.</param>
 /// <param name="vaultUri">The URI of the vault for performing
 /// operations on keys and secrets.</param>
 /// <param name="enabledForDeployment">Property to specify whether
 /// Azure Virtual Machines are permitted to retrieve certificates
 /// stored as secrets from the key vault.</param>
 /// <param name="enabledForDiskEncryption">Property to specify whether
 /// Azure Disk Encryption is permitted to retrieve secrets from the
 /// vault and unwrap keys.</param>
 /// <param name="enabledForTemplateDeployment">Property to specify
 /// whether Azure Resource Manager is permitted to retrieve secrets
 /// from the key vault.</param>
 /// <param name="enableSoftDelete">Property to specify whether the
 /// 'soft delete' functionality is enabled for this key vault. If it's
 /// not set to any value(true or false) when creating new key vault, it
 /// will be set to true by default. Once set to true, it cannot be
 /// reverted to false.</param>
 /// <param name="softDeleteRetentionInDays">softDelete data retention
 /// days. It accepts &gt;=7 and &lt;=90.</param>
 /// <param name="enableRbacAuthorization">Property that controls how
 /// data actions are authorized. When true, the key vault will use Role
 /// Based Access Control (RBAC) for authorization of data actions, and
 /// the access policies specified in vault properties will be  ignored
 /// (warning: this is a preview feature). When false, the key vault
 /// will use the access policies specified in vault properties, and any
 /// policy stored on Azure Resource Manager will be ignored. If null or
 /// not specified, the vault is created with the default value of
 /// false. Note that management actions are always authorized with
 /// RBAC.</param>
 /// <param name="createMode">The vault's create mode to indicate
 /// whether the vault need to be recovered or not. Possible values
 /// include: 'recover', 'default'</param>
 /// <param name="enablePurgeProtection">Property specifying whether
 /// protection against purge is enabled for this vault. Setting this
 /// property to true activates protection against purge for this vault
 /// and its content - only the Key Vault service may initiate a hard,
 /// irrecoverable deletion. The setting is effective only if soft
 /// delete is also enabled. Enabling this functionality is irreversible
 /// - that is, the property does not accept false as its value.</param>
 /// <param name="networkAcls">Rules governing the accessibility of the
 /// key vault from specific network locations.</param>
 /// <param name="privateEndpointConnections">List of private endpoint
 /// connections associated with the key vault.</param>
 public VaultProperties(System.Guid tenantId, Sku sku, IList <AccessPolicyEntry> accessPolicies = default(IList <AccessPolicyEntry>), string vaultUri = default(string), bool?enabledForDeployment = default(bool?), bool?enabledForDiskEncryption = default(bool?), bool?enabledForTemplateDeployment = default(bool?), bool?enableSoftDelete = default(bool?), int?softDeleteRetentionInDays = default(int?), bool?enableRbacAuthorization = default(bool?), CreateMode?createMode = default(CreateMode?), bool?enablePurgeProtection = default(bool?), NetworkRuleSet networkAcls = default(NetworkRuleSet), IList <PrivateEndpointConnectionItem> privateEndpointConnections = default(IList <PrivateEndpointConnectionItem>))
 {
     TenantId                     = tenantId;
     Sku                          = sku;
     AccessPolicies               = accessPolicies;
     VaultUri                     = vaultUri;
     EnabledForDeployment         = enabledForDeployment;
     EnabledForDiskEncryption     = enabledForDiskEncryption;
     EnabledForTemplateDeployment = enabledForTemplateDeployment;
     EnableSoftDelete             = enableSoftDelete;
     SoftDeleteRetentionInDays    = softDeleteRetentionInDays;
     EnableRbacAuthorization      = enableRbacAuthorization;
     CreateMode                   = createMode;
     EnablePurgeProtection        = enablePurgeProtection;
     NetworkAcls                  = networkAcls;
     PrivateEndpointConnections   = privateEndpointConnections;
     CustomInit();
 }
 internal VaultProperties(Guid tenantId, Sku sku, IList <AccessPolicyEntry> accessPolicies, string vaultUri, string hsmPoolResourceId, bool?enabledForDeployment, bool?enabledForDiskEncryption, bool?enabledForTemplateDeployment, bool?enableSoftDelete, int?softDeleteRetentionInDays, bool?enableRbacAuthorization, CreateMode?createMode, bool?enablePurgeProtection, NetworkRuleSet networkAcls, VaultProvisioningState?provisioningState, IReadOnlyList <PrivateEndpointConnectionItem> privateEndpointConnections)
 {
     TenantId                     = tenantId;
     Sku                          = sku;
     AccessPolicies               = accessPolicies;
     VaultUri                     = vaultUri;
     HsmPoolResourceId            = hsmPoolResourceId;
     EnabledForDeployment         = enabledForDeployment;
     EnabledForDiskEncryption     = enabledForDiskEncryption;
     EnabledForTemplateDeployment = enabledForTemplateDeployment;
     EnableSoftDelete             = enableSoftDelete;
     SoftDeleteRetentionInDays    = softDeleteRetentionInDays;
     EnableRbacAuthorization      = enableRbacAuthorization;
     CreateMode                   = createMode;
     EnablePurgeProtection        = enablePurgeProtection;
     NetworkAcls                  = networkAcls;
     ProvisioningState            = provisioningState;
     PrivateEndpointConnections   = privateEndpointConnections;
 }
示例#15
0
 internal DatabaseAccountData(ResourceIdentifier id, string name, ResourceType type, SystemData systemData, IDictionary <string, string> tags, AzureLocation location, DatabaseAccountKind?kind, ManagedServiceIdentity identity, string provisioningState, string documentEndpoint, string databaseAccountOfferType, IList <IpAddressOrRange> ipRules, bool?isVirtualNetworkFilterEnabled, bool?enableAutomaticFailover, ConsistencyPolicy consistencyPolicy, IList <DatabaseAccountCapability> capabilities, IReadOnlyList <DatabaseAccountLocation> writeLocations, IReadOnlyList <DatabaseAccountLocation> readLocations, IReadOnlyList <DatabaseAccountLocation> locations, IReadOnlyList <FailoverPolicy> failoverPolicies, IList <VirtualNetworkRule> virtualNetworkRules, IReadOnlyList <PrivateEndpointConnectionData> privateEndpointConnections, bool?enableMultipleWriteLocations, bool?enableCassandraConnector, ConnectorOffer?connectorOffer, bool?disableKeyBasedMetadataWriteAccess, Uri keyVaultKeyUri, string defaultIdentity, PublicNetworkAccess?publicNetworkAccess, bool?enableFreeTier, ApiProperties apiProperties, bool?enableAnalyticalStorage, AnalyticalStorageConfiguration analyticalStorageConfiguration, string instanceId, CreateMode?createMode, RestoreParameters restoreParameters, BackupPolicy backupPolicy, IList <CorsPolicy> cors, NetworkAclBypass?networkAclBypass, IList <string> networkAclBypassResourceIds, bool?disableLocalAuth, Capacity capacity) : base(id, name, type, systemData, tags, location)
 {
     Kind                               = kind;
     Identity                           = identity;
     ProvisioningState                  = provisioningState;
     DocumentEndpoint                   = documentEndpoint;
     DatabaseAccountOfferType           = databaseAccountOfferType;
     IpRules                            = ipRules;
     IsVirtualNetworkFilterEnabled      = isVirtualNetworkFilterEnabled;
     EnableAutomaticFailover            = enableAutomaticFailover;
     ConsistencyPolicy                  = consistencyPolicy;
     Capabilities                       = capabilities;
     WriteLocations                     = writeLocations;
     ReadLocations                      = readLocations;
     Locations                          = locations;
     FailoverPolicies                   = failoverPolicies;
     VirtualNetworkRules                = virtualNetworkRules;
     PrivateEndpointConnections         = privateEndpointConnections;
     EnableMultipleWriteLocations       = enableMultipleWriteLocations;
     EnableCassandraConnector           = enableCassandraConnector;
     ConnectorOffer                     = connectorOffer;
     DisableKeyBasedMetadataWriteAccess = disableKeyBasedMetadataWriteAccess;
     KeyVaultKeyUri                     = keyVaultKeyUri;
     DefaultIdentity                    = defaultIdentity;
     PublicNetworkAccess                = publicNetworkAccess;
     EnableFreeTier                     = enableFreeTier;
     ApiProperties                      = apiProperties;
     EnableAnalyticalStorage            = enableAnalyticalStorage;
     AnalyticalStorageConfiguration     = analyticalStorageConfiguration;
     InstanceId                         = instanceId;
     CreateMode                         = createMode;
     RestoreParameters                  = restoreParameters;
     BackupPolicy                       = backupPolicy;
     Cors                               = cors;
     NetworkAclBypass                   = networkAclBypass;
     NetworkAclBypassResourceIds        = networkAclBypassResourceIds;
     DisableLocalAuth                   = disableLocalAuth;
     Capacity                           = capacity;
 }
示例#16
0
 internal Database(string id, string name, string type, string location, IDictionary <string, string> tags, Sku sku, string kind, string managedBy, CreateMode?createMode, string collation, long?maxSizeBytes, SampleName?sampleName, string elasticPoolId, string sourceDatabaseId, DatabaseStatus?status, Guid?databaseId, DateTimeOffset?creationDate, string currentServiceObjectiveName, string requestedServiceObjectiveName, string defaultSecondaryLocation, string failoverGroupId, DateTimeOffset?restorePointInTime, DateTimeOffset?sourceDatabaseDeletionDate, string recoveryServicesRecoveryPointId, string longTermRetentionBackupResourceId, string recoverableDatabaseId, string restorableDroppedDatabaseId, CatalogCollationType?catalogCollation, bool?zoneRedundant, DatabaseLicenseType?licenseType, long?maxLogSizeBytes, DateTimeOffset?earliestRestoreDate, DatabaseReadScale?readScale, int?readReplicaCount, Sku currentSku, int?autoPauseDelay, double?minCapacity, DateTimeOffset?pausedDate, DateTimeOffset?resumedDate) : base(id, name, type, location, tags)
 {
     Sku                               = sku;
     Kind                              = kind;
     ManagedBy                         = managedBy;
     CreateMode                        = createMode;
     Collation                         = collation;
     MaxSizeBytes                      = maxSizeBytes;
     SampleName                        = sampleName;
     ElasticPoolId                     = elasticPoolId;
     SourceDatabaseId                  = sourceDatabaseId;
     Status                            = status;
     DatabaseId                        = databaseId;
     CreationDate                      = creationDate;
     CurrentServiceObjectiveName       = currentServiceObjectiveName;
     RequestedServiceObjectiveName     = requestedServiceObjectiveName;
     DefaultSecondaryLocation          = defaultSecondaryLocation;
     FailoverGroupId                   = failoverGroupId;
     RestorePointInTime                = restorePointInTime;
     SourceDatabaseDeletionDate        = sourceDatabaseDeletionDate;
     RecoveryServicesRecoveryPointId   = recoveryServicesRecoveryPointId;
     LongTermRetentionBackupResourceId = longTermRetentionBackupResourceId;
     RecoverableDatabaseId             = recoverableDatabaseId;
     RestorableDroppedDatabaseId       = restorableDroppedDatabaseId;
     CatalogCollation                  = catalogCollation;
     ZoneRedundant                     = zoneRedundant;
     LicenseType                       = licenseType;
     MaxLogSizeBytes                   = maxLogSizeBytes;
     EarliestRestoreDate               = earliestRestoreDate;
     ReadScale                         = readScale;
     ReadReplicaCount                  = readReplicaCount;
     CurrentSku                        = currentSku;
     AutoPauseDelay                    = autoPauseDelay;
     MinCapacity                       = minCapacity;
     PausedDate                        = pausedDate;
     ResumedDate                       = resumedDate;
 }
 internal static string ToSerializedValue(this CreateMode?value)
 {
     return(value == null ? null : ((CreateMode)value).ToSerializedValue());
 }