azure_mgmt_machine_learning 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_machine_learning.rb +15 -12
  3. data/lib/generated/azure_mgmt_machine_learning/azure_mlweb_services_management_client.rb +2 -2
  4. data/lib/generated/azure_mgmt_machine_learning/models/asset_item.rb +4 -3
  5. data/lib/generated/azure_mgmt_machine_learning/models/asset_type.rb +1 -1
  6. data/lib/generated/azure_mgmt_machine_learning/models/async_operation_error_info.rb +84 -0
  7. data/lib/generated/azure_mgmt_machine_learning/models/async_operation_status.rb +113 -0
  8. data/lib/generated/azure_mgmt_machine_learning/models/{asset_location.rb → blob_location.rb} +12 -10
  9. data/lib/generated/azure_mgmt_machine_learning/models/column_format.rb +1 -1
  10. data/lib/generated/azure_mgmt_machine_learning/models/column_specification.rb +2 -1
  11. data/lib/generated/azure_mgmt_machine_learning/models/column_type.rb +1 -1
  12. data/lib/generated/azure_mgmt_machine_learning/models/commitment_plan.rb +2 -1
  13. data/lib/generated/azure_mgmt_machine_learning/models/diagnostics_configuration.rb +2 -1
  14. data/lib/generated/azure_mgmt_machine_learning/models/diagnostics_level.rb +1 -1
  15. data/lib/generated/azure_mgmt_machine_learning/models/example_request.rb +2 -1
  16. data/lib/generated/azure_mgmt_machine_learning/models/graph_edge.rb +2 -1
  17. data/lib/generated/azure_mgmt_machine_learning/models/graph_node.rb +8 -5
  18. data/lib/generated/azure_mgmt_machine_learning/models/graph_package.rb +2 -1
  19. data/lib/generated/azure_mgmt_machine_learning/models/graph_parameter.rb +2 -1
  20. data/lib/generated/azure_mgmt_machine_learning/models/graph_parameter_link.rb +2 -1
  21. data/lib/generated/azure_mgmt_machine_learning/models/input_port.rb +2 -1
  22. data/lib/generated/azure_mgmt_machine_learning/models/input_port_type.rb +1 -1
  23. data/lib/generated/azure_mgmt_machine_learning/models/machine_learning_workspace.rb +2 -1
  24. data/lib/generated/azure_mgmt_machine_learning/models/mode_value_info.rb +2 -1
  25. data/lib/generated/azure_mgmt_machine_learning/models/module_asset_parameter.rb +2 -1
  26. data/lib/generated/azure_mgmt_machine_learning/models/output_port.rb +2 -1
  27. data/lib/generated/azure_mgmt_machine_learning/models/output_port_type.rb +1 -1
  28. data/lib/generated/azure_mgmt_machine_learning/models/paginated_web_services_list.rb +2 -1
  29. data/lib/generated/azure_mgmt_machine_learning/models/parameter_type.rb +1 -1
  30. data/lib/generated/azure_mgmt_machine_learning/models/provisioning_state.rb +1 -1
  31. data/lib/generated/azure_mgmt_machine_learning/models/realtime_configuration.rb +2 -1
  32. data/lib/generated/azure_mgmt_machine_learning/models/service_input_output_specification.rb +2 -1
  33. data/lib/generated/azure_mgmt_machine_learning/models/storage_account.rb +2 -1
  34. data/lib/generated/azure_mgmt_machine_learning/models/table_specification.rb +2 -1
  35. data/lib/generated/azure_mgmt_machine_learning/models/web_service.rb +3 -1
  36. data/lib/generated/azure_mgmt_machine_learning/models/web_service_keys.rb +2 -1
  37. data/lib/generated/azure_mgmt_machine_learning/models/web_service_parameter.rb +56 -0
  38. data/lib/generated/azure_mgmt_machine_learning/models/web_service_properties.rb +38 -7
  39. data/lib/generated/azure_mgmt_machine_learning/models/web_service_properties_for_graph.rb +20 -3
  40. data/lib/generated/azure_mgmt_machine_learning/module_definition.rb +1 -1
  41. data/lib/generated/azure_mgmt_machine_learning/version.rb +2 -2
  42. data/lib/generated/azure_mgmt_machine_learning/web_services.rb +231 -57
  43. metadata +8 -5
