azure_mgmt_recovery_services_site_recovery 0.15.2 → 0.16.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 (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/models/azure_fabric_creation_input.rb +2 -2
  3. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_specific_creation_input.rb +1 -1
  4. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/operations.rb +15 -13
  5. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/recovery_points.rb +21 -18
  6. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_alert_settings.rb +27 -25
  7. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_events.rb +21 -18
  8. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_fabrics.rb +91 -87
  9. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_jobs.rb +61 -58
  10. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_logical_networks.rb +21 -18
  11. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_network_mappings.rb +66 -62
  12. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_networks.rb +36 -31
  13. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_policies.rb +51 -49
  14. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protectable_items.rb +21 -18
  15. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protected_items.rb +166 -168
  16. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_container_mappings.rb +66 -62
  17. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_containers.rb +76 -73
  18. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_plans.rb +111 -111
  19. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_services_providers.rb +66 -58
  20. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classification_mappings.rb +56 -51
  21. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classifications.rb +36 -31
  22. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_vault_health.rb +6 -5
  23. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb +66 -62
  24. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/site_recovery_management_client.rb +4 -1
  25. data/lib/profiles/latest/modules/recoveryservicessiterecovery_profile_module.rb +1022 -1003
  26. data/lib/profiles/latest/recoveryservicessiterecovery_latest_profile_client.rb +28 -9
  27. data/lib/profiles/latest/recoveryservicessiterecovery_module_definition.rb +0 -1
  28. data/lib/version.rb +1 -1
  29. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fac9c581c42775a1bb11cc13fabaf1d5e02aa20
4
- data.tar.gz: e6683f84ee63ca2aec5c028ccffa8f388b49d777
3
+ metadata.gz: a9f27c7a8279f302370e4c4eb300c56df77a9669
4
+ data.tar.gz: d6a5299d5ab7056d149001521679f63e62111320
5
5
  SHA512:
6
- metadata.gz: 38990ed197336a76db9447081e04de862cf1b6b9261b09ee48e25c8538a39154f95e2ed2d5e01d950edae22e9e7822079d4b9d3933f2f75d4079069fe284051b
7
- data.tar.gz: dea896dec7fdfab0c3ce2dbaa2d3f3d1e86a398d3f7276aa360a4bc17ca58308a0bb5c9683c6c16cd27969da6cc2ddf548ed010ddc82ae910a0b258c88715039
6
+ metadata.gz: 0f91fad0755a814003509df08507e61e6fc6f2e2c1dded2588a3ff40ede4ed1ca878be79fae2fb92522e3dc7a838aba3bd4d8ddfc51d0219f54ebc6923fcdabc
7
+ data.tar.gz: 8fa7b5ee5bcd1323d1c0367c5add6a2b046638150dec443cd5cb329616277bbd5c90d1ffc261f64b113a79e6e046443ef126c2066baf57948ed2096abb019c04
@@ -14,7 +14,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
14
14
 
15
15
 
16
16
  def initialize
17
- @instanceType = "A2A"
17
+ @instanceType = "Azure"
18
18
  end
19
19
 
20
20
  attr_accessor :instanceType
@@ -31,7 +31,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
31
31
  {
32
32
  client_side_validation: true,
33
33
  required: false,
34
- serialized_name: 'A2A',
34
+ serialized_name: 'Azure',
35
35
  type: {
36
36
  name: 'Composite',
37
37
  class_name: 'AzureFabricCreationInput',
@@ -13,7 +13,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
13
13
  include MsRestAzure
14
14
 
15
15
  @@discriminatorMap = Hash.new
16
- @@discriminatorMap["A2A"] = "AzureFabricCreationInput"
16
+ @@discriminatorMap["Azure"] = "AzureFabricCreationInput"
17
17
  @@discriminatorMap["VMwareV2"] = "VMwareV2FabricCreationInput"
18
18
 
19
19
  def initialize
@@ -31,8 +31,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
31
31
  #
32
32
  # @return [Array<OperationsDiscovery>] operation results.
33
33
  #
34
- def list(custom_headers = nil)
35
- first_page = list_as_lazy(custom_headers)
34
+ def list(custom_headers:nil)
35
+ first_page = list_as_lazy(custom_headers:custom_headers)
36
36
  first_page.get_all_items
37
37
  end
38
38
 
@@ -46,8 +46,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
46
46
  #
47
47
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
48
  #
49
- def list_with_http_info(custom_headers = nil)
50
- list_async(custom_headers).value!
49
+ def list_with_http_info(custom_headers:nil)
50
+ list_async(custom_headers:custom_headers).value!
51
51
  end
52
52
 
53
53
  #
@@ -60,13 +60,14 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
60
60
  #
61
61
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
62
  #
63
- def list_async(custom_headers = nil)
63
+ def list_async(custom_headers:nil)
64
64
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
65
65
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
66
66
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
67
67
 
68
68
 
69
69
  request_headers = {}
70
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
70
71
 
71
72
  # Set Headers
72
73
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -123,8 +124,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
123
124
  #
124
125
  # @return [OperationsDiscoveryCollection] operation results.
125
126
  #
126
- def list_next(next_page_link, custom_headers = nil)
127
- response = list_next_async(next_page_link, custom_headers).value!
127
+ def list_next(next_page_link, custom_headers:nil)
128
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
128
129
  response.body unless response.nil?
129
130
  end
130
131
 
@@ -140,8 +141,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
140
141
  #
141
142
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
142
143
  #
143
- def list_next_with_http_info(next_page_link, custom_headers = nil)
144
- list_next_async(next_page_link, custom_headers).value!
144
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
145
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
145
146
  end
146
147
 
147
148
  #
@@ -156,11 +157,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
156
157
  #
157
158
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
158
159
  #
159
- def list_next_async(next_page_link, custom_headers = nil)
160
+ def list_next_async(next_page_link, custom_headers:nil)
160
161
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
161
162
 
162
163
 
163
164
  request_headers = {}
165
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
164
166
 
165
167
  # Set Headers
166
168
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -215,12 +217,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
215
217
  # @return [OperationsDiscoveryCollection] which provide lazy access to pages of
216
218
  # the response.
217
219
  #
218
- def list_as_lazy(custom_headers = nil)
219
- response = list_async(custom_headers).value!
220
+ def list_as_lazy(custom_headers:nil)
221
+ response = list_async(custom_headers:custom_headers).value!
220
222
  unless response.nil?
221
223
  page = response.body
222
224
  page.next_method = Proc.new do |next_page_link|
223
- list_next_async(next_page_link, custom_headers)
225
+ list_next_async(next_page_link, custom_headers:custom_headers)
224
226
  end
225
227
  page
226
228
  end
@@ -36,8 +36,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
36
36
  #
37
37
  # @return [RecoveryPoint] operation results.
38
38
  #
39
- def get(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers = nil)
40
- response = get_async(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers).value!
39
+ def get(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers:nil)
40
+ response = get_async(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers:custom_headers).value!
41
41
  response.body unless response.nil?
42
42
  end
43
43
 
@@ -56,8 +56,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
56
56
  #
57
57
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
58
58
  #
59
- def get_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers = nil)
60
- get_async(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers).value!
59
+ def get_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers:nil)
60
+ get_async(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers:custom_headers).value!
61
61
  end
62
62
 
63
63
  #
@@ -75,7 +75,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
75
75
  #
76
76
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
77
77
  #
78
- def get_async(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers = nil)
78
+ def get_async(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers:nil)
79
79
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
80
80
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
81
81
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -87,6 +87,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
87
87
 
88
88
 
89
89
  request_headers = {}
90
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
90
91
 
91
92
  # Set Headers
92
93
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -145,8 +146,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
145
146
  #
146
147
  # @return [Array<RecoveryPoint>] operation results.
147
148
  #
148
- def list_by_replication_protected_items(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil)
149
- first_page = list_by_replication_protected_items_as_lazy(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers)
149
+ def list_by_replication_protected_items(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
150
+ first_page = list_by_replication_protected_items_as_lazy(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers)
150
151
  first_page.get_all_items
151
152
  end
152
153
 
@@ -164,8 +165,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
164
165
  #
165
166
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
166
167
  #
167
- def list_by_replication_protected_items_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil)
168
- list_by_replication_protected_items_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value!
168
+ def list_by_replication_protected_items_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
169
+ list_by_replication_protected_items_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value!
169
170
  end
170
171
 
171
172
  #
@@ -182,7 +183,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
182
183
  #
183
184
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
184
185
  #
185
- def list_by_replication_protected_items_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil)
186
+ def list_by_replication_protected_items_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
186
187
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
187
188
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
188
189
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -193,6 +194,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
193
194
 
