-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
SqlPool.cs
95 lines (89 loc) · 5.39 KB
/
SqlPool.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> A SQL Analytics pool. </summary>
public partial class SqlPool : TrackedResource
{
/// <summary> Initializes a new instance of <see cref="SqlPool"/>. </summary>
/// <param name="location"> The geo-location where the resource lives. </param>
/// <exception cref="ArgumentNullException"> <paramref name="location"/> is null. </exception>
public SqlPool(string location) : base(location)
{
Argument.AssertNotNull(location, nameof(location));
}
/// <summary> Initializes a new instance of <see cref="SqlPool"/>. </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="tags"> Resource tags. </param>
/// <param name="location"> The geo-location where the resource lives. </param>
/// <param name="sku"> SQL pool SKU. </param>
/// <param name="maxSizeBytes"> Maximum size in bytes. </param>
/// <param name="collation"> Collation mode. </param>
/// <param name="sourceDatabaseId"> Source database to create from. </param>
/// <param name="recoverableDatabaseId"> Backup database to restore from. </param>
/// <param name="provisioningState"> Resource state. </param>
/// <param name="status"> Resource status. </param>
/// <param name="restorePointInTime"> Snapshot time to restore. </param>
/// <param name="createMode">
/// Specifies the mode of sql pool creation.
///
/// Default: regular sql pool creation.
///
/// PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified.
///
/// Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the recoverableDatabaseId to restore.
///
/// Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified.
/// </param>
/// <param name="creationDate"> Date the SQL pool was created. </param>
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;
}
/// <summary> SQL pool SKU. </summary>
public Sku Sku { get; set; }
/// <summary> Maximum size in bytes. </summary>
public long? MaxSizeBytes { get; set; }
/// <summary> Collation mode. </summary>
public string Collation { get; set; }
/// <summary> Source database to create from. </summary>
public string SourceDatabaseId { get; set; }
/// <summary> Backup database to restore from. </summary>
public string RecoverableDatabaseId { get; set; }
/// <summary> Resource state. </summary>
public string ProvisioningState { get; set; }
/// <summary> Resource status. </summary>
public string Status { get; set; }
/// <summary> Snapshot time to restore. </summary>
public string RestorePointInTime { get; set; }
/// <summary>
/// Specifies the mode of sql pool creation.
///
/// Default: regular sql pool creation.
///
/// PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified.
///
/// Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the recoverableDatabaseId to restore.
///
/// Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified.
/// </summary>
public CreateMode? CreateMode { get; set; }
/// <summary> Date the SQL pool was created. </summary>
public DateTimeOffset? CreationDate { get; set; }
}
}