azure_mgmt_mariadb 0.17.1 → 0.17.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb.rb +6 -3
  3. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/check_name_availability.rb +2 -0
  4. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/configurations.rb +6 -0
  5. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/databases.rb +8 -0
  6. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/firewall_rules.rb +8 -0
  7. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/location_based_performance_tier.rb +2 -0
  8. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/log_files.rb +2 -0
  9. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/maria_dbmanagement_client.rb +5 -1
  10. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/server.rb +37 -0
  11. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_properties_for_create.rb +1 -0
  12. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_properties_for_replica.rb +87 -0
  13. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_update_parameters.rb +11 -0
  14. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/storage_autogrow.rb +16 -0
  15. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/storage_profile.rb +12 -0
  16. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/operations.rb +2 -0
  17. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/replicas.rb +125 -0
  18. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/server_security_alert_policies.rb +4 -0
  19. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/servers.rb +143 -0
  20. data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/virtual_network_rules.rb +10 -0
  21. data/lib/2018-06-01/generated/azure_mgmt_mariadb.rb +1 -0
  22. data/lib/2018-06-01/generated/azure_mgmt_mariadb/check_name_availability.rb +2 -0
  23. data/lib/2018-06-01/generated/azure_mgmt_mariadb/configurations.rb +6 -0
  24. data/lib/2018-06-01/generated/azure_mgmt_mariadb/databases.rb +8 -0
  25. data/lib/2018-06-01/generated/azure_mgmt_mariadb/firewall_rules.rb +8 -0
  26. data/lib/2018-06-01/generated/azure_mgmt_mariadb/location_based_performance_tier.rb +2 -0
  27. data/lib/2018-06-01/generated/azure_mgmt_mariadb/log_files.rb +2 -0
  28. data/lib/2018-06-01/generated/azure_mgmt_mariadb/maria_dbmanagement_client.rb +1 -1
  29. data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/storage_autogrow.rb +16 -0
  30. data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/storage_profile.rb +12 -0
  31. data/lib/2018-06-01/generated/azure_mgmt_mariadb/operations.rb +2 -0
  32. data/lib/2018-06-01/generated/azure_mgmt_mariadb/replicas.rb +2 -0
  33. data/lib/2018-06-01/generated/azure_mgmt_mariadb/server_security_alert_policies.rb +4 -0
  34. data/lib/2018-06-01/generated/azure_mgmt_mariadb/servers.rb +14 -0
  35. data/lib/2018-06-01/generated/azure_mgmt_mariadb/virtual_network_rules.rb +10 -0
  36. data/lib/profiles/latest/modules/mariadb_profile_module.rb +4 -0
  37. data/lib/version.rb +1 -1
  38. metadata +8 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f22d600305df4e500fb1b5e73068f88483362b293c9d95a14ee3d8a34ba12935
4
- data.tar.gz: 394f169ae5958b259e10b536820fc948f07e3de7c9cb4bda5680109543e700a6
3
+ metadata.gz: 8e30f989b2d15e7beb717906dcc17374d2865ef2ca8b915b575e6ddad2fc91bc
4
+ data.tar.gz: 4d70ee72743180f3a73e92ae998a487cf787fea3e2e1615e4b30787a67b8ac2b
5
5
  SHA512:
6
- metadata.gz: 462f8d379fa303ad02439351006fa80119fd00c51f400fcb4b673a246ea6f55222a06e1d76c94d4c6168e9eaaf12ce39a5bf2c03ed0a2465db287b9d2a6ed6ca
7
- data.tar.gz: 5c6397a6ec674370dfbb067edf4d1be98abb35e49266ce124db942eef9b7acad6abf09aae9a3c6518965db684d59fc29e9aa8d5563d4db0d91908d0281592842
6
+ metadata.gz: e633a602b18f55adaddfce4b79f95ecbdf3d61526674c14b01291ab0df95519f3691ace6a7dd4e630efe05447b5d99e4a0f0478215bcd67572ddc37ecfd68ca9
7
+ data.tar.gz: b82949001d12d7ee8ae5b0bc55b7a06b8f216d0ff906a6cf8ce703d19e5a81328809225db46196fa2d9e59fd964db2715bf7537a77ca59ea62e17f36566436ab
@@ -21,6 +21,7 @@ require 'ms_rest_azure'
21
21
 
