azure_mgmt_subscriptions 0.15.2 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/subscription_client.rb +4 -1
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/subscriptions.rb +27 -23
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/tenants.rb +15 -13
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscription_client.rb +4 -1
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscriptions.rb +27 -23
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/tenants.rb +15 -13
- data/lib/profiles/latest/modules/subscriptions_profile_module.rb +55 -36
- data/lib/profiles/latest/subscriptions_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/subscriptions_module_definition.rb +0 -1
- data/lib/profiles/v2017_03_09/modules/subscriptions_profile_module.rb +55 -36
- data/lib/profiles/v2017_03_09/subscriptions_module_definition.rb +0 -1
- data/lib/profiles/v2017_03_09/subscriptions_v2017_03_09_profile_client.rb +28 -9
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf299d73ebe8e5a9c3304e0f078a04eb4e6c63cf
|
4
|
+
data.tar.gz: 5d11f9b1feef908274ca64056c20e5901049efb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b13781d9a8a47c5e121b263aae14c1718e2bd915b41f55acfdda1245ed5941d287d7130b1bde815eac23c963d5e9f5c0f3001c620fd04e18880bae849d8f2e8
|
7
|
+
data.tar.gz: 6a79a3bde2d211b66dc9f8f04be46fabcbb433dd29d11a39650f36931444c7fbe5ae3e7ffb5d452bad5dd25ae230357aee35a5d5451402deb960902dd3d5be74
|
@@ -105,6 +105,9 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
105
105
|
fail ArgumentError, 'path is nil' if path.nil?
|
106
106
|
|
107
107
|
request_url = options[:base_url] || @base_url
|
108
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
109
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
110
|
+
end
|
108
111
|
|
109
112
|
request_headers = @request_headers
|
110
113
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -121,7 +124,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
121
124
|
#
|
122
125
|
def add_telemetry
|
123
126
|
sdk_information = 'azure_mgmt_subscriptions'
|
124
|
-
sdk_information = "#{sdk_information}/0.
|
127
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
125
128
|
add_user_agent_information(sdk_information)
|
126
129
|
end
|
127
130
|
end
|
@@ -30,8 +30,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
30
30
|
#
|
31
31
|
# @return [LocationListResult] operation results.
|
32
32
|
#
|
33
|
-
def list_locations(subscription_id, custom_headers
|
34
|
-
response = list_locations_async(subscription_id, custom_headers).value!
|
33
|
+
def list_locations(subscription_id, custom_headers:nil)
|
34
|
+
response = list_locations_async(subscription_id, custom_headers:custom_headers).value!
|
35
35
|
response.body unless response.nil?
|
36
36
|
end
|
37
37
|
|
@@ -44,8 +44,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
44
44
|
#
|
45
45
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
46
46
|
#
|
47
|
-
def list_locations_with_http_info(subscription_id, custom_headers
|
48
|
-
list_locations_async(subscription_id, custom_headers).value!
|
47
|
+
def list_locations_with_http_info(subscription_id, custom_headers:nil)
|
48
|
+
list_locations_async(subscription_id, custom_headers:custom_headers).value!
|
49
49
|
end
|
50
50
|
|
51
51
|
#
|
@@ -57,12 +57,13 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
57
57
|
#
|
58
58
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
59
59
|
#
|
60
|
-
def list_locations_async(subscription_id, custom_headers
|
60
|
+
def list_locations_async(subscription_id, custom_headers:nil)
|
61
61
|
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
62
62
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
63
63
|
|
64
64
|
|
65
65
|
request_headers = {}
|
66
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
66
67
|
|
67
68
|
# Set Headers
|
68
69
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -116,8 +117,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
116
117
|
#
|
117
118
|
# @return [Subscription] operation results.
|
118
119
|
#
|
119
|
-
def get(subscription_id, custom_headers
|
120
|
-
response = get_async(subscription_id, custom_headers).value!
|
120
|
+
def get(subscription_id, custom_headers:nil)
|
121
|
+
response = get_async(subscription_id, custom_headers:custom_headers).value!
|
121
122
|
response.body unless response.nil?
|
122
123
|
end
|
123
124
|
|
@@ -130,8 +131,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
130
131
|
#
|
131
132
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
132
133
|
#
|
133
|
-
def get_with_http_info(subscription_id, custom_headers
|
134
|
-
get_async(subscription_id, custom_headers).value!
|
134
|
+
def get_with_http_info(subscription_id, custom_headers:nil)
|
135
|
+
get_async(subscription_id, custom_headers:custom_headers).value!
|
135
136
|
end
|
136
137
|
|
137
138
|
#
|
@@ -143,12 +144,13 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
143
144
|
#
|
144
145
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
145
146
|
#
|
146
|
-
def get_async(subscription_id, custom_headers
|
147
|
+
def get_async(subscription_id, custom_headers:nil)
|
147
148
|
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
148
149
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
149
150
|
|
150
151
|
|
151
152
|
request_headers = {}
|
153
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
152
154
|
|
153
155
|
# Set Headers
|
154
156
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -201,8 +203,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
201
203
|
#
|
202
204
|
# @return [Array<Subscription>] operation results.
|
203
205
|
#
|
204
|
-
def list(custom_headers
|
205
|
-
first_page = list_as_lazy(custom_headers)
|
206
|
+
def list(custom_headers:nil)
|
207
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
206
208
|
first_page.get_all_items
|
207
209
|
end
|
208
210
|
|
@@ -214,8 +216,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
214
216
|
#
|
215
217
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
216
218
|
#
|
217
|
-
def list_with_http_info(custom_headers
|
218
|
-
list_async(custom_headers).value!
|
219
|
+
def list_with_http_info(custom_headers:nil)
|
220
|
+
list_async(custom_headers:custom_headers).value!
|
219
221
|
end
|
220
222
|
|
221
223
|
#
|
@@ -226,11 +228,12 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
226
228
|
#
|
227
229
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
228
230
|
#
|
229
|
-
def list_async(custom_headers
|
231
|
+
def list_async(custom_headers:nil)
|
230
232
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
231
233
|
|
232
234
|
|
233
235
|
request_headers = {}
|
236
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
234
237
|
|
235
238
|
# Set Headers
|
236
239
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -284,8 +287,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
284
287
|
#
|
285
288
|
# @return [SubscriptionListResult] operation results.
|
286
289
|
#
|
287
|
-
def list_next(next_page_link, custom_headers
|
288
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
290
|
+
def list_next(next_page_link, custom_headers:nil)
|
291
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
289
292
|
response.body unless response.nil?
|
290
293
|
end
|
291
294
|
|
@@ -299,8 +302,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
299
302
|
#
|
300
303
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
301
304
|
#
|
302
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
303
|
-
list_next_async(next_page_link, custom_headers).value!
|
305
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
306
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
304
307
|
end
|
305
308
|
|
306
309
|
#
|
@@ -313,11 +316,12 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
313
316
|
#
|
314
317
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
315
318
|
#
|
316
|
-
def list_next_async(next_page_link, custom_headers
|
319
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
317
320
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
318
321
|
|
319
322
|
|
320
323
|
request_headers = {}
|
324
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
321
325
|
|
322
326
|
# Set Headers
|
323
327
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -370,12 +374,12 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
370
374
|
# @return [SubscriptionListResult] which provide lazy access to pages of the
|
371
375
|
# response.
|
372
376
|
#
|
373
|
-
def list_as_lazy(custom_headers
|
374
|
-
response = list_async(custom_headers).value!
|
377
|
+
def list_as_lazy(custom_headers:nil)
|
378
|
+
response = list_async(custom_headers:custom_headers).value!
|
375
379
|
unless response.nil?
|
376
380
|
page = response.body
|
377
381
|
page.next_method = Proc.new do |next_page_link|
|
378
|
-
list_next_async(next_page_link, custom_headers)
|
382
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
379
383
|
end
|
380
384
|
page
|
381
385
|
end
|
@@ -29,8 +29,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
29
29
|
#
|
30
30
|
# @return [Array<TenantIdDescription>] operation results.
|
31
31
|
#
|
32
|
-
def list(custom_headers
|
33
|
-
first_page = list_as_lazy(custom_headers)
|
32
|
+
def list(custom_headers:nil)
|
33
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
34
34
|
first_page.get_all_items
|
35
35
|
end
|
36
36
|
|
@@ -42,8 +42,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
42
42
|
#
|
43
43
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
44
44
|
#
|
45
|
-
def list_with_http_info(custom_headers
|
46
|
-
list_async(custom_headers).value!
|
45
|
+
def list_with_http_info(custom_headers:nil)
|
46
|
+
list_async(custom_headers:custom_headers).value!
|
47
47
|
end
|
48
48
|
|
49
49
|
#
|
@@ -54,11 +54,12 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
54
54
|
#
|
55
55
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
56
56
|
#
|
57
|
-
def list_async(custom_headers
|
57
|
+
def list_async(custom_headers:nil)
|
58
58
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
59
59
|
|
60
60
|
|
61
61
|
request_headers = {}
|
62
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
62
63
|
|
63
64
|
# Set Headers
|
64
65
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -112,8 +113,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
112
113
|
#
|
113
114
|
# @return [TenantListResult] operation results.
|
114
115
|
#
|
115
|
-
def list_next(next_page_link, custom_headers
|
116
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
116
|
+
def list_next(next_page_link, custom_headers:nil)
|
117
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
117
118
|
response.body unless response.nil?
|
118
119
|
end
|
119
120
|
|
@@ -127,8 +128,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
127
128
|
#
|
128
129
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
129
130
|
#
|
130
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
131
|
-
list_next_async(next_page_link, custom_headers).value!
|
131
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
132
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
132
133
|
end
|
133
134
|
|
134
135
|
#
|
@@ -141,11 +142,12 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
141
142
|
#
|
142
143
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
143
144
|
#
|
144
|
-
def list_next_async(next_page_link, custom_headers
|
145
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
145
146
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
146
147
|
|
147
148
|
|
148
149
|
request_headers = {}
|
150
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
149
151
|
|
150
152
|
# Set Headers
|
151
153
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -198,12 +200,12 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
|
|
198
200
|
# @return [TenantListResult] which provide lazy access to pages of the
|
199
201
|
# response.
|
200
202
|
#
|
201
|
-
def list_as_lazy(custom_headers
|
202
|
-
response = list_async(custom_headers).value!
|
203
|
+
def list_as_lazy(custom_headers:nil)
|
204
|
+
response = list_async(custom_headers:custom_headers).value!
|
203
205
|
unless response.nil?
|
204
206
|
page = response.body
|
205
207
|
page.next_method = Proc.new do |next_page_link|
|
206
|
-
list_next_async(next_page_link, custom_headers)
|
208
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
207
209
|
end
|
208
210
|
page
|
209
211
|
end
|
@@ -105,6 +105,9 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
105
105
|
fail ArgumentError, 'path is nil' if path.nil?
|
106
106
|
|
107
107
|
request_url = options[:base_url] || @base_url
|
108
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
109
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
110
|
+
end
|
108
111
|
|
109
112
|
request_headers = @request_headers
|
110
113
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -121,7 +124,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
121
124
|
#
|
122
125
|
def add_telemetry
|
123
126
|
sdk_information = 'azure_mgmt_subscriptions'
|
124
|
-
sdk_information = "#{sdk_information}/0.
|
127
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
125
128
|
add_user_agent_information(sdk_information)
|
126
129
|
end
|
127
130
|
end
|
@@ -36,8 +36,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
36
36
|
#
|
37
37
|
# @return [LocationListResult] operation results.
|
38
38
|
#
|
39
|
-
def list_locations(subscription_id, custom_headers
|
40
|
-
response = list_locations_async(subscription_id, custom_headers).value!
|
39
|
+
def list_locations(subscription_id, custom_headers:nil)
|
40
|
+
response = list_locations_async(subscription_id, custom_headers:custom_headers).value!
|
41
41
|
response.body unless response.nil?
|
42
42
|
end
|
43
43
|
|
@@ -53,8 +53,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
53
53
|
#
|
54
54
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
55
55
|
#
|
56
|
-
def list_locations_with_http_info(subscription_id, custom_headers
|
57
|
-
list_locations_async(subscription_id, custom_headers).value!
|
56
|
+
def list_locations_with_http_info(subscription_id, custom_headers:nil)
|
57
|
+
list_locations_async(subscription_id, custom_headers:custom_headers).value!
|
58
58
|
end
|
59
59
|
|
60
60
|
#
|
@@ -69,12 +69,13 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
69
69
|
#
|
70
70
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
71
|
#
|
72
|
-
def list_locations_async(subscription_id, custom_headers
|
72
|
+
def list_locations_async(subscription_id, custom_headers:nil)
|
73
73
|
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
74
74
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
75
75
|
|
76
76
|
|
77
77
|
request_headers = {}
|
78
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
78
79
|
|
79
80
|
# Set Headers
|
80
81
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -128,8 +129,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
128
129
|
#
|
129
130
|
# @return [Subscription] operation results.
|
130
131
|
#
|
131
|
-
def get(subscription_id, custom_headers
|
132
|
-
response = get_async(subscription_id, custom_headers).value!
|
132
|
+
def get(subscription_id, custom_headers:nil)
|
133
|
+
response = get_async(subscription_id, custom_headers:custom_headers).value!
|
133
134
|
response.body unless response.nil?
|
134
135
|
end
|
135
136
|
|
@@ -142,8 +143,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
142
143
|
#
|
143
144
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
144
145
|
#
|
145
|
-
def get_with_http_info(subscription_id, custom_headers
|
146
|
-
get_async(subscription_id, custom_headers).value!
|
146
|
+
def get_with_http_info(subscription_id, custom_headers:nil)
|
147
|
+
get_async(subscription_id, custom_headers:custom_headers).value!
|
147
148
|
end
|
148
149
|
|
149
150
|
#
|
@@ -155,12 +156,13 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
155
156
|
#
|
156
157
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
157
158
|
#
|
158
|
-
def get_async(subscription_id, custom_headers
|
159
|
+
def get_async(subscription_id, custom_headers:nil)
|
159
160
|
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
160
161
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
161
162
|
|
162
163
|
|
163
164
|
request_headers = {}
|
165
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
164
166
|
|
165
167
|
# Set Headers
|
166
168
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -213,8 +215,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
213
215
|
#
|
214
216
|
# @return [Array<Subscription>] operation results.
|
215
217
|
#
|
216
|
-
def list(custom_headers
|
217
|
-
first_page = list_as_lazy(custom_headers)
|
218
|
+
def list(custom_headers:nil)
|
219
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
218
220
|
first_page.get_all_items
|
219
221
|
end
|
220
222
|
|
@@ -226,8 +228,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
226
228
|
#
|
227
229
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
228
230
|
#
|
229
|
-
def list_with_http_info(custom_headers
|
230
|
-
list_async(custom_headers).value!
|
231
|
+
def list_with_http_info(custom_headers:nil)
|
232
|
+
list_async(custom_headers:custom_headers).value!
|
231
233
|
end
|
232
234
|
|
233
235
|
#
|
@@ -238,11 +240,12 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
238
240
|
#
|
239
241
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
240
242
|
#
|
241
|
-
def list_async(custom_headers
|
243
|
+
def list_async(custom_headers:nil)
|
242
244
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
243
245
|
|
244
246
|
|
245
247
|
request_headers = {}
|
248
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
246
249
|
|
247
250
|
# Set Headers
|
248
251
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -296,8 +299,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
296
299
|
#
|
297
300
|
# @return [SubscriptionListResult] operation results.
|
298
301
|
#
|
299
|
-
def list_next(next_page_link, custom_headers
|
300
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
302
|
+
def list_next(next_page_link, custom_headers:nil)
|
303
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
301
304
|
response.body unless response.nil?
|
302
305
|
end
|
303
306
|
|
@@ -311,8 +314,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
311
314
|
#
|
312
315
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
313
316
|
#
|
314
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
315
|
-
list_next_async(next_page_link, custom_headers).value!
|
317
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
318
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
316
319
|
end
|
317
320
|
|
318
321
|
#
|
@@ -325,11 +328,12 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
325
328
|
#
|
326
329
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
327
330
|
#
|
328
|
-
def list_next_async(next_page_link, custom_headers
|
331
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
329
332
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
330
333
|
|
331
334
|
|
332
335
|
request_headers = {}
|
336
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
333
337
|
|
334
338
|
# Set Headers
|
335
339
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -382,12 +386,12 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
382
386
|
# @return [SubscriptionListResult] which provide lazy access to pages of the
|
383
387
|
# response.
|
384
388
|
#
|
385
|
-
def list_as_lazy(custom_headers
|
386
|
-
response = list_async(custom_headers).value!
|
389
|
+
def list_as_lazy(custom_headers:nil)
|
390
|
+
response = list_async(custom_headers:custom_headers).value!
|
387
391
|
unless response.nil?
|
388
392
|
page = response.body
|
389
393
|
page.next_method = Proc.new do |next_page_link|
|
390
|
-
list_next_async(next_page_link, custom_headers)
|
394
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
391
395
|
end
|
392
396
|
page
|
393
397
|
end
|
@@ -32,8 +32,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
32
32
|
#
|
33
33
|
# @return [Array<TenantIdDescription>] operation results.
|
34
34
|
#
|
35
|
-
def list(custom_headers
|
36
|
-
first_page = list_as_lazy(custom_headers)
|
35
|
+
def list(custom_headers:nil)
|
36
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
37
37
|
first_page.get_all_items
|
38
38
|
end
|
39
39
|
|
@@ -45,8 +45,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
45
45
|
#
|
46
46
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
47
47
|
#
|
48
|
-
def list_with_http_info(custom_headers
|
49
|
-
list_async(custom_headers).value!
|
48
|
+
def list_with_http_info(custom_headers:nil)
|
49
|
+
list_async(custom_headers:custom_headers).value!
|
50
50
|
end
|
51
51
|
|
52
52
|
#
|
@@ -57,11 +57,12 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
57
57
|
#
|
58
58
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
59
59
|
#
|
60
|
-
def list_async(custom_headers
|
60
|
+
def list_async(custom_headers:nil)
|
61
61
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
62
62
|
|
63
63
|
|
64
64
|
request_headers = {}
|
65
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
65
66
|
|
66
67
|
# Set Headers
|
67
68
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -115,8 +116,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
115
116
|
#
|
116
117
|
# @return [TenantListResult] operation results.
|
117
118
|
#
|
118
|
-
def list_next(next_page_link, custom_headers
|
119
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
119
|
+
def list_next(next_page_link, custom_headers:nil)
|
120
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
120
121
|
response.body unless response.nil?
|
121
122
|
end
|
122
123
|
|
@@ -130,8 +131,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
130
131
|
#
|
131
132
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
132
133
|
#
|
133
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
134
|
-
list_next_async(next_page_link, custom_headers).value!
|
134
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
135
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
135
136
|
end
|
136
137
|
|
137
138
|
#
|
@@ -144,11 +145,12 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
144
145
|
#
|
145
146
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
146
147
|
#
|
147
|
-
def list_next_async(next_page_link, custom_headers
|
148
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
148
149
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
149
150
|
|
150
151
|
|
151
152
|
request_headers = {}
|
153
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
152
154
|
|
153
155
|
# Set Headers
|
154
156
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -201,12 +203,12 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
|
|
201
203
|
# @return [TenantListResult] which provide lazy access to pages of the
|
202
204
|
# response.
|
203
205
|
#
|
204
|
-
def list_as_lazy(custom_headers
|
205
|
-
response = list_async(custom_headers).value!
|
206
|
+
def list_as_lazy(custom_headers:nil)
|
207
|
+
response = list_async(custom_headers:custom_headers).value!
|
206
208
|
unless response.nil?
|
207
209
|
page = response.body
|
208
210
|
page.next_method = Proc.new do |next_page_link|
|
209
|
-
list_next_async(next_page_link, custom_headers)
|
211
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
210
212
|
end
|
211
213
|
page
|
212
214
|
end
|
@@ -4,7 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'azure_mgmt_subscriptions'
|
6
6
|
|
7
|
-
module Azure::Subscriptions::Profiles::Latest
|
7
|
+
module Azure::Subscriptions::Profiles::Latest
|
8
|
+
module Mgmt
|
8
9
|
Subscriptions = Azure::Subscriptions::Mgmt::V2016_06_01::Subscriptions
|
9
10
|
Tenants = Azure::Subscriptions::Mgmt::V2016_06_01::Tenants
|
10
11
|
|
@@ -21,9 +22,9 @@ module Azure::Subscriptions::Profiles::Latest::Mgmt
|
|
21
22
|
end
|
22
23
|
|
23
24
|
#
|
24
|
-
#
|
25
|
+
# SubscriptionsManagementClass
|
25
26
|
#
|
26
|
-
class
|
27
|
+
class SubscriptionsManagementClass
|
27
28
|
attr_reader :subscriptions, :tenants, :configurable, :base_url, :options, :model_classes
|
28
29
|
|
29
30
|
def initialize(options = {})
|
@@ -35,46 +36,64 @@ module Azure::Subscriptions::Profiles::Latest::Mgmt
|
|
35
36
|
|
36
37
|
reset!(options)
|
37
38
|
|
38
|
-
@configurable
|
39
|
+
@configurable = self
|
40
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
41
|
+
@options = options[:options].nil? ? nil:options[:options]
|
39
42
|
|
40
|
-
client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options)
|
41
|
-
if(client_0.respond_to?(:subscription_id))
|
42
|
-
client_0.subscription_id = configurable.subscription_id
|
43
|
+
@client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options)
|
44
|
+
if(@client_0.respond_to?(:subscription_id))
|
45
|
+
@client_0.subscription_id = configurable.subscription_id
|
43
46
|
end
|
44
|
-
@
|
45
|
-
@
|
47
|
+
add_telemetry(@client_0)
|
48
|
+
@subscriptions = @client_0.subscriptions
|
49
|
+
@tenants = @client_0.tenants
|
46
50
|
|
47
51
|
@model_classes = ModelClasses.new
|
48
52
|
end
|
49
53
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
def tenant_id_description
|
61
|
-
Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription
|
62
|
-
end
|
63
|
-
def location
|
64
|
-
Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location
|
65
|
-
end
|
66
|
-
def tenant_list_result
|
67
|
-
Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult
|
68
|
-
end
|
69
|
-
def subscription_policies
|
70
|
-
Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies
|
71
|
-
end
|
72
|
-
def subscription_state
|
73
|
-
Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState
|
74
|
-
end
|
75
|
-
def spending_limit
|
76
|
-
Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit
|
54
|
+
def add_telemetry(client)
|
55
|
+
profile_information = 'Profiles/Latest/Subscriptions/Mgmt'
|
56
|
+
client.add_user_agent_information(profile_information)
|
57
|
+
end
|
58
|
+
|
59
|
+
def method_missing(method, *args)
|
60
|
+
if @client_0.respond_to?method
|
61
|
+
@client_0.send(method, *args)
|
62
|
+
else
|
63
|
+
super
|
77
64
|
end
|
78
65
|
end
|
66
|
+
|
67
|
+
end
|
68
|
+
|
69
|
+
class ModelClasses
|
70
|
+
def subscription
|
71
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription
|
72
|
+
end
|
73
|
+
def subscription_list_result
|
74
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult
|
75
|
+
end
|
76
|
+
def location_list_result
|
77
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult
|
78
|
+
end
|
79
|
+
def tenant_id_description
|
80
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription
|
81
|
+
end
|
82
|
+
def location
|
83
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location
|
84
|
+
end
|
85
|
+
def tenant_list_result
|
86
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult
|
87
|
+
end
|
88
|
+
def subscription_policies
|
89
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies
|
90
|
+
end
|
91
|
+
def subscription_state
|
92
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState
|
93
|
+
end
|
94
|
+
def spending_limit
|
95
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit
|
96
|
+
end
|
79
97
|
end
|
98
|
+
end
|
80
99
|
end
|
@@ -5,17 +5,36 @@
|
|
5
5
|
require 'profiles/latest/subscriptions_module_definition'
|
6
6
|
require 'profiles/latest/modules/subscriptions_profile_module'
|
7
7
|
|
8
|
-
module Azure::Subscriptions::Profiles::Latest
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
module Azure::Subscriptions::Profiles::Latest
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the Latest profile SDK.
|
12
|
+
#
|
13
|
+
class Client < SubscriptionsManagementClass
|
14
|
+
include MsRestAzure::Common::Configurable
|
14
15
|
|
16
|
+
#
|
17
|
+
# Initializes a new instance of the Client class.
|
18
|
+
# @param options [Hash] hash of client options.
|
19
|
+
# options = {
|
20
|
+
# tenant_id: 'YOUR TENANT ID',
|
21
|
+
# client_id: 'YOUR CLIENT ID',
|
22
|
+
# client_secret: 'YOUR CLIENT SECRET',
|
23
|
+
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
24
|
+
# credentials: credentials,
|
25
|
+
# active_directory_settings: active_directory_settings,
|
26
|
+
# base_url: 'YOUR BASE URL',
|
27
|
+
# options: options
|
28
|
+
# }
|
29
|
+
# 'credentials' are optional and if not passed in the hash, will be obtained
|
30
|
+
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
31
|
+
#
|
32
|
+
# Also, base_url, active_directory_settings & options are optional.
|
33
|
+
#
|
34
|
+
def initialize(options = {})
|
35
|
+
super(options)
|
36
|
+
end
|
15
37
|
|
16
|
-
def initialize(options = {})
|
17
|
-
super(options)
|
18
38
|
end
|
19
|
-
|
20
39
|
end
|
21
40
|
end
|
@@ -4,7 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'azure_mgmt_subscriptions'
|
6
6
|
|
7
|
-
module Azure::Subscriptions::Profiles::V2017_03_09
|
7
|
+
module Azure::Subscriptions::Profiles::V2017_03_09
|
8
|
+
module Mgmt
|
8
9
|
Subscriptions = Azure::Subscriptions::Mgmt::V2016_06_01::Subscriptions
|
9
10
|
Tenants = Azure::Subscriptions::Mgmt::V2016_06_01::Tenants
|
10
11
|
|
@@ -21,9 +22,9 @@ module Azure::Subscriptions::Profiles::V2017_03_09::Mgmt
|
|
21
22
|
end
|
22
23
|
|
23
24
|
#
|
24
|
-
#
|
25
|
+
# SubscriptionsManagementClass
|
25
26
|
#
|
26
|
-
class
|
27
|
+
class SubscriptionsManagementClass
|
27
28
|
attr_reader :subscriptions, :tenants, :configurable, :base_url, :options, :model_classes
|
28
29
|
|
29
30
|
def initialize(options = {})
|
@@ -35,46 +36,64 @@ module Azure::Subscriptions::Profiles::V2017_03_09::Mgmt
|
|
35
36
|
|
36
37
|
reset!(options)
|
37
38
|
|
38
|
-
@configurable
|
39
|
+
@configurable = self
|
40
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
41
|
+
@options = options[:options].nil? ? nil:options[:options]
|
39
42
|
|
40
|
-
client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options)
|
41
|
-
if(client_0.respond_to?(:subscription_id))
|
42
|
-
client_0.subscription_id = configurable.subscription_id
|
43
|
+
@client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options)
|
44
|
+
if(@client_0.respond_to?(:subscription_id))
|
45
|
+
@client_0.subscription_id = configurable.subscription_id
|
43
46
|
end
|
44
|
-
@
|
45
|
-
@
|
47
|
+
add_telemetry(@client_0)
|
48
|
+
@subscriptions = @client_0.subscriptions
|
49
|
+
@tenants = @client_0.tenants
|
46
50
|
|
47
51
|
@model_classes = ModelClasses.new
|
48
52
|
end
|
49
53
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
def tenant_id_description
|
61
|
-
Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription
|
62
|
-
end
|
63
|
-
def location
|
64
|
-
Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location
|
65
|
-
end
|
66
|
-
def tenant_list_result
|
67
|
-
Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult
|
68
|
-
end
|
69
|
-
def subscription_policies
|
70
|
-
Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies
|
71
|
-
end
|
72
|
-
def subscription_state
|
73
|
-
Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState
|
74
|
-
end
|
75
|
-
def spending_limit
|
76
|
-
Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit
|
54
|
+
def add_telemetry(client)
|
55
|
+
profile_information = 'Profiles/V2017_03_09/Subscriptions/Mgmt'
|
56
|
+
client.add_user_agent_information(profile_information)
|
57
|
+
end
|
58
|
+
|
59
|
+
def method_missing(method, *args)
|
60
|
+
if @client_0.respond_to?method
|
61
|
+
@client_0.send(method, *args)
|
62
|
+
else
|
63
|
+
super
|
77
64
|
end
|
78
65
|
end
|
66
|
+
|
67
|
+
end
|
68
|
+
|
69
|
+
class ModelClasses
|
70
|
+
def subscription
|
71
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription
|
72
|
+
end
|
73
|
+
def subscription_list_result
|
74
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult
|
75
|
+
end
|
76
|
+
def location_list_result
|
77
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult
|
78
|
+
end
|
79
|
+
def tenant_id_description
|
80
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription
|
81
|
+
end
|
82
|
+
def location
|
83
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location
|
84
|
+
end
|
85
|
+
def tenant_list_result
|
86
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult
|
87
|
+
end
|
88
|
+
def subscription_policies
|
89
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies
|
90
|
+
end
|
91
|
+
def subscription_state
|
92
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState
|
93
|
+
end
|
94
|
+
def spending_limit
|
95
|
+
Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit
|
96
|
+
end
|
79
97
|
end
|
98
|
+
end
|
80
99
|
end
|
@@ -5,17 +5,36 @@
|
|
5
5
|
require 'profiles/v2017_03_09/subscriptions_module_definition'
|
6
6
|
require 'profiles/v2017_03_09/modules/subscriptions_profile_module'
|
7
7
|
|
8
|
-
module Azure::Subscriptions::Profiles::V2017_03_09
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
module Azure::Subscriptions::Profiles::V2017_03_09
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the V2017_03_09 profile SDK.
|
12
|
+
#
|
13
|
+
class Client < SubscriptionsManagementClass
|
14
|
+
include MsRestAzure::Common::Configurable
|
14
15
|
|
16
|
+
#
|
17
|
+
# Initializes a new instance of the Client class.
|
18
|
+
# @param options [Hash] hash of client options.
|
19
|
+
# options = {
|
20
|
+
# tenant_id: 'YOUR TENANT ID',
|
21
|
+
# client_id: 'YOUR CLIENT ID',
|
22
|
+
# client_secret: 'YOUR CLIENT SECRET',
|
23
|
+
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
24
|
+
# credentials: credentials,
|
25
|
+
# active_directory_settings: active_directory_settings,
|
26
|
+
# base_url: 'YOUR BASE URL',
|
27
|
+
# options: options
|
28
|
+
# }
|
29
|
+
# 'credentials' are optional and if not passed in the hash, will be obtained
|
30
|
+
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
31
|
+
#
|
32
|
+
# Also, base_url, active_directory_settings & options are optional.
|
33
|
+
#
|
34
|
+
def initialize(options = {})
|
35
|
+
super(options)
|
36
|
+
end
|
15
37
|
|
16
|
-
def initialize(options = {})
|
17
|
-
super(options)
|
18
38
|
end
|
19
|
-
|
20
39
|
end
|
21
40
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_subscriptions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
147
|
version: '0'
|
148
148
|
requirements: []
|
149
149
|
rubyforge_project:
|
150
|
-
rubygems_version: 2.
|
150
|
+
rubygems_version: 2.6.10
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
153
|
summary: Official ruby client library to consume Microsoft Azure Subscription Management
|