azure_mgmt_sql 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2014-04-01/generated/azure_mgmt_sql.rb +77 -63
  3. data/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb +118 -16
  4. data/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb +114 -16
  5. data/lib/2014-04-01/generated/azure_mgmt_sql/capabilities.rb +6 -5
  6. data/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_policies.rb +12 -12
  7. data/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_rules.rb +12 -12
  8. data/lib/2014-04-01/generated/azure_mgmt_sql/database_advisors.rb +18 -17
  9. data/lib/2014-04-01/generated/azure_mgmt_sql/database_connection_policies.rb +12 -12
  10. data/lib/2014-04-01/generated/azure_mgmt_sql/database_table_auditing_policies.rb +18 -17
  11. data/lib/2014-04-01/generated/azure_mgmt_sql/database_threat_detection_policies.rb +12 -12
  12. data/lib/2014-04-01/generated/azure_mgmt_sql/database_usages.rb +6 -5
  13. data/lib/2014-04-01/generated/azure_mgmt_sql/databases.rb +649 -643
  14. data/lib/2014-04-01/generated/azure_mgmt_sql/disaster_recovery_configurations.rb +830 -0
  15. data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_activities.rb +6 -5
  16. data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_database_activities.rb +6 -5
  17. data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pools.rb +216 -213
  18. data/lib/2014-04-01/generated/azure_mgmt_sql/extensions.rb +130 -0
  19. data/lib/2014-04-01/generated/azure_mgmt_sql/firewall_rules.rb +24 -22
  20. data/lib/2014-04-01/generated/azure_mgmt_sql/geo_backup_policies.rb +18 -17
  21. data/lib/2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_policy_list_result.rb +56 -0
  22. data/lib/2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_vault_list_result.rb +56 -0
  23. data/lib/2014-04-01/generated/azure_mgmt_sql/models/database.rb +43 -10
  24. data/lib/2014-04-01/generated/azure_mgmt_sql/models/database_edition.rb +1 -0
  25. data/lib/2014-04-01/generated/azure_mgmt_sql/models/database_update.rb +43 -10
  26. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration.rb +164 -0
  27. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_auto_failover.rb +16 -0
  28. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_failover_policy.rb +16 -0
  29. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_list_result.rb +57 -0
  30. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_role.rb +17 -0
  31. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_status.rb +18 -0
  32. data/lib/2014-04-01/generated/azure_mgmt_sql/models/edition_capability.rb +13 -0
  33. data/lib/2014-04-01/generated/azure_mgmt_sql/models/elastic_pool.rb +13 -0
  34. data/lib/2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_edition_capability.rb +13 -0
  35. data/lib/2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_update.rb +13 -0
  36. data/lib/2014-04-01/generated/azure_mgmt_sql/models/extension_list_result.rb +54 -0
  37. data/lib/2014-04-01/generated/azure_mgmt_sql/models/import_request.rb +12 -4
  38. data/lib/2014-04-01/generated/azure_mgmt_sql/models/query_text.rb +72 -0
  39. data/lib/2014-04-01/generated/azure_mgmt_sql/models/query_text_list_result.rb +55 -0
  40. data/lib/2014-04-01/generated/azure_mgmt_sql/models/service_objective_name.rb +52 -2
  41. data/lib/2014-04-01/generated/azure_mgmt_sql/models/slo_usage_metric.rb +10 -3
  42. data/lib/2014-04-01/generated/azure_mgmt_sql/operations.rb +6 -5
  43. data/lib/2014-04-01/generated/azure_mgmt_sql/queries.rb +6 -5
  44. data/lib/2014-04-01/generated/azure_mgmt_sql/query_statistics.rb +6 -5
  45. data/lib/2014-04-01/generated/azure_mgmt_sql/query_texts.rb +134 -0
  46. data/lib/2014-04-01/generated/azure_mgmt_sql/recommended_elastic_pools.rb +18 -15
  47. data/lib/2014-04-01/generated/azure_mgmt_sql/recoverable_databases.rb +12 -10
  48. data/lib/2014-04-01/generated/azure_mgmt_sql/replication_links.rb +38 -33
  49. data/lib/2014-04-01/generated/azure_mgmt_sql/restorable_dropped_databases.rb +12 -10
  50. data/lib/2014-04-01/generated/azure_mgmt_sql/restore_points.rb +6 -5
  51. data/lib/2014-04-01/generated/azure_mgmt_sql/server_azure_adadministrators.rb +32 -30
  52. data/lib/2014-04-01/generated/azure_mgmt_sql/server_communication_links.rb +28 -26
  53. data/lib/2014-04-01/generated/azure_mgmt_sql/server_connection_policies.rb +12 -12
  54. data/lib/2014-04-01/generated/azure_mgmt_sql/server_table_auditing_policies.rb +18 -17
  55. data/lib/2014-04-01/generated/azure_mgmt_sql/server_usages.rb +6 -5
  56. data/lib/2014-04-01/generated/azure_mgmt_sql/servers.rb +134 -133
  57. data/lib/2014-04-01/generated/azure_mgmt_sql/service_objectives.rb +12 -10
  58. data/lib/2014-04-01/generated/azure_mgmt_sql/service_tier_advisors.rb +12 -10
  59. data/lib/2014-04-01/generated/azure_mgmt_sql/sql_management_client.rb +32 -17
  60. data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb +6 -5
  61. data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_configurations.rb +6 -5
  62. data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryptions.rb +12 -12
  63. data/lib/2015-05-01-preview/generated/azure_mgmt_sql.rb +22 -19
  64. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_advisors.rb +18 -17
  65. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +12 -12
  66. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_recommended_actions.rb +18 -17
  67. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/encryption_protectors.rb +31 -29
  68. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/failover_groups.rb +71 -67
  69. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/subscription_usage.rb +110 -0
  70. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/subscription_usage_list_result.rb +100 -0
  71. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/operations.rb +15 -13
  72. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_advisors.rb +18 -17
  73. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_keys.rb +41 -38
  74. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/servers.rb +66 -62
  75. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +8 -1
  76. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/subscription_usages.rb +324 -0
  77. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_agents.rb +62 -56
  78. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_groups.rb +118 -107
  79. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_members.rb +76 -71
  80. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/virtual_network_rules.rb +41 -38
  81. data/lib/2017-03-01-preview/generated/azure_mgmt_sql.rb +30 -1
  82. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_operations.rb +21 -18
  83. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_restore_points.rb +527 -0
  84. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/databases.rb +1599 -0
  85. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/arm_sku.rb +92 -0
  86. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_option_mode_actual.rb +16 -0
  87. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_option_mode_desired.rb +17 -0
  88. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_server_mode.rb +17 -0
  89. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_server_options.rb +90 -0
  90. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_server_reason.rb +17 -0
  91. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/catalog_collation_type.rb +16 -0
  92. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/create_database_restore_point_definition.rb +47 -0
  93. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/create_mode.rb +23 -0
  94. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database.rb +393 -0
  95. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_list_result.rb +100 -0
  96. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_restore_point.rb +124 -0
  97. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_restore_point_list_result.rb +100 -0
  98. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_update.rb +348 -0
  99. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/import_export_database_definition.rb +145 -0
  100. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/import_export_operation_result.rb +170 -0
  101. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/resource_move_definition.rb +46 -0
  102. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/restore_point_type.rb +16 -0
  103. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/sample_name.rb +17 -0
  104. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_automatic_tuning.rb +110 -0
  105. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_dns_alias.rb +74 -0
  106. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_dns_alias_acquisition.rb +47 -0
  107. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_dns_alias_list_result.rb +100 -0
  108. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/status.rb +32 -0
  109. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/tracked_resource.rb +92 -0
  110. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_automatic_tuning_operations.rb +238 -0
  111. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_dns_aliases.rb +805 -0
  112. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +21 -1
  113. data/lib/profiles/latest/modules/sql_profile_module.rb +912 -749
  114. data/lib/profiles/latest/sql_latest_profile_client.rb +28 -9
  115. data/lib/profiles/latest/sql_module_definition.rb +0 -1
  116. data/lib/version.rb +1 -1
  117. metadata +49 -3
