azure_mgmt_subscriptions 0.17.0 → 0.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-11-01/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -1
  3. data/lib/2016-06-01/generated/azure_mgmt_subscriptions/models/operation.rb +58 -0
  4. data/lib/2016-06-01/generated/azure_mgmt_subscriptions/models/operation_display.rb +80 -0
  5. data/lib/2016-06-01/generated/azure_mgmt_subscriptions/models/operation_list_result.rb +100 -0
  6. data/lib/2016-06-01/generated/azure_mgmt_subscriptions/operations.rb +218 -0
  7. data/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscription_client.rb +5 -1
  8. data/lib/2016-06-01/generated/azure_mgmt_subscriptions.rb +7 -3
  9. data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb +57 -0
  10. data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/models/operation.rb +58 -0
  11. data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/models/operation_display.rb +69 -0
  12. data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/models/operation_list_result.rb +100 -0
  13. data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_definition.rb +118 -0
  14. data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_definition_list.rb +100 -0
  15. data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/module_definition.rb +9 -0
  16. data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/subscription_definitions.rb +544 -0
  17. data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/subscription_definitions_client.rb +134 -0
  18. data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/subscription_definitions_operation_metadata.rb +216 -0
  19. data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions.rb +35 -0
  20. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/ad_principal.rb +46 -0
  21. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb +57 -0
  22. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/offer_type.rb +16 -0
  23. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/operation.rb +58 -0
  24. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_display.rb +69 -0
  25. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_list_result.rb +68 -0
  26. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_parameters.rb +104 -0
  27. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_result.rb +46 -0
  28. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation.rb +69 -0
  29. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation_list_result.rb +56 -0
  30. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/module_definition.rb +9 -0
  31. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/operations.rb +108 -0
  32. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb +137 -0
  33. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_factory.rb +176 -0
  34. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_operations.rb +108 -0
  35. data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions.rb +40 -0
  36. data/lib/azure_mgmt_subscriptions.rb +3 -0
  37. data/lib/profiles/latest/modules/subscriptions_profile_module.rb +27 -13
  38. data/lib/profiles/v2017_03_09/modules/subscriptions_profile_module.rb +27 -13
  39. data/lib/profiles/v2018_03_01/modules/subscriptions_profile_module.rb +113 -0
  40. data/lib/profiles/v2018_03_01/subscriptions_module_definition.rb +8 -0
  41. data/lib/profiles/v2018_03_01/subscriptions_v2018_03_01_profile_client.rb +40 -0
  42. data/lib/version.rb +1 -1
  43. metadata +36 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e24d08708199e02f54256136afbbd866cbfe00ea
4
- data.tar.gz: c83796dc8c78d50533dd9e81608a0c74d34a33a2
3
+ metadata.gz: 9150dd30cfe740255403ba3b76b739606a61b97d
4
+ data.tar.gz: 9ed67a84909e70d23dad9f83802707c718dbabc7
5
5
  SHA512:
6
- metadata.gz: ea44b010629813140648d7b82df8bb48bf85265cab4d4c900c60c1307ad08c8f4937ad26cfb49820357aa881490d297e52de1855723250b00aadc6b42e61fc62
7
- data.tar.gz: 324a887ee71d6f6d418b9c0aba9bacd6fed559a674c51a3369406f755a1b83e9628d9852fc770435f06deb61ed663b7a82d225a7cb7b4ba23dc305b65e3fe40b
6
+ metadata.gz: 8bec20dc068fa8528e16e956e1dea2465d7cfe05e07f7dc6c301a1b7f63fa46fe820d624b4fcc6b744e1fc31242e2149cb8c28856d8bd5cbd512fe9306586715
7
+ data.tar.gz: 7851be5b3a570fef9c63dd960a3f7b20caec2fb67fc298a1259a56fba411cf4ee7eb9ec9df951bd2080454b41db58240cf8a9b1a6b0b435845affe6e064a99ad
@@ -125,7 +125,7 @@ module Azure::Subscriptions::Mgmt::V2015_11_01
125
125
  #
126
126
  def add_telemetry
127
127
  sdk_information = 'azure_mgmt_subscriptions'
128
- sdk_information = "#{sdk_information}/0.17.0"
128
+ sdk_information = "#{sdk_information}/0.17.1"
129
129
  add_user_agent_information(sdk_information)
130
130
  end
131
131
  end