@@ -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
 
@@ -12,6 +12,7 @@ module Azure::ARM::MachineLearning
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
 
16
17
  def initialize
17
18
  @packageType = "Graph"
@@ -190,13 +191,29 @@ module Azure::ARM::MachineLearning
190
191
  name: 'Dictionary',
191
192
  value: {
192
193
  required: false,
193
- serialized_name: 'StringElementType',
194
+ serialized_name: 'WebServiceParameterElementType',
194
195
  type: {
195
- name: 'String'
196
+ name: 'Composite',
197
+ class_name: 'WebServiceParameter'
196
198
  }
197
199
  }
198
200
  }
199
201
  },
202
+ payloads_in_blob_storage: {
203
+ required: false,
204
+ serialized_name: 'payloadsInBlobStorage',
205
+ type: {
206
+ name: 'Boolean'
207
+ }
208
+ },
209
+ payloads_location: {
210
+ required: false,
211
+ serialized_name: 'payloadsLocation',
212
+ type: {
213
+ name: 'Composite',
214
+ class_name: 'BlobLocation'
215
+ }
216
+ },
200
217
  packageType: {
201
218
  required: true,
202
219
  serialized_name: 'packageType',
@@ -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
 
@@ -1,8 +1,8 @@
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::MachineLearning
7
- VERSION = '0.10.0'
7
+ VERSION = '0.11.0'
8
8
  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
 
@@ -13,7 +13,6 @@ module Azure::ARM::MachineLearning
13
13
  # Web Services Keys</li></ul>
14
14
  #
15
15
  class WebServices
16
- include Azure::ARM::MachineLearning::Models
17
16
  include MsRestAzure
18
17
 
19
18
  #
@@ -67,8 +66,8 @@ module Azure::ARM::MachineLearning
67
66
  promise = promise.then do |response|
68
67
  # Defining deserialization method.
69
68
  deserialize_method = lambda do |parsed_response|
70
- result_mapper = WebService.mapper()
71
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
69
+ result_mapper = Azure::ARM::MachineLearning::Models::WebService.mapper()
70
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
72
71
  end
73
72
 
74
73
  # Waiting for response.
@@ -79,7 +78,7 @@ module Azure::ARM::MachineLearning
79
78
  end
80
79
 
81
80
  #
82
- # Gets the Web Service Definiton as specified by a subscription, resource
81
+ # Gets the Web Service Definition as specified by a subscription, resource
83
82
  # group, and name. Note that the storage credentials and web service keys are
84
83
  # not returned by this call. To get the web service access keys, call List
85
84
  # Keys.
@@ -87,18 +86,20 @@ module Azure::ARM::MachineLearning
87
86
  # @param resource_group_name [String] Name of the resource group in which the
88
87
  # web service is located.
89
88
  # @param web_service_name [String] The name of the web service.
89
+ # @param region [String] The region for which encrypted credential parameters
90
+ # are valid.
90
91
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
91
92
  # will be added to the HTTP request.
92
93
  #
93
94
  # @return [WebService] operation results.
94
95
  #
95
- def get(resource_group_name, web_service_name, custom_headers = nil)
96
- response = get_async(resource_group_name, web_service_name, custom_headers).value!
96
+ def get(resource_group_name, web_service_name, region = nil, custom_headers = nil)
97
+ response = get_async(resource_group_name, web_service_name, region, custom_headers).value!
97
98
  response.body unless response.nil?
98
99
  end
99
100
 
100
101
  #
101
- # Gets the Web Service Definiton as specified by a subscription, resource
102
+ # Gets the Web Service Definition as specified by a subscription, resource
102
103
  # group, and name. Note that the storage credentials and web service keys are
103
104
  # not returned by this call. To get the web service access keys, call List
104
105
  # Keys.
@@ -106,17 +107,19 @@ module Azure::ARM::MachineLearning
106
107
  # @param resource_group_name [String] Name of the resource group in which the
107
108
  # web service is located.
108
109
  # @param web_service_name [String] The name of the web service.
110
+ # @param region [String] The region for which encrypted credential parameters
111
+ # are valid.
109
112
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
110
113
  # will be added to the HTTP request.
111
114
  #
112
115
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
113
116
  #
114
- def get_with_http_info(resource_group_name, web_service_name, custom_headers = nil)
115
- get_async(resource_group_name, web_service_name, custom_headers).value!
117
+ def get_with_http_info(resource_group_name, web_service_name, region = nil, custom_headers = nil)
118
+ get_async(resource_group_name, web_service_name, region, custom_headers).value!
116
119
  end
117
120
 
118
121
  #
119
- # Gets the Web Service Definiton as specified by a subscription, resource
122
+ # Gets the Web Service Definition as specified by a subscription, resource
120
123
  # group, and name. Note that the storage credentials and web service keys are
121
124
  # not returned by this call. To get the web service access keys, call List
122
125
  # Keys.
@@ -124,12 +127,14 @@ module Azure::ARM::MachineLearning
124
127
  # @param resource_group_name [String] Name of the resource group in which the
125
128
  # web service is located.
126
129
  # @param web_service_name [String] The name of the web service.
130
+ # @param region [String] The region for which encrypted credential parameters
131
+ # are valid.
127
132
  # @param [Hash{String => String}] A hash of custom headers that will be added
128
133
  # to the HTTP request.
129
134
  #
130
135
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
131
136
  #
132
- def get_async(resource_group_name, web_service_name, custom_headers = nil)
137
+ def get_async(resource_group_name, web_service_name, region = nil, custom_headers = nil)
133
138
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
134
139
  fail ArgumentError, 'web_service_name is nil' if web_service_name.nil?
135
140
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -141,14 +146,14 @@ module Azure::ARM::MachineLearning
141
146
  # Set Headers
142
147
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
143
148
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
144
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}'
149
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}'
145
150
 