22
22
  module Azure::MariaDB::Mgmt::V2018_06_01_preview
23
23
  autoload :Servers, '2018-06-01-preview/generated/azure_mgmt_mariadb/servers.rb'
24
+ autoload :Replicas, '2018-06-01-preview/generated/azure_mgmt_mariadb/replicas.rb'
24
25
  autoload :FirewallRules, '2018-06-01-preview/generated/azure_mgmt_mariadb/firewall_rules.rb'
25
26
  autoload :VirtualNetworkRules, '2018-06-01-preview/generated/azure_mgmt_mariadb/virtual_network_rules.rb'
26
27
  autoload :Databases, '2018-06-01-preview/generated/azure_mgmt_mariadb/databases.rb'
@@ -35,10 +36,11 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
35
36
  module Models
36
37
  autoload :VirtualNetworkRuleListResult, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/virtual_network_rule_list_result.rb'
37
38
  autoload :FirewallRuleListResult, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/firewall_rule_list_result.rb'
38
- autoload :PerformanceTierListResult, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/performance_tier_list_result.rb'
39
+ autoload :NameAvailabilityRequest, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/name_availability_request.rb'
39
40
  autoload :StorageProfile, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/storage_profile.rb'
40
41
  autoload :ProxyResource, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/proxy_resource.rb'
41
- autoload :NameAvailabilityRequest, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/name_availability_request.rb'
42
+ autoload :NameAvailability, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/name_availability.rb'
43
+ autoload :PerformanceTierListResult, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/performance_tier_list_result.rb'
42
44
  autoload :Operation, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/operation.rb'
43
45
  autoload :PerformanceTierServiceLevelObjectives, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/performance_tier_service_level_objectives.rb'
44
46
  autoload :ServerPropertiesForCreate, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_properties_for_create.rb'
@@ -48,7 +50,6 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
48
50
  autoload :PerformanceTierProperties, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/performance_tier_properties.rb'
49
51
  autoload :DatabaseListResult, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/database_list_result.rb'
50
52
  autoload :ServerForCreate, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_for_create.rb'
51
- autoload :NameAvailability, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/name_availability.rb'
52
53
  autoload :Sku, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/sku.rb'
53
54
  autoload :ConfigurationListResult, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/configuration_list_result.rb'
54
55
  autoload :ServerListResult, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_list_result.rb'
@@ -57,6 +58,7 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
57
58
  autoload :ServerPropertiesForDefaultCreate, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_properties_for_default_create.rb'
58
59
  autoload :ServerPropertiesForRestore, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_properties_for_restore.rb'
59
60
  autoload :ServerPropertiesForGeoRestore, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_properties_for_geo_restore.rb'
61
+ autoload :ServerPropertiesForReplica, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_properties_for_replica.rb'
60
62
  autoload :Server, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server.rb'
61
63
  autoload :FirewallRule, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/firewall_rule.rb'
62
64
  autoload :VirtualNetworkRule, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/virtual_network_rule.rb'
@@ -68,6 +70,7 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
68
70
  autoload :SslEnforcementEnum, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/ssl_enforcement_enum.rb'
69
71
  autoload :ServerState, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_state.rb'
70
72
  autoload :GeoRedundantBackup, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/geo_redundant_backup.rb'
73
+ autoload :StorageAutogrow, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/storage_autogrow.rb'
71
74
  autoload :SkuTier, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/sku_tier.rb'
72
75
  autoload :VirtualNetworkRuleState, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/virtual_network_rule_state.rb'
73
76
  autoload :OperationOrigin, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/operation_origin.rb'
@@ -102,6 +102,8 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
102
102
  end
103
103
 
104
104
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
105
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
106
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
105
107
  # Deserialize Response
106
108
  if status_code == 200
