azure_mgmt_subscriptions 0.17.3 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-06-01/generated/azure_mgmt_subscriptions/operations.rb +4 -0
  3. data/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -1
  4. data/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscriptions.rb +8 -0
  5. data/lib/2016-06-01/generated/azure_mgmt_subscriptions/tenants.rb +4 -0
  6. data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/subscription_definitions.rb +10 -0
  7. data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/subscription_definitions_client.rb +1 -1
  8. data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/subscription_definitions_operation_metadata.rb +4 -0
  9. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions.rb +3 -7
  10. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/ad_principal.rb +2 -1
  11. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_result.rb +2 -1
  12. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -5
  13. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_factory.rb +2 -0
  14. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_operations.rb +2 -0
  15. data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions.rb +38 -0
  16. data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/ad_principal.rb +47 -0
  17. data/lib/{2015-11-01/generated/azure_mgmt_subscriptions/models/tenant_id_description.rb → 2018-11-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb} +14 -14
  18. data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/modern_subscription_creation_parameters.rb +129 -0
  19. data/lib/{2018-03-01-preview → 2018-11-01-preview}/generated/azure_mgmt_subscriptions/models/operation.rb +1 -1
  20. data/lib/{2018-03-01-preview → 2018-11-01-preview}/generated/azure_mgmt_subscriptions/models/operation_display.rb +1 -1
  21. data/lib/{2018-03-01-preview → 2018-11-01-preview}/generated/azure_mgmt_subscriptions/models/operation_list_result.rb +1 -1
  22. data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_result.rb +47 -0
  23. data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation.rb +69 -0
  24. data/lib/{2015-11-01/generated/azure_mgmt_subscriptions/models/location_list_result.rb → 2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation_list_result.rb} +10 -9
  25. data/lib/{2015-11-01 → 2018-11-01-preview}/generated/azure_mgmt_subscriptions/module_definition.rb +1 -1
  26. data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb +134 -0
  27. data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_factory.rb +189 -0
  28. data/lib/{2018-03-01-preview/generated/azure_mgmt_subscriptions/operations.rb → 2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_operation_operations.rb} +26 -16
  29. data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions.rb +35 -0
  30. data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/canceled_subscription_id.rb +47 -0
  31. data/lib/{2015-11-01/generated/azure_mgmt_subscriptions/models/subscription_policies.rb → 2019-03-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb} +14 -14
  32. data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation.rb +58 -0
  33. data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_display.rb +69 -0
  34. data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_list_result.rb +68 -0
  35. data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/renamed_subscription_id.rb +47 -0
  36. data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_name.rb +46 -0
  37. data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/module_definition.rb +9 -0
  38. data/lib/{2015-11-01 → 2019-03-01-preview}/generated/azure_mgmt_subscriptions/subscription_client.rb +5 -8
  39. data/lib/{2015-11-01/generated/azure_mgmt_subscriptions/tenants.rb → 2019-03-01-preview/generated/azure_mgmt_subscriptions/subscriptions.rb} +59 -59
  40. data/lib/azure_mgmt_subscriptions.rb +4 -3
  41. data/lib/profiles/latest/modules/subscriptions_profile_module.rb +110 -16
  42. data/lib/version.rb +1 -1
  43. metadata +30 -21
  44. data/lib/2015-11-01/generated/azure_mgmt_subscriptions.rb +0 -36
  45. data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/location.rb +0 -102
  46. data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/subscription.rb +0 -92
  47. data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/subscription_list_result.rb +0 -98
  48. data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/tenant_list_result.rb +0 -98
  49. data/lib/2015-11-01/generated/azure_mgmt_subscriptions/subscriptions.rb +0 -389
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e6fb58afc823f2acf5cb564ddc8311c1f6fe8ed5b140e0c778f94d11d2e244a
4
- data.tar.gz: 47d791d3722a559f56b887497d5724610c3a158caca7fd4b5a68042fc56fba42
3
+ metadata.gz: fc17b2a3181bf78d429db4783ba771992ace991209a2d6f60b6b42905cfc276d
4
+ data.tar.gz: 97822137d94f08754972e300433c367b63fff759ddb8cbfaaf3456c568e96de2
5
5
  SHA512:
6
- metadata.gz: 10f64c9587c62ec6857bb747ff55e9a2c3b7b00bc32fb21a1f8ffb4437e3bdb3b98bd27c9fa2a86bd6f814138f78d03812c045eb3c1dd9dc96925ca10dcf8bcd
7
- data.tar.gz: bf49af3c61b8996986a59e6bf345e9bdbd89e7ee2bf3fb51dc7c2bacf4564d33784521e47b17086045bb167d420845415915e86be7da2db92bea1fc89616f9f9
6
+ metadata.gz: af430c200e38f0d33ec0920c600aaad08005c4c5ffdb5d5692a2a374400bf068788cac93ba13e1983a915e5b88762a07103dddc4b49f010d40c9483942f64ae8
7
+ data.tar.gz: d7cc1b079b21721fe27adbf0adf6d9c77558f14e50a603d4f5add7284470aa79f6e9e8c89ada73bb143107343b3cb9b8994f2ad884af27064c1accb9dabf2ac0
@@ -89,6 +89,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
89
89
  end
90
90
 
91
91
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
92
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
93
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
92
94
  # Deserialize Response
93
95
  if status_code == 200
94
96
  begin
@@ -177,6 +179,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
177
179
  end
178
180
 
179
181
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
182
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
183
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
180
184
  # Deserialize Response
181
185
  if status_code == 200
182
186
  begin
@@ -129,7 +129,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
129
129
  #
130
130
  def add_telemetry
131
131
  sdk_information = 'azure_mgmt_subscriptions'
132
- sdk_information = "#{sdk_information}/0.17.3"
132
+ sdk_information = "#{sdk_information}/0.18.0"
133
133
  add_user_agent_information(sdk_information)
134
134
  end
135
135
  end
@@ -103,6 +103,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
103
103
  end
104
104
 
105
105
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
106
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
107
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
106
108
  # Deserialize Response
107
109
  if status_code == 200
108
110
  begin
@@ -190,6 +192,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
190
192
  end
191
193
 
192
194
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
195
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
196
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
193
197
  # Deserialize Response
194
198
  if status_code == 200
195
199
  begin
@@ -272,6 +276,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
272
276
  end
273
277
 
274
278
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
279
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
280
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
275
281
  # Deserialize Response
276
282
  if status_code == 200
277
283
  begin
@@ -360,6 +366,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
360
366
  end
361
367
 
362
368
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
369
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
370
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
363
371
  # Deserialize Response
364
372
  if status_code == 200
365
373
  begin
@@ -89,6 +89,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
89
89
  end
90
90
 
91
91
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
92
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
93
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
92
94
  # Deserialize Response
93
95
  if status_code == 200
94
96
  begin
@@ -177,6 +179,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
177
179
  end
178
180
 
179
181
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
182
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
183
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
180
184
  # Deserialize Response
181
185
  if status_code == 200
182
186
  begin
@@ -139,6 +139,8 @@ module Azure::Subscriptions::Mgmt::V2017_11_01_preview
139
139
  end
140
140
 
141
141
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
142
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
143
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
142
144
  # Deserialize Response
143
145
  if status_code == 200
144
146
  begin
@@ -221,6 +223,8 @@ module Azure::Subscriptions::Mgmt::V2017_11_01_preview
221
223
  end
222
224
 
223
225
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
226
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
227
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
224
228
  # Deserialize Response
225
229
  if status_code == 200
226
230
  begin
@@ -314,6 +318,8 @@ module Azure::Subscriptions::Mgmt::V2017_11_01_preview
314
318
  end
315
319
 
316
320
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
321
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
322
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
317
323
  # Deserialize Response
318
324
  if status_code == 200
319
325
  begin
@@ -415,6 +421,8 @@ module Azure::Subscriptions::Mgmt::V2017_11_01_preview
415
421
  end
416
422
 
417
423
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
424
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
425
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
418
426
  # Deserialize Response
419
427
  if status_code == 200
420
428
  begin
@@ -503,6 +511,8 @@ module Azure::Subscriptions::Mgmt::V2017_11_01_preview
503
511
  end