146
151
  request_url = @base_url || @client.base_url
147
152
 
148
153
  options = {
149
154
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
150
155
  path_params: {'resourceGroupName' => resource_group_name,'webServiceName' => web_service_name,'subscriptionId' => @client.subscription_id},
151
- query_params: {'api-version' => @client.api_version},
156
+ query_params: {'region' => region,'api-version' => @client.api_version},
152
157
  headers: request_headers.merge(custom_headers || {}),
153
158
  base_url: request_url
154
159
  }
@@ -168,8 +173,8 @@ module Azure::ARM::MachineLearning
168
173
  if status_code == 200
169
174
  begin
170
175
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
171
- result_mapper = WebService.mapper()
172
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
176
+ result_mapper = Azure::ARM::MachineLearning::Models::WebService.mapper()
177
+ result.body = @client.deserialize(result_mapper, parsed_response)
173
178
  rescue Exception => e
174
179
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
175
180
  end
@@ -220,8 +225,8 @@ module Azure::ARM::MachineLearning
220
225
  promise = promise.then do |response|
221
226
  # Defining deserialization method.
222
227
  deserialize_method = lambda do |parsed_response|
223
- result_mapper = WebService.mapper()
224
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
228
+ result_mapper = Azure::ARM::MachineLearning::Models::WebService.mapper()
229
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
225
230
  end
226
231
 
227
232
  # Waiting for response.
@@ -271,6 +276,59 @@ module Azure::ARM::MachineLearning
271
276
  promise
272
277
  end
273
278
 