107
109
  begin
@@ -158,6 +158,8 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
158
158
  end
159
159
 
160
160
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
161
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
162
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
161
163
  # Deserialize Response
162
164
  if status_code == 200
163
165
  begin
@@ -256,6 +258,8 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
256
258
  end
257
259
 
258
260
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
261
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
262
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
259
263
  # Deserialize Response
260
264
  if status_code == 200
261
265
  begin
@@ -372,6 +376,8 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
372
376
  end
373
377
 
374
378
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
379
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
380
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
375
381
  # Deserialize Response
376
382
  if status_code == 200
377
383
  begin
@@ -202,6 +202,8 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
202
202
  end
203
203
 
204
204
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
205
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
206
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
205
207
  # Deserialize Response
206
208
  if status_code == 200
207
209
  begin
@@ -300,6 +302,8 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
300
302
  end
301
303
 
302
304
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
305
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
306
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
303
307
  # Deserialize Response
304
308
  if status_code == 200
305
309
  begin
@@ -416,6 +420,8 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
416
420
  end
417
421
 
418
422
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
423
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
424
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
419
425
  # Deserialize Response
420
426
  if status_code == 200
421
427
  begin
@@ -527,6 +533,8 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
527
533
  end
528
534
 
529
535
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
536
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
537
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
530
538
 
531
539
  result
532
540
  end
@@ -202,6 +202,8 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
202
202
  end
203
203
 
204
204
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
205
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
206
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
205
207
  # Deserialize Response
206
208
  if status_code == 200
207
209
  begin
@@ -300,6 +302,8 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
300
302
  end
301
303
 
302
304
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
305
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
306
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
303
307
  # Deserialize Response
304
308
  if status_code == 200
305
309
  begin
@@ -416,6 +420,8 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
416
420
  end
417
421
 
418
422
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
423
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
424
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
419
425
  # Deserialize Response
420
426
  if status_code == 200
421
427
  begin
@@ -527,6 +533,8 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
527
533
  end
528
534
 
529
535
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
536
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
537
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
530
538
 
531
539
  result
532
540
  end
@@ -92,6 +92,8 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
92
92
  end
93
93
 
94
94
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
95
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
96
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
95
97
  # Deserialize Response
96
98
  if status_code == 200
97
99
  begin
@@ -102,6 +102,8 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
102
102
  end
103
103
 
104
104
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
105
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
106
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
105
107
  # Deserialize Response
106
108
  if status_code == 200
107
109
  begin
@@ -39,6 +39,9 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
39
39
  # @return [Servers] servers
40
40
  attr_reader :servers
41
41
 
42
+ # @return [Replicas] replicas
43
+ attr_reader :replicas
44
+
42
45
  # @return [FirewallRules] firewall_rules
43
46
  attr_reader :firewall_rules
44
47
 
@@ -80,6 +83,7 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
80
83
  @credentials = credentials
81
84
 
82
85
  @servers = Servers.new(self)
86
+ @replicas = Replicas.new(self)
83
87
  @firewall_rules = FirewallRules.new(self)
84
88
  @virtual_network_rules = VirtualNetworkRules.new(self)
85
89
  @databases = Databases.new(self)
@@ -161,7 +165,7 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
161
165
  #
162
166
  def add_telemetry
163
167
  sdk_information = 'azure_mgmt_mariadb'
164
- sdk_information = "#{sdk_information}/0.17.1"
168
+ sdk_information = "#{sdk_information}/0.17.2"
165
169
  add_user_agent_information(sdk_information)
166
170
  end
167
171
  end
@@ -42,6 +42,16 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
42
42
  # @return [StorageProfile] Storage profile of a server.
43
43
  attr_accessor :storage_profile
44
44
 
45
+ # @return [String] The replication role of the server.
46
+ attr_accessor :replication_role
47
+
48
+ # @return [String] The master server id of a replica server.
49
+ attr_accessor :master_server_id
50
+
51
+ # @return [Integer] The maximum number of replicas that a master server
52
+ # can have.
53
+ attr_accessor :replica_capacity
54
+
45
55
 
