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,100 @@
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 list of databases.
10
+ #
11
+ class DatabaseListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<Database>] Array of results.
17
+ attr_accessor :value
18
+
19
+ # @return [String] Link to retrieve next page of results.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<Database>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [DatabaseListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for DatabaseListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'DatabaseListResult',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'DatabaseListResult',
66
+ model_properties: {
67
+ value: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'value',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'DatabaseElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'Database'
81
+ }
82
+ }
83
+ }
84
+ },
85
+ next_link: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'nextLink',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,124 @@
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
+ # Database restore points.
10
+ #
11
+ class DatabaseRestorePoint < ProxyResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource location.
16
+ attr_accessor :location
17
+
18
+ # @return [RestorePointType] The type of restore point. Possible values
19
+ # include: 'CONTINUOUS', 'DISCRETE'
20
+ attr_accessor :restore_point_type
21
+
22
+ # @return [DateTime] The earliest time to which this database can be
23
+ # restored
24
+ attr_accessor :earliest_restore_date
25
+
26
+ # @return [DateTime] The time the backup was taken
27
+ attr_accessor :restore_point_creation_date
28
+
29
+ # @return [String] The label of restore point for backup request by user
30
+ attr_accessor :restore_point_label
31
+
32
+
33
+ #
34
+ # Mapper for DatabaseRestorePoint 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: 'DatabaseRestorePoint',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'DatabaseRestorePoint',
45
+ model_properties: {
46
+ id: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ read_only: true,
50
+ serialized_name: 'id',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ name: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ read_only: true,
59
+ serialized_name: 'name',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ type: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ read_only: true,
68
+ serialized_name: 'type',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ location: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ read_only: true,
77
+ serialized_name: 'location',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ restore_point_type: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ read_only: true,
86
+ serialized_name: 'properties.restorePointType',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ },
91
+ earliest_restore_date: {
92
+ client_side_validation: true,
93
+ required: false,
94
+ read_only: true,
95
+ serialized_name: 'properties.earliestRestoreDate',
96
+ type: {
97
+ name: 'DateTime'
98
+ }
99
+ },
100
+ restore_point_creation_date: {
101
+ client_side_validation: true,
102
+ required: false,
103
+ read_only: true,
104
+ serialized_name: 'properties.restorePointCreationDate',
105
+ type: {
106
+ name: 'DateTime'
107
+ }
108
+ },
109
+ restore_point_label: {
110
+ client_side_validation: true,
111
+ required: false,
112
+ read_only: true,
113
+ serialized_name: 'properties.restorePointLabel',
114
+ type: {
115
+ name: 'String'
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
121
+ end
122
+ end
123
+ end
124
+ end
@@ -0,0 +1,100 @@
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 list of long term retention bacukps.
10
+ #
11
+ class DatabaseRestorePointListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<DatabaseRestorePoint>] Array of results.
17
+ attr_accessor :value
18
+
19
+ # @return [String] Link to retrieve next page of results.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<DatabaseRestorePoint>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [DatabaseRestorePointListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for DatabaseRestorePointListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'DatabaseRestorePointListResult',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'DatabaseRestorePointListResult',
66
+ model_properties: {
67
+ value: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'value',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'DatabaseRestorePointElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'DatabaseRestorePoint'
81
+ }
82
+ }
83
+ }
84
+ },
85
+ next_link: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'nextLink',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,348 @@
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 DatabaseUpdate
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ArmSku] The name and tier of the SKU.
16
+ attr_accessor :sku
17
+
18
+ # @return [CreateMode] Specifies the mode of database creation.
19
+ #
20
+ # Default: regular database creation.
21
+ #
22
+ # Copy: creates a database as a copy of an existing database.
23
+ # sourceDatabaseId must be specified as the resource ID of the source
24
+ # database.
25
+ #
26
+ # Secondary: creates a database as a secondary replica of an existing
27
+ # database. sourceDatabaseId must be specified as the resource ID of the
28
+ # existing primary database.
29
+ #
30
+ # PointInTimeRestore: Creates a database by restoring a point in time
31
+ # backup of an existing database. sourceDatabaseId must be specified as
32
+ # the resource ID of the existing database, and restorePointInTime must
33
+ # be specified.
34
+ #
35
+ # Recovery: Creates a database by restoring a geo-replicated backup.
36
+ # sourceDatabaseId must be specified as the recoverable database resource
37
+ # ID to restore.
38
+ #
39
+ # Restore: Creates a database by restoring a backup of a deleted
40
+ # database. sourceDatabaseId must be specified. If sourceDatabaseId is
41
+ # the database's original resource ID, then sourceDatabaseDeletionDate
42
+ # must be specified. Otherwise sourceDatabaseId must be the restorable
43
+ # dropped database resource ID and sourceDatabaseDeletionDate is ignored.
44
+ # restorePointInTime may also be specified to restore from an earlier
45
+ # point in time.
46
+ #
47
+ # RestoreLongTermRetentionBackup: Creates a database by restoring from a
48
+ # long term retention vault. recoveryServicesRecoveryPointResourceId must
49
+ # be specified as the recovery point resource ID.
50
+ #
51
+ # Copy, Secondary, and RestoreLongTermRetentionBackup are not supported
52
+ # for DataWarehouse edition. Possible values include: 'Default', 'Copy',
53
+ # 'Secondary', 'PointInTimeRestore', 'Restore', 'Recovery',
54
+ # 'RestoreExternalBackup', 'RestoreExternalBackupSecondary',
55
+ # 'RestoreLongTermRetentionBackup'
56
+ attr_accessor :create_mode
57
+
58
+ # @return [String] The collation of the database.
59
+ attr_accessor :collation
60
+
61
+ # @return [Integer] The max size of the database expressed in bytes.
62
+ attr_accessor :max_size_bytes
63
+
64
+ # @return [SampleName] The name of the sample schema to apply when
65
+ # creating this database. Possible values include: 'AdventureWorksLT',
66
+ # 'WideWorldImportersStd', 'WideWorldImportersFull'
67
+ attr_accessor :sample_name
68
+
69
+ # @return [String] The resource identifier of the elastic pool containing
70
+ # this database.
71
+ attr_accessor :elastic_pool_id
72
+
73
+ # @return [String] The resource identifier of the source database
74
+ # associated with create operation of this database.
75
+ attr_accessor :source_database_id
76
+
77
+ # @return [Status] The status of the database. Possible values include:
78
+ # 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect',
79
+ # 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed',
80
+ # 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing',
81
+ # 'Paused', 'Resuming', 'Scaling'
82
+ attr_accessor :status
83
+
84
+ # @return The ID of the database.
85
+ attr_accessor :database_id
86
+
87
+ # @return [DateTime] The creation date of the database (ISO8601 format).
88
+ attr_accessor :creation_date
89
+
90
+ # @return [String] The current service level objective name of the
91
+ # database.
92
+ attr_accessor :current_service_objective_name
93
+
94
+ # @return [String] The default secondary region for this database.
95
+ attr_accessor :default_secondary_location
96
+
97
+ # @return [String] Failover Group resource identifier that this database
98
+ # belongs to.
99
+ attr_accessor :failover_group_id
100
+
101
+ # @return [DateTime] Specifies the point in time (ISO8601 format) of the
102
+ # source database that will be restored to create the new database.
103
+ attr_accessor :restore_point_in_time
104
+
105
+ # @return [DateTime] Specifies the time that the database was deleted.
106
+ attr_accessor :source_database_deletion_date
107
+
108
+ # @return [String] The resource identifier of the recovery point
109
+ # associated with create operation of this database.
110
+ attr_accessor :recovery_services_recovery_point_id
111
+
112
+ # @return [String] The resource identifier of the long term retention
113
+ # backup associated with create operation of this database.
114
+ attr_accessor :long_term_retention_backup_resource_id
115
+
116
+ # @return [String] The resource identifier of the recoverable database
117
+ # associated with create operation of this database.
118
+ attr_accessor :recoverable_database_id
119
+
120
+ # @return [String] The resource identifier of the restorable dropped
121
+ # database associated with create operation of this database.
122
+ attr_accessor :restorable_dropped_database_id
123
+
124
+ # @return [CatalogCollationType] Collation of the metadata catalog.
125
+ # Possible values include: 'DATABASE_DEFAULT',
126
+ # 'SQL_Latin1_General_CP1_CI_AS'
127
+ attr_accessor :catalog_collation
128
+
129
+ # @return [Boolean] Whether or not this database is zone redundant, which
130
+ # means the replicas of this database will be spread across multiple
131
+ # availability zones.
132
+ attr_accessor :zone_redundant
133
+
134
+ # @return [Hash{String => String}] Resource tags.
135
+ attr_accessor :tags
136
+
137
+
138
+ #
139
+ # Mapper for DatabaseUpdate class as Ruby Hash.
140
+ # This will be used for serialization/deserialization.
141
+ #
142
+ def self.mapper()
143
+ {
144
+ client_side_validation: true,
145
+ required: false,
146
+ serialized_name: 'DatabaseUpdate',
147
+ type: {
148
+ name: 'Composite',
149
+ class_name: 'DatabaseUpdate',
150
+ model_properties: {
151
+ sku: {
152
+ client_side_validation: true,
153
+ required: false,
154
+ serialized_name: 'sku',
155
+ type: {
156
+ name: 'Composite',
157
+ class_name: 'ArmSku'
158
+ }
159
+ },
160
+ create_mode: {
161
+ client_side_validation: true,
162
+ required: false,
163
+ serialized_name: 'properties.createMode',
164
+ type: {
165
+ name: 'String'
166
+ }
167
+ },
168
+ collation: {
169
+ client_side_validation: true,
170
+ required: false,
171
+ serialized_name: 'properties.collation',
172
+ type: {
173
+ name: 'String'
174
+ }
175
+ },
176
+ max_size_bytes: {
177
+ client_side_validation: true,
178
+ required: false,
179
+ serialized_name: 'properties.maxSizeBytes',
180
+ type: {
181
+ name: 'Number'
182
+ }
183
+ },
184
+ sample_name: {
185
+ client_side_validation: true,
186
+ required: false,
187
+ serialized_name: 'properties.sampleName',
188
+ type: {
189
+ name: 'String'
190
+ }
191
+ },
192
+ elastic_pool_id: {
193
+ client_side_validation: true,
194
+ required: false,
195
+ serialized_name: 'properties.elasticPoolId',
196
+ type: {
197
+ name: 'String'
198
+ }
199
+ },
200
+ source_database_id: {
201
+ client_side_validation: true,
202
+ required: false,
203
+ serialized_name: 'properties.sourceDatabaseId',
204
+ type: {
205
+ name: 'String'
206
+ }
207
+ },
208
+ status: {
209
+ client_side_validation: true,
210
+ required: false,
211
+ read_only: true,
212
+ serialized_name: 'properties.status',
213
+ type: {
214
+ name: 'String'
215
+ }
216
+ },
217
+ database_id: {
218
+ client_side_validation: true,
219
+ required: false,
220
+ read_only: true,
221
+ serialized_name: 'properties.databaseId',
222
+ type: {
223
+ name: 'String'
224
+ }
225
+ },
226
+ creation_date: {
227
+ client_side_validation: true,
228
+ required: false,
229
+ read_only: true,
230
+ serialized_name: 'properties.creationDate',
231
+ type: {
232
+ name: 'DateTime'
233
+ }
234
+ },
235
+ current_service_objective_name: {
236
+ client_side_validation: true,
237
+ required: false,
238
+ read_only: true,
239
+ serialized_name: 'properties.currentServiceObjectiveName',
240
+ type: {
241
+ name: 'String'
242
+ }
243
+ },
244
+ default_secondary_location: {
245
+ client_side_validation: true,
246
+ required: false,
247
+ read_only: true,
248
+ serialized_name: 'properties.defaultSecondaryLocation',
249
+ type: {
250
+ name: 'String'
251
+ }
252
+ },
253
+ failover_group_id: {
254
+ client_side_validation: true,
255
+ required: false,
256
+ read_only: true,
257
+ serialized_name: 'properties.failoverGroupId',
258
+ type: {
259
+ name: 'String'
260
+ }
261
+ },
262
+ restore_point_in_time: {
263
+ client_side_validation: true,
264
+ required: false,
265
+ serialized_name: 'properties.restorePointInTime',
266
+ type: {
267
+ name: 'DateTime'
268
+ }
269
+ },
270
+ source_database_deletion_date: {
271
+ client_side_validation: true,
272
+ required: false,
273
+ serialized_name: 'properties.sourceDatabaseDeletionDate',
274
+ type: {
275
+ name: 'DateTime'
276
+ }
277
+ },
278
+ recovery_services_recovery_point_id: {
279
+ client_side_validation: true,
280
+ required: false,
281
+ serialized_name: 'properties.recoveryServicesRecoveryPointId',
282
+ type: {
283
+ name: 'String'
284
+ }
285
+ },
286
+ long_term_retention_backup_resource_id: {
287
+ client_side_validation: true,
288
+ required: false,
289
+ serialized_name: 'properties.longTermRetentionBackupResourceId',
290
+ type: {
291
+ name: 'String'
292
+ }
293
+ },
294
+ recoverable_database_id: {
295
+ client_side_validation: true,
296
+ required: false,
297
+ serialized_name: 'properties.recoverableDatabaseId',
298
+ type: {
299
+ name: 'String'
300
+ }
301
+ },
302
+ restorable_dropped_database_id: {
303
+ client_side_validation: true,
304
+ required: false,
305
+ serialized_name: 'properties.restorableDroppedDatabaseId',
306
+ type: {
307
+ name: 'String'
308
+ }
309
+ },
310
+ catalog_collation: {
311
+ client_side_validation: true,
312
+ required: false,
313
+ serialized_name: 'properties.catalogCollation',
314
+ type: {
315
+ name: 'String'
316
+ }
317
+ },
318
+ zone_redundant: {
319
+ client_side_validation: true,
320
+ required: false,
321
+ serialized_name: 'properties.zoneRedundant',
322
+ type: {
323
+ name: 'Boolean'
324
+ }
325
+ },
326
+ tags: {
327
+ client_side_validation: true,
328
+ required: false,
329
+ serialized_name: 'tags',
330
+ type: {
331
+ name: 'Dictionary',
332
+ value: {
333
+ client_side_validation: true,
334
+ required: false,
335
+ serialized_name: 'StringElementType',
336
+ type: {
337
+ name: 'String'
338
+ }
339
+ }
340
+ }
341
+ }
342
+ }
343
+ }
344
+ }
345
+ end
346
+ end
347
+ end
348
+ end