279
+ #
280
+ # Creates an encrypted credentials parameter blob for the specified region. To
281
+ # get the web service from a region other than the region in which it has been
282
+ # created, you must first call Create Regional Web Services Properties to
283
+ # create a copy of the encrypted credential parameter blob in that region. You
284
+ # only need to do this before the first time that you get the web service in
285
+ # the new region.
286
+ #
287
+ # @param resource_group_name [String] Name of the resource group in which the
288
+ # web service is located.
289
+ # @param web_service_name [String] The name of the web service.
290
+ # @param region [String] The region for which encrypted credential parameters
291
+ # are created.
292
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
293
+ # will be added to the HTTP request.
294
+ #
295
+ # @return [AsyncOperationStatus] operation results.
296
+ #
297
+ def create_regional_properties(resource_group_name, web_service_name, region, custom_headers = nil)
298
+ response = create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers).value!
299
+ response.body unless response.nil?
300
+ end
301
+
302
+ #
303
+ # @param resource_group_name [String] Name of the resource group in which the
304
+ # web service is located.
305
+ # @param web_service_name [String] The name of the web service.
306
+ # @param region [String] The region for which encrypted credential parameters
307
+ # are created.
308
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
309
+ # will be added to the HTTP request.
310
+ #
311
+ # @return [Concurrent::Promise] promise which provides async access to http
312
+ # response.
313
+ #
314
+ def create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers = nil)
315
+ # Send request
316
+ promise = begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers)
317
+
318
+ promise = promise.then do |response|
319
+ # Defining deserialization method.
320
+ deserialize_method = lambda do |parsed_response|
321
+ result_mapper = Azure::ARM::MachineLearning::Models::AsyncOperationStatus.mapper()
322
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
323
+ end
324
+
325
+ # Waiting for response.
326
+ @client.get_long_running_operation_result(response, deserialize_method)
327
+ end
328
+
329
+ promise
330
+ end
331
+
274
332
  #
275
333
  # Gets the access keys for the specified web service.
276
334
  #
@@ -325,7 +383,7 @@ module Azure::ARM::MachineLearning
325
383
  # Set Headers
326
384
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
327
385
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
328
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}/listKeys'
386
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}/listKeys'
329
387
 
330
388
  request_url = @base_url || @client.base_url
331
389
 
@@ -352,8 +410,8 @@ module Azure::ARM::MachineLearning
352
410
  if status_code == 200
353
411
  begin
354
412
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
355
- result_mapper = WebServiceKeys.mapper()
356
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
413
+ result_mapper = Azure::ARM::MachineLearning::Models::WebServiceKeys.mapper()
414
+ result.body = @client.deserialize(result_mapper, parsed_response)
357
415
  rescue Exception => e
358
416
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
359
417
  end
@@ -418,7 +476,7 @@ module Azure::ARM::MachineLearning
418
476
  # Set Headers
419
477
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
420
478
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
421
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices'
479
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices'
422
480
 
423
481
  request_url = @base_url || @client.base_url
424
482
 
@@ -445,8 +503,8 @@ module Azure::ARM::MachineLearning
445
503
  if status_code == 200
446
504
  begin
447
505
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
448
- result_mapper = PaginatedWebServicesList.mapper()
449
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
506
+ result_mapper = Azure::ARM::MachineLearning::Models::PaginatedWebServicesList.mapper()
507
+ result.body = @client.deserialize(result_mapper, parsed_response)
450
508
  rescue Exception => e
451
509
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
452
510
  end
@@ -467,8 +525,8 @@ module Azure::ARM::MachineLearning
467
525
  #
468
526
  # @return [Array<WebService>] operation results.
469
527
  #
470
- def list(skiptoken = nil, custom_headers = nil)
471
- first_page = list_as_lazy(skiptoken, custom_headers)
528
+ def list_by_subscription_id(skiptoken = nil, custom_headers = nil)
529
+ first_page = list_by_subscription_id_as_lazy(skiptoken, custom_headers)
472
530
  first_page.get_all_items
473
531
  end
474
532
 
@@ -481,8 +539,8 @@ module Azure::ARM::MachineLearning
481
539
  #
482
540
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
483
541
  #