@@ -0,0 +1,58 @@
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::V2016_06_01
7
+ module Models
8
+ #
9
+ # Microsoft.Resources operation
10
+ #
11
+ class Operation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Operation name: {provider}/{resource}/{operation}
16
+ attr_accessor :name
17
+
18
+ # @return [OperationDisplay] The object that represents the operation.
19
+ attr_accessor :display
20
+
21
+
22
+ #
23
+ # Mapper for Operation class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'Operation',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'Operation',
34
+ model_properties: {
35
+ name: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'name',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ display: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'display',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'OperationDisplay'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,80 @@
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::V2016_06_01
7
+ module Models
8
+ #
9
+ # The object that represents the operation.
10
+ #
11
+ class OperationDisplay
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Service provider: Microsoft.Resources
16
+ attr_accessor :provider
17
+
18
+ # @return [String] Resource on which the operation is performed: Profile,
19
+ # endpoint, etc.
20
+ attr_accessor :resource
21
+
22
+ # @return [String] Operation type: Read, write, delete, etc.
23
+ attr_accessor :operation
24
+
25
+ # @return [String] Description of the operation.
26
+ attr_accessor :description
27
+
28
+
29
+ #
30
+ # Mapper for OperationDisplay class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'Operation_display',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'OperationDisplay',
41
+ model_properties: {
42
+ provider: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'provider',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ resource: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'resource',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ operation: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'operation',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ description: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'description',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,100 @@
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::V2016_06_01
7
+ module Models
8
+ #
9
+ # Result of the request to list Microsoft.Resources operations. It contains
10
+ # a list of operations and a URL link to get the next set of results.
11
+ #
12
+ class OperationListResult
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+ # @return [Array<Operation>] List of Microsoft.Resources operations.
18
+ attr_accessor :value
19
+
20
+ # @return [String] URL to get the next set of operation list results if
21
+ # there are any.
22
+ attr_accessor :next_link
23
+
24
+ # return [Proc] with next page method call.
25
+ attr_accessor :next_method
26
+
27
+ #
28
+ # Gets the rest of the items for the request, enabling auto-pagination.
29
+ #
30
+ # @return [Array<Operation>] operation results.
31
+ #
32
+ def get_all_items
33
+ items = @value
34
+ page = self
35
+ while page.next_link != nil do
36
+ page = page.get_next_page
37
+ items.concat(page.value)
38
+ end
39
+ items
40
+ end
41
+
42
+ #
43
+ # Gets the next page of results.
44
+ #
45
+ # @return [OperationListResult] with next page content.
46
+ #
47
+ def get_next_page
48
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
49
+ unless response.nil?
50
+ @next_link = response.body.next_link
51
+ @value = response.body.value
52
+ self
53
+ end
54
+ end
55
+
56
+ #
57
+ # Mapper for OperationListResult class as Ruby Hash.
58
+ # This will be used for serialization/deserialization.
59
+ #
60
+ def self.mapper()
61
+ {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'OperationListResult',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'OperationListResult',
68
+ model_properties: {
69
+ value: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ serialized_name: 'value',
73
+ type: {
74
+ name: 'Sequence',
75
+ element: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'OperationElementType',
79
+ type: {
80
+ name: 'Composite',
81
+ class_name: 'Operation'
82
+ }
83
+ }
84
+ }
85
+ },
86
+ next_link: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ serialized_name: 'nextLink',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,218 @@
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::V2016_06_01
7
+ #
8
+ # All resource groups and resources exist within subscriptions. These
9
+ # operation enable you get information about your subscriptions and tenants.
10
+ # A tenant is a dedicated instance of Azure Active Directory (Azure AD) for
11
+ # your organization.
12
+ #
13
+ class Operations
14
+ include MsRestAzure
15
+
16
+ #
17
+ # Creates and initializes a new instance of the Operations class.
18
+ # @param client service class for accessing basic functionality.
19
+ #
20
+ def initialize(client)
21
+ @client = client
22
+ end
23
+
24
+ # @return [SubscriptionClient] reference to the SubscriptionClient
25
+ attr_reader :client
26
+
27
+ #
28
+ # Lists all of the available Microsoft.Resources REST API operations.
29
+ #
30
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
+ # will be added to the HTTP request.
32
+ #
33
+ # @return [Array<Operation>] operation results.
34
+ #
35
+ def list(custom_headers:nil)
36
+ first_page = list_as_lazy(custom_headers:custom_headers)
37
+ first_page.get_all_items
38
+ end
39
+
40
+ #
41
+ # Lists all of the available Microsoft.Resources REST API operations.
42
+ #
43
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
44
+ # will be added to the HTTP request.
45
+ #
46
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
47
+ #
48
+ def list_with_http_info(custom_headers:nil)
49
+ list_async(custom_headers:custom_headers).value!
50
+ end
51
+
52
+ #
53
+ # Lists all of the available Microsoft.Resources REST API operations.
54
+ #
55
+ # @param [Hash{String => String}] A hash of custom headers that will be added
56
+ # to the HTTP request.
57
+ #
58
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
59
+ #
60
+ def list_async(custom_headers:nil)
61
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
62
+
63
+
64
+ request_headers = {}
65
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
66
+
67
+ # Set Headers
68
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
69
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
70
+ path_template = 'providers/Microsoft.Resources/operations'
71
+
72
+ request_url = @base_url || @client.base_url
73
+
74
+ options = {
75
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
76
+ query_params: {'api-version' => @client.api_version},
77
+ headers: request_headers.merge(custom_headers || {}),
78
+ base_url: request_url
79
+ }
80
+ promise = @client.make_request_async(:get, path_template, options)
81
+
82
+ promise = promise.then do |result|
83
+ http_response = result.response
84
+ status_code = http_response.status
85
+ response_content = http_response.body
86
+ unless status_code == 200
87
+ error_model = JSON.load(response_content)
88
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
89
+ end
90
+
91
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
92
+ # Deserialize Response
93
+ if status_code == 200
94
+ begin
95
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
96
+ result_mapper = Azure::Subscriptions::Mgmt::V2016_06_01::Models::OperationListResult.mapper()
97
+ result.body = @client.deserialize(result_mapper, parsed_response)
98
+ rescue Exception => e
99
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
100
+ end
101
+ end
102
+
103
+ result
104
+ end
105
+
106
+ promise.execute
107
+ end
108
+
109
+ #
110
+ # Lists all of the available Microsoft.Resources REST API operations.
111
+ #
112
+ # @param next_page_link [String] The NextLink from the previous successful call
113
+ # to List operation.
114
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
115
+ # will be added to the HTTP request.
116
+ #
117
+ # @return [OperationListResult] operation results.
118
+ #
119
+ def list_next(next_page_link, custom_headers:nil)
120
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
121
+ response.body unless response.nil?
122
+ end
123
+
124
+ #
125
+ # Lists all of the available Microsoft.Resources REST API operations.
126
+ #
127
+ # @param next_page_link [String] The NextLink from the previous successful call
128
+ # to List operation.
129
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
130
+ # will be added to the HTTP request.
131
+ #
132
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
133
+ #
134
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
135
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
136
+ end
137
+
138
+ #
139
+ # Lists all of the available Microsoft.Resources REST API operations.
140
+ #
141
+ # @param next_page_link [String] The NextLink from the previous successful call
142
+ # to List operation.
143
+ # @param [Hash{String => String}] A hash of custom headers that will be added
144
+ # to the HTTP request.
145
+ #
146
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
147
+ #
148
+ def list_next_async(next_page_link, custom_headers:nil)
149
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
150
+
151
+
152
+ request_headers = {}
153
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
154
+
155
+ # Set Headers
156
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
157
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
158
+ path_template = '{nextLink}'
159
+
160
+ request_url = @base_url || @client.base_url
161
+
162
+ options = {
163
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
164
+ skip_encoding_path_params: {'nextLink' => next_page_link},
165
+ headers: request_headers.merge(custom_headers || {}),
166
+ base_url: request_url
167
+ }
168
+ promise = @client.make_request_async(:get, path_template, options)
169
+
170
+ promise = promise.then do |result|
171
+ http_response = result.response
172
+ status_code = http_response.status
173
+ response_content = http_response.body
174
+ unless status_code == 200
175
+ error_model = JSON.load(response_content)
176
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
177
+ end
178
+
179
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
180
+ # Deserialize Response
181
+ if status_code == 200
182
+ begin
183
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
184
+ result_mapper = Azure::Subscriptions::Mgmt::V2016_06_01::Models::OperationListResult.mapper()
185
+ result.body = @client.deserialize(result_mapper, parsed_response)
186
+ rescue Exception => e
187
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
188
+ end
189
+ end
190
+
191
+ result
192
+ end
193
+
194
+ promise.execute
195
+ end
196
+
197
+ #
198
+ # Lists all of the available Microsoft.Resources REST API operations.
199
+ #
200
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
201
+ # will be added to the HTTP request.
202
+ #
203
+ # @return [OperationListResult] which provide lazy access to pages of the
204
+ # response.
205
+ #
206
+ def list_as_lazy(custom_headers:nil)
207
+ response = list_async(custom_headers:custom_headers).value!
208
+ unless response.nil?
209
+ page = response.body
210
+ page.next_method = Proc.new do |next_page_link|
211
+ list_next_async(next_page_link, custom_headers:custom_headers)
212
+ end
213
+ page
214
+ end
215
+ end
216
+
217
+ end
218
+ end
@@ -32,6 +32,9 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
32
32
  # generated and included in each request. Default is true.
33
33
  attr_accessor :generate_client_request_id
34
34
 
35
+ # @return [Operations] operations
36
+ attr_reader :operations
37
+
35
38
  # @return [Subscriptions] subscriptions
36
39
  attr_reader :subscriptions
37
40
 
@@ -51,6 +54,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
51
54
  fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
52
55
  @credentials = credentials
53
56
 
57
+ @operations = Operations.new(self)
54
58
  @subscriptions = Subscriptions.new(self)
55
59
  @tenants = Tenants.new(self)
56
60
  @api_version = '2016-06-01'
@@ -125,7 +129,7 @@ module Azure::Subscriptions::Mgmt::V2016_06_01
125
129
  #
126
130
  def add_telemetry
127
131
  sdk_information = 'azure_mgmt_subscriptions'
128
- sdk_information = "#{sdk_information}/0.17.0"
132
+ sdk_information = "#{sdk_information}/0.17.1"
129
133
  add_user_agent_information(sdk_information)
130
134
  end
131
135
  end
@@ -20,18 +20,22 @@ require '2016-06-01/generated/azure_mgmt_subscriptions/module_definition'
20
20
  require 'ms_rest_azure'
21
21
 
22
22
  module Azure::Subscriptions::Mgmt::V2016_06_01
23
+ autoload :Operations, '2016-06-01/generated/azure_mgmt_subscriptions/operations.rb'
23
24
  autoload :Subscriptions, '2016-06-01/generated/azure_mgmt_subscriptions/subscriptions.rb'
24
25
  autoload :Tenants, '2016-06-01/generated/azure_mgmt_subscriptions/tenants.rb'
25
26
  autoload :SubscriptionClient, '2016-06-01/generated/azure_mgmt_subscriptions/subscription_client.rb'
26
27
 
27
28
  module Models
28
- autoload :Subscription, '2016-06-01/generated/azure_mgmt_subscriptions/models/subscription.rb'
29
- autoload :SubscriptionListResult, '2016-06-01/generated/azure_mgmt_subscriptions/models/subscription_list_result.rb'
30
- autoload :LocationListResult, '2016-06-01/generated/azure_mgmt_subscriptions/models/location_list_result.rb'
31
29
  autoload :TenantIdDescription, '2016-06-01/generated/azure_mgmt_subscriptions/models/tenant_id_description.rb'
32
30
  autoload :Location, '2016-06-01/generated/azure_mgmt_subscriptions/models/location.rb'
33
31
  autoload :TenantListResult, '2016-06-01/generated/azure_mgmt_subscriptions/models/tenant_list_result.rb'
34
32
  autoload :SubscriptionPolicies, '2016-06-01/generated/azure_mgmt_subscriptions/models/subscription_policies.rb'
33
+ autoload :OperationDisplay, '2016-06-01/generated/azure_mgmt_subscriptions/models/operation_display.rb'
34
+ autoload :SubscriptionListResult, '2016-06-01/generated/azure_mgmt_subscriptions/models/subscription_list_result.rb'
35
+ autoload :Operation, '2016-06-01/generated/azure_mgmt_subscriptions/models/operation.rb'
36
+ autoload :Subscription, '2016-06-01/generated/azure_mgmt_subscriptions/models/subscription.rb'
37
+ autoload :OperationListResult, '2016-06-01/generated/azure_mgmt_subscriptions/models/operation_list_result.rb'
38
+ autoload :LocationListResult, '2016-06-01/generated/azure_mgmt_subscriptions/models/location_list_result.rb'
35
39
  autoload :SubscriptionState, '2016-06-01/generated/azure_mgmt_subscriptions/models/subscription_state.rb'
36
40
  autoload :SpendingLimit, '2016-06-01/generated/azure_mgmt_subscriptions/models/spending_limit.rb'
37
41
  end
@@ -0,0 +1,57 @@
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::V2017_11_01_preview
7
+ module Models
8
+ #
9
+ # Describes the format of Error response.
10
+ #
11
+ class ErrorResponse
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Error code
16
+ attr_accessor :code
17
+
18
+ # @return [String] Error message indicating why the operation failed.
19
+ attr_accessor :message
20
+
21
+
22
+ #
23
+ # Mapper for ErrorResponse class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'ErrorResponse',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ErrorResponse',
34
+ model_properties: {
35
+ code: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'code',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ message: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'message',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,58 @@
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::V2017_11_01_preview
7
+ module Models
8
+ #
9
+ # REST API operation
10
+ #
11
+ class Operation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Operation name: {provider}/{resource}/{operation}
16
+ attr_accessor :name
17
+
18
+ # @return [OperationDisplay] The object that represents the operation.
19
+ attr_accessor :display
20
+
21
+
22
+ #
23
+ # Mapper for Operation class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'Operation',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'Operation',
34
+ model_properties: {
35
+ name: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'name',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ display: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'display',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'OperationDisplay'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end