azure_mgmt_graph 0.2.1 → 0.3.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 +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
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YTgxM2FkYWFkMWMzZGJhOTcxZTY2YzQ0NGZiYjYzOWNlMjhkYTU1Mw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZjkyZjg0NDQ2ZjNkZDdmNmYxMGIyYWRkZmE3ZDBlNWY5OGQ4NWNjNQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NjIxY2E1ZDRlNTc5YjA2ODYyYTljNWMwNjk5ZjJkYzU0ZDE2Mzc2ZGU2Y2Iw
|
10
|
+
MjA1ZjJlZjg5OTI1NzAwYWI2NDUxYWMyODQ2YmMyOTNhYjQxZDFjODhiZWFk
|
11
|
+
NTMwYmY0MGNhMWFmZjgyNDUxODIyMTRkODk3YTQxMjcxNzE3NzA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
OWMxNGU2ODRkYWVhZThmMDBjZGYyYzE3YjQ0OTdjNmJiNTdkZGZmZDk1OWE5
|
14
|
+
ZmZkZTI3NDNjNDQ3MWVkNGEzYmYwMDJjMDgyMTYzMDE2ODZkNzA0OGYxNjEz
|
15
|
+
MjYyNDA0YWM1YWQyMTkyYzBmNzhlYzY2Y2U3ZTg3NDIxMGFiZTg=
|
data/azure_mgmt_graph.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency 'rake', '~> 10'
|
30
30
|
spec.add_development_dependency 'rspec', '~> 3'
|
31
31
|
spec.add_development_dependency 'dotenv', '~> 2'
|
32
|
-
spec.add_development_dependency 'azure_mgmt_resources', '~> 0.
|
32
|
+
spec.add_development_dependency 'azure_mgmt_resources', '~> 0.3'
|
33
33
|
|
34
|
-
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.
|
34
|
+
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.3'
|
35
35
|
end
|
data/lib/azure_mgmt_graph.rb
CHANGED
@@ -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
|
|
@@ -28,13 +28,43 @@ module Azure::ARM::Graph
|
|
28
28
|
#
|
29
29
|
# @param parameters [ApplicationCreateParameters] Parameters to create an
|
30
30
|
# application.
|
31
|
-
# @param [Hash{String => String}]
|
32
|
-
#
|
31
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
|
+
# will be added to the HTTP request.
|
33
33
|
#
|
34
|
-
# @return [
|
35
|
-
# response.
|
34
|
+
# @return [Application] operation results.
|
36
35
|
#
|
37
36
|
def create(parameters, custom_headers = nil)
|
37
|
+
response = create_async(parameters, custom_headers).value!
|
38
|
+
response.body unless response.nil?
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Create a new application. Reference:
|
43
|
+
# http://msdn.microsoft.com/en-us/library/azure/hh974476.aspx
|
44
|
+
#
|
45
|
+
# @param parameters [ApplicationCreateParameters] Parameters to create an
|
46
|
+
# application.
|
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 create_with_http_info(parameters, custom_headers = nil)
|
53
|
+
create_async(parameters, custom_headers).value!
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Create a new application. Reference:
|
58
|
+
# http://msdn.microsoft.com/en-us/library/azure/hh974476.aspx
|
59
|
+
#
|
60
|
+
# @param parameters [ApplicationCreateParameters] Parameters to create an
|
61
|
+
# application.
|
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 create_async(parameters, custom_headers = nil)
|
38
68
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
39
69
|
parameters.validate unless parameters.nil?
|
40
70
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -50,7 +80,7 @@ module Azure::ARM::Graph
|
|
50
80
|
unless parameters.nil?
|
51
81
|
parameters = ApplicationCreateParameters.serialize_object(parameters)
|
52
82
|
end
|
53
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
83
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
54
84
|
path_template = '/{tenantID}/applications'
|
55
85
|
options = {
|
56
86
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -59,7 +89,10 @@ module Azure::ARM::Graph
|
|
59
89
|
body: request_content,
|
60
90
|
headers: request_headers.merge(custom_headers || {})
|
61
91
|
}
|
62
|
-
|
92
|
+
|
93
|
+
request_url = @base_url || @client.base_url
|
94
|
+
|
95
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
63
96
|
promise = request.run_promise do |req|
|
64
97
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
65
98
|
end
|
@@ -99,13 +132,41 @@ module Azure::ARM::Graph
|
|
99
132
|
# http://msdn.microsoft.com/en-us/library/azure/hh974476.aspx
|
100
133
|
#
|
101
134
|
# @param filter [String] The filters to apply on the operation
|
102
|
-
# @param [Hash{String => String}]
|
103
|
-
#
|
135
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
136
|
+
# will be added to the HTTP request.
|
104
137
|
#
|
105
|
-
# @return [
|
106
|
-
# response.
|
138
|
+
# @return [ApplicationListResult] operation results.
|
107
139
|
#
|
108
140
|
def list(filter = nil, custom_headers = nil)
|
141
|
+
response = list_async(filter, custom_headers).value!
|
142
|
+
response.body unless response.nil?
|
143
|
+
end
|
144
|
+
|
145
|
+
#
|
146
|
+
# Lists applications by filter parameters. Reference:
|
147
|
+
# http://msdn.microsoft.com/en-us/library/azure/hh974476.aspx
|
148
|
+
#
|
149
|
+
# @param filter [String] The filters to apply on the operation
|
150
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
151
|
+
# will be added to the HTTP request.
|
152
|
+
#
|
153
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
154
|
+
#
|
155
|
+
def list_with_http_info(filter = nil, custom_headers = nil)
|
156
|
+
list_async(filter, custom_headers).value!
|
157
|
+
end
|
158
|
+
|
159
|
+
#
|
160
|
+
# Lists applications by filter parameters. Reference:
|
161
|
+
# http://msdn.microsoft.com/en-us/library/azure/hh974476.aspx
|
162
|
+
#
|
163
|
+
# @param filter [String] The filters to apply on the operation
|
164
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
165
|
+
# to the HTTP request.
|
166
|
+
#
|
167
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
168
|
+
#
|
169
|
+
def list_async(filter = nil, custom_headers = nil)
|
109
170
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
110
171
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
111
172
|
request_headers = {}
|
@@ -120,7 +181,10 @@ module Azure::ARM::Graph
|
|
120
181
|
query_params: {'$filter' => filter,'api-version' => @client.api_version},
|
121
182
|
headers: request_headers.merge(custom_headers || {})
|
122
183
|
}
|
123
|
-
|
184
|
+
|
185
|
+
request_url = @base_url || @client.base_url
|
186
|
+
|
187
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
124
188
|
promise = request.run_promise do |req|
|
125
189
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
126
190
|
end
|
@@ -160,13 +224,40 @@ module Azure::ARM::Graph
|
|
160
224
|
# http://msdn.microsoft.com/en-us/library/azure/hh974476.aspx
|
161
225
|
#
|
162
226
|
# @param application_object_id [String] Application object id
|
163
|
-
# @param [Hash{String => String}]
|
164
|
-
#
|
227
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
228
|
+
# will be added to the HTTP request.
|
165
229
|
#
|
166
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
167
|
-
# response.
|
168
230
|
#
|
169
231
|
def delete(application_object_id, custom_headers = nil)
|
232
|
+
response = delete_async(application_object_id, custom_headers).value!
|
233
|
+
nil
|
234
|
+
end
|
235
|
+
|
236
|
+
#
|
237
|
+
# Delete an application. Reference:
|
238
|
+
# http://msdn.microsoft.com/en-us/library/azure/hh974476.aspx
|
239
|
+
#
|
240
|
+
# @param application_object_id [String] Application object id
|
241
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
242
|
+
# will be added to the HTTP request.
|
243
|
+
#
|
244
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
245
|
+
#
|
246
|
+
def delete_with_http_info(application_object_id, custom_headers = nil)
|
247
|
+
delete_async(application_object_id, custom_headers).value!
|
248
|
+
end
|
249
|
+
|
250
|
+
#
|
251
|
+
# Delete an application. Reference:
|
252
|
+
# http://msdn.microsoft.com/en-us/library/azure/hh974476.aspx
|
253
|
+
#
|
254
|
+
# @param application_object_id [String] Application object id
|
255
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
256
|
+
# to the HTTP request.
|
257
|
+
#
|
258
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
259
|
+
#
|
260
|
+
def delete_async(application_object_id, custom_headers = nil)
|
170
261
|
fail ArgumentError, 'application_object_id is nil' if application_object_id.nil?
|
171
262
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
172
263
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
@@ -183,7 +274,10 @@ module Azure::ARM::Graph
|
|
183
274
|
query_params: {'api-version' => @client.api_version},
|
184
275
|
headers: request_headers.merge(custom_headers || {})
|
185
276
|
}
|
186
|
-
|
277
|
+
|
278
|
+
request_url = @base_url || @client.base_url
|
279
|
+
|
280
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
187
281
|
promise = request.run_promise do |req|
|
188
282
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
189
283
|
end
|
@@ -211,13 +305,41 @@ module Azure::ARM::Graph
|
|
211
305
|
# http://msdn.microsoft.com/en-us/library/azure/hh974476.aspx
|
212
306
|
#
|
213
307
|
# @param application_object_id [String] Application object id
|
214
|
-
# @param [Hash{String => String}]
|
215
|
-
#
|
308
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
309
|
+
# will be added to the HTTP request.
|
216
310
|
#
|
217
|
-
# @return [
|
218
|
-
# response.
|
311
|
+
# @return [Application] operation results.
|
219
312
|
#
|
220
313
|
def get(application_object_id, custom_headers = nil)
|
314
|
+
response = get_async(application_object_id, custom_headers).value!
|
315
|
+
response.body unless response.nil?
|
316
|
+
end
|
317
|
+
|
318
|
+
#
|
319
|
+
# Get an application by object Id. Reference:
|
320
|
+
# http://msdn.microsoft.com/en-us/library/azure/hh974476.aspx
|
321
|
+
#
|
322
|
+
# @param application_object_id [String] Application object id
|
323
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
324
|
+
# will be added to the HTTP request.
|
325
|
+
#
|
326
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
327
|
+
#
|
328
|
+
def get_with_http_info(application_object_id, custom_headers = nil)
|
329
|
+
get_async(application_object_id, custom_headers).value!
|
330
|
+
end
|
331
|
+
|
332
|
+
#
|
333
|
+
# Get an application by object Id. Reference:
|
334
|
+
# http://msdn.microsoft.com/en-us/library/azure/hh974476.aspx
|
335
|
+
#
|
336
|
+
# @param application_object_id [String] Application object id
|
337
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
338
|
+
# to the HTTP request.
|
339
|
+
#
|
340
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
341
|
+
#
|
342
|
+
def get_async(application_object_id, custom_headers = nil)
|
221
343
|
fail ArgumentError, 'application_object_id is nil' if application_object_id.nil?
|
222
344
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
223
345
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
@@ -234,7 +356,10 @@ module Azure::ARM::Graph
|
|
234
356
|
query_params: {'api-version' => @client.api_version},
|
235
357
|
headers: request_headers.merge(custom_headers || {})
|
236
358
|
}
|
237
|
-
|
359
|
+
|
360
|
+
request_url = @base_url || @client.base_url
|
361
|
+
|
362
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
238
363
|
promise = request.run_promise do |req|
|
239
364
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
240
365
|
end
|
@@ -276,13 +401,44 @@ module Azure::ARM::Graph
|
|
276
401
|
# @param application_object_id [String] Application object id
|
277
402
|
# @param parameters [ApplicationCreateParameters] Parameters to create an
|
278
403
|
# application.
|
279
|
-
# @param [Hash{String => String}]
|
280
|
-
#
|
404
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
405
|
+
# will be added to the HTTP request.
|
281
406
|
#
|
282
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
283
|
-
# response.
|
284
407
|
#
|
285
408
|
def patch(application_object_id, parameters, custom_headers = nil)
|
409
|
+
response = patch_async(application_object_id, parameters, custom_headers).value!
|
410
|
+
nil
|
411
|
+
end
|
412
|
+
|
413
|
+
#
|
414
|
+
# Update existing application. Reference:
|
415
|
+
# http://msdn.microsoft.com/en-us/library/azure/hh974476.aspx
|
416
|
+
#
|
417
|
+
# @param application_object_id [String] Application object id
|
418
|
+
# @param parameters [ApplicationCreateParameters] Parameters to create an
|
419
|
+
# application.
|
420
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
421
|
+
# will be added to the HTTP request.
|
422
|
+
#
|
423
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
424
|
+
#
|
425
|
+
def patch_with_http_info(application_object_id, parameters, custom_headers = nil)
|
426
|
+
patch_async(application_object_id, parameters, custom_headers).value!
|
427
|
+
end
|
428
|
+
|
429
|
+
#
|
430
|
+
# Update existing application. Reference:
|
431
|
+
# http://msdn.microsoft.com/en-us/library/azure/hh974476.aspx
|
432
|
+
#
|
433
|
+
# @param application_object_id [String] Application object id
|
434
|
+
# @param parameters [ApplicationCreateParameters] Parameters to create an
|
435
|
+
# application.
|
436
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
437
|
+
# to the HTTP request.
|
438
|
+
#
|
439
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
440
|
+
#
|
441
|
+
def patch_async(application_object_id, parameters, custom_headers = nil)
|
286
442
|
fail ArgumentError, 'application_object_id is nil' if application_object_id.nil?
|
287
443
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
288
444
|
parameters.validate unless parameters.nil?
|
@@ -299,7 +455,7 @@ module Azure::ARM::Graph
|
|
299
455
|
unless parameters.nil?
|
300
456
|
parameters = ApplicationCreateParameters.serialize_object(parameters)
|
301
457
|
end
|
302
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
458
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
303
459
|
path_template = '/{tenantID}/applications/{applicationObjectId}'
|
304
460
|
options = {
|
305
461
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -309,7 +465,10 @@ module Azure::ARM::Graph
|
|
309
465
|
body: request_content,
|
310
466
|
headers: request_headers.merge(custom_headers || {})
|
311
467
|
}
|
312
|
-
|
468
|
+
|
469
|
+
request_url = @base_url || @client.base_url
|
470
|
+
|
471
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :patch, options)
|
313
472
|
promise = request.run_promise do |req|
|
314
473
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
315
474
|
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
|
|
@@ -28,13 +28,42 @@ module Azure::ARM::Graph
|
|
28
28
|
#
|
29
29
|
# @param group_object_id [String] Group object id
|
30
30
|
# @param member_object_id [String] Member Object id
|
31
|
-
# @param [Hash{String => String}]
|
32
|
-
#
|
31
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
|
+
# will be added to the HTTP request.
|
33
33
|
#
|
34
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
35
|
-
# response.
|
36
34
|
#
|
37
35
|
def remove_member(group_object_id, member_object_id, custom_headers = nil)
|
36
|
+
response = remove_member_async(group_object_id, member_object_id, custom_headers).value!
|
37
|
+
nil
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Remove a memeber from a group. Reference:
|
42
|
+
# http://msdn.microsoft.com/en-us/library/azure/dn151607.aspx
|
43
|
+
#
|
44
|
+
# @param group_object_id [String] Group object id
|
45
|
+
# @param member_object_id [String] Member Object id
|
46
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
47
|
+
# will be added to the HTTP request.
|
48
|
+
#
|
49
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
|
+
#
|
51
|
+
def remove_member_with_http_info(group_object_id, member_object_id, custom_headers = nil)
|
52
|
+
remove_member_async(group_object_id, member_object_id, custom_headers).value!
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Remove a memeber from a group. Reference:
|
57
|
+
# http://msdn.microsoft.com/en-us/library/azure/dn151607.aspx
|
58
|
+
#
|
59
|
+
# @param group_object_id [String] Group object id
|
60
|
+
# @param member_object_id [String] Member Object id
|
61
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
62
|
+
# to the HTTP request.
|
63
|
+
#
|
64
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
|
+
#
|
66
|
+
def remove_member_async(group_object_id, member_object_id, custom_headers = nil)
|
38
67
|
fail ArgumentError, 'group_object_id is nil' if group_object_id.nil?
|
39
68
|
fail ArgumentError, 'member_object_id is nil' if member_object_id.nil?
|
40
69
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -52,7 +81,10 @@ module Azure::ARM::Graph
|
|
52
81
|
query_params: {'api-version' => @client.api_version},
|
53
82
|
headers: request_headers.merge(custom_headers || {})
|
54
83
|
}
|
55
|
-
|
84
|
+
|
85
|
+
request_url = @base_url || @client.base_url
|
86
|
+
|
87
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
56
88
|
promise = request.run_promise do |req|
|
57
89
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
58
90
|
end
|
@@ -82,13 +114,44 @@ module Azure::ARM::Graph
|
|
82
114
|
# @param group_object_id [String] Group object id
|
83
115
|
# @param parameters [GroupAddMemberParameters] Member Object Url as
|
84
116
|
# https://graph.windows.net/contoso.onmicrosoft.com/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd
|
85
|
-
# @param [Hash{String => String}]
|
86
|
-
#
|
117
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
118
|
+
# will be added to the HTTP request.
|
87
119
|
#
|
88
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
89
|
-
# response.
|
90
120
|
#
|
91
121
|
def add_member(group_object_id, parameters, custom_headers = nil)
|
122
|
+
response = add_member_async(group_object_id, parameters, custom_headers).value!
|
123
|
+
nil
|
124
|
+
end
|
125
|
+
|
126
|
+
#
|
127
|
+
# Add a memeber to a group. Reference:
|
128
|
+
# http://msdn.microsoft.com/en-us/library/azure/dn151676.aspx
|
129
|
+
#
|
130
|
+
# @param group_object_id [String] Group object id
|
131
|
+
# @param parameters [GroupAddMemberParameters] Member Object Url as
|
132
|
+
# https://graph.windows.net/contoso.onmicrosoft.com/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd
|
133
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
134
|
+
# will be added to the HTTP request.
|
135
|
+
#
|
136
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
137
|
+
#
|
138
|
+
def add_member_with_http_info(group_object_id, parameters, custom_headers = nil)
|
139
|
+
add_member_async(group_object_id, parameters, custom_headers).value!
|
140
|
+
end
|
141
|
+
|
142
|
+
#
|
143
|
+
# Add a memeber to a group. Reference:
|
144
|
+
# http://msdn.microsoft.com/en-us/library/azure/dn151676.aspx
|
145
|
+
#
|
146
|
+
# @param group_object_id [String] Group object id
|
147
|
+
# @param parameters [GroupAddMemberParameters] Member Object Url as
|
148
|
+
# https://graph.windows.net/contoso.onmicrosoft.com/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd
|
149
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
150
|
+
# to the HTTP request.
|
151
|
+
#
|
152
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
153
|
+
#
|
154
|
+
def add_member_async(group_object_id, parameters, custom_headers = nil)
|
92
155
|
fail ArgumentError, 'group_object_id is nil' if group_object_id.nil?
|
93
156
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
94
157
|
parameters.validate unless parameters.nil?
|
@@ -105,7 +168,7 @@ module Azure::ARM::Graph
|
|
105
168
|
unless parameters.nil?
|
106
169
|
parameters = GroupAddMemberParameters.serialize_object(parameters)
|
107
170
|
end
|
108
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
171
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
109
172
|
path_template = '/{tenantID}/groups/{groupObjectId}/$links/members'
|
110
173
|
options = {
|
111
174
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -115,7 +178,10 @@ module Azure::ARM::Graph
|
|
115
178
|
body: request_content,
|
116
179
|
headers: request_headers.merge(custom_headers || {})
|
117
180
|
}
|
118
|
-
|
181
|
+
|
182
|
+
request_url = @base_url || @client.base_url
|
183
|
+
|
184
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
119
185
|
promise = request.run_promise do |req|
|
120
186
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
121
187
|
end
|
@@ -143,13 +209,40 @@ module Azure::ARM::Graph
|
|
143
209
|
# http://msdn.microsoft.com/en-us/library/azure/dn151676.aspx
|
144
210
|
#
|
145
211
|
# @param group_object_id [String] Object id
|
146
|
-
# @param [Hash{String => String}]
|
147
|
-
#
|
212
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
213
|
+
# will be added to the HTTP request.
|
148
214
|
#
|
149
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
150
|
-
# response.
|
151
215
|
#
|
152
216
|
def delete(group_object_id, custom_headers = nil)
|
217
|
+
response = delete_async(group_object_id, custom_headers).value!
|
218
|
+
nil
|
219
|
+
end
|
220
|
+
|
221
|
+
#
|
222
|
+
# Delete a group in the directory. Reference:
|
223
|
+
# http://msdn.microsoft.com/en-us/library/azure/dn151676.aspx
|
224
|
+
#
|
225
|
+
# @param group_object_id [String] Object id
|
226
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
227
|
+
# will be added to the HTTP request.
|
228
|
+
#
|
229
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
230
|
+
#
|
231
|
+
def delete_with_http_info(group_object_id, custom_headers = nil)
|
232
|
+
delete_async(group_object_id, custom_headers).value!
|
233
|
+
end
|
234
|
+
|
235
|
+
#
|
236
|
+
# Delete a group in the directory. Reference:
|
237
|
+
# http://msdn.microsoft.com/en-us/library/azure/dn151676.aspx
|
238
|
+
#
|
239
|
+
# @param group_object_id [String] Object id
|
240
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
241
|
+
# to the HTTP request.
|
242
|
+
#
|
243
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
244
|
+
#
|
245
|
+
def delete_async(group_object_id, custom_headers = nil)
|
153
246
|
fail ArgumentError, 'group_object_id is nil' if group_object_id.nil?
|
154
247
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
155
248
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
@@ -166,7 +259,10 @@ module Azure::ARM::Graph
|
|
166
259
|
query_params: {'api-version' => @client.api_version},
|
167
260
|
headers: request_headers.merge(custom_headers || {})
|
168
261
|
}
|
169
|
-
|
262
|
+
|
263
|
+
request_url = @base_url || @client.base_url
|
264
|
+
|
265
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
170
266
|
promise = request.run_promise do |req|
|
171
267
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
172
268
|
end
|
@@ -194,13 +290,41 @@ module Azure::ARM::Graph
|
|
194
290
|
# http://msdn.microsoft.com/en-us/library/azure/dn151676.aspx
|
195
291
|
#
|
196
292
|
# @param parameters [GroupCreateParameters] Parameters to create a group
|
197
|
-
# @param [Hash{String => String}]
|
198
|
-
#
|
293
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
294
|
+
# will be added to the HTTP request.
|
199
295
|
#
|
200
|
-
# @return [
|
201
|
-
# response.
|
296
|
+
# @return [ADGroup] operation results.
|
202
297
|
#
|
203
298
|
def create(parameters, custom_headers = nil)
|
299
|
+
response = create_async(parameters, custom_headers).value!
|
300
|
+
response.body unless response.nil?
|
301
|
+
end
|
302
|
+
|
303
|
+
#
|
304
|
+
# Create a group in the directory. Reference:
|
305
|
+
# http://msdn.microsoft.com/en-us/library/azure/dn151676.aspx
|
306
|
+
#
|
307
|
+
# @param parameters [GroupCreateParameters] Parameters to create a group
|
308
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
309
|
+
# will be added to the HTTP request.
|
310
|
+
#
|
311
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
312
|
+
#
|
313
|
+
def create_with_http_info(parameters, custom_headers = nil)
|
314
|
+
create_async(parameters, custom_headers).value!
|
315
|
+
end
|
316
|
+
|
317
|
+
#
|
318
|
+
# Create a group in the directory. Reference:
|
319
|
+
# http://msdn.microsoft.com/en-us/library/azure/dn151676.aspx
|
320
|
+
#
|
321
|
+
# @param parameters [GroupCreateParameters] Parameters to create a group
|
322
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
323
|
+
# to the HTTP request.
|
324
|
+
#
|
325
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
326
|
+
#
|
327
|
+
def create_async(parameters, custom_headers = nil)
|
204
328
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
205
329
|
parameters.validate unless parameters.nil?
|
206
330
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -216,7 +340,7 @@ module Azure::ARM::Graph
|
|
216
340
|
unless parameters.nil?
|
217
341
|
parameters = GroupCreateParameters.serialize_object(parameters)
|
218
342
|
end
|
219
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
343
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
220
344
|
path_template = '/{tenantID}/groups'
|
221
345
|
options = {
|
222
346
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -225,7 +349,10 @@ module Azure::ARM::Graph
|
|
225
349
|
body: request_content,
|
226
350
|
headers: request_headers.merge(custom_headers || {})
|
227
351
|
}
|
228
|
-
|
352
|
+
|
353
|
+
request_url = @base_url || @client.base_url
|
354
|
+
|
355
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
229
356
|
promise = request.run_promise do |req|
|
230
357
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
231
358
|
end
|
@@ -264,13 +391,39 @@ module Azure::ARM::Graph
|
|
264
391
|
# Gets list of groups for the current tenant.
|
265
392
|
#
|
266
393
|
# @param filter [String] The filter to apply on the operation.
|
267
|
-
# @param [Hash{String => String}]
|
268
|
-
#
|
394
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
395
|
+
# will be added to the HTTP request.
|
269
396
|
#
|
270
|
-
# @return [
|
271
|
-
# response.
|
397
|
+
# @return [GroupListResult] operation results.
|
272
398
|
#
|
273
399
|
def list(filter = nil, custom_headers = nil)
|
400
|
+
response = list_async(filter, custom_headers).value!
|
401
|
+
response.body unless response.nil?
|
402
|
+
end
|
403
|
+
|
404
|
+
#
|
405
|
+
# Gets list of groups for the current tenant.
|
406
|
+
#
|
407
|
+
# @param filter [String] The filter to apply on the operation.
|
408
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
409
|
+
# will be added to the HTTP request.
|
410
|
+
#
|
411
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
412
|
+
#
|
413
|
+
def list_with_http_info(filter = nil, custom_headers = nil)
|
414
|
+
list_async(filter, custom_headers).value!
|
415
|
+
end
|
416
|
+
|
417
|
+
#
|
418
|
+
# Gets list of groups for the current tenant.
|
419
|
+
#
|
420
|
+
# @param filter [String] The filter to apply on the operation.
|
421
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
422
|
+
# to the HTTP request.
|
423
|
+
#
|
424
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
425
|
+
#
|
426
|
+
def list_async(filter = nil, custom_headers = nil)
|
274
427
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
275
428
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
276
429
|
request_headers = {}
|
@@ -285,7 +438,10 @@ module Azure::ARM::Graph
|
|
285
438
|
query_params: {'$filter' => filter,'api-version' => @client.api_version},
|
286
439
|
headers: request_headers.merge(custom_headers || {})
|
287
440
|
}
|
288
|
-
|
441
|
+
|
442
|
+
request_url = @base_url || @client.base_url
|
443
|
+
|
444
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
289
445
|
promise = request.run_promise do |req|
|
290
446
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
291
447
|
end
|
@@ -324,13 +480,39 @@ module Azure::ARM::Graph
|
|
324
480
|
# Gets the members of a group.
|
325
481
|
#
|
326
482
|
# @param object_id [String] Group object Id who's members should be retrieved.
|
327
|
-
# @param [Hash{String => String}]
|
328
|
-
#
|
483
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
484
|
+
# will be added to the HTTP request.
|
329
485
|
#
|
330
|
-
# @return [
|
331
|
-
# response.
|
486
|
+
# @return [GetObjectsResult] operation results.
|
332
487
|
#
|
333
488
|
def get_group_members(object_id, custom_headers = nil)
|
489
|
+
response = get_group_members_async(object_id, custom_headers).value!
|
490
|
+
response.body unless response.nil?
|
491
|
+
end
|
492
|
+
|
493
|
+
#
|
494
|
+
# Gets the members of a group.
|
495
|
+
#
|
496
|
+
# @param object_id [String] Group object Id who's members should be retrieved.
|
497
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
498
|
+
# will be added to the HTTP request.
|
499
|
+
#
|
500
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
501
|
+
#
|
502
|
+
def get_group_members_with_http_info(object_id, custom_headers = nil)
|
503
|
+
get_group_members_async(object_id, custom_headers).value!
|
504
|
+
end
|
505
|
+
|
506
|
+
#
|
507
|
+
# Gets the members of a group.
|
508
|
+
#
|
509
|
+
# @param object_id [String] Group object Id who's members should be retrieved.
|
510
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
511
|
+
# to the HTTP request.
|
512
|
+
#
|
513
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
514
|
+
#
|
515
|
+
def get_group_members_async(object_id, custom_headers = nil)
|
334
516
|
fail ArgumentError, 'object_id is nil' if object_id.nil?
|
335
517
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
336
518
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
@@ -347,7 +529,10 @@ module Azure::ARM::Graph
|
|
347
529
|
query_params: {'api-version' => @client.api_version},
|
348
530
|
headers: request_headers.merge(custom_headers || {})
|
349
531
|
}
|
350
|
-
|
532
|
+
|
533
|
+
request_url = @base_url || @client.base_url
|
534
|
+
|
535
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
351
536
|
promise = request.run_promise do |req|
|
352
537
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
353
538
|
end
|
@@ -386,13 +571,39 @@ module Azure::ARM::Graph
|
|
386
571
|
# Gets group information from the directory.
|
387
572
|
#
|
388
573
|
# @param object_id [String] User objectId to get group information.
|
389
|
-
# @param [Hash{String => String}]
|
390
|
-
#
|
574
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
575
|
+
# will be added to the HTTP request.
|
391
576
|
#
|
392
|
-
# @return [
|
393
|
-
# response.
|
577
|
+
# @return [ADGroup] operation results.
|
394
578
|
#
|
395
579
|
def get(object_id, custom_headers = nil)
|
580
|
+
response = get_async(object_id, custom_headers).value!
|
581
|
+
response.body unless response.nil?
|
582
|
+
end
|
583
|
+
|
584
|
+
#
|
585
|
+
# Gets group information from the directory.
|
586
|
+
#
|
587
|
+
# @param object_id [String] User objectId to get group information.
|
588
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
589
|
+
# will be added to the HTTP request.
|
590
|
+
#
|
591
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
592
|
+
#
|
593
|
+
def get_with_http_info(object_id, custom_headers = nil)
|
594
|
+
get_async(object_id, custom_headers).value!
|
595
|
+
end
|
596
|
+
|
597
|
+
#
|
598
|
+
# Gets group information from the directory.
|
599
|
+
#
|
600
|
+
# @param object_id [String] User objectId to get group information.
|
601
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
602
|
+
# to the HTTP request.
|
603
|
+
#
|
604
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
605
|
+
#
|
606
|
+
def get_async(object_id, custom_headers = nil)
|
396
607
|
fail ArgumentError, 'object_id is nil' if object_id.nil?
|
397
608
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
398
609
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
@@ -409,7 +620,10 @@ module Azure::ARM::Graph
|
|
409
620
|
query_params: {'api-version' => @client.api_version},
|
410
621
|
headers: request_headers.merge(custom_headers || {})
|
411
622
|
}
|
412
|
-
|
623
|
+
|
624
|
+
request_url = @base_url || @client.base_url
|
625
|
+
|
626
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
413
627
|
promise = request.run_promise do |req|
|
414
628
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
415
629
|
end
|
@@ -451,13 +665,45 @@ module Azure::ARM::Graph
|
|
451
665
|
# @param object_id [String] Group filtering parameters.
|
452
666
|
# @param parameters [GroupGetMemberGroupsParameters] Group filtering
|
453
667
|
# parameters.
|
454
|
-
# @param [Hash{String => String}]
|
455
|
-
#
|
668
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
669
|
+
# will be added to the HTTP request.
|
456
670
|
#
|
457
|
-
# @return [
|
458
|
-
# response.
|
671
|
+
# @return [GroupGetMemberGroupsResult] operation results.
|
459
672
|
#
|
460
673
|
def get_member_groups(object_id, parameters, custom_headers = nil)
|
674
|
+
response = get_member_groups_async(object_id, parameters, custom_headers).value!
|
675
|
+
response.body unless response.nil?
|
676
|
+
end
|
677
|
+
|
678
|
+
#
|
679
|
+
# Gets a collection that contains the Object IDs of the groups of which the
|
680
|
+
# group is a member.
|
681
|
+
#
|
682
|
+
# @param object_id [String] Group filtering parameters.
|
683
|
+
# @param parameters [GroupGetMemberGroupsParameters] Group filtering
|
684
|
+
# parameters.
|
685
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
686
|
+
# will be added to the HTTP request.
|
687
|
+
#
|
688
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
689
|
+
#
|
690
|
+
def get_member_groups_with_http_info(object_id, parameters, custom_headers = nil)
|
691
|
+
get_member_groups_async(object_id, parameters, custom_headers).value!
|
692
|
+
end
|
693
|
+
|
694
|
+
#
|
695
|
+
# Gets a collection that contains the Object IDs of the groups of which the
|
696
|
+
# group is a member.
|
697
|
+
#
|
698
|
+
# @param object_id [String] Group filtering parameters.
|
699
|
+
# @param parameters [GroupGetMemberGroupsParameters] Group filtering
|
700
|
+
# parameters.
|
701
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
702
|
+
# to the HTTP request.
|
703
|
+
#
|
704
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
705
|
+
#
|
706
|
+
def get_member_groups_async(object_id, parameters, custom_headers = nil)
|
461
707
|
fail ArgumentError, 'object_id is nil' if object_id.nil?
|
462
708
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
463
709
|
parameters.validate unless parameters.nil?
|
@@ -474,7 +720,7 @@ module Azure::ARM::Graph
|
|
474
720
|
unless parameters.nil?
|
475
721
|
parameters = GroupGetMemberGroupsParameters.serialize_object(parameters)
|
476
722
|
end
|
477
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
723
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
478
724
|
path_template = '/{tenantID}/groups/{objectId}/getMemberGroups'
|
479
725
|
options = {
|
480
726
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -484,7 +730,10 @@ module Azure::ARM::Graph
|
|
484
730
|
body: request_content,
|
485
731
|
headers: request_headers.merge(custom_headers || {})
|
486
732
|
}
|
487
|
-
|
733
|
+
|
734
|
+
request_url = @base_url || @client.base_url
|
735
|
+
|
736
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
488
737
|
promise = request.run_promise do |req|
|
489
738
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
490
739
|
end
|
@@ -523,13 +772,39 @@ module Azure::ARM::Graph
|
|
523
772
|
# Gets list of groups for the current tenant.
|
524
773
|
#
|
525
774
|
# @param next_link [String] Next link for list operation.
|
526
|
-
# @param [Hash{String => String}]
|
527
|
-
#
|
775
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
776
|
+
# will be added to the HTTP request.
|
528
777
|
#
|
529
|
-
# @return [
|
530
|
-
# response.
|
778
|
+
# @return [GroupListResult] operation results.
|
531
779
|
#
|
532
780
|
def list_next(next_link, custom_headers = nil)
|
781
|
+
response = list_next_async(next_link, custom_headers).value!
|
782
|
+
response.body unless response.nil?
|
783
|
+
end
|
784
|
+
|
785
|
+
#
|
786
|
+
# Gets list of groups for the current tenant.
|
787
|
+
#
|
788
|
+
# @param next_link [String] Next link for list operation.
|
789
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
790
|
+
# will be added to the HTTP request.
|
791
|
+
#
|
792
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
793
|
+
#
|
794
|
+
def list_next_with_http_info(next_link, custom_headers = nil)
|
795
|
+
list_next_async(next_link, custom_headers).value!
|
796
|
+
end
|
797
|
+
|
798
|
+
#
|
799
|
+
# Gets list of groups for the current tenant.
|
800
|
+
#
|
801
|
+
# @param next_link [String] Next link for list operation.
|
802
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
803
|
+
# to the HTTP request.
|
804
|
+
#
|
805
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
806
|
+
#
|
807
|
+
def list_next_async(next_link, custom_headers = nil)
|
533
808
|
fail ArgumentError, 'next_link is nil' if next_link.nil?
|
534
809
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
535
810
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
@@ -546,7 +821,10 @@ module Azure::ARM::Graph
|
|
546
821
|
query_params: {'api-version' => @client.api_version},
|
547
822
|
headers: request_headers.merge(custom_headers || {})
|
548
823
|
}
|
549
|
-
|
824
|
+
|
825
|
+
request_url = @base_url || @client.base_url
|
826
|
+
|
827
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
550
828
|
promise = request.run_promise do |req|
|
551
829
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
552
830
|
end
|
@@ -585,13 +863,39 @@ module Azure::ARM::Graph
|
|
585
863
|
# Gets the members of a group.
|
586
864
|
#
|
587
865
|
# @param next_link [String] Next link for list operation.
|
588
|
-
# @param [Hash{String => String}]
|
589
|
-
#
|
866
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
867
|
+
# will be added to the HTTP request.
|
590
868
|
#
|
591
|
-
# @return [
|
592
|
-
# response.
|
869
|
+
# @return [GetObjectsResult] operation results.
|
593
870
|
#
|
594
871
|
def get_group_members_next(next_link, custom_headers = nil)
|
872
|
+
response = get_group_members_next_async(next_link, custom_headers).value!
|
873
|
+
response.body unless response.nil?
|
874
|
+
end
|
875
|
+
|
876
|
+
#
|
877
|
+
# Gets the members of a group.
|
878
|
+
#
|
879
|
+
# @param next_link [String] Next link for list operation.
|
880
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
881
|
+
# will be added to the HTTP request.
|
882
|
+
#
|
883
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
884
|
+
#
|
885
|
+
def get_group_members_next_with_http_info(next_link, custom_headers = nil)
|
886
|
+
get_group_members_next_async(next_link, custom_headers).value!
|
887
|
+
end
|
888
|
+
|
889
|
+
#
|
890
|
+
# Gets the members of a group.
|
891
|
+
#
|
892
|
+
# @param next_link [String] Next link for list operation.
|
893
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
894
|
+
# to the HTTP request.
|
895
|
+
#
|
896
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
897
|
+
#
|
898
|
+
def get_group_members_next_async(next_link, custom_headers = nil)
|
595
899
|
fail ArgumentError, 'next_link is nil' if next_link.nil?
|
596
900
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
597
901
|
fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?
|
@@ -608,7 +912,10 @@ module Azure::ARM::Graph
|
|
608
912
|
query_params: {'api-version' => @client.api_version},
|
609
913
|
headers: request_headers.merge(custom_headers || {})
|
610
914
|
}
|
611
|
-
|
915
|
+
|
916
|
+
request_url = @base_url || @client.base_url
|
917
|
+
|
918
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
612
919
|
promise = request.run_promise do |req|
|
613
920
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
614
921
|
end
|