484
- def list_with_http_info(skiptoken = nil, custom_headers = nil)
485
- list_async(skiptoken, custom_headers).value!
542
+ def list_by_subscription_id_with_http_info(skiptoken = nil, custom_headers = nil)
543
+ list_by_subscription_id_async(skiptoken, custom_headers).value!
486
544
  end
487
545
 
488
546
  #
@@ -494,7 +552,7 @@ module Azure::ARM::MachineLearning
494
552
  #
495
553
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
496
554
  #
497
- def list_async(skiptoken = nil, custom_headers = nil)
555
+ def list_by_subscription_id_async(skiptoken = nil, custom_headers = nil)
498
556
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
499
557
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
500
558
 
@@ -504,7 +562,7 @@ module Azure::ARM::MachineLearning
504
562
  # Set Headers
505
563
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
506
564
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
507
- path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/webServices'
565
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/webServices'
508
566
 
509
567
  request_url = @base_url || @client.base_url
510
568
 
@@ -531,8 +589,8 @@ module Azure::ARM::MachineLearning
531
589
  if status_code == 200
532
590
  begin
533
591
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
534
- result_mapper = PaginatedWebServicesList.mapper()
535
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
592
+ result_mapper = Azure::ARM::MachineLearning::Models::PaginatedWebServicesList.mapper()
593
+ result.body = @client.deserialize(result_mapper, parsed_response)
536
594
  rescue Exception => e
537
595
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
538
596
  end
@@ -618,11 +676,11 @@ module Azure::ARM::MachineLearning
618
676
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
619
677
 
620
678
  # Serialize Request
621
- request_mapper = WebService.mapper()
622
- request_content = @client.serialize(request_mapper, create_or_update_payload, 'create_or_update_payload')
679
+ request_mapper = Azure::ARM::MachineLearning::Models::WebService.mapper()
680
+ request_content = @client.serialize(request_mapper, create_or_update_payload)
623
681
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
624
682
 
625
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}'
683
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}'
626
684
 
627
685
  request_url = @base_url || @client.base_url
628
686
 
@@ -650,8 +708,8 @@ module Azure::ARM::MachineLearning
650
708
  if status_code == 200
651
709
  begin
652
710
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
653
- result_mapper = WebService.mapper()
654
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
711
+ result_mapper = Azure::ARM::MachineLearning::Models::WebService.mapper()
712
+ result.body = @client.deserialize(result_mapper, parsed_response)
655
713
  rescue Exception => e
656
714
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
657
715
  end
@@ -660,8 +718,8 @@ module Azure::ARM::MachineLearning
660
718
  if status_code == 201
661
719
  begin
662
720
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
663
- result_mapper = WebService.mapper()
664
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
721
+ result_mapper = Azure::ARM::MachineLearning::Models::WebService.mapper()
722
+ result.body = @client.deserialize(result_mapper, parsed_response)
665
723
  rescue Exception => e
666
724
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
667
725
  end
@@ -744,11 +802,11 @@ module Azure::ARM::MachineLearning
744
802
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
745
803
 
746
804
  # Serialize Request
747
- request_mapper = WebService.mapper()
748
- request_content = @client.serialize(request_mapper, patch_payload, 'patch_payload')
805
+ request_mapper = Azure::ARM::MachineLearning::Models::WebService.mapper()
806
+ request_content = @client.serialize(request_mapper, patch_payload)
749
807
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
750
808
 
751
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}'
809
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}'
752
810
 
753
811
  request_url = @base_url || @client.base_url
754
812
 
@@ -776,8 +834,8 @@ module Azure::ARM::MachineLearning
776
834
  if status_code == 200
777
835
  begin
778
836
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
779
- result_mapper = WebService.mapper()
780
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
837
+ result_mapper = Azure::ARM::MachineLearning::Models::WebService.mapper()
838
+ result.body = @client.deserialize(result_mapper, parsed_response)
781
839
  rescue Exception => e
782
840
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
783
841
  end
@@ -842,7 +900,7 @@ module Azure::ARM::MachineLearning
842
900
  # Set Headers
843
901
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
844
902
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
845
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}'
903
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}'
846
904
 