46
56
  #
47
57
  # Mapper for Server class as Ruby Hash.
@@ -173,6 +183,33 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
173
183
  name: 'Composite',
174
184
  class_name: 'StorageProfile'
175
185
  }
186
+ },
187
+ replication_role: {
188
+ client_side_validation: true,
189
+ required: false,
190
+ serialized_name: 'properties.replicationRole',
191
+ type: {
192
+ name: 'String'
193
+ }
194
+ },
195
+ master_server_id: {
196
+ client_side_validation: true,
197
+ required: false,
198
+ serialized_name: 'properties.masterServerId',
199
+ type: {
200
+ name: 'String'
201
+ }
202
+ },
203
+ replica_capacity: {
204
+ client_side_validation: true,
205
+ required: false,
206
+ serialized_name: 'properties.replicaCapacity',
207
+ constraints: {
208
+ InclusiveMinimum: 0
209
+ },
210
+ type: {
211
+ name: 'Number'
212
+ }
176
213
  }
177
214
  }
178
215
  }
@@ -16,6 +16,7 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
16
16
  @@discriminatorMap["Default"] = "ServerPropertiesForDefaultCreate"
17
17
  @@discriminatorMap["PointInTimeRestore"] = "ServerPropertiesForRestore"
18
18
  @@discriminatorMap["GeoRestore"] = "ServerPropertiesForGeoRestore"
19
+ @@discriminatorMap["Replica"] = "ServerPropertiesForReplica"
19
20
 
20
21
  def initialize
21
22
  @createMode = "ServerPropertiesForCreate"
@@ -0,0 +1,87 @@
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::MariaDB::Mgmt::V2018_06_01_preview
7
+ module Models
8
+ #
9
+ # The properties to create a new replica.
10
+ #
11
+ class ServerPropertiesForReplica < ServerPropertiesForCreate
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @createMode = "Replica"
18
+ end
19
+
20
+ attr_accessor :createMode
21
+
22
+ # @return [String] The master server id to create replica from.
23
+ attr_accessor :source_server_id
24
+
25
+
26
+ #
27
+ # Mapper for ServerPropertiesForReplica class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'Replica',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'ServerPropertiesForReplica',
38
+ model_properties: {
39
+ version: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'version',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ ssl_enforcement: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'sslEnforcement',
51
+ type: {
52
+ name: 'Enum',
53
+ module: 'SslEnforcementEnum'
54
+ }
55
+ },
56
+ storage_profile: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'storageProfile',
60
+ type: {
61
+ name: 'Composite',
62
+ class_name: 'StorageProfile'
63
+ }
64
+ },
65
+ createMode: {
66
+ client_side_validation: true,
67
+ required: true,
68
+ serialized_name: 'createMode',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ source_server_id: {
74
+ client_side_validation: true,
75
+ required: true,
76
+ serialized_name: 'sourceServerId',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+ end
85
+ end
86
+ end
87
+ end
@@ -29,6 +29,9 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
29
29
  # to server. Possible values include: 'Enabled', 'Disabled'
30
30
  attr_accessor :ssl_enforcement
31
31
 
32
+ # @return [String] The replication role of the server.
33
+ attr_accessor :replication_role
34
+
32
35
  # @return [Hash{String => String}] Application-specific metadata in the
33
36
  # form of key-value pairs.
34
37
  attr_accessor :tags
@@ -90,6 +93,14 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
90
93
  module: 'SslEnforcementEnum'
91
94
  }
92
95
  },