@@ -0,0 +1,92 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # An ARM Resource SKU.
10
+ #
11
+ class ArmSku
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name of the SKU, typically, a letter + Number
16
+ # code, e.g. P3.
17
+ attr_accessor :name
18
+
19
+ # @return [String] The tier of the particular SKU, e.g. Basic, Premium.
20
+ attr_accessor :tier
21
+
22
+ # @return [String] Size of the particular SKU
23
+ attr_accessor :size
24
+
25
+ # @return [String] If the service has different generations of hardware,
26
+ # for the same SKU, then that can be captured here.
27
+ attr_accessor :family
28
+
29
+ # @return [Integer] Capacity of the particular SKU.
30
+ attr_accessor :capacity
31
+
32
+
33
+ #
34
+ # Mapper for ArmSku class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'ArmSku',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'ArmSku',
45
+ model_properties: {
46
+ name: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'name',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ tier: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'tier',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ size: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'size',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ family: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'family',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ capacity: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'capacity',
82
+ type: {
83
+ name: 'Number'
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ end
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for AutomaticTuningOptionModeActual
10
+ #
11
+ module AutomaticTuningOptionModeActual
12
+ Off = "Off"
13
+ On = "On"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for AutomaticTuningOptionModeDesired
10
+ #
11
+ module AutomaticTuningOptionModeDesired
12
+ Off = "Off"
13
+ On = "On"
14
+ Default = "Default"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for AutomaticTuningServerMode
10
+ #
11
+ module AutomaticTuningServerMode
12
+ Custom = "Custom"
13
+ Auto = "Auto"
14
+ Unspecified = "Unspecified"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,90 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # Automatic tuning properties for individual advisors.
10
+ #
11
+ class AutomaticTuningServerOptions
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [AutomaticTuningOptionModeDesired] Automatic tuning option
16
+ # desired state. Possible values include: 'Off', 'On', 'Default'
17
+ attr_accessor :desired_state
18
+
19
+ # @return [AutomaticTuningOptionModeActual] Automatic tuning option
20
+ # actual state. Possible values include: 'Off', 'On'
21
+ attr_accessor :actual_state
22
+
23
+ # @return [Integer] Reason code if desired and actual state are
24
+ # different.
25
+ attr_accessor :reason_code
26
+
27
+ # @return [AutomaticTuningServerReason] Reason description if desired and
28
+ # actual state are different. Possible values include: 'Default',
29
+ # 'Disabled', 'AutoConfigured'
30
+ attr_accessor :reason_desc
31
+
32
+
33
+ #
34
+ # Mapper for AutomaticTuningServerOptions class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'AutomaticTuningServerOptions',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'AutomaticTuningServerOptions',
45
+ model_properties: {
46
+ desired_state: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'desiredState',
50
+ type: {
51
+ name: 'Enum',
52
+ module: 'AutomaticTuningOptionModeDesired'
53
+ }
54
+ },
55
+ actual_state: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ read_only: true,
59
+ serialized_name: 'actualState',
60
+ type: {
61
+ name: 'Enum',
62
+ module: 'AutomaticTuningOptionModeActual'
63
+ }
64
+ },
65
+ reason_code: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'reasonCode',
70
+ type: {
71
+ name: 'Number'
72
+ }
73
+ },
74
+ reason_desc: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ read_only: true,
78
+ serialized_name: 'reasonDesc',
79
+ type: {
80
+ name: 'Enum',
81
+ module: 'AutomaticTuningServerReason'
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ end
88
+ end
89
+ end
90
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for AutomaticTuningServerReason
10
+ #
11
+ module AutomaticTuningServerReason
12
+ Default = "Default"
13
+ Disabled = "Disabled"
14
+ AutoConfigured = "AutoConfigured"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for CatalogCollationType
10
+ #
11
+ module CatalogCollationType
12
+ DATABASEDEFAULT = "DATABASE_DEFAULT"
13
+ SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,47 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # Contains the information necessary to perform a create database restore
10
+ # point operation.
11
+ #
12
+ class CreateDatabaseRestorePointDefinition
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The restore point label to apply
17
+ attr_accessor :restore_point_label
18
+
19
+
20
+ #
21
+ # Mapper for CreateDatabaseRestorePointDefinition class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'CreateDatabaseRestorePointDefinition',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'CreateDatabaseRestorePointDefinition',
32
+ model_properties: {
33
+ restore_point_label: {
34
+ client_side_validation: true,
35
+ required: true,
36
+ serialized_name: 'restorePointLabel',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,23 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for CreateMode
10
+ #
11
+ module CreateMode
12
+ Default = "Default"
13
+ Copy = "Copy"
14
+ Secondary = "Secondary"
15
+ PointInTimeRestore = "PointInTimeRestore"
16
+ Restore = "Restore"
17
+ Recovery = "Recovery"
18
+ RestoreExternalBackup = "RestoreExternalBackup"
19
+ RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary"
20
+ RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,393 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # A database resource.
10
+ #
11
+ class Database < TrackedResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ArmSku] The name and tier of the SKU.
16
+ attr_accessor :sku
17
+
18
+ # @return [String] Kind of database. This is metadata used for the Azure
19
+ # portal experience.
20
+ attr_accessor :kind
21
+
22
+ # @return [CreateMode] Specifies the mode of database creation.
23
+ #
24
+ # Default: regular database creation.
25
+ #
26
+ # Copy: creates a database as a copy of an existing database.
27
+ # sourceDatabaseId must be specified as the resource ID of the source
28
+ # database.
29
+ #
30
+ # Secondary: creates a database as a secondary replica of an existing
31
+ # database. sourceDatabaseId must be specified as the resource ID of the
32
+ # existing primary database.
33
+ #
34
+ # PointInTimeRestore: Creates a database by restoring a point in time
35
+ # backup of an existing database. sourceDatabaseId must be specified as
36
+ # the resource ID of the existing database, and restorePointInTime must
37
+ # be specified.
38
+ #
39
+ # Recovery: Creates a database by restoring a geo-replicated backup.
40
+ # sourceDatabaseId must be specified as the recoverable database resource
41
+ # ID to restore.
42
+ #
43
+ # Restore: Creates a database by restoring a backup of a deleted
44
+ # database. sourceDatabaseId must be specified. If sourceDatabaseId is
45
+ # the database's original resource ID, then sourceDatabaseDeletionDate
46
+ # must be specified. Otherwise sourceDatabaseId must be the restorable
47
+ # dropped database resource ID and sourceDatabaseDeletionDate is ignored.
48
+ # restorePointInTime may also be specified to restore from an earlier
49
+ # point in time.
50
+ #
51
+ # RestoreLongTermRetentionBackup: Creates a database by restoring from a
52
+ # long term retention vault. recoveryServicesRecoveryPointResourceId must
53
+ # be specified as the recovery point resource ID.
54
+ #
55
+ # Copy, Secondary, and RestoreLongTermRetentionBackup are not supported
56
+ # for DataWarehouse edition. Possible values include: 'Default', 'Copy',
57
+ # 'Secondary', 'PointInTimeRestore', 'Restore', 'Recovery',
58
+ # 'RestoreExternalBackup', 'RestoreExternalBackupSecondary',
59
+ # 'RestoreLongTermRetentionBackup'
60
+ attr_accessor :create_mode
61
+
62
+ # @return [String] The collation of the database.
63
+ attr_accessor :collation
64
+
65
+ # @return [Integer] The max size of the database expressed in bytes.
66
+ attr_accessor :max_size_bytes
67
+
68
+ # @return [SampleName] The name of the sample schema to apply when
69
+ # creating this database. Possible values include: 'AdventureWorksLT',
70
+ # 'WideWorldImportersStd', 'WideWorldImportersFull'
71
+ attr_accessor :sample_name
72
+
73
+ # @return [String] The resource identifier of the elastic pool containing
74
+ # this database.
75
+ attr_accessor :elastic_pool_id
76
+
77
+ # @return [String] The resource identifier of the source database
78
+ # associated with create operation of this database.
79
+ attr_accessor :source_database_id
80
+
81
+ # @return [Status] The status of the database. Possible values include:
82
+ # 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect',
83
+ # 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed',
84
+ # 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing',
85
+ # 'Paused', 'Resuming', 'Scaling'
86
+ attr_accessor :status
87
+
88
+ # @return The ID of the database.
89
+ attr_accessor :database_id
90
+
91
+ # @return [DateTime] The creation date of the database (ISO8601 format).
92
+ attr_accessor :creation_date
93
+
94
+ # @return [String] The current service level objective name of the
95
+ # database.
96
+ attr_accessor :current_service_objective_name
97
+
98
+ # @return [String] The default secondary region for this database.
99
+ attr_accessor :default_secondary_location
100
+
101
+ # @return [String] Failover Group resource identifier that this database
102
+ # belongs to.
103
+ attr_accessor :failover_group_id
104
+
105
+ # @return [DateTime] Specifies the point in time (ISO8601 format) of the
106
+ # source database that will be restored to create the new database.
107
+ attr_accessor :restore_point_in_time
108
+
109
+ # @return [DateTime] Specifies the time that the database was deleted.
110
+ attr_accessor :source_database_deletion_date
111
+
112
+ # @return [String] The resource identifier of the recovery point
113
+ # associated with create operation of this database.
114
+ attr_accessor :recovery_services_recovery_point_id
115
+
116
+ # @return [String] The resource identifier of the long term retention
117
+ # backup associated with create operation of this database.
118
+ attr_accessor :long_term_retention_backup_resource_id
119
+
120
+ # @return [String] The resource identifier of the recoverable database
121
+ # associated with create operation of this database.
122
+ attr_accessor :recoverable_database_id
123
+
124
+ # @return [String] The resource identifier of the restorable dropped
125
+ # database associated with create operation of this database.
126
+ attr_accessor :restorable_dropped_database_id
127
+
128
+ # @return [CatalogCollationType] Collation of the metadata catalog.
129
+ # Possible values include: 'DATABASE_DEFAULT',
130
+ # 'SQL_Latin1_General_CP1_CI_AS'
131
+ attr_accessor :catalog_collation
132
+
133
+ # @return [Boolean] Whether or not this database is zone redundant, which
134
+ # means the replicas of this database will be spread across multiple
135
+ # availability zones.
136
+ attr_accessor :zone_redundant
137
+
138
+
139
+ #
140
+ # Mapper for Database class as Ruby Hash.
141
+ # This will be used for serialization/deserialization.
142
+ #
143
+ def self.mapper()
144
+ {
145
+ client_side_validation: true,
146
+ required: false,
147
+ serialized_name: 'Database',
148
+ type: {
149
+ name: 'Composite',
150
+ class_name: 'Database',
151
+ model_properties: {
152
+ id: {
153
+ client_side_validation: true,
154
+ required: false,
155
+ read_only: true,
156
+ serialized_name: 'id',
157
+ type: {
158
+ name: 'String'
159
+ }
160
+ },
161
+ name: {
162
+ client_side_validation: true,
163
+ required: false,
164
+ read_only: true,
165
+ serialized_name: 'name',
166
+ type: {
167
+ name: 'String'
168
+ }
169
+ },
170
+ type: {
171
+ client_side_validation: true,
172
+ required: false,
173
+ read_only: true,
174
+ serialized_name: 'type',
175
+ type: {
176
+ name: 'String'
177
+ }
178
+ },
179
+ location: {
180
+ client_side_validation: true,
181
+ required: true,
182
+ serialized_name: 'location',
183
+ type: {
184
+ name: 'String'
185
+ }
186
+ },
187
+ tags: {
188
+ client_side_validation: true,
189
+ required: false,
190
+ serialized_name: 'tags',
191
+ type: {
192
+ name: 'Dictionary',
193
+ value: {
194
+ client_side_validation: true,
195
+ required: false,
196
+ serialized_name: 'StringElementType',
197
+ type: {
198
+ name: 'String'
199
+ }
200
+ }
201
+ }
202
+ },
203
+ sku: {
204
+ client_side_validation: true,
205
+ required: false,
206
+ serialized_name: 'sku',
207
+ type: {
208
+ name: 'Composite',
209
+ class_name: 'ArmSku'
210
+ }
211
+ },
212
+ kind: {
213
+ client_side_validation: true,
214
+ required: false,
215
+ read_only: true,
216
+ serialized_name: 'kind',
217
+ type: {
218
+ name: 'String'
219
+ }
220
+ },
221
+ create_mode: {
222
+ client_side_validation: true,
223
+ required: false,
224
+ serialized_name: 'properties.createMode',
225
+ type: {
226
+ name: 'String'
227
+ }
228
+ },
229
+ collation: {
230
+ client_side_validation: true,
231
+ required: false,
232
+ serialized_name: 'properties.collation',
233
+ type: {
234
+ name: 'String'
235
+ }
236
+ },
237
+ max_size_bytes: {
238
+ client_side_validation: true,
239
+ required: false,
240
+ serialized_name: 'properties.maxSizeBytes',
241
+ type: {
242
+ name: 'Number'
243
+ }
244
+ },
245
+ sample_name: {
246
+ client_side_validation: true,
247
+ required: false,
248
+ serialized_name: 'properties.sampleName',
249
+ type: {
250
+ name: 'String'
251
+ }
252
+ },
253
+ elastic_pool_id: {
254
+ client_side_validation: true,
255
+ required: false,
256
+ serialized_name: 'properties.elasticPoolId',
257
+ type: {
258
+ name: 'String'
259
+ }
260
+ },
261
+ source_database_id: {
262
+ client_side_validation: true,
263
+ required: false,
264
+ serialized_name: 'properties.sourceDatabaseId',
265
+ type: {
266
+ name: 'String'
267
+ }
268
+ },
269
+ status: {
270
+ client_side_validation: true,
271
+ required: false,
272
+ read_only: true,
273
+ serialized_name: 'properties.status',
274
+ type: {
275
+ name: 'String'
276
+ }
277
+ },
278
+ database_id: {
279
+ client_side_validation: true,
280
+ required: false,
281
+ read_only: true,
282
+ serialized_name: 'properties.databaseId',
283
+ type: {
284
+ name: 'String'
285
+ }
286
+ },
287
+ creation_date: {
288
+ client_side_validation: true,
289
+ required: false,
290
+ read_only: true,
291
+ serialized_name: 'properties.creationDate',
292
+ type: {
293
+ name: 'DateTime'
294
+ }
295
+ },
296
+ current_service_objective_name: {
297
+ client_side_validation: true,
298
+ required: false,
299
+ read_only: true,
300
+ serialized_name: 'properties.currentServiceObjectiveName',
301
+ type: {
302
+ name: 'String'
303
+ }
304
+ },
305
+ default_secondary_location: {
306
+ client_side_validation: true,
307
+ required: false,
308
+ read_only: true,
309
+ serialized_name: 'properties.defaultSecondaryLocation',
310
+ type: {
311
+ name: 'String'
312
+ }
313
+ },
314
+ failover_group_id: {
315
+ client_side_validation: true,
316
+ required: false,
317
+ read_only: true,
318
+ serialized_name: 'properties.failoverGroupId',
319
+ type: {
320
+ name: 'String'
321
+ }
322
+ },
323
+ restore_point_in_time: {
324
+ client_side_validation: true,
325
+ required: false,
326
+ serialized_name: 'properties.restorePointInTime',
327
+ type: {
328
+ name: 'DateTime'
329
+ }
330
+ },
331
+ source_database_deletion_date: {
332
+ client_side_validation: true,
333
+ required: false,
334
+ serialized_name: 'properties.sourceDatabaseDeletionDate',
335
+ type: {
336
+ name: 'DateTime'
337
+ }
338
+ },
339
+ recovery_services_recovery_point_id: {
340
+ client_side_validation: true,
341
+ required: false,
342
+ serialized_name: 'properties.recoveryServicesRecoveryPointId',
343
+ type: {
344
+ name: 'String'
345
+ }
346
+ },
347
+ long_term_retention_backup_resource_id: {
348
+ client_side_validation: true,
349
+ required: false,
350
+ serialized_name: 'properties.longTermRetentionBackupResourceId',
351
+ type: {
352
+ name: 'String'
353
+ }
354
+ },
355
+ recoverable_database_id: {
356
+ client_side_validation: true,
357
+ required: false,
358
+ serialized_name: 'properties.recoverableDatabaseId',
359
+ type: {
360
+ name: 'String'
361
+ }
362
+ },
363
+ restorable_dropped_database_id: {
364
+ client_side_validation: true,
365
+ required: false,
366
+ serialized_name: 'properties.restorableDroppedDatabaseId',
367
+ type: {
368
+ name: 'String'
369
+ }
370
+ },
371
+ catalog_collation: {
372
+ client_side_validation: true,
373
+ required: false,
374
+ serialized_name: 'properties.catalogCollation',
375
+ type: {
376
+ name: 'String'
377
+ }
378
+ },
379
+ zone_redundant: {
380
+ client_side_validation: true,
381
+ required: false,
382
+ serialized_name: 'properties.zoneRedundant',
383
+ type: {
384
+ name: 'Boolean'
385
+ }
386
+ }
387
+ }
388
+ }
389
+ }
390
+ end
391
+ end
392
+ end
393
+ end