847
905
  request_url = @base_url || @client.base_url
848
906
 
@@ -872,6 +930,122 @@ module Azure::ARM::MachineLearning
872
930
  promise.execute
873
931
  end
874
932
 
933
+ #
934
+ # Creates an encrypted credentials parameter blob for the specified region. To
935
+ # get the web service from a region other than the region in which it has been
936
+ # created, you must first call Create Regional Web Services Properties to
937
+ # create a copy of the encrypted credential parameter blob in that region. You
938
+ # only need to do this before the first time that you get the web service in
939
+ # the new region.
940
+ #
941
+ # @param resource_group_name [String] Name of the resource group in which the
942
+ # web service is located.
943
+ # @param web_service_name [String] The name of the web service.
944
+ # @param region [String] The region for which encrypted credential parameters
945
+ # are created.
946
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
947
+ # will be added to the HTTP request.
948
+ #
949
+ # @return [AsyncOperationStatus] operation results.
950
+ #
951
+ def begin_create_regional_properties(resource_group_name, web_service_name, region, custom_headers = nil)
952
+ response = begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers).value!
953
+ response.body unless response.nil?
954
+ end
955
+
956
+ #
957
+ # Creates an encrypted credentials parameter blob for the specified region. To
958
+ # get the web service from a region other than the region in which it has been
959
+ # created, you must first call Create Regional Web Services Properties to
960
+ # create a copy of the encrypted credential parameter blob in that region. You
961
+ # only need to do this before the first time that you get the web service in
962
+ # the new region.
963
+ #
964
+ # @param resource_group_name [String] Name of the resource group in which the
965
+ # web service is located.
966
+ # @param web_service_name [String] The name of the web service.
967
+ # @param region [String] The region for which encrypted credential parameters
968
+ # are created.
969
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
970
+ # will be added to the HTTP request.
971
+ #
972
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
973
+ #
974
+ def begin_create_regional_properties_with_http_info(resource_group_name, web_service_name, region, custom_headers = nil)
975
+ begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers).value!
976
+ end
977
+
978
+ #
979
+ # Creates an encrypted credentials parameter blob for the specified region. To
980
+ # get the web service from a region other than the region in which it has been
981
+ # created, you must first call Create Regional Web Services Properties to
982
+ # create a copy of the encrypted credential parameter blob in that region. You
983
+ # only need to do this before the first time that you get the web service in
984
+ # the new region.
985
+ #
986
+ # @param resource_group_name [String] Name of the resource group in which the
987
+ # web service is located.
988
+ # @param web_service_name [String] The name of the web service.
989
+ # @param region [String] The region for which encrypted credential parameters
990
+ # are created.
991
+ # @param [Hash{String => String}] A hash of custom headers that will be added
992
+ # to the HTTP request.
993
+ #
994
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
995
+ #
996
+ def begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers = nil)
997
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
998
+ fail ArgumentError, 'web_service_name is nil' if web_service_name.nil?
999
+ fail ArgumentError, 'region is nil' if region.nil?
1000
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1001
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1002
+
1003
+
1004
+ request_headers = {}
1005
+
1006
+ # Set Headers
1007
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1008
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1009
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}/CreateRegionalBlob'
1010
+
1011
+ request_url = @base_url || @client.base_url
1012
+
1013
+ options = {
1014
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1015
+ path_params: {'resourceGroupName' => resource_group_name,'webServiceName' => web_service_name,'subscriptionId' => @client.subscription_id},
1016
+ query_params: {'region' => region,'api-version' => @client.api_version},
1017
+ headers: request_headers.merge(custom_headers || {}),
1018
+ base_url: request_url
1019
+ }
1020
+ promise = @client.make_request_async(:post, path_template, options)
1021
+
1022
+ promise = promise.then do |result|
1023
+ http_response = result.response
1024
+ status_code = http_response.status
1025
+ response_content = http_response.body
1026
+ unless status_code == 202 || status_code == 200
1027
+ error_model = JSON.load(response_content)
1028
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1029
+ end
1030
+
1031
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1032
+ # Deserialize Response
1033
+ if status_code == 200
1034
+ begin
1035
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1036
+ result_mapper = Azure::ARM::MachineLearning::Models::AsyncOperationStatus.mapper()
1037
+ result.body = @client.deserialize(result_mapper, parsed_response)
1038
+ rescue Exception => e
1039
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1040
+ end
1041
+ end
1042
+
1043
+ result
1044
+ end
1045
+
1046
+ promise.execute
1047
+ end
1048
+
875
1049
  #