96
+ replication_role: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ serialized_name: 'properties.replicationRole',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ },
93
104
  tags: {
94
105
  client_side_validation: true,
95
106
  required: false,
@@ -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::MariaDB::Mgmt::V2018_06_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for StorageAutogrow
10
+ #
11
+ module StorageAutogrow
12
+ Enabled = "Enabled"
13
+ Disabled = "Disabled"
14
+ end
15
+ end
16
+ end
@@ -22,6 +22,10 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
22
22
  # @return [Integer] Max storage allowed for a server.
23
23
  attr_accessor :storage_mb
24
24
 
25
+ # @return [StorageAutogrow] Enable Storage Auto Grow. Possible values
26
+ # include: 'Enabled', 'Disabled'
27
+ attr_accessor :storage_autogrow
28
+
25
29
 
26
30
  #
27
31
  # Mapper for StorageProfile class as Ruby Hash.
@@ -59,6 +63,14 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
59
63
  type: {
60
64
  name: 'Number'
61
65
  }
66
+ },
67
+ storage_autogrow: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'storageAutogrow',
71
+ type: {
72
+ name: 'String'
73
+ }
62
74
  }
63
75
  }
64
76
  }
@@ -86,6 +86,8 @@ module Azure::MariaDB::Mgmt::V2018_06_01_preview
86
86
  end
87
87
 
88
88
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
89
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
90
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
89
91
  # Deserialize Response
90
92
  if status_code == 200
91
93
  begin
@@ -0,0 +1,125 @@
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::MariaDB::Mgmt::V2018_06_01_preview
7
+ #
8
+ # MariaDB Client
9
+ #
10
+ class Replicas
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Replicas class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [MariaDBManagementClient] reference to the MariaDBManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # List all the replicas for a given server.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group that
28
+ # contains the resource. You can obtain this value from the Azure Resource
29
+ # Manager API or the portal.
30
+ # @param server_name [String] The name of the server.
31
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
+ # will be added to the HTTP request.
33
+ #
34
+ # @return [ServerListResult] operation results.
35
+ #
36
+ def list_by_server(resource_group_name, server_name, custom_headers:nil)
37
+ response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
38
+ response.body unless response.nil?
39
+ end
40
+
41
+ #
42
+ # List all the replicas for a given server.
43
+ #
44
+ # @param resource_group_name [String] The name of the resource group that
45
+ # contains the resource. You can obtain this value from the Azure Resource
46
+ # Manager API or the portal.
47
+ # @param server_name [String] The name of the server.
48
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
49
+ # will be added to the HTTP request.
50
+ #
51
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
+ #
53
+ def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil)
54
+ list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
55
+ end
56
+
57
+ #
58
+ # List all the replicas for a given server.
59
+ #
60
+ # @param resource_group_name [String] The name of the resource group that
61
+ # contains the resource. You can obtain this value from the Azure Resource
62
+ # Manager API or the portal.
63
+ # @param server_name [String] The name of the server.
64
+ # @param [Hash{String => String}] A hash of custom headers that will be added
65
+ # to the HTTP request.
66
+ #
67
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
+ #
69
+ def list_by_server_async(resource_group_name, server_name, custom_headers:nil)
70
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
71
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
72
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
73
+ fail ArgumentError, 'server_name is nil' if server_name.nil?
74
+
75
+
76
+ request_headers = {}
77
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
78
+
79
+ # Set Headers
80
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
81
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
82
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/replicas'
83
+
84
+ request_url = @base_url || @client.base_url
85
+
86
+ options = {
87
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
88
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name},
89
+ query_params: {'api-version' => @client.api_version},
90
+ headers: request_headers.merge(custom_headers || {}),
91
+ base_url: request_url
92
+ }
93
+ promise = @client.make_request_async(:get, path_template, options)
94
+
95
+ promise = promise.then do |result|
96
+ http_response = result.response
97
+ status_code = http_response.status
98
+ response_content = http_response.body
99
+ unless status_code == 200
100
+ error_model = JSON.load(response_content)
101
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
102
+ end
103
+
104
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
105
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
106
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
107
+ # Deserialize Response
108
+ if status_code == 200
109
+ begin
110
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
111
+ result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::ServerListResult.mapper()
112
+ result.body = @client.deserialize(result_mapper, parsed_response)
113
+ rescue Exception => e
114
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
115
+ end
116
+ end
117
+
118
+ result
119
+ end
120
+
121
+ promise.execute
122
+ end
123
+
124
+ end
125
+ end