504
512
 
505
513
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
514
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
515
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
506
516
  # Deserialize Response
507
517
  if status_code == 200
508
518
  begin
@@ -127,7 +127,7 @@ module Azure::Subscriptions::Mgmt::V2017_11_01_preview
127
127
  #
128
128
  def add_telemetry
129
129
  sdk_information = 'azure_mgmt_subscriptions'
130
- sdk_information = "#{sdk_information}/0.17.3"
130
+ sdk_information = "#{sdk_information}/0.18.0"
131
131
  add_user_agent_information(sdk_information)
132
132
  end
133
133
  end
@@ -87,6 +87,8 @@ module Azure::Subscriptions::Mgmt::V2017_11_01_preview
87
87
  end
88
88
 
89
89
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
90
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
91
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
90
92
  # Deserialize Response
91
93
  if status_code == 200
92
94
  begin
@@ -175,6 +177,8 @@ module Azure::Subscriptions::Mgmt::V2017_11_01_preview
175
177
  end
176
178
 
177
179
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
180
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
181
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
178
182
  # Deserialize Response
179
183
  if status_code == 200
180
184
  begin
@@ -20,21 +20,17 @@ require '2018-03-01-preview/generated/azure_mgmt_subscriptions/module_definition
20
20
  require 'ms_rest_azure'
21
21
 
22
22
  module Azure::Subscriptions::Mgmt::V2018_03_01_preview
23
- autoload :Operations, '2018-03-01-preview/generated/azure_mgmt_subscriptions/operations.rb'
24
23
  autoload :SubscriptionOperations, '2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_operations.rb'
25
24
  autoload :SubscriptionFactory, '2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_factory.rb'
26
25
  autoload :SubscriptionClient, '2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb'
27
26
 
28
27
  module Models
28
+ autoload :ErrorResponse, '2018-03-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb'
29
+ autoload :SubscriptionCreationResult, '2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_result.rb'
29
30
  autoload :SubscriptionOperation, '2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation.rb'
31
+ autoload :SubscriptionCreationParameters, '2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_parameters.rb'
30
32
  autoload :SubscriptionOperationListResult, '2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation_list_result.rb'
31
33
  autoload :AdPrincipal, '2018-03-01-preview/generated/azure_mgmt_subscriptions/models/ad_principal.rb'
32
- autoload :OperationDisplay, '2018-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_display.rb'
33
- autoload :ErrorResponse, '2018-03-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb'
34
- autoload :Operation, '2018-03-01-preview/generated/azure_mgmt_subscriptions/models/operation.rb'
35
- autoload :SubscriptionCreationParameters, '2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_parameters.rb'
36
- autoload :OperationListResult, '2018-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_list_result.rb'
37
- autoload :SubscriptionCreationResult, '2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_result.rb'
38
34
  autoload :OfferType, '2018-03-01-preview/generated/azure_mgmt_subscriptions/models/offer_type.rb'
39
35
  end
40
36
  end
@@ -6,7 +6,8 @@
6
6
  module Azure::Subscriptions::Mgmt::V2018_03_01_preview
7
7
  module Models
8
8
  #
9
- # Active Directory Principal for subscription creation delegated permission
9
+ # Active Directory Principal who’ll get owner access on the new
10
+ # subscription.
10
11
  #
11
12
  class AdPrincipal
12
13
 
@@ -12,7 +12,8 @@ module Azure::Subscriptions::Mgmt::V2018_03_01_preview
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] The link to the new subscription.
15
+ # @return [String] The link to the new subscription. Use this link to
16
+ # check the status of subscription creation operation.
16
17
  attr_accessor :subscription_link
17
18
 
18
19
 
@@ -33,9 +33,6 @@ module Azure::Subscriptions::Mgmt::V2018_03_01_preview
33
33
  # generated and included in each request. Default is true.
34
34
  attr_accessor :generate_client_request_id
35
35
 
36
- # @return [Operations] operations
37
- attr_reader :operations
38
-
39
36
  # @return [SubscriptionOperations] subscription_operations
40
37
  attr_reader :subscription_operations
41
38
 
