-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
SynapseReadOnlyFollowingDatabase.cs
71 lines (64 loc) · 4.03 KB
/
SynapseReadOnlyFollowingDatabase.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Synapse;
namespace Azure.ResourceManager.Synapse.Models
{
/// <summary> Class representing a read only following database. </summary>
public partial class SynapseReadOnlyFollowingDatabase : SynapseDatabaseData
{
/// <summary> Initializes a new instance of <see cref="SynapseReadOnlyFollowingDatabase"/>. </summary>
public SynapseReadOnlyFollowingDatabase()
{
Kind = SynapseKind.ReadOnlyFollowing;
}
/// <summary> Initializes a new instance of <see cref="SynapseReadOnlyFollowingDatabase"/>. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="location"> Resource location. </param>
/// <param name="kind"> Kind of the database. </param>
/// <param name="provisioningState"> The provisioned state of the resource. </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. </param>
internal SynapseReadOnlyFollowingDatabase(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, SynapseKind kind, ResourceProvisioningState? provisioningState, TimeSpan? softDeletePeriod, TimeSpan? hotCachePeriod, DatabaseStatistics statistics, string leaderClusterResourceId, string attachedDatabaseConfigurationName, SynapsePrincipalsModificationKind? principalsModificationKind) : base(id, name, resourceType, systemData, location, kind)
{
ProvisioningState = provisioningState;
SoftDeletePeriod = softDeletePeriod;
HotCachePeriod = hotCachePeriod;
Statistics = statistics;
LeaderClusterResourceId = leaderClusterResourceId;
AttachedDatabaseConfigurationName = attachedDatabaseConfigurationName;
PrincipalsModificationKind = principalsModificationKind;
Kind = kind;
}
/// <summary> The provisioned state of the resource. </summary>
public ResourceProvisioningState? ProvisioningState { get; }
/// <summary> The time the data should be kept before it stops being accessible to queries in TimeSpan. </summary>
public TimeSpan? SoftDeletePeriod { get; }
/// <summary> The time the data should be kept in cache for fast queries in TimeSpan. </summary>
public TimeSpan? HotCachePeriod { get; set; }
/// <summary> The statistics of the database. </summary>
internal DatabaseStatistics Statistics { get; }
/// <summary> The database size - the total size of compressed data and index in bytes. </summary>
public float? StatisticsSize
{
get => Statistics?.Size;
}
/// <summary> The name of the leader cluster. </summary>
public string LeaderClusterResourceId { get; }
/// <summary> The name of the attached database configuration cluster. </summary>
public string AttachedDatabaseConfigurationName { get; }
/// <summary> The principals modification kind of the database. </summary>
public SynapsePrincipalsModificationKind? PrincipalsModificationKind { get; }
}
}