/// <summary>
 /// Initializes a new instance of the ReadOnlyFollowingDatabase class.
 /// </summary>
 /// <param name="id">Fully qualified resource ID for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. E.g.
 /// "Microsoft.Compute/virtualMachines" or
 /// "Microsoft.Storage/storageAccounts"</param>
 /// <param name="location">Resource location.</param>
 /// <param name="provisioningState">The provisioned state of the
 /// resource. Possible values include: 'Running', 'Creating',
 /// 'Deleting', 'Succeeded', 'Failed', 'Moving'</param>
 /// <param name="softDeletePeriod">The time the data should be kept
 /// before it stops being accessible to queries in TimeSpan.</param>
 /// <param name="hotCachePeriod">The time the data should be kept in
 /// cache for fast queries in TimeSpan.</param>
 /// <param name="statistics">The statistics of the database.</param>
 /// <param name="leaderClusterResourceId">The name of the leader
 /// cluster</param>
 /// <param name="attachedDatabaseConfigurationName">The name of the
 /// attached database configuration cluster</param>
 /// <param name="principalsModificationKind">The principals
 /// modification kind of the database. Possible values include:
 /// 'Union', 'Replace', 'None'</param>
 public ReadOnlyFollowingDatabase(string id = default(string), string name = default(string), string type = default(string), string location = default(string), string provisioningState = default(string), System.TimeSpan?softDeletePeriod = default(System.TimeSpan?), System.TimeSpan?hotCachePeriod = default(System.TimeSpan?), DatabaseStatistics statistics = default(DatabaseStatistics), string leaderClusterResourceId = default(string), string attachedDatabaseConfigurationName = default(string), string principalsModificationKind = default(string))
     : base(id, name, type, location)
 {
     ProvisioningState                 = provisioningState;
     SoftDeletePeriod                  = softDeletePeriod;
     HotCachePeriod                    = hotCachePeriod;
     Statistics                        = statistics;
     LeaderClusterResourceId           = leaderClusterResourceId;
     AttachedDatabaseConfigurationName = attachedDatabaseConfigurationName;
     PrincipalsModificationKind        = principalsModificationKind;
     CustomInit();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the Database class.
 /// </summary>
 /// <param name="id">Fully qualified resource Id for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. Ex-
 /// Microsoft.Compute/virtualMachines or
 /// Microsoft.Storage/storageAccounts.</param>
 /// <param name="location">Resource location.</param>
 /// <param name="provisioningState">The provisioned state of the
 /// resource. Possible values include: 'Running', 'Creating',
 /// 'Deleting', 'Succeeded', 'Failed', 'Moving'</param>
 /// <param name="softDeletePeriod">The time the data should be kept
 /// before it stops being accessible to queries in TimeSpan.</param>
 /// <param name="hotCachePeriod">The time the data should be kept in
 /// cache for fast queries in TimeSpan.</param>
 /// <param name="statistics">The statistics of the database.</param>
 public Database(string id = default(string), string name = default(string), string type = default(string), string location = default(string), string provisioningState = default(string), System.TimeSpan?softDeletePeriod = default(System.TimeSpan?), System.TimeSpan?hotCachePeriod = default(System.TimeSpan?), DatabaseStatistics statistics = default(DatabaseStatistics))
     : base(id, name, type)
 {
     Location          = location;
     ProvisioningState = provisioningState;
     SoftDeletePeriod  = softDeletePeriod;
     HotCachePeriod    = hotCachePeriod;
     Statistics        = statistics;
     CustomInit();
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the ReadWriteDatabase class.
 /// </summary>
 /// <param name="id">Fully qualified resource Id for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. Ex-
 /// Microsoft.Compute/virtualMachines or
 /// Microsoft.Storage/storageAccounts.</param>
 /// <param name="location">Resource location.</param>
 /// <param name="provisioningState">The provisioned state of the
 /// resource. Possible values include: 'Running', 'Creating',
 /// 'Deleting', 'Succeeded', 'Failed', 'Moving'</param>
 /// <param name="softDeletePeriod">The time the data should be kept
 /// before it stops being accessible to queries in TimeSpan.</param>
 /// <param name="hotCachePeriod">The time the data should be kept in
 /// cache for fast queries in TimeSpan.</param>
 /// <param name="statistics">The statistics of the database.</param>
 /// <param name="isFollowed">Indicates whether the database is
 /// followed.</param>
 public ReadWriteDatabase(string id = default(string), string name = default(string), string type = default(string), string location = default(string), string provisioningState = default(string), System.TimeSpan?softDeletePeriod = default(System.TimeSpan?), System.TimeSpan?hotCachePeriod = default(System.TimeSpan?), DatabaseStatistics statistics = default(DatabaseStatistics), string isFollowed = default(string))
     : base(id, name, type, location)
 {
     ProvisioningState = provisioningState;
     SoftDeletePeriod  = softDeletePeriod;
     HotCachePeriod    = hotCachePeriod;
     Statistics        = statistics;
     IsFollowed        = isFollowed;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the Database class.
 /// </summary>
 /// <param name="location">The geo-location where the resource
 /// lives</param>
 /// <param name="softDeletePeriodInDays">The number of days data should
 /// be kept before it stops being accessible to queries.</param>
 /// <param name="id">Fully qualified resource Id for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. Ex-
 /// Microsoft.Compute/virtualMachines or
 /// Microsoft.Storage/storageAccounts.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="etag">An ETag of the resource created.</param>
 /// <param name="provisioningState">The provisioned state of the
 /// resource. Possible values include: 'Running', 'Creating',
 /// 'Deleting', 'Succeeded', 'Failed'</param>
 /// <param name="hotCachePeriodInDays">The number of days of data that
 /// should be kept in cache for fast queries.</param>
 /// <param name="statistics">The statistics of the database.</param>
 public Database(string location, int softDeletePeriodInDays, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string etag = default(string), string provisioningState = default(string), int?hotCachePeriodInDays = default(int?), DatabaseStatistics statistics = default(DatabaseStatistics))
     : base(location, id, name, type, tags)
 {
     Etag = etag;
     ProvisioningState      = provisioningState;
     SoftDeletePeriodInDays = softDeletePeriodInDays;
     HotCachePeriodInDays   = hotCachePeriodInDays;
     Statistics             = statistics;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the DatabaseUpdate class.
 /// </summary>
 /// <param name="softDeletePeriodInDays">The number of days data should
 /// be kept before it stops being accessible to queries.</param>
 /// <param name="id">Fully qualified resource Id for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. Ex-
 /// Microsoft.Compute/virtualMachines or
 /// Microsoft.Storage/storageAccounts.</param>
 /// <param name="location">Resource location.</param>
 /// <param name="etag">An ETag of the resource updated.</param>
 /// <param name="provisioningState">The provisioned state of the
 /// resource. Possible values include: 'Running', 'Creating',
 /// 'Deleting', 'Succeeded', 'Failed'</param>
 /// <param name="hotCachePeriodInDays">The number of days of data that
 /// should be kept in cache for fast queries.</param>
 /// <param name="statistics">The statistics of the database.</param>
 public DatabaseUpdate(int softDeletePeriodInDays, string id = default(string), string name = default(string), string type = default(string), string location = default(string), string etag = default(string), string provisioningState = default(string), int?hotCachePeriodInDays = default(int?), DatabaseStatistics statistics = default(DatabaseStatistics))
     : base(id, name, type)
 {
     Location               = location;
     Etag                   = etag;
     ProvisioningState      = provisioningState;
     SoftDeletePeriodInDays = softDeletePeriodInDays;
     HotCachePeriodInDays   = hotCachePeriodInDays;
     Statistics             = statistics;
     CustomInit();
 }