194
195
 
195
196
  request_headers = {}
197
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
196
198
 
197
199
  # Set Headers
198
200
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -249,8 +251,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
249
251
  #
250
252
  # @return [RecoveryPointCollection] operation results.
251
253
  #
252
- def list_by_replication_protected_items_next(next_page_link, custom_headers = nil)
253
- response = list_by_replication_protected_items_next_async(next_page_link, custom_headers).value!
254
+ def list_by_replication_protected_items_next(next_page_link, custom_headers:nil)
255
+ response = list_by_replication_protected_items_next_async(next_page_link, custom_headers:custom_headers).value!
254
256
  response.body unless response.nil?
255
257
  end
256
258
 
@@ -266,8 +268,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
266
268
  #
267
269
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
268
270
  #
269
- def list_by_replication_protected_items_next_with_http_info(next_page_link, custom_headers = nil)
270
- list_by_replication_protected_items_next_async(next_page_link, custom_headers).value!
271
+ def list_by_replication_protected_items_next_with_http_info(next_page_link, custom_headers:nil)
272
+ list_by_replication_protected_items_next_async(next_page_link, custom_headers:custom_headers).value!
271
273
  end
272
274
 
273
275
  #
@@ -282,11 +284,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
282
284
  #
283
285
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
284
286
  #
