Example #1
0
 /// <summary>
 /// Initializes a new instance of the ManagedInstance class.
 /// </summary>
 /// <param name="location">Resource location.</param>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="identity">The Azure Active Directory identity of the
 /// managed instance.</param>
 /// <param name="sku">Managed instance SKU. Allowed values for
 /// sku.name: GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5</param>
 /// <param name="provisioningState">Possible values include:
 /// 'Creating', 'Deleting', 'Updating', 'Unknown', 'Succeeded',
 /// 'Failed'</param>
 /// <param name="managedInstanceCreateMode">Specifies the mode of
 /// database creation.
 ///
 /// Default: Regular instance creation.
 ///
 /// Restore: Creates an instance by restoring a set of backups to
 /// specific point in time. RestorePointInTime and
 /// SourceManagedInstanceId must be specified. Possible values include:
 /// 'Default', 'PointInTimeRestore'</param>
 /// <param name="fullyQualifiedDomainName">The fully qualified domain
 /// name of the managed instance.</param>
 /// <param name="administratorLogin">Administrator username for the
 /// managed instance. Can only be specified when the managed instance
 /// is being created (and is required for creation).</param>
 /// <param name="administratorLoginPassword">The administrator login
 /// password (required for managed instance creation).</param>
 /// <param name="subnetId">Subnet resource ID for the managed
 /// instance.</param>
 /// <param name="state">The state of the managed instance.</param>
 /// <param name="licenseType">The license type. Possible values are
 /// 'LicenseIncluded' (regular price inclusive of a new SQL license)
 /// and 'BasePrice' (discounted AHB price for bringing your own SQL
 /// licenses). Possible values include: 'LicenseIncluded',
 /// 'BasePrice'</param>
 /// <param name="vCores">The number of vCores. Allowed values: 8, 16,
 /// 24, 32, 40, 64, 80.</param>
 /// <param name="storageSizeInGB">Storage size in GB. Minimum value:
 /// 32. Maximum value: 8192. Increments of 32 GB allowed only.</param>
 /// <param name="collation">Collation of the managed instance.</param>
 /// <param name="dnsZone">The Dns Zone that the managed instance is
 /// in.</param>
 /// <param name="dnsZonePartner">The resource id of another managed
 /// instance whose DNS zone this managed instance will share after
 /// creation.</param>
 /// <param name="publicDataEndpointEnabled">Whether or not the public
 /// data endpoint is enabled.</param>
 /// <param name="sourceManagedInstanceId">The resource identifier of
 /// the source managed instance associated with create operation of
 /// this instance.</param>
 /// <param name="restorePointInTime">Specifies the point in time
 /// (ISO8601 format) of the source database that will be restored to
 /// create the new database.</param>
 /// <param name="proxyOverride">Connection type used for connecting to
 /// the instance. Possible values include: 'Proxy', 'Redirect',
 /// 'Default'</param>
 /// <param name="timezoneId">Id of the timezone. Allowed values are
 /// timezones supported by Windows.
 /// Windows keeps details on supported timezones, including the id, in
 /// registry under
 /// KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time
 /// Zones.
 /// You can get those registry values via SQL Server by querying SELECT
 /// name AS timezone_id FROM sys.time_zone_info.
 /// List of Ids can also be obtained by executing
 /// [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell.
 /// An example of valid timezone id is "Pacific Standard Time" or "W.
 /// Europe Standard Time".</param>
 /// <param name="instancePoolId">The Id of the instance pool this
 /// managed server belongs to.</param>
 /// <param name="maintenanceConfigurationId">Specifies maintenance
 /// configuration id to apply to this managed instance.</param>
 /// <param name="minimalTlsVersion">Minimal TLS version. Allowed
 /// values: 'None', '1.0', '1.1', '1.2'</param>
 /// <param name="storageAccountType">The storage account type used to
 /// store backups for this instance. The options are LRS
 /// (LocallyRedundantStorage), ZRS (ZoneRedundantStorage) and GRS
 /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS',
 /// 'ZRS'</param>
 public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int?vCores = default(int?), int?storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool?publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime?restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), string minimalTlsVersion = default(string), string storageAccountType = default(string))
     : base(location, id, name, type, tags)
 {
     Identity                   = identity;
     Sku                        = sku;
     ProvisioningState          = provisioningState;
     ManagedInstanceCreateMode  = managedInstanceCreateMode;
     FullyQualifiedDomainName   = fullyQualifiedDomainName;
     AdministratorLogin         = administratorLogin;
     AdministratorLoginPassword = administratorLoginPassword;
     SubnetId                   = subnetId;
     State                      = state;
     LicenseType                = licenseType;
     VCores                     = vCores;
     StorageSizeInGB            = storageSizeInGB;
     Collation                  = collation;
     DnsZone                    = dnsZone;
     DnsZonePartner             = dnsZonePartner;
     PublicDataEndpointEnabled  = publicDataEndpointEnabled;
     SourceManagedInstanceId    = sourceManagedInstanceId;
     RestorePointInTime         = restorePointInTime;
     ProxyOverride              = proxyOverride;
     TimezoneId                 = timezoneId;
     InstancePoolId             = instancePoolId;
     MaintenanceConfigurationId = maintenanceConfigurationId;
     MinimalTlsVersion          = minimalTlsVersion;
     StorageAccountType         = storageAccountType;
     CustomInit();
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the Server class.
 /// </summary>
 /// <param name="location">Resource location.</param>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="identity">The Azure Active Directory identity of the
 /// server.</param>
 /// <param name="kind">Kind of sql server. This is metadata used for
 /// the Azure portal experience.</param>
 /// <param name="administratorLogin">Administrator username for the
 /// server. Once created it cannot be changed.</param>
 /// <param name="administratorLoginPassword">The administrator login
 /// password (required for server creation).</param>
 /// <param name="version">The version of the server.</param>
 /// <param name="state">The state of the server.</param>
 /// <param name="fullyQualifiedDomainName">The fully qualified domain
 /// name of the server.</param>
 /// <param name="privateEndpointConnections">List of private endpoint
 /// connections on a server</param>
 /// <param name="publicNetworkAccess">Whether or not public endpoint
 /// access is allowed for this server.  Value is optional but if passed
 /// in, must be 'Enabled' or 'Disabled'. Possible values include:
 /// 'Enabled', 'Disabled'</param>
 public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList <ServerPrivateEndpointConnection> privateEndpointConnections = default(IList <ServerPrivateEndpointConnection>), string publicNetworkAccess = default(string))
     : base(location, id, name, type, tags)
 {
     Identity                   = identity;
     Kind                       = kind;
     AdministratorLogin         = administratorLogin;
     AdministratorLoginPassword = administratorLoginPassword;
     Version                    = version;
     State                      = state;
     FullyQualifiedDomainName   = fullyQualifiedDomainName;
     PrivateEndpointConnections = privateEndpointConnections;
     PublicNetworkAccess        = publicNetworkAccess;
     CustomInit();
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the ManagedInstance class.
 /// </summary>
 /// <param name="location">Resource location.</param>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="identity">The Azure Active Directory identity of the
 /// managed instance.</param>
 /// <param name="sku">Managed instance sku</param>
 /// <param name="fullyQualifiedDomainName">The fully qualified domain
 /// name of the managed instance.</param>
 /// <param name="administratorLogin">Administrator username for the
 /// managed instance. Can only be specified when the managed instance
 /// is being created (and is required for creation).</param>
 /// <param name="administratorLoginPassword">The administrator login
 /// password (required for managed instance creation).</param>
 /// <param name="subnetId">Subnet resource ID for the managed
 /// instance.</param>
 /// <param name="state">The state of the managed instance.</param>
 /// <param name="licenseType">The license type. Possible values are
 /// 'LicenseIncluded' and 'BasePrice'.</param>
 /// <param name="vCores">The number of VCores.</param>
 /// <param name="storageSizeInGB">The maximum storage size in
 /// GB.</param>
 /// <param name="collation">Collation of the managed instance.</param>
 /// <param name="dnsZone">The Dns Zone that the managed instance is
 /// in.</param>
 /// <param name="dnsZonePartner">The resource id of another managed
 /// instance whose DNS zone this managed instance will share after
 /// creation.</param>
 public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int?vCores = default(int?), int?storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string))
     : base(location, id, name, type, tags)
 {
     Identity = identity;
     Sku      = sku;
     FullyQualifiedDomainName   = fullyQualifiedDomainName;
     AdministratorLogin         = administratorLogin;
     AdministratorLoginPassword = administratorLoginPassword;
     SubnetId        = subnetId;
     State           = state;
     LicenseType     = licenseType;
     VCores          = vCores;
     StorageSizeInGB = storageSizeInGB;
     Collation       = collation;
     DnsZone         = dnsZone;
     DnsZonePartner  = dnsZonePartner;
     CustomInit();
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the ManagedInstance class.
 /// </summary>
 /// <param name="location">Resource location.</param>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="identity">The Azure Active Directory identity of the
 /// managed instance.</param>
 /// <param name="sku">Managed instance SKU. Allowed values for
 /// sku.name: GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5</param>
 /// <param name="provisioningState">Possible values include:
 /// 'Creating', 'Deleting', 'Updating', 'Unknown', 'Succeeded',
 /// 'Failed', 'Accepted', 'Created', 'Deleted', 'Unrecognized',
 /// 'Running', 'Canceled', 'NotSpecified', 'Registering',
 /// 'TimedOut'</param>
 /// <param name="managedInstanceCreateMode">Specifies the mode of
 /// database creation.
 ///
 /// Default: Regular instance creation.
 ///
 /// Restore: Creates an instance by restoring a set of backups to
 /// specific point in time. RestorePointInTime and
 /// SourceManagedInstanceId must be specified. Possible values include:
 /// 'Default', 'PointInTimeRestore'</param>
 /// <param name="fullyQualifiedDomainName">The fully qualified domain
 /// name of the managed instance.</param>
 /// <param name="administratorLogin">Administrator username for the
 /// managed instance. Can only be specified when the managed instance
 /// is being created (and is required for creation).</param>
 /// <param name="administratorLoginPassword">The administrator login
 /// password (required for managed instance creation).</param>
 /// <param name="subnetId">Subnet resource ID for the managed
 /// instance.</param>
 /// <param name="state">The state of the managed instance.</param>
 /// <param name="licenseType">The license type. Possible values are
 /// 'LicenseIncluded' (regular price inclusive of a new SQL license)
 /// and 'BasePrice' (discounted AHB price for bringing your own SQL
 /// licenses). Possible values include: 'LicenseIncluded',
 /// 'BasePrice'</param>
 /// <param name="vCores">The number of vCores. Allowed values: 8, 16,
 /// 24, 32, 40, 64, 80.</param>
 /// <param name="storageSizeInGB">Storage size in GB. Minimum value:
 /// 32. Maximum value: 8192. Increments of 32 GB allowed only.</param>
 /// <param name="collation">Collation of the managed instance.</param>
 /// <param name="dnsZone">The Dns Zone that the managed instance is
 /// in.</param>
 /// <param name="dnsZonePartner">The resource id of another managed
 /// instance whose DNS zone this managed instance will share after
 /// creation.</param>
 /// <param name="publicDataEndpointEnabled">Whether or not the public
 /// data endpoint is enabled.</param>
 /// <param name="sourceManagedInstanceId">The resource identifier of
 /// the source managed instance associated with create operation of
 /// this instance.</param>
 /// <param name="restorePointInTime">Specifies the point in time
 /// (ISO8601 format) of the source database that will be restored to
 /// create the new database.</param>
 /// <param name="proxyOverride">Connection type used for connecting to
 /// the instance. Possible values include: 'Proxy', 'Redirect',
 /// 'Default'</param>
 /// <param name="timezoneId">Id of the timezone. Allowed values are
 /// timezones supported by Windows.
 /// Windows keeps details on supported timezones, including the id, in
 /// registry under
 /// KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time
 /// Zones.
 /// You can get those registry values via SQL Server by querying SELECT
 /// name AS timezone_id FROM sys.time_zone_info.
 /// List of Ids can also be obtained by executing
 /// [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell.
 /// An example of valid timezone id is "Pacific Standard Time" or "W.
 /// Europe Standard Time".</param>
 /// <param name="instancePoolId">The Id of the instance pool this
 /// managed server belongs to.</param>
 /// <param name="maintenanceConfigurationId">Specifies maintenance
 /// configuration id to apply to this managed instance.</param>
 /// <param name="privateEndpointConnections">List of private endpoint
 /// connections on a managed instance.</param>
 /// <param name="minimalTlsVersion">Minimal TLS version. Allowed
 /// values: 'None', '1.0', '1.1', '1.2'</param>
 /// <param name="currentBackupStorageRedundancy">The storage account
 /// type used to store backups for this instance. The options are Local
 /// (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo
 /// (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage).
 /// Possible values include: 'Geo', 'Local', 'Zone', 'GeoZone'</param>
 /// <param name="requestedBackupStorageRedundancy">The storage account
 /// type to be used to store backups for this instance. The options are
 /// Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo
 /// (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage).
 /// Possible values include: 'Geo', 'Local', 'Zone', 'GeoZone'</param>
 /// <param name="zoneRedundant">Whether or not the multi-az is
 /// enabled.</param>
 /// <param name="primaryUserAssignedIdentityId">The resource id of a
 /// user assigned identity to be used by default.</param>
 /// <param name="keyId">A CMK URI of the key to use for
 /// encryption.</param>
 /// <param name="administrators">The Azure Active Directory
 /// administrator of the server.</param>
 /// <param name="servicePrincipal">The managed instance's service
 /// principal.</param>
 public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int?vCores = default(int?), int?storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool?publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime?restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), IList <ManagedInstancePecProperty> privateEndpointConnections = default(IList <ManagedInstancePecProperty>), string minimalTlsVersion = default(string), string currentBackupStorageRedundancy = default(string), string requestedBackupStorageRedundancy = default(string), bool?zoneRedundant = default(bool?), string primaryUserAssignedIdentityId = default(string), string keyId = default(string), ManagedInstanceExternalAdministrator administrators = default(ManagedInstanceExternalAdministrator), ServicePrincipal servicePrincipal = default(ServicePrincipal))
     : base(location, id, name, type, tags)
 {
     Identity                         = identity;
     Sku                              = sku;
     ProvisioningState                = provisioningState;
     ManagedInstanceCreateMode        = managedInstanceCreateMode;
     FullyQualifiedDomainName         = fullyQualifiedDomainName;
     AdministratorLogin               = administratorLogin;
     AdministratorLoginPassword       = administratorLoginPassword;
     SubnetId                         = subnetId;
     State                            = state;
     LicenseType                      = licenseType;
     VCores                           = vCores;
     StorageSizeInGB                  = storageSizeInGB;
     Collation                        = collation;
     DnsZone                          = dnsZone;
     DnsZonePartner                   = dnsZonePartner;
     PublicDataEndpointEnabled        = publicDataEndpointEnabled;
     SourceManagedInstanceId          = sourceManagedInstanceId;
     RestorePointInTime               = restorePointInTime;
     ProxyOverride                    = proxyOverride;
     TimezoneId                       = timezoneId;
     InstancePoolId                   = instancePoolId;
     MaintenanceConfigurationId       = maintenanceConfigurationId;
     PrivateEndpointConnections       = privateEndpointConnections;
     MinimalTlsVersion                = minimalTlsVersion;
     CurrentBackupStorageRedundancy   = currentBackupStorageRedundancy;
     RequestedBackupStorageRedundancy = requestedBackupStorageRedundancy;
     ZoneRedundant                    = zoneRedundant;
     PrimaryUserAssignedIdentityId    = primaryUserAssignedIdentityId;
     KeyId                            = keyId;
     Administrators                   = administrators;
     ServicePrincipal                 = servicePrincipal;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the Server class.
 /// </summary>
 /// <param name="location">Resource location.</param>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="identity">The Azure Active Directory identity of the
 /// server.</param>
 /// <param name="kind">Kind of sql server. This is metadata used for
 /// the Azure portal experience.</param>
 /// <param name="administratorLogin">Administrator username for the
 /// server. Once created it cannot be changed.</param>
 /// <param name="administratorLoginPassword">The administrator login
 /// password (required for server creation).</param>
 /// <param name="version">The version of the server.</param>
 /// <param name="state">The state of the server.</param>
 /// <param name="fullyQualifiedDomainName">The fully qualified domain
 /// name of the server.</param>
 public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string))
     : base(location, id, name, type, tags)
 {
     Identity                   = identity;
     Kind                       = kind;
     AdministratorLogin         = administratorLogin;
     AdministratorLoginPassword = administratorLoginPassword;
     Version                    = version;
     State                      = state;
     FullyQualifiedDomainName   = fullyQualifiedDomainName;
     CustomInit();
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the Server class.
 /// </summary>
 /// <param name="location">Resource location.</param>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="identity">The Azure Active Directory identity of the
 /// server.</param>
 /// <param name="kind">Kind of sql server. This is metadata used for
 /// the Azure portal experience.</param>
 /// <param name="administratorLogin">Administrator username for the
 /// server. Once created it cannot be changed.</param>
 /// <param name="administratorLoginPassword">The administrator login
 /// password (required for server creation).</param>
 /// <param name="version">The version of the server.</param>
 /// <param name="state">The state of the server.</param>
 /// <param name="fullyQualifiedDomainName">The fully qualified domain
 /// name of the server.</param>
 /// <param name="privateEndpointConnections">List of private endpoint
 /// connections on a server</param>
 /// <param name="minimalTlsVersion">Minimal TLS version. Allowed
 /// values: '1.0', '1.1', '1.2'</param>
 /// <param name="publicNetworkAccess">Whether or not public endpoint
 /// access is allowed for this server.  Value is optional but if passed
 /// in, must be 'Enabled' or 'Disabled'. Possible values include:
 /// 'Enabled', 'Disabled'</param>
 /// <param name="workspaceFeature">Whether or not existing server has a
 /// workspace created and if it allows connection from workspace.
 /// Possible values include: 'Connected', 'Disconnected'</param>
 /// <param name="primaryUserAssignedIdentityId">The resource id of a
 /// user assigned identity to be used by default.</param>
 /// <param name="keyId">A CMK URI of the key to use for
 /// encryption.</param>
 /// <param name="administrators">The Azure Active Directory identity of
 /// the server.</param>
 public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList <ServerPrivateEndpointConnection> privateEndpointConnections = default(IList <ServerPrivateEndpointConnection>), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string), string workspaceFeature = default(string), string primaryUserAssignedIdentityId = default(string), string keyId = default(string), ServerExternalAdministrator administrators = default(ServerExternalAdministrator))
     : base(location, id, name, type, tags)
 {
     Identity                      = identity;
     Kind                          = kind;
     AdministratorLogin            = administratorLogin;
     AdministratorLoginPassword    = administratorLoginPassword;
     Version                       = version;
     State                         = state;
     FullyQualifiedDomainName      = fullyQualifiedDomainName;
     PrivateEndpointConnections    = privateEndpointConnections;
     MinimalTlsVersion             = minimalTlsVersion;
     PublicNetworkAccess           = publicNetworkAccess;
     WorkspaceFeature              = workspaceFeature;
     PrimaryUserAssignedIdentityId = primaryUserAssignedIdentityId;
     KeyId                         = keyId;
     Administrators                = administrators;
     CustomInit();
 }