@@ -55,7 +52,6 @@ module Azure::Subscriptions::Mgmt::V2018_03_01_preview
55
52
  fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
56
53
  @credentials = credentials
57
54
 
58
- @operations = Operations.new(self)
59
55
  @subscription_operations = SubscriptionOperations.new(self)
60
56
  @subscription_factory = SubscriptionFactory.new(self)
61
57
  @api_version = '2018-03-01-preview'
@@ -130,7 +126,7 @@ module Azure::Subscriptions::Mgmt::V2018_03_01_preview
130
126
  #
131
127
  def add_telemetry
132
128
  sdk_information = 'azure_mgmt_subscriptions'
133
- sdk_information = "#{sdk_information}/0.17.3"
129
+ sdk_information = "#{sdk_information}/0.18.0"
134
130
  add_user_agent_information(sdk_information)
135
131
  end
136
132
  end
@@ -155,6 +155,8 @@ module Azure::Subscriptions::Mgmt::V2018_03_01_preview
155
155
  end
156
156
 
157
157
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
158
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
159
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
158
160
  # Deserialize Response
159
161
  if status_code == 200
160
162
  begin
@@ -87,6 +87,8 @@ module Azure::Subscriptions::Mgmt::V2018_03_01_preview
87
87
  end
88
88
 
89
89
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
90
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
91
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
90
92
  # Deserialize Response
91
93
  if status_code == 200
92
94
  begin
