azure_mgmt_machine_learning 0.8.0 → 0.9.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.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_machine_learning.rb +15 -15
- data/lib/generated/azure_mgmt_machine_learning/azure_mlweb_services_management_client.rb +4 -5
- data/lib/generated/azure_mgmt_machine_learning/models/paginated_web_services_list.rb +31 -0
- data/lib/generated/azure_mgmt_machine_learning/version.rb +1 -1
- data/lib/generated/azure_mgmt_machine_learning/web_services.rb +246 -28
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f9df4a5d4a225b9f55402c823ad99320065e849
|
4
|
+
data.tar.gz: 7b34cff9bff621698056156257fd2f58e259064a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab52cb88c991a9ba8356ffe223a6f55dcbf3a14d0d8f785da2b6e7cba0a6b4ce978af389a34867b41c5252cae07966affae9722501633c82c814bfe6bff9b0a7
|
7
|
+
data.tar.gz: f47fd3bf4c75233dcce00ccdeab9f4650fb1c8e23275863f632c6262e94c1132b0826c9952849d10ae591007999d34a78c8118d3fd9bc11dbb544cdc71c9ad1c
|
@@ -24,29 +24,29 @@ module Azure::ARM::MachineLearning
|
|
24
24
|
autoload :AzureMLWebServicesManagementClient, 'generated/azure_mgmt_machine_learning/azure_mlweb_services_management_client.rb'
|
25
25
|
|
26
26
|
module Models
|
27
|
-
autoload :AssetItem, 'generated/azure_mgmt_machine_learning/models/asset_item.rb'
|
28
|
-
autoload :AssetLocation, 'generated/azure_mgmt_machine_learning/models/asset_location.rb'
|
29
|
-
autoload :WebServiceProperties, 'generated/azure_mgmt_machine_learning/models/web_service_properties.rb'
|
30
|
-
autoload :InputPort, 'generated/azure_mgmt_machine_learning/models/input_port.rb'
|
31
|
-
autoload :RealtimeConfiguration, 'generated/azure_mgmt_machine_learning/models/realtime_configuration.rb'
|
32
27
|
autoload :OutputPort, 'generated/azure_mgmt_machine_learning/models/output_port.rb'
|
33
|
-
autoload :
|
28
|
+
autoload :ModeValueInfo, 'generated/azure_mgmt_machine_learning/models/mode_value_info.rb'
|
29
|
+
autoload :RealtimeConfiguration, 'generated/azure_mgmt_machine_learning/models/realtime_configuration.rb'
|
34
30
|
autoload :ModuleAssetParameter, 'generated/azure_mgmt_machine_learning/models/module_asset_parameter.rb'
|
31
|
+
autoload :StorageAccount, 'generated/azure_mgmt_machine_learning/models/storage_account.rb'
|
32
|
+
autoload :AssetItem, 'generated/azure_mgmt_machine_learning/models/asset_item.rb'
|
35
33
|
autoload :CommitmentPlan, 'generated/azure_mgmt_machine_learning/models/commitment_plan.rb'
|
36
|
-
autoload :
|
34
|
+
autoload :WebServiceProperties, 'generated/azure_mgmt_machine_learning/models/web_service_properties.rb'
|
37
35
|
autoload :TableSpecification, 'generated/azure_mgmt_machine_learning/models/table_specification.rb'
|
36
|
+
autoload :ServiceInputOutputSpecification, 'generated/azure_mgmt_machine_learning/models/service_input_output_specification.rb'
|
37
|
+
autoload :ExampleRequest, 'generated/azure_mgmt_machine_learning/models/example_request.rb'
|
38
|
+
autoload :InputPort, 'generated/azure_mgmt_machine_learning/models/input_port.rb'
|
39
|
+
autoload :GraphNode, 'generated/azure_mgmt_machine_learning/models/graph_node.rb'
|
40
|
+
autoload :DiagnosticsConfiguration, 'generated/azure_mgmt_machine_learning/models/diagnostics_configuration.rb'
|
41
|
+
autoload :GraphEdge, 'generated/azure_mgmt_machine_learning/models/graph_edge.rb'
|
38
42
|
autoload :ColumnSpecification, 'generated/azure_mgmt_machine_learning/models/column_specification.rb'
|
39
|
-
autoload :
|
43
|
+
autoload :GraphParameterLink, 'generated/azure_mgmt_machine_learning/models/graph_parameter_link.rb'
|
40
44
|
autoload :WebServiceKeys, 'generated/azure_mgmt_machine_learning/models/web_service_keys.rb'
|
45
|
+
autoload :GraphParameter, 'generated/azure_mgmt_machine_learning/models/graph_parameter.rb'
|
46
|
+
autoload :AssetLocation, 'generated/azure_mgmt_machine_learning/models/asset_location.rb'
|
41
47
|
autoload :GraphPackage, 'generated/azure_mgmt_machine_learning/models/graph_package.rb'
|
42
48
|
autoload :MachineLearningWorkspace, 'generated/azure_mgmt_machine_learning/models/machine_learning_workspace.rb'
|
43
|
-
autoload :
|
44
|
-
autoload :ExampleRequest, 'generated/azure_mgmt_machine_learning/models/example_request.rb'
|
45
|
-
autoload :GraphEdge, 'generated/azure_mgmt_machine_learning/models/graph_edge.rb'
|
46
|
-
autoload :ServiceInputOutputSpecification, 'generated/azure_mgmt_machine_learning/models/service_input_output_specification.rb'
|
47
|
-
autoload :GraphParameter, 'generated/azure_mgmt_machine_learning/models/graph_parameter.rb'
|
48
|
-
autoload :DiagnosticsConfiguration, 'generated/azure_mgmt_machine_learning/models/diagnostics_configuration.rb'
|
49
|
-
autoload :GraphParameterLink, 'generated/azure_mgmt_machine_learning/models/graph_parameter_link.rb'
|
49
|
+
autoload :PaginatedWebServicesList, 'generated/azure_mgmt_machine_learning/models/paginated_web_services_list.rb'
|
50
50
|
autoload :WebService, 'generated/azure_mgmt_machine_learning/models/web_service.rb'
|
51
51
|
autoload :WebServicePropertiesForGraph, 'generated/azure_mgmt_machine_learning/models/web_service_properties_for_graph.rb'
|
52
52
|
autoload :ProvisioningState, 'generated/azure_mgmt_machine_learning/models/provisioning_state.rb'
|
@@ -44,12 +44,11 @@ module Azure::ARM::MachineLearning
|
|
44
44
|
# @param base_url [String] the base URI of the service.
|
45
45
|
# @param options [Array] filters to be applied to the HTTP requests.
|
46
46
|
#
|
47
|
-
def initialize(credentials, base_url = nil, options = nil)
|
47
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
48
48
|
super(credentials, options)
|
49
49
|
@base_url = base_url || 'https://management.azure.com'
|
50
50
|
|
51
|
-
fail ArgumentError, 'credentials
|
52
|
-
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
|
51
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
53
52
|
@credentials = credentials
|
54
53
|
|
55
54
|
@web_services = WebServices.new(self)
|
@@ -62,7 +61,7 @@ module Azure::ARM::MachineLearning
|
|
62
61
|
|
63
62
|
#
|
64
63
|
# Makes a request and returns the body of the response.
|
65
|
-
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
64
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
66
65
|
# @param path [String] the path, relative to {base_url}.
|
67
66
|
# @param options [Hash{String=>String}] specifying any request options like :body.
|
68
67
|
# @return [Hash{String=>String}] containing the body of the response.
|
@@ -123,7 +122,7 @@ module Azure::ARM::MachineLearning
|
|
123
122
|
def add_telemetry
|
124
123
|
sdk_information = 'azure_mgmt_machine_learning'
|
125
124
|
if defined? Azure::ARM::MachineLearning::VERSION
|
126
|
-
sdk_information = "#{sdk_information}/#{Azure::ARM::MachineLearning::VERSION}"
|
125
|
+
sdk_information = "#{sdk_information}/#{Azure::ARM::MachineLearning::VERSION}"
|
127
126
|
end
|
128
127
|
add_user_agent_information(sdk_information)
|
129
128
|
end
|
@@ -19,6 +19,37 @@ module Azure::ARM::MachineLearning
|
|
19
19
|
# results in the list.
|
20
20
|
attr_accessor :next_link
|
21
21
|
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<WebService>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [PaginatedWebServicesList] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
22
53
|
|
23
54
|
#
|
24
55
|
# Mapper for PaginatedWebServicesList class as Ruby Hash.
|
@@ -130,10 +130,10 @@ module Azure::ARM::MachineLearning
|
|
130
130
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
131
131
|
#
|
132
132
|
def get_async(resource_group_name, web_service_name, custom_headers = nil)
|
133
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
134
133
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
135
134
|
fail ArgumentError, 'web_service_name is nil' if web_service_name.nil?
|
136
135
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
136
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
137
137
|
|
138
138
|
|
139
139
|
request_headers = {}
|
@@ -147,7 +147,7 @@ module Azure::ARM::MachineLearning
|
|
147
147
|
|
148
148
|
options = {
|
149
149
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
150
|
-
path_params: {'
|
150
|
+
path_params: {'resourceGroupName' => resource_group_name,'webServiceName' => web_service_name,'subscriptionId' => @client.subscription_id},
|
151
151
|
query_params: {'api-version' => @client.api_version},
|
152
152
|
headers: request_headers.merge(custom_headers || {}),
|
153
153
|
base_url: request_url
|
@@ -314,10 +314,10 @@ module Azure::ARM::MachineLearning
|
|
314
314
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
315
315
|
#
|
316
316
|
def list_keys_async(resource_group_name, web_service_name, custom_headers = nil)
|
317
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
318
317
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
319
318
|
fail ArgumentError, 'web_service_name is nil' if web_service_name.nil?
|
320
319
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
320
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
321
321
|
|
322
322
|
|
323
323
|
request_headers = {}
|
@@ -331,7 +331,7 @@ module Azure::ARM::MachineLearning
|
|
331
331
|
|
332
332
|
options = {
|
333
333
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
334
|
-
path_params: {'
|
334
|
+
path_params: {'resourceGroupName' => resource_group_name,'webServiceName' => web_service_name,'subscriptionId' => @client.subscription_id},
|
335
335
|
query_params: {'api-version' => @client.api_version},
|
336
336
|
headers: request_headers.merge(custom_headers || {}),
|
337
337
|
base_url: request_url
|
@@ -374,11 +374,11 @@ module Azure::ARM::MachineLearning
|
|
374
374
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
375
375
|
# will be added to the HTTP request.
|
376
376
|
#
|
377
|
-
# @return [
|
377
|
+
# @return [Array<WebService>] operation results.
|
378
378
|
#
|
379
|
-
def
|
380
|
-
|
381
|
-
|
379
|
+
def list_by_resource_group(resource_group_name, skiptoken = nil, custom_headers = nil)
|
380
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, skiptoken, custom_headers)
|
381
|
+
first_page.get_all_items
|
382
382
|
end
|
383
383
|
|
384
384
|
#
|
@@ -392,8 +392,8 @@ module Azure::ARM::MachineLearning
|
|
392
392
|
#
|
393
393
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
394
394
|
#
|
395
|
-
def
|
396
|
-
|
395
|
+
def list_by_resource_group_with_http_info(resource_group_name, skiptoken = nil, custom_headers = nil)
|
396
|
+
list_by_resource_group_async(resource_group_name, skiptoken, custom_headers).value!
|
397
397
|
end
|
398
398
|
|
399
399
|
#
|
@@ -407,10 +407,10 @@ module Azure::ARM::MachineLearning
|
|
407
407
|
#
|
408
408
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
409
409
|
#
|
410
|
-
def
|
411
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
410
|
+
def list_by_resource_group_async(resource_group_name, skiptoken = nil, custom_headers = nil)
|
412
411
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
413
412
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
413
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
414
414
|
|
415
415
|
|
416
416
|
request_headers = {}
|
@@ -424,8 +424,8 @@ module Azure::ARM::MachineLearning
|
|
424
424
|
|
425
425
|
options = {
|
426
426
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
427
|
-
path_params: {'
|
428
|
-
query_params: {'api-version' => @client.api_version
|
427
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
428
|
+
query_params: {'$skiptoken' => skiptoken,'api-version' => @client.api_version},
|
429
429
|
headers: request_headers.merge(custom_headers || {}),
|
430
430
|
base_url: request_url
|
431
431
|
}
|
@@ -465,11 +465,11 @@ module Azure::ARM::MachineLearning
|
|
465
465
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
466
466
|
# will be added to the HTTP request.
|
467
467
|
#
|
468
|
-
# @return [
|
468
|
+
# @return [Array<WebService>] operation results.
|
469
469
|
#
|
470
470
|
def list(skiptoken = nil, custom_headers = nil)
|
471
|
-
|
472
|
-
|
471
|
+
first_page = list_as_lazy(skiptoken, custom_headers)
|
472
|
+
first_page.get_all_items
|
473
473
|
end
|
474
474
|
|
475
475
|
#
|
@@ -495,8 +495,8 @@ module Azure::ARM::MachineLearning
|
|
495
495
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
496
496
|
#
|
497
497
|
def list_async(skiptoken = nil, custom_headers = nil)
|
498
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
499
498
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
499
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
500
500
|
|
501
501
|
|
502
502
|
request_headers = {}
|
@@ -511,7 +511,7 @@ module Azure::ARM::MachineLearning
|
|
511
511
|
options = {
|
512
512
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
513
513
|
path_params: {'subscriptionId' => @client.subscription_id},
|
514
|
-
query_params: {'api-version' => @client.api_version
|
514
|
+
query_params: {'$skiptoken' => skiptoken,'api-version' => @client.api_version},
|
515
515
|
headers: request_headers.merge(custom_headers || {}),
|
516
516
|
base_url: request_url
|
517
517
|
}
|
@@ -602,11 +602,11 @@ module Azure::ARM::MachineLearning
|
|
602
602
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
603
603
|
#
|
604
604
|
def begin_create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers = nil)
|
605
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
606
605
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
607
606
|
fail ArgumentError, 'web_service_name is nil' if web_service_name.nil?
|
608
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
609
607
|
fail ArgumentError, 'create_or_update_payload is nil' if create_or_update_payload.nil?
|
608
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
609
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
610
610
|
|
611
611
|
|
612
612
|
request_headers = {}
|
@@ -628,7 +628,7 @@ module Azure::ARM::MachineLearning
|
|
628
628
|
|
629
629
|
options = {
|
630
630
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
631
|
-
path_params: {'
|
631
|
+
path_params: {'resourceGroupName' => resource_group_name,'webServiceName' => web_service_name,'subscriptionId' => @client.subscription_id},
|
632
632
|
query_params: {'api-version' => @client.api_version},
|
633
633
|
body: request_content,
|
634
634
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -728,11 +728,11 @@ module Azure::ARM::MachineLearning
|
|
728
728
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
729
729
|
#
|
730
730
|
def begin_patch_async(resource_group_name, web_service_name, patch_payload, custom_headers = nil)
|
731
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
732
731
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
733
732
|
fail ArgumentError, 'web_service_name is nil' if web_service_name.nil?
|
734
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
735
733
|
fail ArgumentError, 'patch_payload is nil' if patch_payload.nil?
|
734
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
735
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
736
736
|
|
737
737
|
|
738
738
|
request_headers = {}
|
@@ -754,7 +754,7 @@ module Azure::ARM::MachineLearning
|
|
754
754
|
|
755
755
|
options = {
|
756
756
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
757
|
-
path_params: {'
|
757
|
+
path_params: {'resourceGroupName' => resource_group_name,'webServiceName' => web_service_name,'subscriptionId' => @client.subscription_id},
|
758
758
|
query_params: {'api-version' => @client.api_version},
|
759
759
|
body: request_content,
|
760
760
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -831,10 +831,10 @@ module Azure::ARM::MachineLearning
|
|
831
831
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
832
832
|
#
|
833
833
|
def begin_remove_async(resource_group_name, web_service_name, custom_headers = nil)
|
834
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
835
834
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
836
835
|
fail ArgumentError, 'web_service_name is nil' if web_service_name.nil?
|
837
836
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
837
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
838
838
|
|
839
839
|
|
840
840
|
request_headers = {}
|
@@ -848,7 +848,7 @@ module Azure::ARM::MachineLearning
|
|
848
848
|
|
849
849
|
options = {
|
850
850
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
851
|
-
path_params: {'
|
851
|
+
path_params: {'resourceGroupName' => resource_group_name,'webServiceName' => web_service_name,'subscriptionId' => @client.subscription_id},
|
852
852
|
query_params: {'api-version' => @client.api_version},
|
853
853
|
headers: request_headers.merge(custom_headers || {}),
|
854
854
|
base_url: request_url
|
@@ -859,12 +859,186 @@ module Azure::ARM::MachineLearning
|
|
859
859
|
http_response = result.response
|
860
860
|
status_code = http_response.status
|
861
861
|
response_content = http_response.body
|
862
|
-
unless status_code == 202
|
862
|
+
unless status_code == 202 || status_code == 204
|
863
|
+
error_model = JSON.load(response_content)
|
864
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
865
|
+
end
|
866
|
+
|
867
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
868
|
+
|
869
|
+
result
|
870
|
+
end
|
871
|
+
|
872
|
+
promise.execute
|
873
|
+
end
|
874
|
+
|
875
|
+
#
|
876
|
+
# Gets the web services in the specified resource group.
|
877
|
+
#
|
878
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
879
|
+
# to List operation.
|
880
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
881
|
+
# will be added to the HTTP request.
|
882
|
+
#
|
883
|
+
# @return [PaginatedWebServicesList] operation results.
|
884
|
+
#
|
885
|
+
def list_by_resource_group_next(next_page_link, custom_headers = nil)
|
886
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
887
|
+
response.body unless response.nil?
|
888
|
+
end
|
889
|
+
|
890
|
+
#
|
891
|
+
# Gets the web services in the specified resource group.
|
892
|
+
#
|
893
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
894
|
+
# to List operation.
|
895
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
896
|
+
# will be added to the HTTP request.
|
897
|
+
#
|
898
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
899
|
+
#
|
900
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
|
901
|
+
list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
902
|
+
end
|
903
|
+
|
904
|
+
#
|
905
|
+
# Gets the web services in the specified resource group.
|
906
|
+
#
|
907
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
908
|
+
# to List operation.
|
909
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
910
|
+
# to the HTTP request.
|
911
|
+
#
|
912
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
913
|
+
#
|
914
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
|
915
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
916
|
+
|
917
|
+
|
918
|
+
request_headers = {}
|
919
|
+
|
920
|
+
# Set Headers
|
921
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
922
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
923
|
+
path_template = '{nextLink}'
|
924
|
+
|
925
|
+
request_url = @base_url || @client.base_url
|
926
|
+
|
927
|
+
options = {
|
928
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
929
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
930
|
+
headers: request_headers.merge(custom_headers || {}),
|
931
|
+
base_url: request_url
|
932
|
+
}
|
933
|
+
promise = @client.make_request_async(:get, path_template, options)
|
934
|
+
|
935
|
+
promise = promise.then do |result|
|
936
|
+
http_response = result.response
|
937
|
+
status_code = http_response.status
|
938
|
+
response_content = http_response.body
|
939
|
+
unless status_code == 200
|
940
|
+
error_model = JSON.load(response_content)
|
941
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
942
|
+
end
|
943
|
+
|
944
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
945
|
+
# Deserialize Response
|
946
|
+
if status_code == 200
|
947
|
+
begin
|
948
|
+
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')
|
951
|
+
rescue Exception => e
|
952
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
953
|
+
end
|
954
|
+
end
|
955
|
+
|
956
|
+
result
|
957
|
+
end
|
958
|
+
|
959
|
+
promise.execute
|
960
|
+
end
|
961
|
+
|
962
|
+
#
|
963
|
+
# Gets the web services in the specified subscription.
|
964
|
+
#
|
965
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
966
|
+
# to List operation.
|
967
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
968
|
+
# will be added to the HTTP request.
|
969
|
+
#
|
970
|
+
# @return [PaginatedWebServicesList] operation results.
|
971
|
+
#
|
972
|
+
def list_next(next_page_link, custom_headers = nil)
|
973
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
974
|
+
response.body unless response.nil?
|
975
|
+
end
|
976
|
+
|
977
|
+
#
|
978
|
+
# Gets the web services in the specified subscription.
|
979
|
+
#
|
980
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
981
|
+
# to List operation.
|
982
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
983
|
+
# will be added to the HTTP request.
|
984
|
+
#
|
985
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
986
|
+
#
|
987
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
988
|
+
list_next_async(next_page_link, custom_headers).value!
|
989
|
+
end
|
990
|
+
|
991
|
+
#
|
992
|
+
# Gets the web services in the specified subscription.
|
993
|
+
#
|
994
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
995
|
+
# to List operation.
|
996
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
997
|
+
# to the HTTP request.
|
998
|
+
#
|
999
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1000
|
+
#
|
1001
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
1002
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1003
|
+
|
1004
|
+
|
1005
|
+
request_headers = {}
|
1006
|
+
|
1007
|
+
# Set Headers
|
1008
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1009
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1010
|
+
path_template = '{nextLink}'
|
1011
|
+
|
1012
|
+
request_url = @base_url || @client.base_url
|
1013
|
+
|
1014
|
+
options = {
|
1015
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1016
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1017
|
+
headers: request_headers.merge(custom_headers || {}),
|
1018
|
+
base_url: request_url
|
1019
|
+
}
|
1020
|
+
promise = @client.make_request_async(:get, 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 == 200
|
863
1027
|
error_model = JSON.load(response_content)
|
864
1028
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
865
1029
|
end
|
866
1030
|
|
867
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 = PaginatedWebServicesList.mapper()
|
1037
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1038
|
+
rescue Exception => e
|
1039
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1040
|
+
end
|
1041
|
+
end
|
868
1042
|
|
869
1043
|
result
|
870
1044
|
end
|
@@ -872,5 +1046,49 @@ module Azure::ARM::MachineLearning
|
|
872
1046
|
promise.execute
|
873
1047
|
end
|
874
1048
|
|
1049
|
+
#
|
1050
|
+
# Gets the web services in the specified resource group.
|
1051
|
+
#
|
1052
|
+
# @param resource_group_name [String] Name of the resource group in which the
|
1053
|
+
# web service is located.
|
1054
|
+
# @param skiptoken [String] Continuation token for pagination.
|
1055
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1056
|
+
# will be added to the HTTP request.
|
1057
|
+
#
|
1058
|
+
# @return [PaginatedWebServicesList] which provide lazy access to pages of the
|
1059
|
+
# response.
|
1060
|
+
#
|
1061
|
+
def list_by_resource_group_as_lazy(resource_group_name, skiptoken = nil, custom_headers = nil)
|
1062
|
+
response = list_by_resource_group_async(resource_group_name, skiptoken, custom_headers).value!
|
1063
|
+
unless response.nil?
|
1064
|
+
page = response.body
|
1065
|
+
page.next_method = Proc.new do |next_page_link|
|
1066
|
+
list_by_resource_group_next_async(next_page_link, custom_headers)
|
1067
|
+
end
|
1068
|
+
page
|
1069
|
+
end
|
1070
|
+
end
|
1071
|
+
|
1072
|
+
#
|
1073
|
+
# Gets the web services in the specified subscription.
|
1074
|
+
#
|
1075
|
+
# @param skiptoken [String] Continuation token for pagination.
|
1076
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1077
|
+
# will be added to the HTTP request.
|
1078
|
+
#
|
1079
|
+
# @return [PaginatedWebServicesList] which provide lazy access to pages of the
|
1080
|
+
# response.
|
1081
|
+
#
|
1082
|
+
def list_as_lazy(skiptoken = nil, custom_headers = nil)
|
1083
|
+
response = list_async(skiptoken, custom_headers).value!
|
1084
|
+
unless response.nil?
|
1085
|
+
page = response.body
|
1086
|
+
page.next_method = Proc.new do |next_page_link|
|
1087
|
+
list_next_async(next_page_link, custom_headers)
|
1088
|
+
end
|
1089
|
+
page
|
1090
|
+
end
|
1091
|
+
end
|
1092
|
+
|
875
1093
|
end
|
876
1094
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_machine_learning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.7.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.7.0
|
83
83
|
description: Microsoft Azure Machine Learning Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|