876
1050
  # Gets the web services in the specified resource group.
877
1051
  #
@@ -946,8 +1120,8 @@ module Azure::ARM::MachineLearning
946
1120
  if status_code == 200
947
1121
  begin
948
1122
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
949
- result_mapper = PaginatedWebServicesList.mapper()
950
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1123
+ result_mapper = Azure::ARM::MachineLearning::Models::PaginatedWebServicesList.mapper()
1124
+ result.body = @client.deserialize(result_mapper, parsed_response)
951
1125
  rescue Exception => e
952
1126
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
953
1127
  end
@@ -969,8 +1143,8 @@ module Azure::ARM::MachineLearning
969
1143
  #
970
1144
  # @return [PaginatedWebServicesList] operation results.
971
1145
  #
972
- def list_next(next_page_link, custom_headers = nil)
973
- response = list_next_async(next_page_link, custom_headers).value!
1146
+ def list_by_subscription_id_next(next_page_link, custom_headers = nil)
1147
+ response = list_by_subscription_id_next_async(next_page_link, custom_headers).value!
974
1148
  response.body unless response.nil?
975
1149
  end
976
1150
 
@@ -984,8 +1158,8 @@ module Azure::ARM::MachineLearning
984
1158
  #
985
1159
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
986
1160
  #
987
- def list_next_with_http_info(next_page_link, custom_headers = nil)
988
- list_next_async(next_page_link, custom_headers).value!
1161
+ def list_by_subscription_id_next_with_http_info(next_page_link, custom_headers = nil)
1162
+ list_by_subscription_id_next_async(next_page_link, custom_headers).value!
989
1163
  end
990
1164
 
991
1165
  #
@@ -998,7 +1172,7 @@ module Azure::ARM::MachineLearning
998
1172
  #
999
1173
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1000
1174
  #
1001
- def list_next_async(next_page_link, custom_headers = nil)
1175
+ def list_by_subscription_id_next_async(next_page_link, custom_headers = nil)
1002
1176
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1003
1177
 
1004
1178
 
@@ -1033,8 +1207,8 @@ module Azure::ARM::MachineLearning
1033
1207
  if status_code == 200
1034
1208
  begin
1035
1209
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1036
- result_mapper = PaginatedWebServicesList.mapper()
1037
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1210
+ result_mapper = Azure::ARM::MachineLearning::Models::PaginatedWebServicesList.mapper()
1211
+ result.body = @client.deserialize(result_mapper, parsed_response)
1038
1212
  rescue Exception => e
1039
1213
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1040
1214
  end
@@ -1079,12 +1253,12 @@ module Azure::ARM::MachineLearning
1079
1253
  # @return [PaginatedWebServicesList] which provide lazy access to pages of the
1080
1254
  # response.
1081
1255
  #
1082
- def list_as_lazy(skiptoken = nil, custom_headers = nil)
1083
- response = list_async(skiptoken, custom_headers).value!
1256
+ def list_by_subscription_id_as_lazy(skiptoken = nil, custom_headers = nil)
1257
+ response = list_by_subscription_id_async(skiptoken, custom_headers).value!
1084
1258
  unless response.nil?
1085
1259
  page = response.body
1086
1260
  page.next_method = Proc.new do |next_page_link|
1087
- list_next_async(next_page_link, custom_headers)
1261
+ list_by_subscription_id_next_async(next_page_link, custom_headers)
1088
1262
  end
1089
1263
  page
1090
1264
  end