azure_mgmt_machine_learning_services 0.17.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 +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services.rb +67 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/machine_learning_compute.rb +881 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/machine_learning_services_client.rb +139 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/aks.rb +131 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/aks_compute_secrets.rb +85 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/aksproperties.rb +103 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/batch_ai.rb +131 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/batch_aiproperties.rb +69 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/compute.rb +144 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/compute_resource.rb +110 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/compute_secrets.rb +48 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/compute_type.rb +19 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/data_factory.rb +119 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/error_detail.rb +57 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/error_response.rb +77 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/hdinsight.rb +131 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/hdinsight_properties.rb +72 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/identity.rb +72 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/list_workspace_keys_result.rb +85 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/machine_learning_service_error.rb +47 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/operation.rb +58 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/operation_display.rb +80 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/operation_list_result.rb +56 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/paginated_compute_resources_list.rb +101 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/password.rb +60 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/provisioning_state.rb +21 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/registry_list_credentials_result.rb +80 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/resource.rb +124 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/resource_identity_type.rb +15 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/scale_settings.rb +68 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/service_principal_credentials.rb +57 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/ssl_configuration.rb +80 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/system_service.rb +71 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/virtual_machine.rb +131 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/virtual_machine_properties.rb +82 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/virtual_machine_secrets.rb +63 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/virtual_machine_ssh_credentials.rb +79 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/workspace.rb +232 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/workspace_list_result.rb +101 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/workspace_update_parameters.rb +77 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/module_definition.rb +9 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/operations.rb +111 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/workspaces.rb +1033 -0
- data/lib/azure_mgmt_machine_learning_services.rb +6 -0
- data/lib/module_definition.rb +8 -0
- data/lib/profiles/latest/machinelearningservices_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/machinelearningservices_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/machinelearningservices_profile_module.rb +213 -0
- data/lib/version.rb +7 -0
- metadata +170 -0
data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/module_definition.rb
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure end
|
|
7
|
+
module Azure::MachineLearningServices end
|
|
8
|
+
module Azure::MachineLearningServices::Mgmt end
|
|
9
|
+
module Azure::MachineLearningServices::Mgmt::V2018_03_01_preview end
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::MachineLearningServices::Mgmt::V2018_03_01_preview
|
|
7
|
+
#
|
|
8
|
+
# These APIs allow end users to operate on Azure Machine Learning Workspace
|
|
9
|
+
# resources.
|
|
10
|
+
#
|
|
11
|
+
class Operations
|
|
12
|
+
include MsRestAzure
|
|
13
|
+
|
|
14
|
+
#
|
|
15
|
+
# Creates and initializes a new instance of the Operations class.
|
|
16
|
+
# @param client service class for accessing basic functionality.
|
|
17
|
+
#
|
|
18
|
+
def initialize(client)
|
|
19
|
+
@client = client
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# @return [MachineLearningServicesClient] reference to the MachineLearningServicesClient
|
|
23
|
+
attr_reader :client
|
|
24
|
+
|
|
25
|
+
#
|
|
26
|
+
# Lists all of the available Azure Machine Learning Workspaces REST API
|
|
27
|
+
# operations.
|
|
28
|
+
#
|
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
30
|
+
# will be added to the HTTP request.
|
|
31
|
+
#
|
|
32
|
+
# @return [OperationListResult] operation results.
|
|
33
|
+
#
|
|
34
|
+
def list(custom_headers:nil)
|
|
35
|
+
response = list_async(custom_headers:custom_headers).value!
|
|
36
|
+
response.body unless response.nil?
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
#
|
|
40
|
+
# Lists all of the available Azure Machine Learning Workspaces REST API
|
|
41
|
+
# operations.
|
|
42
|
+
#
|
|
43
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
44
|
+
# will be added to the HTTP request.
|
|
45
|
+
#
|
|
46
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
47
|
+
#
|
|
48
|
+
def list_with_http_info(custom_headers:nil)
|
|
49
|
+
list_async(custom_headers:custom_headers).value!
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
#
|
|
53
|
+
# Lists all of the available Azure Machine Learning Workspaces REST API
|
|
54
|
+
# operations.
|
|
55
|
+
#
|
|
56
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
57
|
+
# to the HTTP request.
|
|
58
|
+
#
|
|
59
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
60
|
+
#
|
|
61
|
+
def list_async(custom_headers:nil)
|
|
62
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
request_headers = {}
|
|
66
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
67
|
+
|
|
68
|
+
# Set Headers
|
|
69
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
70
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
71
|
+
path_template = 'providers/Microsoft.MachineLearningServices/operations'
|
|
72
|
+
|
|
73
|
+
request_url = @base_url || @client.base_url
|
|
74
|
+
|
|
75
|
+
options = {
|
|
76
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
77
|
+
query_params: {'api-version' => @client.api_version},
|
|
78
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
79
|
+
base_url: request_url
|
|
80
|
+
}
|
|
81
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
82
|
+
|
|
83
|
+
promise = promise.then do |result|
|
|
84
|
+
http_response = result.response
|
|
85
|
+
status_code = http_response.status
|
|
86
|
+
response_content = http_response.body
|
|
87
|
+
unless status_code == 200
|
|
88
|
+
error_model = JSON.load(response_content)
|
|
89
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
93
|
+
# Deserialize Response
|
|
94
|
+
if status_code == 200
|
|
95
|
+
begin
|
|
96
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
97
|
+
result_mapper = Azure::MachineLearningServices::Mgmt::V2018_03_01_preview::Models::OperationListResult.mapper()
|
|
98
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
99
|
+
rescue Exception => e
|
|
100
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
result
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
promise.execute
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
end
|
|
111
|
+
end
|
|
@@ -0,0 +1,1033 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::MachineLearningServices::Mgmt::V2018_03_01_preview
|
|
7
|
+
#
|
|
8
|
+
# These APIs allow end users to operate on Azure Machine Learning Workspace
|
|
9
|
+
# resources.
|
|
10
|
+
#
|
|
11
|
+
class Workspaces
|
|
12
|
+
include MsRestAzure
|
|
13
|
+
|
|
14
|
+
#
|
|
15
|
+
# Creates and initializes a new instance of the Workspaces class.
|
|
16
|
+
# @param client service class for accessing basic functionality.
|
|
17
|
+
#
|
|
18
|
+
def initialize(client)
|
|
19
|
+
@client = client
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# @return [MachineLearningServicesClient] reference to the MachineLearningServicesClient
|
|
23
|
+
attr_reader :client
|
|
24
|
+
|
|
25
|
+
#
|
|
26
|
+
# Gets the properties of the specified machine learning workspace.
|
|
27
|
+
#
|
|
28
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
29
|
+
# workspace is located.
|
|
30
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
31
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
32
|
+
# will be added to the HTTP request.
|
|
33
|
+
#
|
|
34
|
+
# @return [Workspace] operation results.
|
|
35
|
+
#
|
|
36
|
+
def get(resource_group_name, workspace_name, custom_headers:nil)
|
|
37
|
+
response = get_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
|
38
|
+
response.body unless response.nil?
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
#
|
|
42
|
+
# Gets the properties of the specified machine learning workspace.
|
|
43
|
+
#
|
|
44
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
45
|
+
# workspace is located.
|
|
46
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
47
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
48
|
+
# will be added to the HTTP request.
|
|
49
|
+
#
|
|
50
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
51
|
+
#
|
|
52
|
+
def get_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
|
53
|
+
get_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
#
|
|
57
|
+
# Gets the properties of the specified machine learning workspace.
|
|
58
|
+
#
|
|
59
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
60
|
+
# workspace is located.
|
|
61
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
62
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
63
|
+
# to the HTTP request.
|
|
64
|
+
#
|
|
65
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
66
|
+
#
|
|
67
|
+
def get_async(resource_group_name, workspace_name, custom_headers:nil)
|
|
68
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
69
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
70
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
71
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
request_headers = {}
|
|
75
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
76
|
+
|
|
77
|
+
# Set Headers
|
|
78
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
79
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
80
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}'
|
|
81
|
+
|
|
82
|
+
request_url = @base_url || @client.base_url
|
|
83
|
+
|
|
84
|
+
options = {
|
|
85
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
86
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name},
|
|
87
|
+
query_params: {'api-version' => @client.api_version},
|
|
88
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
89
|
+
base_url: request_url
|
|
90
|
+
}
|
|
91
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
92
|
+
|
|
93
|
+
promise = promise.then do |result|
|
|
94
|
+
http_response = result.response
|
|
95
|
+
status_code = http_response.status
|
|
96
|
+
response_content = http_response.body
|
|
97
|
+
unless status_code == 200
|
|
98
|
+
error_model = JSON.load(response_content)
|
|
99
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
103
|
+
# Deserialize Response
|
|
104
|
+
if status_code == 200
|
|
105
|
+
begin
|
|
106
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
107
|
+
result_mapper = Azure::MachineLearningServices::Mgmt::V2018_03_01_preview::Models::Workspace.mapper()
|
|
108
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
109
|
+
rescue Exception => e
|
|
110
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
result
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
promise.execute
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
#
|
|
121
|
+
# Creates or updates a workspace with the specified parameters.
|
|
122
|
+
#
|
|
123
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
124
|
+
# workspace is located.
|
|
125
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
126
|
+
# @param parameters [Workspace] The parameters for creating or updating a
|
|
127
|
+
# machine learning workspace.
|
|
128
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
129
|
+
# will be added to the HTTP request.
|
|
130
|
+
#
|
|
131
|
+
# @return [Workspace] operation results.
|
|
132
|
+
#
|
|
133
|
+
def create_or_update(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
|
134
|
+
response = create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value!
|
|
135
|
+
response.body unless response.nil?
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
#
|
|
139
|
+
# Creates or updates a workspace with the specified parameters.
|
|
140
|
+
#
|
|
141
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
142
|
+
# workspace is located.
|
|
143
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
144
|
+
# @param parameters [Workspace] The parameters for creating or updating a
|
|
145
|
+
# machine learning workspace.
|
|
146
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
147
|
+
# will be added to the HTTP request.
|
|
148
|
+
#
|
|
149
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
150
|
+
#
|
|
151
|
+
def create_or_update_with_http_info(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
|
152
|
+
create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value!
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
#
|
|
156
|
+
# Creates or updates a workspace with the specified parameters.
|
|
157
|
+
#
|
|
158
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
159
|
+
# workspace is located.
|
|
160
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
161
|
+
# @param parameters [Workspace] The parameters for creating or updating a
|
|
162
|
+
# machine learning workspace.
|
|
163
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
164
|
+
# to the HTTP request.
|
|
165
|
+
#
|
|
166
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
167
|
+
#
|
|
168
|
+
def create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
|
169
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
170
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
171
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
172
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
|
173
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
request_headers = {}
|
|
177
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
178
|
+
|
|
179
|
+
# Set Headers
|
|
180
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
181
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
182
|
+
|
|
183
|
+
# Serialize Request
|
|
184
|
+
request_mapper = Azure::MachineLearningServices::Mgmt::V2018_03_01_preview::Models::Workspace.mapper()
|
|
185
|
+
request_content = @client.serialize(request_mapper, parameters)
|
|
186
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
|
187
|
+
|
|
188
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}'
|
|
189
|
+
|
|
190
|
+
request_url = @base_url || @client.base_url
|
|
191
|
+
|
|
192
|
+
options = {
|
|
193
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
194
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name},
|
|
195
|
+
query_params: {'api-version' => @client.api_version},
|
|
196
|
+
body: request_content,
|
|
197
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
198
|
+
base_url: request_url
|
|
199
|
+
}
|
|
200
|
+
promise = @client.make_request_async(:put, path_template, options)
|
|
201
|
+
|
|
202
|
+
promise = promise.then do |result|
|
|
203
|
+
http_response = result.response
|
|
204
|
+
status_code = http_response.status
|
|
205
|
+
response_content = http_response.body
|
|
206
|
+
unless status_code == 200 || status_code == 201
|
|
207
|
+
error_model = JSON.load(response_content)
|
|
208
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
212
|
+
# Deserialize Response
|
|
213
|
+
if status_code == 200
|
|
214
|
+
begin
|
|
215
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
216
|
+
result_mapper = Azure::MachineLearningServices::Mgmt::V2018_03_01_preview::Models::Workspace.mapper()
|
|
217
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
218
|
+
rescue Exception => e
|
|
219
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
220
|
+
end
|
|
221
|
+
end
|
|
222
|
+
# Deserialize Response
|
|
223
|
+
if status_code == 201
|
|
224
|
+
begin
|
|
225
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
226
|
+
result_mapper = Azure::MachineLearningServices::Mgmt::V2018_03_01_preview::Models::Workspace.mapper()
|
|
227
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
228
|
+
rescue Exception => e
|
|
229
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
result
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
promise.execute
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
#
|
|
240
|
+
# Deletes a machine learning workspace.
|
|
241
|
+
#
|
|
242
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
243
|
+
# workspace is located.
|
|
244
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
245
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
246
|
+
# will be added to the HTTP request.
|
|
247
|
+
#
|
|
248
|
+
#
|
|
249
|
+
def delete(resource_group_name, workspace_name, custom_headers:nil)
|
|
250
|
+
response = delete_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
|
251
|
+
nil
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
#
|
|
255
|
+
# Deletes a machine learning workspace.
|
|
256
|
+
#
|
|
257
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
258
|
+
# workspace is located.
|
|
259
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
260
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
261
|
+
# will be added to the HTTP request.
|
|
262
|
+
#
|
|
263
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
264
|
+
#
|
|
265
|
+
def delete_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
|
266
|
+
delete_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
#
|
|
270
|
+
# Deletes a machine learning workspace.
|
|
271
|
+
#
|
|
272
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
273
|
+
# workspace is located.
|
|
274
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
275
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
276
|
+
# to the HTTP request.
|
|
277
|
+
#
|
|
278
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
279
|
+
#
|
|
280
|
+
def delete_async(resource_group_name, workspace_name, custom_headers:nil)
|
|
281
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
282
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
283
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
284
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
request_headers = {}
|
|
288
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
289
|
+
|
|
290
|
+
# Set Headers
|
|
291
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
292
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
293
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}'
|
|
294
|
+
|
|
295
|
+
request_url = @base_url || @client.base_url
|
|
296
|
+
|
|
297
|
+
options = {
|
|
298
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
299
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name},
|
|
300
|
+
query_params: {'api-version' => @client.api_version},
|
|
301
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
302
|
+
base_url: request_url
|
|
303
|
+
}
|
|
304
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
|
305
|
+
|
|
306
|
+
promise = promise.then do |result|
|
|
307
|
+
http_response = result.response
|
|
308
|
+
status_code = http_response.status
|
|
309
|
+
response_content = http_response.body
|
|
310
|
+
unless status_code == 200 || status_code == 204
|
|
311
|
+
error_model = JSON.load(response_content)
|
|
312
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
316
|
+
|
|
317
|
+
result
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
promise.execute
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
#
|
|
324
|
+
# Updates a machine learning workspace with the specified parameters.
|
|
325
|
+
#
|
|
326
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
327
|
+
# workspace is located.
|
|
328
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
329
|
+
# @param parameters [WorkspaceUpdateParameters] The parameters for updating a
|
|
330
|
+
# machine learning workspace.
|
|
331
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
332
|
+
# will be added to the HTTP request.
|
|
333
|
+
#
|
|
334
|
+
# @return [Workspace] operation results.
|
|
335
|
+
#
|
|
336
|
+
def update(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
|
337
|
+
response = update_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value!
|
|
338
|
+
response.body unless response.nil?
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
#
|
|
342
|
+
# Updates a machine learning workspace with the specified parameters.
|
|
343
|
+
#
|
|
344
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
345
|
+
# workspace is located.
|
|
346
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
347
|
+
# @param parameters [WorkspaceUpdateParameters] The parameters for updating a
|
|
348
|
+
# machine learning workspace.
|
|
349
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
350
|
+
# will be added to the HTTP request.
|
|
351
|
+
#
|
|
352
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
353
|
+
#
|
|
354
|
+
def update_with_http_info(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
|
355
|
+
update_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value!
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
#
|
|
359
|
+
# Updates a machine learning workspace with the specified parameters.
|
|
360
|
+
#
|
|
361
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
362
|
+
# workspace is located.
|
|
363
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
364
|
+
# @param parameters [WorkspaceUpdateParameters] The parameters for updating a
|
|
365
|
+
# machine learning workspace.
|
|
366
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
367
|
+
# to the HTTP request.
|
|
368
|
+
#
|
|
369
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
370
|
+
#
|
|
371
|
+
def update_async(resource_group_name, workspace_name, parameters, custom_headers:nil)
|
|
372
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
373
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
374
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
375
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
|
376
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
request_headers = {}
|
|
380
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
381
|
+
|
|
382
|
+
# Set Headers
|
|
383
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
384
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
385
|
+
|
|
386
|
+
# Serialize Request
|
|
387
|
+
request_mapper = Azure::MachineLearningServices::Mgmt::V2018_03_01_preview::Models::WorkspaceUpdateParameters.mapper()
|
|
388
|
+
request_content = @client.serialize(request_mapper, parameters)
|
|
389
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
|
390
|
+
|
|
391
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}'
|
|
392
|
+
|
|
393
|
+
request_url = @base_url || @client.base_url
|
|
394
|
+
|
|
395
|
+
options = {
|
|
396
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
397
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name},
|
|
398
|
+
query_params: {'api-version' => @client.api_version},
|
|
399
|
+
body: request_content,
|
|
400
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
401
|
+
base_url: request_url
|
|
402
|
+
}
|
|
403
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
|
404
|
+
|
|
405
|
+
promise = promise.then do |result|
|
|
406
|
+
http_response = result.response
|
|
407
|
+
status_code = http_response.status
|
|
408
|
+
response_content = http_response.body
|
|
409
|
+
unless status_code == 200
|
|
410
|
+
error_model = JSON.load(response_content)
|
|
411
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
415
|
+
# Deserialize Response
|
|
416
|
+
if status_code == 200
|
|
417
|
+
begin
|
|
418
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
419
|
+
result_mapper = Azure::MachineLearningServices::Mgmt::V2018_03_01_preview::Models::Workspace.mapper()
|
|
420
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
421
|
+
rescue Exception => e
|
|
422
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
423
|
+
end
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
result
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
promise.execute
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
#
|
|
433
|
+
# Lists all the available machine learning workspaces under the specified
|
|
434
|
+
# resource group.
|
|
435
|
+
#
|
|
436
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
437
|
+
# workspace is located.
|
|
438
|
+
# @param skiptoken [String] Continuation token for pagination.
|
|
439
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
440
|
+
# will be added to the HTTP request.
|
|
441
|
+
#
|
|
442
|
+
# @return [Array<Workspace>] operation results.
|
|
443
|
+
#
|
|
444
|
+
def list_by_resource_group(resource_group_name, skiptoken:nil, custom_headers:nil)
|
|
445
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, skiptoken:skiptoken, custom_headers:custom_headers)
|
|
446
|
+
first_page.get_all_items
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
#
|
|
450
|
+
# Lists all the available machine learning workspaces under the specified
|
|
451
|
+
# resource group.
|
|
452
|
+
#
|
|
453
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
454
|
+
# workspace is located.
|
|
455
|
+
# @param skiptoken [String] Continuation token for pagination.
|
|
456
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
457
|
+
# will be added to the HTTP request.
|
|
458
|
+
#
|
|
459
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
460
|
+
#
|
|
461
|
+
def list_by_resource_group_with_http_info(resource_group_name, skiptoken:nil, custom_headers:nil)
|
|
462
|
+
list_by_resource_group_async(resource_group_name, skiptoken:skiptoken, custom_headers:custom_headers).value!
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
#
|
|
466
|
+
# Lists all the available machine learning workspaces under the specified
|
|
467
|
+
# resource group.
|
|
468
|
+
#
|
|
469
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
470
|
+
# workspace is located.
|
|
471
|
+
# @param skiptoken [String] Continuation token for pagination.
|
|
472
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
473
|
+
# to the HTTP request.
|
|
474
|
+
#
|
|
475
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
476
|
+
#
|
|
477
|
+
def list_by_resource_group_async(resource_group_name, skiptoken:nil, custom_headers:nil)
|
|
478
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
479
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
480
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
request_headers = {}
|
|
484
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
485
|
+
|
|
486
|
+
# Set Headers
|
|
487
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
488
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
489
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces'
|
|
490
|
+
|
|
491
|
+
request_url = @base_url || @client.base_url
|
|
492
|
+
|
|
493
|
+
options = {
|
|
494
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
495
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
|
|
496
|
+
query_params: {'api-version' => @client.api_version,'$skiptoken' => skiptoken},
|
|
497
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
498
|
+
base_url: request_url
|
|
499
|
+
}
|
|
500
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
501
|
+
|
|
502
|
+
promise = promise.then do |result|
|
|
503
|
+
http_response = result.response
|
|
504
|
+
status_code = http_response.status
|
|
505
|
+
response_content = http_response.body
|
|
506
|
+
unless status_code == 200
|
|
507
|
+
error_model = JSON.load(response_content)
|
|
508
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
512
|
+
# Deserialize Response
|
|
513
|
+
if status_code == 200
|
|
514
|
+
begin
|
|
515
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
516
|
+
result_mapper = Azure::MachineLearningServices::Mgmt::V2018_03_01_preview::Models::WorkspaceListResult.mapper()
|
|
517
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
518
|
+
rescue Exception => e
|
|
519
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
520
|
+
end
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
result
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
promise.execute
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
#
|
|
530
|
+
# Lists all the keys associated with this workspace. This includes keys for the
|
|
531
|
+
# storage account, app insights and password for container registry
|
|
532
|
+
#
|
|
533
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
534
|
+
# workspace is located.
|
|
535
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
536
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
537
|
+
# will be added to the HTTP request.
|
|
538
|
+
#
|
|
539
|
+
# @return [ListWorkspaceKeysResult] operation results.
|
|
540
|
+
#
|
|
541
|
+
def list_keys(resource_group_name, workspace_name, custom_headers:nil)
|
|
542
|
+
response = list_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
|
543
|
+
response.body unless response.nil?
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
#
|
|
547
|
+
# Lists all the keys associated with this workspace. This includes keys for the
|
|
548
|
+
# storage account, app insights and password for container registry
|
|
549
|
+
#
|
|
550
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
551
|
+
# workspace is located.
|
|
552
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
553
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
554
|
+
# will be added to the HTTP request.
|
|
555
|
+
#
|
|
556
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
557
|
+
#
|
|
558
|
+
def list_keys_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
|
559
|
+
list_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
|
560
|
+
end
|
|
561
|
+
|
|
562
|
+
#
|
|
563
|
+
# Lists all the keys associated with this workspace. This includes keys for the
|
|
564
|
+
# storage account, app insights and password for container registry
|
|
565
|
+
#
|
|
566
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
567
|
+
# workspace is located.
|
|
568
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
569
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
570
|
+
# to the HTTP request.
|
|
571
|
+
#
|
|
572
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
573
|
+
#
|
|
574
|
+
def list_keys_async(resource_group_name, workspace_name, custom_headers:nil)
|
|
575
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
576
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
577
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
578
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
request_headers = {}
|
|
582
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
583
|
+
|
|
584
|
+
# Set Headers
|
|
585
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
586
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
587
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listKeys'
|
|
588
|
+
|
|
589
|
+
request_url = @base_url || @client.base_url
|
|
590
|
+
|
|
591
|
+
options = {
|
|
592
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
593
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name},
|
|
594
|
+
query_params: {'api-version' => @client.api_version},
|
|
595
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
596
|
+
base_url: request_url
|
|
597
|
+
}
|
|
598
|
+
promise = @client.make_request_async(:post, path_template, options)
|
|
599
|
+
|
|
600
|
+
promise = promise.then do |result|
|
|
601
|
+
http_response = result.response
|
|
602
|
+
status_code = http_response.status
|
|
603
|
+
response_content = http_response.body
|
|
604
|
+
unless status_code == 200
|
|
605
|
+
error_model = JSON.load(response_content)
|
|
606
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
610
|
+
# Deserialize Response
|
|
611
|
+
if status_code == 200
|
|
612
|
+
begin
|
|
613
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
614
|
+
result_mapper = Azure::MachineLearningServices::Mgmt::V2018_03_01_preview::Models::ListWorkspaceKeysResult.mapper()
|
|
615
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
616
|
+
rescue Exception => e
|
|
617
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
618
|
+
end
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
result
|
|
622
|
+
end
|
|
623
|
+
|
|
624
|
+
promise.execute
|
|
625
|
+
end
|
|
626
|
+
|
|
627
|
+
#
|
|
628
|
+
# Resync all the keys associated with this workspace. This includes keys for
|
|
629
|
+
# the storage account, app insights and password for container registry
|
|
630
|
+
#
|
|
631
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
632
|
+
# workspace is located.
|
|
633
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
634
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
635
|
+
# will be added to the HTTP request.
|
|
636
|
+
#
|
|
637
|
+
#
|
|
638
|
+
def resync_keys(resource_group_name, workspace_name, custom_headers:nil)
|
|
639
|
+
response = resync_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
|
640
|
+
nil
|
|
641
|
+
end
|
|
642
|
+
|
|
643
|
+
#
|
|
644
|
+
# Resync all the keys associated with this workspace. This includes keys for
|
|
645
|
+
# the storage account, app insights and password for container registry
|
|
646
|
+
#
|
|
647
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
648
|
+
# workspace is located.
|
|
649
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
650
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
651
|
+
# will be added to the HTTP request.
|
|
652
|
+
#
|
|
653
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
654
|
+
#
|
|
655
|
+
def resync_keys_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
|
656
|
+
resync_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
#
|
|
660
|
+
# Resync all the keys associated with this workspace. This includes keys for
|
|
661
|
+
# the storage account, app insights and password for container registry
|
|
662
|
+
#
|
|
663
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
664
|
+
# workspace is located.
|
|
665
|
+
# @param workspace_name [String] Name of Azure Machine Learning workspace.
|
|
666
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
667
|
+
# to the HTTP request.
|
|
668
|
+
#
|
|
669
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
670
|
+
#
|
|
671
|
+
def resync_keys_async(resource_group_name, workspace_name, custom_headers:nil)
|
|
672
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
673
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
674
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
675
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
request_headers = {}
|
|
679
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
680
|
+
|
|
681
|
+
# Set Headers
|
|
682
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
683
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
684
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys'
|
|
685
|
+
|
|
686
|
+
request_url = @base_url || @client.base_url
|
|
687
|
+
|
|
688
|
+
options = {
|
|
689
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
690
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name},
|
|
691
|
+
query_params: {'api-version' => @client.api_version},
|
|
692
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
693
|
+
base_url: request_url
|
|
694
|
+
}
|
|
695
|
+
promise = @client.make_request_async(:post, path_template, options)
|
|
696
|
+
|
|
697
|
+
promise = promise.then do |result|
|
|
698
|
+
http_response = result.response
|
|
699
|
+
status_code = http_response.status
|
|
700
|
+
response_content = http_response.body
|
|
701
|
+
unless status_code == 200
|
|
702
|
+
error_model = JSON.load(response_content)
|
|
703
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
|
704
|
+
end
|
|
705
|
+
|
|
706
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
707
|
+
|
|
708
|
+
result
|
|
709
|
+
end
|
|
710
|
+
|
|
711
|
+
promise.execute
|
|
712
|
+
end
|
|
713
|
+
|
|
714
|
+
#
|
|
715
|
+
# Lists all the available machine learning workspaces under the specified
|
|
716
|
+
# subscription.
|
|
717
|
+
#
|
|
718
|
+
# @param skiptoken [String] Continuation token for pagination.
|
|
719
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
720
|
+
# will be added to the HTTP request.
|
|
721
|
+
#
|
|
722
|
+
# @return [Array<Workspace>] operation results.
|
|
723
|
+
#
|
|
724
|
+
def list_by_subscription(skiptoken:nil, custom_headers:nil)
|
|
725
|
+
first_page = list_by_subscription_as_lazy(skiptoken:skiptoken, custom_headers:custom_headers)
|
|
726
|
+
first_page.get_all_items
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
#
|
|
730
|
+
# Lists all the available machine learning workspaces under the specified
|
|
731
|
+
# subscription.
|
|
732
|
+
#
|
|
733
|
+
# @param skiptoken [String] Continuation token for pagination.
|
|
734
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
735
|
+
# will be added to the HTTP request.
|
|
736
|
+
#
|
|
737
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
738
|
+
#
|
|
739
|
+
def list_by_subscription_with_http_info(skiptoken:nil, custom_headers:nil)
|
|
740
|
+
list_by_subscription_async(skiptoken:skiptoken, custom_headers:custom_headers).value!
|
|
741
|
+
end
|
|
742
|
+
|
|
743
|
+
#
|
|
744
|
+
# Lists all the available machine learning workspaces under the specified
|
|
745
|
+
# subscription.
|
|
746
|
+
#
|
|
747
|
+
# @param skiptoken [String] Continuation token for pagination.
|
|
748
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
749
|
+
# to the HTTP request.
|
|
750
|
+
#
|
|
751
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
752
|
+
#
|
|
753
|
+
def list_by_subscription_async(skiptoken:nil, custom_headers:nil)
|
|
754
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
755
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
request_headers = {}
|
|
759
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
760
|
+
|
|
761
|
+
# Set Headers
|
|
762
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
763
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
764
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces'
|
|
765
|
+
|
|
766
|
+
request_url = @base_url || @client.base_url
|
|
767
|
+
|
|
768
|
+
options = {
|
|
769
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
770
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
|
771
|
+
query_params: {'api-version' => @client.api_version,'$skiptoken' => skiptoken},
|
|
772
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
773
|
+
base_url: request_url
|
|
774
|
+
}
|
|
775
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
776
|
+
|
|
777
|
+
promise = promise.then do |result|
|
|
778
|
+
http_response = result.response
|
|
779
|
+
status_code = http_response.status
|
|
780
|
+
response_content = http_response.body
|
|
781
|
+
unless status_code == 200
|
|
782
|
+
error_model = JSON.load(response_content)
|
|
783
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
|
784
|
+
end
|
|
785
|
+
|
|
786
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
787
|
+
# Deserialize Response
|
|
788
|
+
if status_code == 200
|
|
789
|
+
begin
|
|
790
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
791
|
+
result_mapper = Azure::MachineLearningServices::Mgmt::V2018_03_01_preview::Models::WorkspaceListResult.mapper()
|
|
792
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
793
|
+
rescue Exception => e
|
|
794
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
795
|
+
end
|
|
796
|
+
end
|
|
797
|
+
|
|
798
|
+
result
|
|
799
|
+
end
|
|
800
|
+
|
|
801
|
+
promise.execute
|
|
802
|
+
end
|
|
803
|
+
|
|
804
|
+
#
|
|
805
|
+
# Lists all the available machine learning workspaces under the specified
|
|
806
|
+
# resource group.
|
|
807
|
+
#
|
|
808
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
809
|
+
# to List operation.
|
|
810
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
811
|
+
# will be added to the HTTP request.
|
|
812
|
+
#
|
|
813
|
+
# @return [WorkspaceListResult] operation results.
|
|
814
|
+
#
|
|
815
|
+
def list_by_resource_group_next(next_page_link, custom_headers:nil)
|
|
816
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
817
|
+
response.body unless response.nil?
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
#
|
|
821
|
+
# Lists all the available machine learning workspaces under the specified
|
|
822
|
+
# resource group.
|
|
823
|
+
#
|
|
824
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
825
|
+
# to List operation.
|
|
826
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
827
|
+
# will be added to the HTTP request.
|
|
828
|
+
#
|
|
829
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
830
|
+
#
|
|
831
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
|
832
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
833
|
+
end
|
|
834
|
+
|
|
835
|
+
#
|
|
836
|
+
# Lists all the available machine learning workspaces under the specified
|
|
837
|
+
# resource group.
|
|
838
|
+
#
|
|
839
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
840
|
+
# to List operation.
|
|
841
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
842
|
+
# to the HTTP request.
|
|
843
|
+
#
|
|
844
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
845
|
+
#
|
|
846
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
|
|
847
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
request_headers = {}
|
|
851
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
852
|
+
|
|
853
|
+
# Set Headers
|
|
854
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
855
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
856
|
+
path_template = '{nextLink}'
|
|
857
|
+
|
|
858
|
+
request_url = @base_url || @client.base_url
|
|
859
|
+
|
|
860
|
+
options = {
|
|
861
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
862
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
863
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
864
|
+
base_url: request_url
|
|
865
|
+
}
|
|
866
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
867
|
+
|
|
868
|
+
promise = promise.then do |result|
|
|
869
|
+
http_response = result.response
|
|
870
|
+
status_code = http_response.status
|
|
871
|
+
response_content = http_response.body
|
|
872
|
+
unless status_code == 200
|
|
873
|
+
error_model = JSON.load(response_content)
|
|
874
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
|
875
|
+
end
|
|
876
|
+
|
|
877
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
878
|
+
# Deserialize Response
|
|
879
|
+
if status_code == 200
|
|
880
|
+
begin
|
|
881
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
882
|
+
result_mapper = Azure::MachineLearningServices::Mgmt::V2018_03_01_preview::Models::WorkspaceListResult.mapper()
|
|
883
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
884
|
+
rescue Exception => e
|
|
885
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
886
|
+
end
|
|
887
|
+
end
|
|
888
|
+
|
|
889
|
+
result
|
|
890
|
+
end
|
|
891
|
+
|
|
892
|
+
promise.execute
|
|
893
|
+
end
|
|
894
|
+
|
|
895
|
+
#
|
|
896
|
+
# Lists all the available machine learning workspaces under the specified
|
|
897
|
+
# subscription.
|
|
898
|
+
#
|
|
899
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
900
|
+
# to List operation.
|
|
901
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
902
|
+
# will be added to the HTTP request.
|
|
903
|
+
#
|
|
904
|
+
# @return [WorkspaceListResult] operation results.
|
|
905
|
+
#
|
|
906
|
+
def list_by_subscription_next(next_page_link, custom_headers:nil)
|
|
907
|
+
response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
908
|
+
response.body unless response.nil?
|
|
909
|
+
end
|
|
910
|
+
|
|
911
|
+
#
|
|
912
|
+
# Lists all the available machine learning workspaces under the specified
|
|
913
|
+
# subscription.
|
|
914
|
+
#
|
|
915
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
916
|
+
# to List operation.
|
|
917
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
918
|
+
# will be added to the HTTP request.
|
|
919
|
+
#
|
|
920
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
921
|
+
#
|
|
922
|
+
def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
|
|
923
|
+
list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
924
|
+
end
|
|
925
|
+
|
|
926
|
+
#
|
|
927
|
+
# Lists all the available machine learning workspaces under the specified
|
|
928
|
+
# subscription.
|
|
929
|
+
#
|
|
930
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
931
|
+
# to List operation.
|
|
932
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
933
|
+
# to the HTTP request.
|
|
934
|
+
#
|
|
935
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
936
|
+
#
|
|
937
|
+
def list_by_subscription_next_async(next_page_link, custom_headers:nil)
|
|
938
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
request_headers = {}
|
|
942
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
943
|
+
|
|
944
|
+
# Set Headers
|
|
945
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
946
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
947
|
+
path_template = '{nextLink}'
|
|
948
|
+
|
|
949
|
+
request_url = @base_url || @client.base_url
|
|
950
|
+
|
|
951
|
+
options = {
|
|
952
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
953
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
954
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
955
|
+
base_url: request_url
|
|
956
|
+
}
|
|
957
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
958
|
+
|
|
959
|
+
promise = promise.then do |result|
|
|
960
|
+
http_response = result.response
|
|
961
|
+
status_code = http_response.status
|
|
962
|
+
response_content = http_response.body
|
|
963
|
+
unless status_code == 200
|
|
964
|
+
error_model = JSON.load(response_content)
|
|
965
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
|
966
|
+
end
|
|
967
|
+
|
|
968
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
969
|
+
# Deserialize Response
|
|
970
|
+
if status_code == 200
|
|
971
|
+
begin
|
|
972
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
973
|
+
result_mapper = Azure::MachineLearningServices::Mgmt::V2018_03_01_preview::Models::WorkspaceListResult.mapper()
|
|
974
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
975
|
+
rescue Exception => e
|
|
976
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
977
|
+
end
|
|
978
|
+
end
|
|
979
|
+
|
|
980
|
+
result
|
|
981
|
+
end
|
|
982
|
+
|
|
983
|
+
promise.execute
|
|
984
|
+
end
|
|
985
|
+
|
|
986
|
+
#
|
|
987
|
+
# Lists all the available machine learning workspaces under the specified
|
|
988
|
+
# resource group.
|
|
989
|
+
#
|
|
990
|
+
# @param resource_group_name [String] Name of the resource group in which
|
|
991
|
+
# workspace is located.
|
|
992
|
+
# @param skiptoken [String] Continuation token for pagination.
|
|
993
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
994
|
+
# will be added to the HTTP request.
|
|
995
|
+
#
|
|
996
|
+
# @return [WorkspaceListResult] which provide lazy access to pages of the
|
|
997
|
+
# response.
|
|
998
|
+
#
|
|
999
|
+
def list_by_resource_group_as_lazy(resource_group_name, skiptoken:nil, custom_headers:nil)
|
|
1000
|
+
response = list_by_resource_group_async(resource_group_name, skiptoken:skiptoken, custom_headers:custom_headers).value!
|
|
1001
|
+
unless response.nil?
|
|
1002
|
+
page = response.body
|
|
1003
|
+
page.next_method = Proc.new do |next_page_link|
|
|
1004
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
|
1005
|
+
end
|
|
1006
|
+
page
|
|
1007
|
+
end
|
|
1008
|
+
end
|
|
1009
|
+
|
|
1010
|
+
#
|
|
1011
|
+
# Lists all the available machine learning workspaces under the specified
|
|
1012
|
+
# subscription.
|
|
1013
|
+
#
|
|
1014
|
+
# @param skiptoken [String] Continuation token for pagination.
|
|
1015
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1016
|
+
# will be added to the HTTP request.
|
|
1017
|
+
#
|
|
1018
|
+
# @return [WorkspaceListResult] which provide lazy access to pages of the
|
|
1019
|
+
# response.
|
|
1020
|
+
#
|
|
1021
|
+
def list_by_subscription_as_lazy(skiptoken:nil, custom_headers:nil)
|
|
1022
|
+
response = list_by_subscription_async(skiptoken:skiptoken, custom_headers:custom_headers).value!
|
|
1023
|
+
unless response.nil?
|
|
1024
|
+
page = response.body
|
|
1025
|
+
page.next_method = Proc.new do |next_page_link|
|
|
1026
|
+
list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
|
|
1027
|
+
end
|
|
1028
|
+
page
|
|
1029
|
+
end
|
|
1030
|
+
end
|
|
1031
|
+
|
|
1032
|
+
end
|
|
1033
|
+
end
|