azure_mgmt_sql 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_sql.rb +124 -41
  3. data/lib/generated/azure_mgmt_sql/capabilities.rb +115 -0
  4. data/lib/generated/azure_mgmt_sql/databases.rb +2877 -443
  5. data/lib/generated/azure_mgmt_sql/elastic_pools.rb +407 -30
  6. data/lib/generated/azure_mgmt_sql/failover_groups.rb +1143 -0
  7. data/lib/generated/azure_mgmt_sql/firewall_rules.rb +443 -0
  8. data/lib/generated/azure_mgmt_sql/models/authentication_type.rb +16 -0
  9. data/lib/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb +94 -0
  10. data/lib/generated/azure_mgmt_sql/models/backup_long_term_retention_policy_state.rb +16 -0
  11. data/lib/generated/azure_mgmt_sql/models/backup_long_term_retention_vault.rb +80 -0
  12. data/lib/generated/azure_mgmt_sql/models/{transparent_data_encryption_states.rb → blob_auditing_policy_state.rb} +3 -3
  13. data/lib/generated/azure_mgmt_sql/models/capability_status.rb +18 -0
  14. data/lib/generated/azure_mgmt_sql/models/check_name_availability_reason.rb +16 -0
  15. data/lib/generated/azure_mgmt_sql/models/check_name_availability_request.rb +59 -0
  16. data/lib/generated/azure_mgmt_sql/models/check_name_availability_response.rb +84 -0
  17. data/lib/generated/azure_mgmt_sql/models/create_mode.rb +2 -1
  18. data/lib/generated/azure_mgmt_sql/models/data_masking_function.rb +20 -0
  19. data/lib/generated/azure_mgmt_sql/models/data_masking_policy.rb +131 -0
  20. data/lib/generated/azure_mgmt_sql/models/data_masking_rule.rb +226 -0
  21. data/lib/generated/azure_mgmt_sql/models/data_masking_rule_list_result.rb +54 -0
  22. data/lib/generated/azure_mgmt_sql/models/data_masking_rule_state.rb +16 -0
  23. data/lib/generated/azure_mgmt_sql/models/{server_state.rb → data_masking_state.rb} +4 -4
  24. data/lib/generated/azure_mgmt_sql/models/database.rb +115 -63
  25. data/lib/generated/azure_mgmt_sql/models/database_blob_auditing_policy.rb +156 -0
  26. data/lib/generated/azure_mgmt_sql/models/{database_editions.rb → database_edition.rb} +4 -3
  27. data/lib/generated/azure_mgmt_sql/models/database_list_result.rb +2 -1
  28. data/lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb +179 -0
  29. data/lib/generated/azure_mgmt_sql/models/database_update.rb +464 -0
  30. data/lib/generated/azure_mgmt_sql/models/{database_metric.rb → database_usage.rb} +13 -11
  31. data/lib/generated/azure_mgmt_sql/models/{database_metric_list_result.rb → database_usage_list_result.rb} +10 -9
  32. data/lib/generated/azure_mgmt_sql/models/edition_capability.rb +79 -0
  33. data/lib/generated/azure_mgmt_sql/models/elastic_pool.rb +15 -14
  34. data/lib/generated/azure_mgmt_sql/models/elastic_pool_activity.rb +12 -22
  35. data/lib/generated/azure_mgmt_sql/models/elastic_pool_activity_list_result.rb +2 -1
  36. data/lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb +12 -22
  37. data/lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity_list_result.rb +2 -1
  38. data/lib/generated/azure_mgmt_sql/models/elastic_pool_dtu_capability.rb +143 -0
  39. data/lib/generated/azure_mgmt_sql/models/{elastic_pool_editions.rb → elastic_pool_edition.rb} +3 -3
  40. data/lib/generated/azure_mgmt_sql/models/elastic_pool_edition_capability.rb +79 -0
  41. data/lib/generated/azure_mgmt_sql/models/elastic_pool_list_result.rb +2 -1
  42. data/lib/generated/azure_mgmt_sql/models/elastic_pool_per_database_max_dtu_capability.rb +79 -0
  43. data/lib/generated/azure_mgmt_sql/models/elastic_pool_per_database_min_dtu_capability.rb +59 -0
  44. data/lib/generated/azure_mgmt_sql/models/elastic_pool_state.rb +1 -1
  45. data/lib/generated/azure_mgmt_sql/models/elastic_pool_update.rb +152 -0
  46. data/lib/generated/azure_mgmt_sql/models/encryption_protector.rb +137 -0
  47. data/lib/generated/azure_mgmt_sql/models/encryption_protector_list_result.rb +96 -0
  48. data/lib/generated/azure_mgmt_sql/models/export_request.rb +101 -0
  49. data/lib/generated/azure_mgmt_sql/models/failover_group.rb +171 -0
  50. data/lib/generated/azure_mgmt_sql/models/failover_group_list_result.rb +96 -0
  51. data/lib/generated/azure_mgmt_sql/models/failover_group_read_only_endpoint.rb +47 -0
  52. data/lib/generated/azure_mgmt_sql/models/failover_group_read_write_endpoint.rb +58 -0
  53. data/lib/generated/azure_mgmt_sql/models/failover_group_replication_role.rb +16 -0
  54. data/lib/generated/azure_mgmt_sql/models/{server_firewall_rule.rb → firewall_rule.rb} +6 -5
  55. data/lib/generated/azure_mgmt_sql/models/{server_firewall_rule_list_result.rb → firewall_rule_list_result.rb} +9 -8
  56. data/lib/generated/azure_mgmt_sql/models/geo_backup_policy.rb +105 -0
  57. data/lib/generated/azure_mgmt_sql/models/geo_backup_policy_list_result.rb +53 -0
  58. data/lib/generated/azure_mgmt_sql/models/geo_backup_policy_state.rb +16 -0
  59. data/lib/generated/azure_mgmt_sql/models/{table_type.rb → identity_type.rb} +4 -5
  60. data/lib/generated/azure_mgmt_sql/models/import_export_response.rb +158 -0
  61. data/lib/generated/azure_mgmt_sql/models/import_extension_request.rb +134 -0
  62. data/lib/generated/azure_mgmt_sql/models/import_request.rb +125 -0
  63. data/lib/generated/azure_mgmt_sql/models/location_capabilities.rb +80 -0
  64. data/lib/generated/azure_mgmt_sql/models/max_size_capability.rb +74 -0
  65. data/lib/generated/azure_mgmt_sql/models/max_size_units.rb +18 -0
  66. data/lib/generated/azure_mgmt_sql/models/metric.rb +114 -0
  67. data/lib/generated/azure_mgmt_sql/models/metric_availability.rb +57 -0
  68. data/lib/generated/azure_mgmt_sql/models/metric_definition.rb +104 -0
  69. data/lib/generated/azure_mgmt_sql/models/metric_definition_list_result.rb +54 -0
  70. data/lib/generated/azure_mgmt_sql/models/metric_list_result.rb +53 -0
  71. data/lib/generated/azure_mgmt_sql/models/metric_name.rb +57 -0
  72. data/lib/generated/azure_mgmt_sql/models/metric_value.rb +117 -0
  73. data/lib/generated/azure_mgmt_sql/models/operation.rb +2 -1
  74. data/lib/generated/azure_mgmt_sql/models/operation_display.rb +2 -1
  75. data/lib/generated/azure_mgmt_sql/models/operation_impact.rb +3 -2
  76. data/lib/generated/azure_mgmt_sql/models/operation_list_result.rb +2 -1
  77. data/lib/generated/azure_mgmt_sql/models/partner_info.rb +68 -0
  78. data/lib/generated/azure_mgmt_sql/models/performance_level_unit.rb +15 -0
  79. data/lib/generated/azure_mgmt_sql/models/primary_aggregation_type.rb +20 -0
  80. data/lib/generated/azure_mgmt_sql/models/proxy_resource.rb +59 -0
  81. data/lib/generated/azure_mgmt_sql/models/read_only_endpoint_failover_policy.rb +16 -0
  82. data/lib/generated/azure_mgmt_sql/models/read_scale.rb +1 -1
  83. data/lib/generated/azure_mgmt_sql/models/read_write_endpoint_failover_policy.rb +16 -0
  84. data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool.rb +9 -29
  85. data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool_list_metrics_result.rb +2 -1
  86. data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool_list_result.rb +2 -1
  87. data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool_metric.rb +2 -1
  88. data/lib/generated/azure_mgmt_sql/models/recommended_index.rb +13 -33
  89. data/lib/generated/azure_mgmt_sql/models/{recommended_index_actions.rb → recommended_index_action.rb} +3 -3
  90. data/lib/generated/azure_mgmt_sql/models/{recommended_index_states.rb → recommended_index_state.rb} +3 -3
  91. data/lib/generated/azure_mgmt_sql/models/{recommended_index_types.rb → recommended_index_type.rb} +3 -3
  92. data/lib/generated/azure_mgmt_sql/models/recoverable_database.rb +104 -0
  93. data/lib/generated/azure_mgmt_sql/models/recoverable_database_list_result.rb +53 -0
  94. data/lib/generated/azure_mgmt_sql/models/replication_link.rb +3 -2
  95. data/lib/generated/azure_mgmt_sql/models/replication_link_list_result.rb +2 -1
  96. data/lib/generated/azure_mgmt_sql/models/replication_role.rb +1 -1
  97. data/lib/generated/azure_mgmt_sql/models/replication_state.rb +1 -1
  98. data/lib/generated/azure_mgmt_sql/models/resource_identity.rb +69 -0
  99. data/lib/generated/azure_mgmt_sql/models/restorable_dropped_database.rb +159 -0
  100. data/lib/generated/azure_mgmt_sql/models/restorable_dropped_database_list_result.rb +54 -0
  101. data/lib/generated/azure_mgmt_sql/models/restore_point.rb +10 -30
  102. data/lib/generated/azure_mgmt_sql/models/restore_point_list_result.rb +4 -4
  103. data/lib/generated/azure_mgmt_sql/models/{restore_point_types.rb → restore_point_type.rb} +3 -3
  104. data/lib/generated/azure_mgmt_sql/models/sample_name.rb +1 -1
  105. data/lib/generated/azure_mgmt_sql/models/security_alert_policy_email_account_admins.rb +16 -0
  106. data/lib/generated/azure_mgmt_sql/models/security_alert_policy_state.rb +17 -0
  107. data/lib/generated/azure_mgmt_sql/models/security_alert_policy_use_server_default.rb +16 -0
  108. data/lib/generated/azure_mgmt_sql/models/server.rb +38 -56
  109. data/lib/generated/azure_mgmt_sql/models/server_administrator_list_result.rb +54 -0
  110. data/lib/generated/azure_mgmt_sql/models/server_azure_adadministrator.rb +94 -0
  111. data/lib/generated/azure_mgmt_sql/models/server_communication_link.rb +103 -0
  112. data/lib/generated/azure_mgmt_sql/models/server_communication_link_list_result.rb +54 -0
  113. data/lib/generated/azure_mgmt_sql/models/{schema.rb → server_connection_policy.rb} +33 -38
  114. data/lib/generated/azure_mgmt_sql/models/server_connection_type.rb +17 -0
  115. data/lib/generated/azure_mgmt_sql/models/server_key.rb +135 -0
  116. data/lib/generated/azure_mgmt_sql/models/server_key_list_result.rb +96 -0
  117. data/lib/generated/azure_mgmt_sql/models/server_key_type.rb +16 -0
  118. data/lib/generated/azure_mgmt_sql/models/server_list_result.rb +48 -4
  119. data/lib/generated/azure_mgmt_sql/models/server_update.rb +106 -0
  120. data/lib/generated/azure_mgmt_sql/models/{server_metric.rb → server_usage.rb} +6 -5
  121. data/lib/generated/azure_mgmt_sql/models/{server_metric_list_result.rb → server_usage_list_result.rb} +9 -9
  122. data/lib/generated/azure_mgmt_sql/models/server_version_capability.rb +99 -0
  123. data/lib/generated/azure_mgmt_sql/models/service_objective.rb +3 -2
  124. data/lib/generated/azure_mgmt_sql/models/service_objective_capability.rb +127 -0
  125. data/lib/generated/azure_mgmt_sql/models/service_objective_list_result.rb +2 -1
  126. data/lib/generated/azure_mgmt_sql/models/service_objective_name.rb +2 -1
  127. data/lib/generated/azure_mgmt_sql/models/service_tier_advisor.rb +3 -2
  128. data/lib/generated/azure_mgmt_sql/models/service_tier_advisor_list_result.rb +2 -1
  129. data/lib/generated/azure_mgmt_sql/models/slo_usage_metric.rb +8 -3
  130. data/lib/generated/azure_mgmt_sql/models/sql_sub_resource.rb +3 -2
  131. data/lib/generated/azure_mgmt_sql/models/storage_key_type.rb +16 -0
  132. data/lib/generated/azure_mgmt_sql/models/sub_resource.rb +54 -0
  133. data/lib/generated/azure_mgmt_sql/models/{column.rb → tracked_resource.rb} +19 -23
  134. data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption.rb +6 -5
  135. data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_activity.rb +4 -3
  136. data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_activity_list_result.rb +2 -1
  137. data/lib/generated/azure_mgmt_sql/models/{transparent_data_encryption_activity_states.rb → transparent_data_encryption_activity_status.rb} +3 -3
  138. data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_status.rb +16 -0
  139. data/lib/generated/azure_mgmt_sql/models/unit_definition_type.rb +20 -0
  140. data/lib/generated/azure_mgmt_sql/models/unit_type.rb +20 -0
  141. data/lib/generated/azure_mgmt_sql/models/virtual_network_rule.rb +69 -0
  142. data/lib/generated/azure_mgmt_sql/models/virtual_network_rule_list_result.rb +96 -0
  143. data/lib/generated/azure_mgmt_sql/module_definition.rb +1 -1
  144. data/lib/generated/azure_mgmt_sql/operations.rb +109 -0
  145. data/lib/generated/azure_mgmt_sql/recommended_elastic_pools.rb +21 -22
  146. data/lib/generated/azure_mgmt_sql/recoverable_databases.rb +229 -0
  147. data/lib/generated/azure_mgmt_sql/restorable_dropped_databases.rb +229 -0
  148. data/lib/generated/azure_mgmt_sql/server_azure_adadministrators.rb +575 -0
  149. data/lib/generated/azure_mgmt_sql/server_communication_links.rb +496 -0
  150. data/lib/generated/azure_mgmt_sql/server_keys.rb +670 -0
  151. data/lib/generated/azure_mgmt_sql/servers.rb +1366 -257
  152. data/lib/generated/azure_mgmt_sql/sql_management_client.rb +44 -85
  153. data/lib/generated/azure_mgmt_sql/version.rb +2 -2
  154. data/lib/generated/azure_mgmt_sql/virtual_network_rules.rb +663 -0
  155. metadata +110 -27
  156. data/lib/generated/azure_mgmt_sql/models/server_version.rb +0 -16
  157. data/lib/generated/azure_mgmt_sql/models/table.rb +0 -131
  158. data/lib/generated/azure_mgmt_sql/models/target_elastic_pool_editions.rb +0 -17
  159. data/lib/generated/azure_mgmt_sql/models/upgrade_hint.rb +0 -54
  160. data/lib/generated/azure_mgmt_sql/models/upgrade_recommended_elastic_pool_properties.rb +0 -131
