azure_mgmt_graph 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/azure_mgmt_graph.gemspec +2 -2
- data/lib/azure_mgmt_graph.rb +1 -1
- data/lib/azure_mgmt_graph/application_operations.rb +187 -28
- data/lib/azure_mgmt_graph/graph_rbac_management_client.rb +1 -1
- data/lib/azure_mgmt_graph/group_operations.rb +361 -54
- data/lib/azure_mgmt_graph/models/aadobject.rb +1 -1
- data/lib/azure_mgmt_graph/models/adgroup.rb +1 -1
- data/lib/azure_mgmt_graph/models/application.rb +1 -1
- data/lib/azure_mgmt_graph/models/application_create_parameters.rb +1 -1
- data/lib/azure_mgmt_graph/models/application_filter.rb +1 -1
- data/lib/azure_mgmt_graph/models/application_list_result.rb +1 -1
- data/lib/azure_mgmt_graph/models/get_objects_parameters.rb +1 -1
- data/lib/azure_mgmt_graph/models/get_objects_result.rb +1 -1
- data/lib/azure_mgmt_graph/models/group_add_member_parameters.rb +1 -1
- data/lib/azure_mgmt_graph/models/group_create_parameters.rb +1 -1
- data/lib/azure_mgmt_graph/models/group_get_member_groups_parameters.rb +1 -1
- data/lib/azure_mgmt_graph/models/group_get_member_groups_result.rb +1 -1
- data/lib/azure_mgmt_graph/models/group_list_result.rb +1 -1
- data/lib/azure_mgmt_graph/models/key_credential.rb +1 -1
- data/lib/azure_mgmt_graph/models/password_credential.rb +1 -1
- data/lib/azure_mgmt_graph/models/service_principal.rb +1 -1
- data/lib/azure_mgmt_graph/models/service_principal_create_parameters.rb +1 -1
- data/lib/azure_mgmt_graph/models/service_principal_list_result.rb +1 -1
- data/lib/azure_mgmt_graph/models/user.rb +1 -1
- data/lib/azure_mgmt_graph/models/user_create_parameters.rb +1 -1
- data/lib/azure_mgmt_graph/models/user_create_parameters_password_profile.rb +1 -1
- data/lib/azure_mgmt_graph/models/user_get_member_groups_parameters.rb +1 -1
- data/lib/azure_mgmt_graph/models/user_get_member_groups_result.rb +1 -1
- data/lib/azure_mgmt_graph/models/user_list_result.rb +1 -1
- data/lib/azure_mgmt_graph/module_definition.rb +1 -1
- data/lib/azure_mgmt_graph/object_operations.rb +102 -17
- data/lib/azure_mgmt_graph/service_principal_operations.rb +173 -27
- data/lib/azure_mgmt_graph/user_operations.rb +218 -33
- data/lib/azure_mgmt_graph/version.rb +2 -2
- metadata +31 -24
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -25,13 +25,37 @@ module Azure::ARM::Graph
|
|
25
25
|
#
|
26
26
|
# Gets the details for current logged in user
|
27
27
|
#
|
28
|
-
# @param [Hash{String => String}]
|
29
|
-
#
|
28
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
29
|
+
# will be added to the HTTP request.
|
30
30
|
#
|
31
|
-
# @return [
|
32
|
-
# response.
|
31
|
+
# @return [AADObject] operation results.
|
33
32
|
#
|
34
33
|
def get_current_user(custom_headers = nil)
|
34
|
+
response = get_current_user_async(custom_headers).value!
|
35
|
+
response.body unless response.nil?
|
36
|
+
end
|
37
|
+
|
38
|
+
#
|
39
|
+
# Gets the details for current logged in user
|
40
|
+
#
|
41
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
42
|
+
# will be added to the HTTP request.
|
43
|
+
#
|
44
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
45
|
+
#
|
46
|
+
def get_current_user_with_http_info(custom_headers = nil)
|
47
|
+
get_current_user_async(custom_headers).value!
|
48
|
+
end
|
49
|
+
|
50
|
+
#
|
51
|
+
# Gets the details for current logged in user
|
52
|
+
#
|
53
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
54
|
+
# to the HTTP request.
|
55
|
+
#
|
56
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
57
|
+
#
|
58
|
+
def get_current_user_async(custom_headers = nil)
|
35
59
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
36
60
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
37
61
|
request_headers = {}
|
@@ -46,7 +70,10 @@ module Azure::ARM::Graph
|
|
46
70
|
query_params: {'api-version' => @client.api_version},
|
47
71
|
headers: request_headers.merge(custom_headers || {})
|
48
72
|
}
|
49
|
-
|
73
|
+
|
74
|
+
request_url = @base_url || @client.base_url
|
75
|
+
|
76
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
50
77
|
promise = request.run_promise do |req|
|
51
78
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
52
79
|
end
|
@@ -85,13 +112,39 @@ module Azure::ARM::Graph
|
|
85
112
|
# Gets AD group membership by provided AD object Ids
|
86
113
|
#
|
87
114
|
# @param parameters [GetObjectsParameters] Objects filtering parameters.
|
88
|
-
# @param [Hash{String => String}]
|
89
|
-
#
|
115
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
116
|
+
# will be added to the HTTP request.
|
90
117
|
#
|
91
|
-
# @return [
|
92
|
-
# response.
|
118
|
+
# @return [GetObjectsResult] operation results.
|
93
119
|
#
|
94
120
|
def get_objects_by_object_ids(parameters, custom_headers = nil)
|
121
|
+
response = get_objects_by_object_ids_async(parameters, custom_headers).value!
|
122
|
+
response.body unless response.nil?
|
123
|
+
end
|
124
|
+
|
125
|
+
#
|
126
|
+
# Gets AD group membership by provided AD object Ids
|
127
|
+
#
|
128
|
+
# @param parameters [GetObjectsParameters] Objects filtering parameters.
|
129
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
130
|
+
# will be added to the HTTP request.
|
131
|
+
#
|
132
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
133
|
+
#
|
134
|
+
def get_objects_by_object_ids_with_http_info(parameters, custom_headers = nil)
|
135
|
+
get_objects_by_object_ids_async(parameters, custom_headers).value!
|
136
|
+
end
|
137
|
+
|
138
|
+
#
|
139
|
+
# Gets AD group membership by provided AD object Ids
|
140
|
+
#
|
141
|
+
# @param parameters [GetObjectsParameters] Objects filtering parameters.
|
142
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
143
|
+
# to the HTTP request.
|
144
|
+
#
|
145
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
146
|
+
#
|
147
|
+
def get_objects_by_object_ids_async(parameters, custom_headers = nil)
|
95
148
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
96
149
|
parameters.validate unless parameters.nil?
|
97
150
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -107,7 +160,7 @@ module Azure::ARM::Graph
|
|
107
160
|
unless parameters.nil?
|
108
161
|
parameters = GetObjectsParameters.serialize_object(parameters)
|
109
162
|
end
|
110
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
163
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
111
164
|
path_template = '/{tenantID}/getObjectsByObjectIds'
|
112
165
|
options = {
|
113
166
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -116,7 +169,10 @@ module Azure::ARM::Graph
|
|
116
169
|
body: request_content,
|
117
170
|
headers: request_headers.merge(custom_headers || {})
|
118
171
|
}
|
119
|
-
|
172
|
+
|
173
|
+
request_url = @base_url || @client.base_url
|
174
|
+
|
175
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
120
176
|
promise = request.run_promise do |req|
|
121
177
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
122
178
|
end
|
@@ -155,13 +211,39 @@ module Azure::ARM::Graph
|
|
155
211
|
# Gets AD group membership by provided AD object Ids
|
156
212
|
#
|
157
213
|
# @param next_link [String] Next link for list operation.
|
158
|
-
# @param [Hash{String => String}]
|
159
|
-
#
|
214
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
215
|
+
# will be added to the HTTP request.
|
160
216
|
#
|
161
|
-
# @return [
|
162
|
-
# response.
|
217
|
+
# @return [GetObjectsResult] operation results.
|
163
218
|
#
|
164
219
|
def get_objects_by_object_ids_next(next_link, custom_headers = nil)
|
220
|
+
response = get_objects_by_object_ids_next_async(next_link, custom_headers).value!
|
221
|
+
response.body unless response.nil?
|
222
|
+
end
|
223
|
+
|
224
|
+
#
|
225
|
+
# Gets AD group membership by provided AD object Ids
|
226
|
+
#
|
227
|
+
# @param next_link [String] Next link for list operation.
|
228
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
229
|
+
# will be added to the HTTP request.
|
230
|
+
#
|
231
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
232
|
+
#
|
233
|
+
def get_objects_by_object_ids_next_with_http_info(next_link, custom_headers = nil)
|
234
|
+
get_objects_by_object_ids_next_async(next_link, custom_headers).value!
|
235
|
+
end
|
236
|
+
|
237
|
+
#
|
238
|
+
# Gets AD group membership by provided AD object Ids
|
239
|
+
#
|
240
|
+
# @param next_link [String] Next link for list operation.
|
241
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
242
|
+
# to the HTTP request.
|
243
|
+
#
|
244
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
245
|
+
#
|
246
|
+
def get_objects_by_object_ids_next_async(next_link, custom_headers = nil)
|
165
247
|
fail ArgumentError, 'next_link is nil' if next_link.nil?
|
166
248
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
167
249
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
@@ -178,7 +260,10 @@ module Azure::ARM::Graph
|
|
178
260
|
query_params: {'api-version' => @client.api_version},
|
179
261
|
headers: request_headers.merge(custom_headers || {})
|
180
262
|
}
|
181
|
-
|
263
|
+
|
264
|
+
request_url = @base_url || @client.base_url
|
265
|
+
|
266
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
182
267
|
promise = request.run_promise do |req|
|
183
268
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
184
269
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -27,13 +27,41 @@ module Azure::ARM::Graph
|
|
27
27
|
#
|
28
28
|
# @param parameters [ServicePrincipalCreateParameters] Parameters to create a
|
29
29
|
# service principal.
|
30
|
-
# @param [Hash{String => String}]
|
31
|
-
#
|
30
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
+
# will be added to the HTTP request.
|
32
32
|
#
|
33
|
-
# @return [
|
34
|
-
# response.
|
33
|
+
# @return [ServicePrincipal] operation results.
|
35
34
|
#
|
36
35
|
def create(parameters, custom_headers = nil)
|
36
|
+
response = create_async(parameters, custom_headers).value!
|
37
|
+
response.body unless response.nil?
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Creates a service principal in the directory.
|
42
|
+
#
|
43
|
+
# @param parameters [ServicePrincipalCreateParameters] Parameters to create a
|
44
|
+
# service principal.
|
45
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
46
|
+
# will be added to the HTTP request.
|
47
|
+
#
|
48
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
49
|
+
#
|
50
|
+
def create_with_http_info(parameters, custom_headers = nil)
|
51
|
+
create_async(parameters, custom_headers).value!
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Creates a service principal in the directory.
|
56
|
+
#
|
57
|
+
# @param parameters [ServicePrincipalCreateParameters] Parameters to create a
|
58
|
+
# service principal.
|
59
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
60
|
+
# to the HTTP request.
|
61
|
+
#
|
62
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
63
|
+
#
|
64
|
+
def create_async(parameters, custom_headers = nil)
|
37
65
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
38
66
|
parameters.validate unless parameters.nil?
|
39
67
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -49,7 +77,7 @@ module Azure::ARM::Graph
|
|
49
77
|
unless parameters.nil?
|
50
78
|
parameters = ServicePrincipalCreateParameters.serialize_object(parameters)
|
51
79
|
end
|
52
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
80
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
53
81
|
path_template = '/{tenantID}/servicePrincipals'
|
54
82
|
options = {
|
55
83
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -58,7 +86,10 @@ module Azure::ARM::Graph
|
|
58
86
|
body: request_content,
|
59
87
|
headers: request_headers.merge(custom_headers || {})
|
60
88
|
}
|
61
|
-
|
89
|
+
|
90
|
+
request_url = @base_url || @client.base_url
|
91
|
+
|
92
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
62
93
|
promise = request.run_promise do |req|
|
63
94
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
64
95
|
end
|
@@ -97,13 +128,39 @@ module Azure::ARM::Graph
|
|
97
128
|
# Gets list of service principals from the current tenant.
|
98
129
|
#
|
99
130
|
# @param filter [String] The filter to apply on the operation.
|
100
|
-
# @param [Hash{String => String}]
|
101
|
-
#
|
131
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
132
|
+
# will be added to the HTTP request.
|
102
133
|
#
|
103
|
-
# @return [
|
104
|
-
# response.
|
134
|
+
# @return [ServicePrincipalListResult] operation results.
|
105
135
|
#
|
106
136
|
def list(filter = nil, custom_headers = nil)
|
137
|
+
response = list_async(filter, custom_headers).value!
|
138
|
+
response.body unless response.nil?
|
139
|
+
end
|
140
|
+
|
141
|
+
#
|
142
|
+
# Gets list of service principals from the current tenant.
|
143
|
+
#
|
144
|
+
# @param filter [String] The filter to apply on the operation.
|
145
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
146
|
+
# will be added to the HTTP request.
|
147
|
+
#
|
148
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
149
|
+
#
|
150
|
+
def list_with_http_info(filter = nil, custom_headers = nil)
|
151
|
+
list_async(filter, custom_headers).value!
|
152
|
+
end
|
153
|
+
|
154
|
+
#
|
155
|
+
# Gets list of service principals from the current tenant.
|
156
|
+
#
|
157
|
+
# @param filter [String] The filter to apply on the operation.
|
158
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
159
|
+
# to the HTTP request.
|
160
|
+
#
|
161
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
162
|
+
#
|
163
|
+
def list_async(filter = nil, custom_headers = nil)
|
107
164
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
108
165
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
109
166
|
request_headers = {}
|
@@ -118,7 +175,10 @@ module Azure::ARM::Graph
|
|
118
175
|
query_params: {'$filter' => filter,'api-version' => @client.api_version},
|
119
176
|
headers: request_headers.merge(custom_headers || {})
|
120
177
|
}
|
121
|
-
|
178
|
+
|
179
|
+
request_url = @base_url || @client.base_url
|
180
|
+
|
181
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
122
182
|
promise = request.run_promise do |req|
|
123
183
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
124
184
|
end
|
@@ -157,13 +217,38 @@ module Azure::ARM::Graph
|
|
157
217
|
# Deletes service principal from the directory.
|
158
218
|
#
|
159
219
|
# @param object_id [String] Object id to delete service principal information.
|
160
|
-
# @param [Hash{String => String}]
|
161
|
-
#
|
220
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
221
|
+
# will be added to the HTTP request.
|
162
222
|
#
|
163
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
164
|
-
# response.
|
165
223
|
#
|
166
224
|
def delete(object_id, custom_headers = nil)
|
225
|
+
response = delete_async(object_id, custom_headers).value!
|
226
|
+
nil
|
227
|
+
end
|
228
|
+
|
229
|
+
#
|
230
|
+
# Deletes service principal from the directory.
|
231
|
+
#
|
232
|
+
# @param object_id [String] Object id to delete service principal information.
|
233
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
234
|
+
# will be added to the HTTP request.
|
235
|
+
#
|
236
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
237
|
+
#
|
238
|
+
def delete_with_http_info(object_id, custom_headers = nil)
|
239
|
+
delete_async(object_id, custom_headers).value!
|
240
|
+
end
|
241
|
+
|
242
|
+
#
|
243
|
+
# Deletes service principal from the directory.
|
244
|
+
#
|
245
|
+
# @param object_id [String] Object id to delete service principal information.
|
246
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
247
|
+
# to the HTTP request.
|
248
|
+
#
|
249
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
250
|
+
#
|
251
|
+
def delete_async(object_id, custom_headers = nil)
|
167
252
|
fail ArgumentError, 'object_id is nil' if object_id.nil?
|
168
253
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
169
254
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
@@ -180,7 +265,10 @@ module Azure::ARM::Graph
|
|
180
265
|
query_params: {'api-version' => @client.api_version},
|
181
266
|
headers: request_headers.merge(custom_headers || {})
|
182
267
|
}
|
183
|
-
|
268
|
+
|
269
|
+
request_url = @base_url || @client.base_url
|
270
|
+
|
271
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
184
272
|
promise = request.run_promise do |req|
|
185
273
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
186
274
|
end
|
@@ -207,13 +295,39 @@ module Azure::ARM::Graph
|
|
207
295
|
# Gets service principal information from the directory.
|
208
296
|
#
|
209
297
|
# @param object_id [String] Object id to get service principal information.
|
210
|
-
# @param [Hash{String => String}]
|
211
|
-
#
|
298
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
299
|
+
# will be added to the HTTP request.
|
212
300
|
#
|
213
|
-
# @return [
|
214
|
-
# response.
|
301
|
+
# @return [ServicePrincipal] operation results.
|
215
302
|
#
|
216
303
|
def get(object_id, custom_headers = nil)
|
304
|
+
response = get_async(object_id, custom_headers).value!
|
305
|
+
response.body unless response.nil?
|
306
|
+
end
|
307
|
+
|
308
|
+
#
|
309
|
+
# Gets service principal information from the directory.
|
310
|
+
#
|
311
|
+
# @param object_id [String] Object id to get service principal information.
|
312
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
313
|
+
# will be added to the HTTP request.
|
314
|
+
#
|
315
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
316
|
+
#
|
317
|
+
def get_with_http_info(object_id, custom_headers = nil)
|
318
|
+
get_async(object_id, custom_headers).value!
|
319
|
+
end
|
320
|
+
|
321
|
+
#
|
322
|
+
# Gets service principal information from the directory.
|
323
|
+
#
|
324
|
+
# @param object_id [String] Object id to get service principal information.
|
325
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
326
|
+
# to the HTTP request.
|
327
|
+
#
|
328
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
329
|
+
#
|
330
|
+
def get_async(object_id, custom_headers = nil)
|
217
331
|
fail ArgumentError, 'object_id is nil' if object_id.nil?
|
218
332
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
219
333
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
@@ -230,7 +344,10 @@ module Azure::ARM::Graph
|
|
230
344
|
query_params: {'api-version' => @client.api_version},
|
231
345
|
headers: request_headers.merge(custom_headers || {})
|
232
346
|
}
|
233
|
-
|
347
|
+
|
348
|
+
request_url = @base_url || @client.base_url
|
349
|
+
|
350
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
234
351
|
promise = request.run_promise do |req|
|
235
352
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
236
353
|
end
|
@@ -269,13 +386,39 @@ module Azure::ARM::Graph
|
|
269
386
|
# Gets list of service principals from the current tenant.
|
270
387
|
#
|
271
388
|
# @param next_link [String] Next link for list operation.
|
272
|
-
# @param [Hash{String => String}]
|
273
|
-
#
|
389
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
390
|
+
# will be added to the HTTP request.
|
274
391
|
#
|
275
|
-
# @return [
|
276
|
-
# response.
|
392
|
+
# @return [ServicePrincipalListResult] operation results.
|
277
393
|
#
|
278
394
|
def list_next(next_link, custom_headers = nil)
|
395
|
+
response = list_next_async(next_link, custom_headers).value!
|
396
|
+
response.body unless response.nil?
|
397
|
+
end
|
398
|
+
|
399
|
+
#
|
400
|
+
# Gets list of service principals from the current tenant.
|
401
|
+
#
|
402
|
+
# @param next_link [String] Next link for list operation.
|
403
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
404
|
+
# will be added to the HTTP request.
|
405
|
+
#
|
406
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
407
|
+
#
|
408
|
+
def list_next_with_http_info(next_link, custom_headers = nil)
|
409
|
+
list_next_async(next_link, custom_headers).value!
|
410
|
+
end
|
411
|
+
|
412
|
+
#
|
413
|
+
# Gets list of service principals from the current tenant.
|
414
|
+
#
|
415
|
+
# @param next_link [String] Next link for list operation.
|
416
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
417
|
+
# to the HTTP request.
|
418
|
+
#
|
419
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
420
|
+
#
|
421
|
+
def list_next_async(next_link, custom_headers = nil)
|
279
422
|
fail ArgumentError, 'next_link is nil' if next_link.nil?
|
280
423
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
281
424
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
@@ -292,7 +435,10 @@ module Azure::ARM::Graph
|
|
292
435
|
query_params: {'api-version' => @client.api_version},
|
293
436
|
headers: request_headers.merge(custom_headers || {})
|
294
437
|
}
|
295
|
-
|
438
|
+
|
439
|
+
request_url = @base_url || @client.base_url
|
440
|
+
|
441
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
296
442
|
promise = request.run_promise do |req|
|
297
443
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
298
444
|
end
|