@@ -0,0 +1,38 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2018-11-01-preview/generated/azure_mgmt_subscriptions/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::Subscriptions::Mgmt::V2018_11_01_preview
23
+ autoload :SubscriptionOperationOperations, '2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_operation_operations.rb'
24
+ autoload :SubscriptionFactory, '2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_factory.rb'
25
+ autoload :SubscriptionClient, '2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb'
26
+
27
+ module Models
28
+ autoload :SubscriptionOperation, '2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation.rb'
29
+ autoload :SubscriptionOperationListResult, '2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation_list_result.rb'
30
+ autoload :AdPrincipal, '2018-11-01-preview/generated/azure_mgmt_subscriptions/models/ad_principal.rb'
31
+ autoload :OperationDisplay, '2018-11-01-preview/generated/azure_mgmt_subscriptions/models/operation_display.rb'
32
+ autoload :ErrorResponse, '2018-11-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb'
33
+ autoload :Operation, '2018-11-01-preview/generated/azure_mgmt_subscriptions/models/operation.rb'
34
+ autoload :ModernSubscriptionCreationParameters, '2018-11-01-preview/generated/azure_mgmt_subscriptions/models/modern_subscription_creation_parameters.rb'
35
+ autoload :OperationListResult, '2018-11-01-preview/generated/azure_mgmt_subscriptions/models/operation_list_result.rb'
36
+ autoload :SubscriptionCreationResult, '2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_result.rb'
37
+ end
38
+ end
@@ -0,0 +1,47 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Subscriptions::Mgmt::V2018_11_01_preview
7
+ module Models
8
+ #
9
+ # Active Directory Principal who’ll get owner access on the new
10
+ # subscription.
11
+ #
12
+ class AdPrincipal
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Object id of the Principal
17
+ attr_accessor :object_id
18
+
19
+
20
+ #
21
+ # Mapper for AdPrincipal class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'AdPrincipal',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'AdPrincipal',
32
+ model_properties: {
33
+ object_id: {
34
+ client_side_validation: true,
35
+ required: true,
36
+ serialized_name: 'objectId',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ end
@@ -3,47 +3,47 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::Subscriptions::Mgmt::V2015_11_01
6
+ module Azure::Subscriptions::Mgmt::V2018_11_01_preview
7
7
  module Models
8
8
  #
9
- # Tenant Id information
9
+ # Describes the format of Error response.
10
10
  #
11
- class TenantIdDescription
11
+ class ErrorResponse
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets or sets Id
16
- attr_accessor :id
15
+ # @return [String] Error code
16
+ attr_accessor :code
17
17
 
18
- # @return [String] Gets or sets tenantId
19
- attr_accessor :tenant_id
18
+ # @return [String] Error message indicating why the operation failed.
19
+ attr_accessor :message
20
20
 
21
21
 
22
22
  #
23
- # Mapper for TenantIdDescription class as Ruby Hash.
23
+ # Mapper for ErrorResponse class as Ruby Hash.
24
24
  # This will be used for serialization/deserialization.
25
25
  #
26
26
  def self.mapper()
27
27
  {
28
28
  client_side_validation: true,
29
29
  required: false,
30
- serialized_name: 'TenantIdDescription',
30
+ serialized_name: 'ErrorResponse',
31
31
  type: {
32
32
  name: 'Composite',
33
- class_name: 'TenantIdDescription',
33
+ class_name: 'ErrorResponse',
34
34
  model_properties: {
35
- id: {
35
+ code: {
36
36
  client_side_validation: true,
37
37
  required: false,
38
- serialized_name: 'id',
38
+ serialized_name: 'code',
39
39
  type: {
40
40
  name: 'String'
41
41
  }
42
42
  },
43
- tenant_id: {
43
+ message: {
44
44
  client_side_validation: true,
45
45
  required: false,
46
- serialized_name: 'tenantId',
46
+ serialized_name: 'message',
47
47
  type: {
48
48
  name: 'String'
49
49
  }
@@ -0,0 +1,129 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Subscriptions::Mgmt::V2018_11_01_preview
7
+ module Models
8
+ #
9
+ # The parameters required to create a new subscription.
10
+ #
11
+ class ModernSubscriptionCreationParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The friendly name of the subscription.
16
+ attr_accessor :display_name
17
+
18
+ # @return [String] The ARM ID of the billing profile for which you want
19
+ # to create the subscription.
20
+ attr_accessor :billing_profile_id
21
+
22
+ # @return [String] The SKU ID of the Azure plan. Azure plan determines
23
+ # the pricing and service-level agreement of the subscription. Use 001
24
+ # for Microsoft Azure Plan and 002 for Microsoft Azure Plan for DevTest.
25
+ attr_accessor :sku_id
26
+
27
+ # @return [String] If set, the cost center will show up on the Azure
28
+ # usage and charges file.
29
+ attr_accessor :cost_center
30
+
31
+ # @return [AdPrincipal] If specified, the AD principal will get owner
32
+ # access to the subscription, along with the user who is performing the
33
+ # create subscription operation
34
+ attr_accessor :owner
35
+
36
+ # @return [String] The identifier of the management group to which this
37
+ # subscription will be associated.
38
+ attr_accessor :management_group_id
39
+
40
+ # @return Additional, untyped parameters to support custom subscription
41
+ # creation scenarios.
42
+ attr_accessor :additional_parameters
43
+
44
+
45
+ #
46
+ # Mapper for ModernSubscriptionCreationParameters class as Ruby Hash.
47
+ # This will be used for serialization/deserialization.
48
+ #
49
+ def self.mapper()
50
+ {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'ModernSubscriptionCreationParameters',
54
+ type: {
55
+ name: 'Composite',
56
+ class_name: 'ModernSubscriptionCreationParameters',
57
+ model_properties: {
58
+ display_name: {
59
+ client_side_validation: true,
60
+ required: true,
61
+ serialized_name: 'displayName',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ billing_profile_id: {
67
+ client_side_validation: true,
68
+ required: true,
69
+ serialized_name: 'billingProfileId',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ sku_id: {
75
+ client_side_validation: true,
76
+ required: true,
77
+ serialized_name: 'skuId',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ cost_center: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'costCenter',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ owner: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ serialized_name: 'owner',
94
+ type: {
95
+ name: 'Composite',
96
+ class_name: 'AdPrincipal'
97
+ }
98
+ },
99
+ management_group_id: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ serialized_name: 'managementGroupId',
103
+ type: {
104
+ name: 'String'
105
+ }
106
+ },
107
+ additional_parameters: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ serialized_name: 'additionalParameters',
111
+ type: {
112
+ name: 'Dictionary',
113
+ value: {
114
+ client_side_validation: true,
115
+ required: false,
116
+ serialized_name: 'ObjectElementType',
117
+ type: {
118
+ name: 'Object'
119
+ }
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
126
+ end
127
+ end
128
+ end
129
+ end