285
- def list_by_replication_protected_items_next_async(next_page_link, custom_headers = nil)
287
+ def list_by_replication_protected_items_next_async(next_page_link, custom_headers:nil)
286
288
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
287
289
 
288
290
 
289
291
  request_headers = {}
292
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
290
293
 
291
294
  # Set Headers
292
295
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -345,12 +348,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
345
348
  # @return [RecoveryPointCollection] which provide lazy access to pages of the
346
349
  # response.
347
350
  #
348
- def list_by_replication_protected_items_as_lazy(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil)
349
- response = list_by_replication_protected_items_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value!
351
+ def list_by_replication_protected_items_as_lazy(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
352
+ response = list_by_replication_protected_items_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value!
350
353
  unless response.nil?
351
354
  page = response.body
352
355
  page.next_method = Proc.new do |next_page_link|
353
- list_by_replication_protected_items_next_async(next_page_link, custom_headers)
356
+ list_by_replication_protected_items_next_async(next_page_link, custom_headers:custom_headers)
354
357
  end
355
358
  page
356
359
  end
@@ -33,8 +33,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
33
33
  #
34
34
  # @return [Alert] operation results.
35
35
  #
36
- def get(alert_setting_name, custom_headers = nil)
37
- response = get_async(alert_setting_name, custom_headers).value!
36
+ def get(alert_setting_name, custom_headers:nil)
37
+ response = get_async(alert_setting_name, custom_headers:custom_headers).value!
38
38
  response.body unless response.nil?
39
39
  end
40
40
 
@@ -50,8 +50,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
50
50
  #
51
51
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
52
  #
53
- def get_with_http_info(alert_setting_name, custom_headers = nil)
54
- get_async(alert_setting_name, custom_headers).value!
53
+ def get_with_http_info(alert_setting_name, custom_headers:nil)
54
+ get_async(alert_setting_name, custom_headers:custom_headers).value!
55
55
  end
56
56
 
57
57
  #
@@ -66,7 +66,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
66
66
  #
67
67
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
68
  #
69
- def get_async(alert_setting_name, custom_headers = nil)
69
+ def get_async(alert_setting_name, custom_headers:nil)
70
70
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
71
71
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
72
72
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -75,6 +75,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
75
75
 
76
76
 
77
77
  request_headers = {}
78
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
78
79
 
79
80
  # Set Headers
80
81
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -133,8 +134,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
133
134
  #
134
135
  # @return [Alert] operation results.
135
136
  #
136
- def create(alert_setting_name, request, custom_headers = nil)
137
- response = create_async(alert_setting_name, request, custom_headers).value!
137
+ def create(alert_setting_name, request, custom_headers:nil)
138
+ response = create_async(alert_setting_name, request, custom_headers:custom_headers).value!
138
139
  response.body unless response.nil?
139
140
  end
140
141
 
@@ -152,8 +153,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
152
153
  #
153
154
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
154
155
  #
155
- def create_with_http_info(alert_setting_name, request, custom_headers = nil)
156
- create_async(alert_setting_name, request, custom_headers).value!
156
+ def create_with_http_info(alert_setting_name, request, custom_headers:nil)
157
+ create_async(alert_setting_name, request, custom_headers:custom_headers).value!
157
158
  end
158
159
 
159
160
  #
@@ -170,7 +171,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
170
171
  #
171
172
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
172
173
  #
173
- def create_async(alert_setting_name, request, custom_headers = nil)
174
+ def create_async(alert_setting_name, request, custom_headers:nil)
174
175
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
175
176
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
176
177
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -180,13 +181,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
180
181
 
181
182
 
182
183
  request_headers = {}
184
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
183
185
 
184
186
  # Set Headers
185
187
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
186
188
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
187
189
 
188
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
189
-
190
190
  # Serialize Request
191
191
  request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::ConfigureAlertRequest.mapper()
192
192
  request_content = @client.serialize(request_mapper, request)
@@ -243,8 +243,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
243
243
  #
244
244
  # @return [Array<Alert>] operation results.
245
245
  #
246
- def list(custom_headers = nil)
247
- first_page = list_as_lazy(custom_headers)
246
+ def list(custom_headers:nil)
247
+ first_page = list_as_lazy(custom_headers:custom_headers)
248
248
  first_page.get_all_items
249
249
  end
250
250
 
@@ -258,8 +258,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
258
258
  #
259
259
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
260
260
  #
261
- def list_with_http_info(custom_headers = nil)
262
- list_async(custom_headers).value!
261
+ def list_with_http_info(custom_headers:nil)
262
+ list_async(custom_headers:custom_headers).value!
263
263
  end
264
264
 
265
265
  #
@@ -272,7 +272,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
272
272
  #
273
273
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
274
274
  #
275
- def list_async(custom_headers = nil)
275
+ def list_async(custom_headers:nil)
276
276
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
277
277
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
278
278
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -280,6 +280,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
280
280
 
281
281
 
282
282
  request_headers = {}
283
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
283
284
 
284
285
  # Set Headers
285
286
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -336,8 +337,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
336
337
  #
337
338
  # @return [AlertCollection] operation results.
338
339
  #
339
- def list_next(next_page_link, custom_headers = nil)
340
- response = list_next_async(next_page_link, custom_headers).value!
340
+ def list_next(next_page_link, custom_headers:nil)
341
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
341
342
  response.body unless response.nil?
342
343
  end
343
344
 
@@ -353,8 +354,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
353
354
  #
354
355
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
355
356
  #
356
- def list_next_with_http_info(next_page_link, custom_headers = nil)
357
- list_next_async(next_page_link, custom_headers).value!
357
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
358
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
358
359
  end
359
360
 
360
361
  #
@@ -369,11 +370,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
369
370
  #
370
371
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
371
372
  #
372
- def list_next_async(next_page_link, custom_headers = nil)
373
+ def list_next_async(next_page_link, custom_headers:nil)
373
374
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
374
375
 
375
376
 
376
377
  request_headers = {}
378
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
377
379
 
378
380
  # Set Headers
379
381
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -427,12 +429,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
427
429
  #
428
430
  # @return [AlertCollection] which provide lazy access to pages of the response.
429
431
  #
430
- def list_as_lazy(custom_headers = nil)
431
- response = list_async(custom_headers).value!
432
+ def list_as_lazy(custom_headers:nil)
433
+ response = list_async(custom_headers:custom_headers).value!
432
434
  unless response.nil?
433
435
  page = response.body
434
436
  page.next_method = Proc.new do |next_page_link|
435
- list_next_async(next_page_link, custom_headers)
437
+ list_next_async(next_page_link, custom_headers:custom_headers)
436
438
  end
437
439
  page
438
440
  end
@@ -32,8 +32,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
32
32
  #
33
33
  # @return [Event] operation results.
34
34
  #
35
- def get(event_name, custom_headers = nil)
36
- response = get_async(event_name, custom_headers).value!
35
+ def get(event_name, custom_headers:nil)
36
+ response = get_async(event_name, custom_headers:custom_headers).value!
37
37
  response.body unless response.nil?
38
38
  end
39
39
 
@@ -48,8 +48,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
48
48
  #
49
49
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
50
  #
51
- def get_with_http_info(event_name, custom_headers = nil)
52
- get_async(event_name, custom_headers).value!
51
+ def get_with_http_info(event_name, custom_headers:nil)
52
+ get_async(event_name, custom_headers:custom_headers).value!
53
53
  end
54
54
 
55
55
  #
@@ -63,7 +63,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
63
63
  #
64
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
65
  #
66
- def get_async(event_name, custom_headers = nil)
66
+ def get_async(event_name, custom_headers:nil)
67
67
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
68
68
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
69
69
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -72,6 +72,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
72
72
 
73
73
 
74
74
  request_headers = {}
75
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
75
76
 
76
77
  # Set Headers
77
78
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -127,8 +128,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
127
128
  #
128
129
  # @return [Array<Event>] operation results.
129
130
  #
130
- def list(filter = nil, custom_headers = nil)
131
- first_page = list_as_lazy(filter, custom_headers)
131
+ def list(filter:nil, custom_headers:nil)
132
+ first_page = list_as_lazy(filter:filter, custom_headers:custom_headers)
132
133
  first_page.get_all_items
133
134
  end
134
135
 
@@ -143,8 +144,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
143
144
  #
144
145
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
145
146
  #
146
- def list_with_http_info(filter = nil, custom_headers = nil)
147
- list_async(filter, custom_headers).value!
147
+ def list_with_http_info(filter:nil, custom_headers:nil)
148
+ list_async(filter:filter, custom_headers:custom_headers).value!
148
149
  end
149
150
 
150
151
  #
@@ -158,7 +159,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
158
159
  #
159
160
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
160
161
  #
161
- def list_async(filter = nil, custom_headers = nil)
162
+ def list_async(filter:nil, custom_headers:nil)
162
163
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
163
164
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
164
165
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -166,6 +167,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
166
167
 
167
168
 
168
169
  request_headers = {}
170
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
169
171
 
170
172
  # Set Headers
171
173
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -222,8 +224,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
222
224
  #
223
225
  # @return [EventCollection] operation results.
224
226
  #
225
- def list_next(next_page_link, custom_headers = nil)
226
- response = list_next_async(next_page_link, custom_headers).value!
227
+ def list_next(next_page_link, custom_headers:nil)
228
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
227
229
  response.body unless response.nil?
228
230
  end
229
231
 
@@ -239,8 +241,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
239
241
  #
240
242
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
241
243
  #
242
- def list_next_with_http_info(next_page_link, custom_headers = nil)
243
- list_next_async(next_page_link, custom_headers).value!
244
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
245
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
244
246
  end
245
247
 
246
248
  #
@@ -255,11 +257,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
255
257
  #
256
258
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
257
259
  #
258
- def list_next_async(next_page_link, custom_headers = nil)
260
+ def list_next_async(next_page_link, custom_headers:nil)
259
261
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
260
262
 
261
263
 
262
264
  request_headers = {}
265
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
263
266
 
264
267
  # Set Headers
265
268
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -314,12 +317,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
314
317
  #
315
318
  # @return [EventCollection] which provide lazy access to pages of the response.
316
319
  #
317
- def list_as_lazy(filter = nil, custom_headers = nil)
318
- response = list_async(filter, custom_headers).value!
320
+ def list_as_lazy(filter:nil, custom_headers:nil)
321
+ response = list_async(filter:filter, custom_headers:custom_headers).value!
319
322
  unless response.nil?
320
323
  page = response.body
321
324
  page.next_method = Proc.new do |next_page_link|
322
- list_next_async(next_page_link, custom_headers)
325
+ list_next_async(next_page_link, custom_headers:custom_headers)
323
326
  end
324
327
  page
325
328
  end