azure_mgmt_machine_learning 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70408cfbf16d4763d6ac1fcc579cb419cfdc8c48
|
4
|
+
data.tar.gz: 2486daf86407798e1348c226f8c1d143cde8d236
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4431ba0f02850a4d9213fec6a65630f511845779b55da7c65577d526248b8eef6ad53c2217c2fab290f47efdc3ea03dad2173592772cdc32e9125a1b9829f3d
|
7
|
+
data.tar.gz: 6d65418c9b99cd13707a76e24764de472639ccfa5a05c3f2308574fc216151db9c166da9fc8c939cbbd3c5a8300ad80058aa0a1f20d11bbdfdd4512fa21b0c7c
|
@@ -35,10 +35,6 @@ module Azure::ARM::MachineLearning
|
|
35
35
|
# is generated and included in each request. Default is true.
|
36
36
|
attr_accessor :generate_client_request_id
|
37
37
|
|
38
|
-
# @return Subscription credentials which uniquely identify client
|
39
|
-
# subscription.
|
40
|
-
attr_accessor :credentials
|
41
|
-
|
42
38
|
# @return [WebServices] web_services
|
43
39
|
attr_reader :web_services
|
44
40
|
|
@@ -63,5 +59,60 @@ module Azure::ARM::MachineLearning
|
|
63
59
|
@generate_client_request_id = true
|
64
60
|
end
|
65
61
|
|
62
|
+
#
|
63
|
+
# Makes a request and returns the body of the response.
|
64
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
65
|
+
# @param path [String] the path, relative to {base_url}.
|
66
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
67
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
68
|
+
# Example:
|
69
|
+
#
|
70
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
71
|
+
# path = "/path"
|
72
|
+
# options = {
|
73
|
+
# body: request_content,
|
74
|
+
# query_params: {'api-version' => '2016-02-01'}
|
75
|
+
# }
|
76
|
+
# result = @client.make_request(:put, path, options)
|
77
|
+
#
|
78
|
+
def make_request(method, path, options = {})
|
79
|
+
result = make_request_with_http_info(method, path, options)
|
80
|
+
result.body unless result.nil?
|
81
|
+
end
|
82
|
+
|
83
|
+
#
|
84
|
+
# Makes a request and returns the operation response.
|
85
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
86
|
+
# @param path [String] the path, relative to {base_url}.
|
87
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
88
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
89
|
+
#
|
90
|
+
def make_request_with_http_info(method, path, options = {})
|
91
|
+
result = make_request_async(method, path, options).value!
|
92
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
93
|
+
result
|
94
|
+
end
|
95
|
+
|
96
|
+
#
|
97
|
+
# Makes a request asynchronously.
|
98
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
99
|
+
# @param path [String] the path, relative to {base_url}.
|
100
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
101
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
102
|
+
#
|
103
|
+
def make_request_async(method, path, options = {})
|
104
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
105
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
106
|
+
|
107
|
+
request_url = options[:base_url] || @base_url
|
108
|
+
|
109
|
+
request_headers = @request_headers
|
110
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
111
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
112
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
113
|
+
|
114
|
+
super(request_url, method, path, options)
|
115
|
+
end
|
116
|
+
|
66
117
|
end
|
67
118
|
end
|
@@ -145,31 +145,28 @@ module Azure::ARM::MachineLearning
|
|
145
145
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
146
146
|
|
147
147
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}'
|
148
|
+
|
149
|
+
request_url = @base_url || @client.base_url
|
150
|
+
|
148
151
|
options = {
|
149
152
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
150
153
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'webServiceName' => web_service_name},
|
151
154
|
query_params: {'api-version' => @client.api_version},
|
152
155
|
body: request_content,
|
153
|
-
headers: request_headers.merge(custom_headers || {})
|
156
|
+
headers: request_headers.merge(custom_headers || {}),
|
157
|
+
base_url: request_url
|
154
158
|
}
|
159
|
+
promise = @client.make_request_async(:put, path_template, options)
|
155
160
|
|
156
|
-
|
157
|
-
|
158
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
159
|
-
promise = request.run_promise do |req|
|
160
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
161
|
-
end
|
162
|
-
|
163
|
-
promise = promise.then do |http_response|
|
161
|
+
promise = promise.then do |result|
|
162
|
+
http_response = result.response
|
164
163
|
status_code = http_response.status
|
165
164
|
response_content = http_response.body
|
166
165
|
unless status_code == 200 || status_code == 201
|
167
166
|
error_model = JSON.load(response_content)
|
168
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
167
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
169
168
|
end
|
170
169
|
|
171
|
-
# Create Result
|
172
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
173
170
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
174
171
|
# Deserialize Response
|
175
172
|
if status_code == 200
|
@@ -256,30 +253,27 @@ module Azure::ARM::MachineLearning
|
|
256
253
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
257
254
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
258
255
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}'
|
256
|
+
|
257
|
+
request_url = @base_url || @client.base_url
|
258
|
+
|
259
259
|
options = {
|
260
260
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
261
261
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'webServiceName' => web_service_name},
|
262
262
|
query_params: {'api-version' => @client.api_version},
|
263
|
-
headers: request_headers.merge(custom_headers || {})
|
263
|
+
headers: request_headers.merge(custom_headers || {}),
|
264
|
+
base_url: request_url
|
264
265
|
}
|
266
|
+
promise = @client.make_request_async(:get, path_template, options)
|
265
267
|
|
266
|
-
|
267
|
-
|
268
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
269
|
-
promise = request.run_promise do |req|
|
270
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
271
|
-
end
|
272
|
-
|
273
|
-
promise = promise.then do |http_response|
|
268
|
+
promise = promise.then do |result|
|
269
|
+
http_response = result.response
|
274
270
|
status_code = http_response.status
|
275
271
|
response_content = http_response.body
|
276
272
|
unless status_code == 200
|
277
273
|
error_model = JSON.load(response_content)
|
278
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
274
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
279
275
|
end
|
280
276
|
|
281
|
-
# Create Result
|
282
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
283
277
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
284
278
|
# Deserialize Response
|
285
279
|
if status_code == 200
|
@@ -416,31 +410,28 @@ module Azure::ARM::MachineLearning
|
|
416
410
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
417
411
|
|
418
412
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}'
|
413
|
+
|
414
|
+
request_url = @base_url || @client.base_url
|
415
|
+
|
419
416
|
options = {
|
420
417
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
421
418
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'webServiceName' => web_service_name},
|
422
419
|
query_params: {'api-version' => @client.api_version},
|
423
420
|
body: request_content,
|
424
|
-
headers: request_headers.merge(custom_headers || {})
|
421
|
+
headers: request_headers.merge(custom_headers || {}),
|
422
|
+
base_url: request_url
|
425
423
|
}
|
424
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
426
425
|
|
427
|
-
|
428
|
-
|
429
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :patch, options)
|
430
|
-
promise = request.run_promise do |req|
|
431
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
432
|
-
end
|
433
|
-
|
434
|
-
promise = promise.then do |http_response|
|
426
|
+
promise = promise.then do |result|
|
427
|
+
http_response = result.response
|
435
428
|
status_code = http_response.status
|
436
429
|
response_content = http_response.body
|
437
430
|
unless status_code == 200
|
438
431
|
error_model = JSON.load(response_content)
|
439
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
432
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
440
433
|
end
|
441
434
|
|
442
|
-
# Create Result
|
443
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
444
435
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
445
436
|
# Deserialize Response
|
446
437
|
if status_code == 200
|
@@ -553,30 +544,27 @@ module Azure::ARM::MachineLearning
|
|
553
544
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
554
545
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
555
546
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}'
|
547
|
+
|
548
|
+
request_url = @base_url || @client.base_url
|
549
|
+
|
556
550
|
options = {
|
557
551
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
558
552
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'webServiceName' => web_service_name},
|
559
553
|
query_params: {'api-version' => @client.api_version},
|
560
|
-
headers: request_headers.merge(custom_headers || {})
|
554
|
+
headers: request_headers.merge(custom_headers || {}),
|
555
|
+
base_url: request_url
|
561
556
|
}
|
557
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
562
558
|
|
563
|
-
|
564
|
-
|
565
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
566
|
-
promise = request.run_promise do |req|
|
567
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
568
|
-
end
|
569
|
-
|
570
|
-
promise = promise.then do |http_response|
|
559
|
+
promise = promise.then do |result|
|
560
|
+
http_response = result.response
|
571
561
|
status_code = http_response.status
|
572
562
|
response_content = http_response.body
|
573
563
|
unless status_code == 202 || status_code == 204
|
574
564
|
error_model = JSON.load(response_content)
|
575
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
565
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
576
566
|
end
|
577
567
|
|
578
|
-
# Create Result
|
579
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
580
568
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
581
569
|
|
582
570
|
result
|
@@ -640,30 +628,27 @@ module Azure::ARM::MachineLearning
|
|
640
628
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
641
629
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
642
630
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices/{webServiceName}/listKeys'
|
631
|
+
|
632
|
+
request_url = @base_url || @client.base_url
|
633
|
+
|
643
634
|
options = {
|
644
635
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
645
636
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'webServiceName' => web_service_name},
|
646
637
|
query_params: {'api-version' => @client.api_version},
|
647
|
-
headers: request_headers.merge(custom_headers || {})
|
638
|
+
headers: request_headers.merge(custom_headers || {}),
|
639
|
+
base_url: request_url
|
648
640
|
}
|
641
|
+
promise = @client.make_request_async(:get, path_template, options)
|
649
642
|
|
650
|
-
|
651
|
-
|
652
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
653
|
-
promise = request.run_promise do |req|
|
654
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
655
|
-
end
|
656
|
-
|
657
|
-
promise = promise.then do |http_response|
|
643
|
+
promise = promise.then do |result|
|
644
|
+
http_response = result.response
|
658
645
|
status_code = http_response.status
|
659
646
|
response_content = http_response.body
|
660
647
|
unless status_code == 200
|
661
648
|
error_model = JSON.load(response_content)
|
662
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
649
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
663
650
|
end
|
664
651
|
|
665
|
-
# Create Result
|
666
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
667
652
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
668
653
|
# Deserialize Response
|
669
654
|
if status_code == 200
|
@@ -733,30 +718,27 @@ module Azure::ARM::MachineLearning
|
|
733
718
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
734
719
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
735
720
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/webServices'
|
721
|
+
|
722
|
+
request_url = @base_url || @client.base_url
|
723
|
+
|
736
724
|
options = {
|
737
725
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
738
726
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
|
739
727
|
query_params: {'api-version' => @client.api_version,'$skiptoken' => skiptoken},
|
740
|
-
headers: request_headers.merge(custom_headers || {})
|
728
|
+
headers: request_headers.merge(custom_headers || {}),
|
729
|
+
base_url: request_url
|
741
730
|
}
|
731
|
+
promise = @client.make_request_async(:get, path_template, options)
|
742
732
|
|
743
|
-
|
744
|
-
|
745
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
746
|
-
promise = request.run_promise do |req|
|
747
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
748
|
-
end
|
749
|
-
|
750
|
-
promise = promise.then do |http_response|
|
733
|
+
promise = promise.then do |result|
|
734
|
+
http_response = result.response
|
751
735
|
status_code = http_response.status
|
752
736
|
response_content = http_response.body
|
753
737
|
unless status_code == 200
|
754
738
|
error_model = JSON.load(response_content)
|
755
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
739
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
756
740
|
end
|
757
741
|
|
758
|
-
# Create Result
|
759
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
760
742
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
761
743
|
# Deserialize Response
|
762
744
|
if status_code == 200
|
@@ -822,30 +804,27 @@ module Azure::ARM::MachineLearning
|
|
822
804
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
823
805
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
824
806
|
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/webServices'
|
807
|
+
|
808
|
+
request_url = @base_url || @client.base_url
|
809
|
+
|
825
810
|
options = {
|
826
811
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
827
812
|
path_params: {'subscriptionId' => @client.subscription_id},
|
828
813
|
query_params: {'api-version' => @client.api_version,'$skiptoken' => skiptoken},
|
829
|
-
headers: request_headers.merge(custom_headers || {})
|
814
|
+
headers: request_headers.merge(custom_headers || {}),
|
815
|
+
base_url: request_url
|
830
816
|
}
|
817
|
+
promise = @client.make_request_async(:get, path_template, options)
|
831
818
|
|
832
|
-
|
833
|
-
|
834
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
835
|
-
promise = request.run_promise do |req|
|
836
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
837
|
-
end
|
838
|
-
|
839
|
-
promise = promise.then do |http_response|
|
819
|
+
promise = promise.then do |result|
|
820
|
+
http_response = result.response
|
840
821
|
status_code = http_response.status
|
841
822
|
response_content = http_response.body
|
842
823
|
unless status_code == 200
|
843
824
|
error_model = JSON.load(response_content)
|
844
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
825
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
845
826
|
end
|
846
827
|
|
847
|
-
# Create Result
|
848
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
849
828
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
850
829
|
# Deserialize Response
|
851
830
|
if status_code == 200
|
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.7.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: 2016-
|
11
|
+
date: 2016-10-14 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.6.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.6.0
|
83
83
|
description: Microsoft Azure Machine Learning Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|
@@ -138,7 +138,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
138
138
|
requirements:
|
139
139
|
- - ">="
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
141
|
+
version: 2.0.0
|
142
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
144
|
- - ">="
|