@@ -0,0 +1,226 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::SQL
7
+ module Models
8
+ #
9
+ # Represents a database data masking rule.
10
+ #
11
+ class DataMaskingRule < ProxyResource
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] The rule Id.
17
+ attr_accessor :data_masking_rule_id
18
+
19
+ # @return [String] The alias name. This is a legacy parameter and is no
20
+ # longer used.
21
+ attr_accessor :alias_name
22
+
23
+ # @return [DataMaskingRuleState] The rule state. Used to delete a rule.
24
+ # To delete an existing rule, specify the schemaName, tableName,
25
+ # columnName, maskingFunction, and specify ruleState as disabled.
26
+ # However, if the rule doesn't already exist, the rule will be created
27
+ # with ruleState set to enabled, regardless of the provided value of
28
+ # ruleState. Possible values include: 'Disabled', 'Enabled'
29
+ attr_accessor :rule_state
30
+
31
+ # @return [String] The schema name on which the data masking rule is
32
+ # applied.
33
+ attr_accessor :schema_name
34
+
35
+ # @return [String] The table name on which the data masking rule is
36
+ # applied.
37
+ attr_accessor :table_name
38
+
39
+ # @return [String] The column name on which the data masking rule is
40
+ # applied.
41
+ attr_accessor :column_name
42
+
43
+ # @return [DataMaskingFunction] The masking function that is used for the
44
+ # data masking rule. Possible values include: 'Default', 'CCN', 'Email',
45
+ # 'Number', 'SSN', 'Text'
46
+ attr_accessor :masking_function
47
+
48
+ # @return [String] The numberFrom property of the masking rule. Required
49
+ # if maskingFunction is set to Number, otherwise this parameter will be
50
+ # ignored.
51
+ attr_accessor :number_from
52
+
53
+ # @return [String] The numberTo property of the data masking rule.
54
+ # Required if maskingFunction is set to Number, otherwise this parameter
55
+ # will be ignored.
56
+ attr_accessor :number_to
57
+
58
+ # @return [String] If maskingFunction is set to Text, the number of
59
+ # characters to show unmasked in the beginning of the string. Otherwise,
60
+ # this parameter will be ignored.
61
+ attr_accessor :prefix_size
62
+
63
+ # @return [String] If maskingFunction is set to Text, the number of
64
+ # characters to show unmasked at the end of the string. Otherwise, this
65
+ # parameter will be ignored.
66
+ attr_accessor :suffix_size
67
+
68
+ # @return [String] If maskingFunction is set to Text, the character to
69
+ # use for masking the unexposed part of the string. Otherwise, this
70
+ # parameter will be ignored.
71
+ attr_accessor :replacement_string
72
+
73
+ # @return [String] The location of the data masking rule.
74
+ attr_accessor :location
75
+
76
+ # @return [String] The kind of Data Masking Rule. Metadata, used for
77
+ # Azure portal.
78
+ attr_accessor :kind
79
+
80
+
81
+ #
82
+ # Mapper for DataMaskingRule class as Ruby Hash.
83
+ # This will be used for serialization/deserialization.
84
+ #
85
+ def self.mapper()
86
+ {
87
+ required: false,
88
+ serialized_name: 'DataMaskingRule',
89
+ type: {
90
+ name: 'Composite',
91
+ class_name: 'DataMaskingRule',
92
+ model_properties: {
93
+ id: {
94
+ required: false,
95
+ read_only: true,
96
+ serialized_name: 'id',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ name: {
102
+ required: false,
103
+ read_only: true,
104
+ serialized_name: 'name',
105
+ type: {
106
+ name: 'String'
107
+ }
108
+ },
109
+ type: {
110
+ required: false,
111
+ read_only: true,
112
+ serialized_name: 'type',
113
+ type: {
114
+ name: 'String'
115
+ }
116
+ },
117
+ data_masking_rule_id: {
118
+ required: false,
119
+ read_only: true,
120
+ serialized_name: 'properties.id',
121
+ type: {
122
+ name: 'String'
123
+ }
124
+ },
125
+ alias_name: {
126
+ required: false,
127
+ serialized_name: 'properties.aliasName',
128
+ type: {
129
+ name: 'String'
130
+ }
131
+ },
132
+ rule_state: {
133
+ required: false,
134
+ serialized_name: 'properties.ruleState',
135
+ type: {
136
+ name: 'Enum',
137
+ module: 'DataMaskingRuleState'
138
+ }
139
+ },
140
+ schema_name: {
141
+ required: true,
142
+ serialized_name: 'properties.schemaName',
143
+ type: {
144
+ name: 'String'
145
+ }
146
+ },
147
+ table_name: {
148
+ required: true,
149
+ serialized_name: 'properties.tableName',
150
+ type: {
151
+ name: 'String'
152
+ }
153
+ },
154
+ column_name: {
155
+ required: true,
156
+ serialized_name: 'properties.columnName',
157
+ type: {
158
+ name: 'String'
159
+ }
160
+ },
161
+ masking_function: {
162
+ required: true,
163
+ serialized_name: 'properties.maskingFunction',
164
+ type: {
165
+ name: 'Enum',
166
+ module: 'DataMaskingFunction'
167
+ }
168
+ },
169
+ number_from: {
170
+ required: false,
171
+ serialized_name: 'properties.numberFrom',
172
+ type: {
173
+ name: 'String'
174
+ }
175
+ },
176
+ number_to: {
177
+ required: false,
178
+ serialized_name: 'properties.numberTo',
179
+ type: {
180
+ name: 'String'
181
+ }
182
+ },
183
+ prefix_size: {
184
+ required: false,
185
+ serialized_name: 'properties.prefixSize',
186
+ type: {
187
+ name: 'String'
188
+ }
189
+ },
190
+ suffix_size: {
191
+ required: false,
192
+ serialized_name: 'properties.suffixSize',
193
+ type: {
194
+ name: 'String'
195
+ }
196
+ },
197
+ replacement_string: {
198
+ required: false,
199
+ serialized_name: 'properties.replacementString',
200
+ type: {
201
+ name: 'String'
202
+ }
203
+ },
204
+ location: {
205
+ required: false,
206
+ read_only: true,
207
+ serialized_name: 'location',
208
+ type: {
209
+ name: 'String'
210
+ }
211
+ },
212
+ kind: {
213
+ required: false,
214
+ read_only: true,
215
+ serialized_name: 'kind',
216
+ type: {
217
+ name: 'String'
218
+ }
219
+ }
220
+ }
221
+ }
222
+ }
223
+ end
224
+ end
225
+ end
226
+ end
@@ -0,0 +1,54 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::SQL
7
+ module Models
8
+ #
9
+ # The response to a list data masking rules request.
10
+ #
11
+ class DataMaskingRuleListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<DataMaskingRule>] The list of database data masking
17
+ # rules.
18
+ attr_accessor :value
19
+
20
+
21
+ #
22
+ # Mapper for DataMaskingRuleListResult class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ required: false,
28
+ serialized_name: 'DataMaskingRuleListResult',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'DataMaskingRuleListResult',
32
+ model_properties: {
33
+ value: {
34
+ required: false,
35
+ serialized_name: 'value',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ required: false,
40
+ serialized_name: 'DataMaskingRuleElementType',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'DataMaskingRule'
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::SQL
7
+ module Models
8
+ #
9
+ # Defines values for DataMaskingRuleState
10
+ #
11
+ module DataMaskingRuleState
12
+ Disabled = "Disabled"
13
+ Enabled = "Enabled"
14
+ end
15
+ end
16
+ end
@@ -1,16 +1,16 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::SQL
7
7
  module Models
8
8
  #
9
- # Defines values for ServerState
9
+ # Defines values for DataMaskingState
10
10
  #
11
- module ServerState
12
- Ready = "Ready"
11
+ module DataMaskingState
13
12
  Disabled = "Disabled"
13
+ Enabled = "Enabled"
14
14
  end
15
15
  end
16
16
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -8,10 +8,11 @@ module Azure::ARM::SQL
8
8
  #
9
9
  # Represents a database.
10
10
  #
11
- class Database < MsRestAzure::Resource
11
+ class Database < TrackedResource
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [String] Kind of database. This is metadata used for the Azure
16
17
  # portal experience.
17
18
  attr_accessor :kind
@@ -30,49 +31,97 @@ module Azure::ARM::SQL
30
31
  # the ID of the service level objective that is currently active.
31
32
  attr_accessor :current_service_objective_id
32
33
 
33
- # @return [String] The ID of the database.
34
+ # @return The ID of the database.
34
35
  attr_accessor :database_id
35
36
 
36
37
  # @return [DateTime] This records the earliest start date and time that
37
38
  # restore is available for this database (ISO8601 format).
38
39
  attr_accessor :earliest_restore_date
39
40
 
40
- # @return [CreateMode] Specifies the type of database to create. If
41
- # createMode is not set to Default, sourceDatabaseId must be specified.
42
- # If createMode is set to PointInTimeRestore, then restorePointInTime
43
- # must be specified. If createMode is set to Restore, then
44
- # sourceDatabaseDeletionDate must be specified. Copy,
45
- # NonReadableSecondary, and OnlineSecondary are not supported for
46
- # DataWarehouse edition. Possible values include: 'Copy', 'Default',
41
+ # @return [CreateMode] Specifies the mode of database creation.
42
+ #
43
+ # Default: regular database creation.
44
+ #
45
+ # Copy: creates a database as a copy of an existing database.
46
+ # sourceDatabaseId must be specified as the resource ID of the source
47
+ # database.
48
+ #
49
+ # OnlineSecondary/NonReadableSecondary: creates a database as a (readable
50
+ # or nonreadable) secondary replica of an existing database.
51
+ # sourceDatabaseId must be specified as the resource ID of the existing
52
+ # primary database.
53
+ #
54
+ # PointInTimeRestore: Creates a database by restoring a point in time
55
+ # backup of an existing database. sourceDatabaseId must be specified as
56
+ # the resource ID of the existing database, and restorePointInTime must
57
+ # be specified.
58
+ #
59
+ # Recovery: Creates a database by restoring a geo-replicated backup.
60
+ # sourceDatabaseId must be specified as the recoverable database resource
61
+ # ID to restore.
62
+ #
63
+ # Restore: Creates a database by restoring a backup of a deleted
64
+ # database. sourceDatabaseId must be specified. If sourceDatabaseId is
65
+ # the database's original resource ID, then sourceDatabaseDeletionDate
66
+ # must be specified. Otherwise sourceDatabaseId must be the restorable
67
+ # dropped database resource ID and sourceDatabaseDeletionDate is ignored.
68
+ # restorePointInTime may also be specified to restore from an earlier
69
+ # point in time.
70
+ #
71
+ # RestoreLongTermRetentionBackup: Creates a database by restoring from a
72
+ # long term retention vault. recoveryServicesRecoveryPointResourceId must
73
+ # be specified as the recovery point resource ID.
74
+ #
75
+ # Copy, NonReadableSecondary, OnlineSecondary and
76
+ # RestoreLongTermRetentionBackup are not supported for DataWarehouse
77
+ # edition. Possible values include: 'Copy', 'Default',
47
78
  # 'NonReadableSecondary', 'OnlineSecondary', 'PointInTimeRestore',
48
- # 'Recovery', 'Restore'
79
+ # 'Recovery', 'Restore', 'RestoreLongTermRetentionBackup'
49
80
  attr_accessor :create_mode
50
81
 
51
- # @return [String] Conditional. If createMode is not set to Default, then
52
- # this value must be specified. Specifies the resource ID of the source
53
- # database. If createMode is NonReadableSecondary or OnlineSecondary, the
54
- # name of the source database must be the same as this new database.
82
+ # @return [String] Conditional. If createMode is Copy,
83
+ # NonReadableSecondary, OnlineSecondary, PointInTimeRestore, Recovery, or
84
+ # Restore, then this value is required. Specifies the resource ID of the
85
+ # source database. If createMode is NonReadableSecondary or
86
+ # OnlineSecondary, the name of the source database must be the same as
87
+ # the new database being created.
55
88
  attr_accessor :source_database_id
56
89
 
57
- # @return [DateTime] Conditional. If createMode is set to
58
- # PointInTimeRestore, then this value must be specified. Specifies the
59
- # point in time (ISO8601 format) of the source database that will be
60
- # restored to create the new database. Must be greater than or equal to
61
- # the source database's earliestRestoreDate value.
90
+ # @return [DateTime] Conditional. If createMode is Restore and
91
+ # sourceDatabaseId is the deleted database's original resource id when it
92
+ # existed (as opposed to its current restorable dropped database id),
93
+ # then this value is required. Specifies the time that the database was
94
+ # deleted.
95
+ attr_accessor :source_database_deletion_date
96
+
97
+ # @return [DateTime] Conditional. If createMode is PointInTimeRestore,
98
+ # this value is required. If createMode is Restore, this value is
99
+ # optional. Specifies the point in time (ISO8601 format) of the source
100
+ # database that will be restored to create the new database. Must be
101
+ # greater than or equal to the source database's earliestRestoreDate
102
+ # value.
62
103
  attr_accessor :restore_point_in_time
63
104
 
64
- # @return [DatabaseEditions] The edition of the database. The
105
+ # @return [String] Conditional. If createMode is
106
+ # RestoreLongTermRetentionBackup, then this value is required. Specifies
107
+ # the resource ID of the recovery point to restore from.
108
+ attr_accessor :recovery_services_recovery_point_resource_id
109
+
110
+ # @return [DatabaseEdition] The edition of the database. The
65
111
  # DatabaseEditions enumeration contains all the valid editions. If
66
112
  # createMode is NonReadableSecondary or OnlineSecondary, this value is
67
- # ignored. Possible values include: 'Web', 'Business', 'Basic',
68
- # 'Standard', 'Premium', 'Free', 'Stretch', 'DataWarehouse', 'System'
113
+ # ignored. To see possible values, query the capabilities API
114
+ # (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities)
115
+ # referred to by operationId: "Capabilities_ListByLocation.". Possible
116
+ # values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium',
117
+ # 'Free', 'Stretch', 'DataWarehouse', 'System', 'System2'
69
118
  attr_accessor :edition
70
119
 
71
120
  # @return [String] The max size of the database expressed in bytes. If
72
- # createMode is not Default, this value is ignored. Note: Only the
73
- # following sizes are supported (in addition to limitations being placed
74
- # on each edition): { 100 MB | 500 MB |1 GB | 5 GB | 10 GB | 20 GB | 30
75
- # GB 150 GB | 200 GB … 500 GB }
121
+ # createMode is not Default, this value is ignored. To see possible
122
+ # values, query the capabilities API
123
+ # (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities)
124
+ # referred to by operationId: "Capabilities_ListByLocation."
76
125
  attr_accessor :max_size_bytes
77
126
 
78
127
  # @return The configured service level objective ID of the database. This
@@ -81,20 +130,27 @@ module Azure::ARM::SQL
81
130
  # currentServiceObjectiveId property. If requestedServiceObjectiveId and
82
131
  # requestedServiceObjectiveName are both updated, the value of
83
132
  # requestedServiceObjectiveId overrides the value of
84
- # requestedServiceObjectiveName.
133
+ # requestedServiceObjectiveName. To see possible values, query the
134
+ # capabilities API
135
+ # (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities)
136
+ # referred to by operationId: "Capabilities_ListByLocation."
85
137
  attr_accessor :requested_service_objective_id
86
138
 
87
139
  # @return [ServiceObjectiveName] The name of the configured service level
88
140
  # objective of the database. This is the service level objective that is
89
141
  # in the process of being applied to the database. Once successfully
90
- # updated, it will match the value of serviceLevelObjective property.
91
- # Possible values include: 'Basic', 'S0', 'S1', 'S2', 'S3', 'P1', 'P2',
92
- # 'P3', 'P4', 'P6', 'P11', 'P15', 'System', 'ElasticPool'
142
+ # updated, it will match the value of serviceLevelObjective property. To
143
+ # see possible values, query the capabilities API
144
+ # (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities)
145
+ # referred to by operationId: "Capabilities_ListByLocation.". Possible
146
+ # values include: 'Basic', 'S0', 'S1', 'S2', 'S3', 'P1', 'P2', 'P3',
147
+ # 'P4', 'P6', 'P11', 'P15', 'System', 'System2', 'ElasticPool'
93
148
  attr_accessor :requested_service_objective_name
94
149
 
95
150
  # @return [ServiceObjectiveName] The current service level objective of
96
151
  # the database. Possible values include: 'Basic', 'S0', 'S1', 'S2', 'S3',
97
- # 'P1', 'P2', 'P3', 'P4', 'P6', 'P11', 'P15', 'System', 'ElasticPool'
152
+ # 'P1', 'P2', 'P3', 'P4', 'P6', 'P11', 'P15', 'System', 'System2',
153
+ # 'ElasticPool'
98
154
  attr_accessor :service_level_objective
99
155
 
100
156
  # @return [String] The status of the database.
@@ -113,9 +169,6 @@ module Azure::ARM::SQL
113
169
  # for this database. Expanded property
114
170
  attr_accessor :service_tier_advisors
115
171
 
116
- # @return [Array<Schema>] The schemas from this database.
117
- attr_accessor :schemas
118
-
119
172
  # @return [Array<TransparentDataEncryption>] The transparent data
120
173
  # encryption info for this database.
121
174
  attr_accessor :transparent_data_encryption
@@ -124,7 +177,8 @@ module Azure::ARM::SQL
124
177
  # database.
125
178
  attr_accessor :recommended_index
126
179
 
127
- # @return The id indicating the failover group containing this database.
180
+ # @return [String] The resource identifier of the failover group
181
+ # containing this database.
128
182
  attr_accessor :failover_group_id
129
183
 
130
184
  # @return [ReadScale] Conditional. If the database is a geo-secondary,
@@ -152,18 +206,18 @@ module Azure::ARM::SQL
152
206
  name: 'Composite',
153
207
  class_name: 'Database',
154
208
  model_properties: {
155
- name: {
209
+ id: {
156
210
  required: false,
157
211
  read_only: true,
158
- serialized_name: 'name',
212
+ serialized_name: 'id',
159
213
  type: {
160
214
  name: 'String'
161
215
  }
162
216
  },
163
- id: {
217
+ name: {
164
218
  required: false,
165
219
  read_only: true,
166
- serialized_name: 'id',
220
+ serialized_name: 'name',
167
221
  type: {
168
222
  name: 'String'
169
223
  }
@@ -176,13 +230,6 @@ module Azure::ARM::SQL
176
230
  name: 'String'
177
231
  }
178
232
  },
179
- location: {
180
- required: true,
181
- serialized_name: 'location',
182
- type: {
183
- name: 'String'
184
- }
185
- },
186
233
  tags: {
187
234
  required: false,
188
235
  serialized_name: 'tags',
@@ -197,6 +244,13 @@ module Azure::ARM::SQL
197
244
  }
198
245
  }
199
246
  },
247
+ location: {
248
+ required: true,
249
+ serialized_name: 'location',
250
+ type: {
251
+ name: 'String'
252
+ }
253
+ },
200
254
  kind: {
201
255
  required: false,
202
256
  read_only: true,
@@ -266,6 +320,13 @@ module Azure::ARM::SQL
266
320
  name: 'String'
267
321
  }
268
322
  },
323
+ source_database_deletion_date: {
324
+ required: false,
325
+ serialized_name: 'properties.sourceDatabaseDeletionDate',
326
+ type: {
327
+ name: 'DateTime'
328
+ }
329
+ },
269
330
  restore_point_in_time: {
270
331
  required: false,
271
332
  serialized_name: 'properties.restorePointInTime',
@@ -273,6 +334,13 @@ module Azure::ARM::SQL
273
334
  name: 'DateTime'
274
335
  }
275
336
  },
337
+ recovery_services_recovery_point_resource_id: {
338
+ required: false,
339
+ serialized_name: 'properties.recoveryServicesRecoveryPointResourceId',
340
+ type: {
341
+ name: 'String'
342
+ }
343
+ },
276
344
  edition: {
277
345
  required: false,
278
346
  serialized_name: 'properties.edition',
@@ -348,22 +416,6 @@ module Azure::ARM::SQL
348
416
  }
349
417
  }
350
418
  },
351
- schemas: {
352
- required: false,
353
- read_only: true,
354
- serialized_name: 'properties.schemas',
355
- type: {
356
- name: 'Sequence',
357
- element: {
358
- required: false,
359
- serialized_name: 'SchemaElementType',
360
- type: {
361
- name: 'Composite',
362
- class_name: 'Schema'
363
- }
364
- }
365
- }
366
- },
367
419
  transparent_data_encryption: {
368
420
  required: false,
369
421
  read_only: true,