azure_mgmt_authorization 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +5 -13
  2. data/azure_mgmt_authorization.gemspec +4 -4
  3. data/lib/azure_mgmt_authorization.rb +3 -49
  4. data/lib/{azure_mgmt_authorization → generated/azure_mgmt_authorization}/authorization_management_client.rb +8 -7
  5. data/lib/{azure_mgmt_authorization → generated/azure_mgmt_authorization}/classic_administrators.rb +32 -11
  6. data/lib/generated/azure_mgmt_authorization/models/classic_administrator.rb +76 -0
  7. data/lib/generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb +84 -0
  8. data/lib/generated/azure_mgmt_authorization/models/classic_administrator_properties.rb +54 -0
  9. data/lib/generated/azure_mgmt_authorization/models/permission.rb +68 -0
  10. data/lib/generated/azure_mgmt_authorization/models/permission_get_result.rb +83 -0
  11. data/lib/generated/azure_mgmt_authorization/models/provider_operation.rb +84 -0
  12. data/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata.rb +110 -0
  13. data/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb +84 -0
  14. data/lib/generated/azure_mgmt_authorization/models/resource_type.rb +73 -0
  15. data/lib/generated/azure_mgmt_authorization/models/role_assignment.rb +76 -0
  16. data/lib/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +46 -0
  17. data/lib/generated/azure_mgmt_authorization/models/role_assignment_filter.rb +44 -0
  18. data/lib/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb +94 -0
  19. data/lib/generated/azure_mgmt_authorization/models/role_assignment_properties.rb +54 -0
  20. data/lib/generated/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb +64 -0
  21. data/lib/generated/azure_mgmt_authorization/models/role_definition.rb +76 -0
  22. data/lib/generated/azure_mgmt_authorization/models/role_definition_filter.rb +44 -0
  23. data/lib/generated/azure_mgmt_authorization/models/role_definition_list_result.rb +83 -0
  24. data/lib/generated/azure_mgmt_authorization/models/role_definition_properties.rb +99 -0
  25. data/lib/{azure_mgmt_authorization → generated/azure_mgmt_authorization}/module_definition.rb +0 -0
  26. data/lib/{azure_mgmt_authorization → generated/azure_mgmt_authorization}/permissions.rb +70 -22
  27. data/lib/{azure_mgmt_authorization → generated/azure_mgmt_authorization}/provider_operations_metadata_operations.rb +37 -15
  28. data/lib/{azure_mgmt_authorization → generated/azure_mgmt_authorization}/role_assignments.rb +171 -80
  29. data/lib/{azure_mgmt_authorization → generated/azure_mgmt_authorization}/role_definitions.rb +56 -33
  30. data/lib/{azure_mgmt_authorization → generated/azure_mgmt_authorization}/version.rb +1 -1
  31. data/lib/generated/azure_mgmt_authorization.rb +51 -0
  32. metadata +49 -53
  33. data/lib/azure_mgmt_authorization/models/classic_administrator.rb +0 -90
  34. data/lib/azure_mgmt_authorization/models/classic_administrator_list_result.rb +0 -77
  35. data/lib/azure_mgmt_authorization/models/classic_administrator_properties.rb +0 -65
  36. data/lib/azure_mgmt_authorization/models/permission.rb +0 -66
  37. data/lib/azure_mgmt_authorization/models/permission_get_result.rb +0 -76
  38. data/lib/azure_mgmt_authorization/models/provider_operation.rb +0 -92
  39. data/lib/azure_mgmt_authorization/models/provider_operations_metadata.rb +0 -142
  40. data/lib/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb +0 -77
  41. data/lib/azure_mgmt_authorization/models/resource_type.rb +0 -95
  42. data/lib/azure_mgmt_authorization/models/role_assignment.rb +0 -90
  43. data/lib/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +0 -63
  44. data/lib/azure_mgmt_authorization/models/role_assignment_filter.rb +0 -56
  45. data/lib/azure_mgmt_authorization/models/role_assignment_list_result.rb +0 -86
  46. data/lib/azure_mgmt_authorization/models/role_assignment_properties.rb +0 -65
  47. data/lib/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb +0 -74
  48. data/lib/azure_mgmt_authorization/models/role_definition.rb +0 -90
  49. data/lib/azure_mgmt_authorization/models/role_definition_filter.rb +0 -56
  50. data/lib/azure_mgmt_authorization/models/role_definition_list_result.rb +0 -76
  51. data/lib/azure_mgmt_authorization/models/role_definition_properties.rb +0 -113
@@ -0,0 +1,76 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Authorization
7
+ module Models
8
+ #
9
+ # Role definition.
10
+ #
11
+ class RoleDefinition
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets role definition id.
16
+ attr_accessor :id
17
+
18
+ # @return [String] Gets or sets role definition name.
19
+ attr_accessor :name
20
+
21
+ # @return [String] Gets or sets role definition type.
22
+ attr_accessor :type
23
+
24
+ # @return [RoleDefinitionProperties] Gets or sets role definition
25
+ # properties.
26
+ attr_accessor :properties
27
+
28
+
29
+ #
30
+ # Mapper for RoleDefinition class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ required: false,
36
+ serialized_name: 'RoleDefinition',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'RoleDefinition',
40
+ model_properties: {
41
+ id: {
42
+ required: false,
43
+ serialized_name: 'id',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ name: {
49
+ required: false,
50
+ serialized_name: 'name',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ type: {
56
+ required: false,
57
+ serialized_name: 'type',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ properties: {
63
+ required: false,
64
+ serialized_name: 'properties',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'RoleDefinitionProperties'
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ end
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,44 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Authorization
7
+ module Models
8
+ #
9
+ # Role Definitions filter
10
+ #
11
+ class RoleDefinitionFilter
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Returns role definition with the specific name.
16
+ attr_accessor :role_name
17
+
18
+
19
+ #
20
+ # Mapper for RoleDefinitionFilter class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ required: false,
26
+ serialized_name: 'RoleDefinitionFilter',
27
+ type: {
28
+ name: 'Composite',
29
+ class_name: 'RoleDefinitionFilter',
30
+ model_properties: {
31
+ role_name: {
32
+ required: false,
33
+ serialized_name: 'roleName',
34
+ type: {
35
+ name: 'String'
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,83 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Authorization
7
+ module Models
8
+ #
9
+ # Role definition list operation result.
10
+ #
11
+ class RoleDefinitionListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<RoleDefinition>] Role definition list.
16
+ attr_accessor :value
17
+
18
+ # return [Proc] with next page method call.
19
+ attr_accessor :next_method
20
+
21
+ #
22
+ # Gets the rest of the items for the request, enabling auto-pagination.
23
+ #
24
+ # @return [Array<RoleDefinition>] operation results.
25
+ #
26
+ def get_all_items
27
+ items = @value
28
+ page = self
29
+ while page.next_link != nil do
30
+ page = page.get_next_page
31
+ items.concat(page.value)
32
+ end
33
+ items
34
+ end
35
+
36
+ #
37
+ # Gets the next page of results.
38
+ #
39
+ # @return [RoleDefinitionListResult] with next page content.
40
+ #
41
+ def get_next_page
42
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
43
+ unless response.nil?
44
+ @next_link = response.body.next_link
45
+ @value = response.body.value
46
+ self
47
+ end
48
+ end
49
+
50
+ #
51
+ # Mapper for RoleDefinitionListResult class as Ruby Hash.
52
+ # This will be used for serialization/deserialization.
53
+ #
54
+ def self.mapper()
55
+ {
56
+ required: false,
57
+ serialized_name: 'RoleDefinitionListResult',
58
+ type: {
59
+ name: 'Composite',
60
+ class_name: 'RoleDefinitionListResult',
61
+ model_properties: {
62
+ value: {
63
+ required: false,
64
+ serialized_name: 'value',
65
+ type: {
66
+ name: 'Sequence',
67
+ element: {
68
+ required: false,
69
+ serialized_name: 'RoleDefinitionElementType',
70
+ type: {
71
+ name: 'Composite',
72
+ class_name: 'RoleDefinition'
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ end
81
+ end
82
+ end
83
+ end
@@ -0,0 +1,99 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Authorization
7
+ module Models
8
+ #
9
+ # Role definition properties.
10
+ #
11
+ class RoleDefinitionProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets role name.
16
+ attr_accessor :role_name
17
+
18
+ # @return [String] Gets or sets role definition description.
19
+ attr_accessor :description
20
+
21
+ # @return [String] Gets or sets role type.
22
+ attr_accessor :type
23
+
24
+ # @return [Array<Permission>] Gets or sets role definition permissions.
25
+ attr_accessor :permissions
26
+
27
+ # @return [Array<String>] Gets or sets role definition assignable scopes.
28
+ attr_accessor :assignable_scopes
29
+
30
+
31
+ #
32
+ # Mapper for RoleDefinitionProperties class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ required: false,
38
+ serialized_name: 'RoleDefinitionProperties',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'RoleDefinitionProperties',
42
+ model_properties: {
43
+ role_name: {
44
+ required: false,
45
+ serialized_name: 'roleName',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ description: {
51
+ required: false,
52
+ serialized_name: 'description',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ type: {
58
+ required: false,
59
+ serialized_name: 'type',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ permissions: {
65
+ required: false,
66
+ serialized_name: 'permissions',
67
+ type: {
68
+ name: 'Sequence',
69
+ element: {
70
+ required: false,
71
+ serialized_name: 'PermissionElementType',
72
+ type: {
73
+ name: 'Composite',
74
+ class_name: 'Permission'
75
+ }
76
+ }
77
+ }
78
+ },
79
+ assignable_scopes: {
80
+ required: false,
81
+ serialized_name: 'assignableScopes',
82
+ type: {
83
+ name: 'Sequence',
84
+ element: {
85
+ required: false,
86
+ serialized_name: 'StringElementType',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ end
97
+ end
98
+ end
99
+ end
@@ -30,11 +30,33 @@ module Azure::ARM::Authorization
30
30
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
31
  # will be added to the HTTP request.
32
32
  #
33
- # @return [PermissionGetResult] operation results.
33
+ # @return [PermissionGetResult] which provide lazy access to pages of the
34
+ # response.
34
35
  #
35
- def list_for_resource_group(resource_group_name, custom_headers = nil)
36
+ def list_for_resource_group_as_lazy(resource_group_name, custom_headers = nil)
36
37
  response = list_for_resource_group_async(resource_group_name, custom_headers).value!
37
- response.body unless response.nil?
38
+ unless response.nil?
39
+ page = response.body
40
+ page.next_method = Proc.new do |next_link|
41
+ list_for_resource_group_next_async(next_link, custom_headers)
42
+ end
43
+ page
44
+ end
45
+ end
46
+
47
+ #
48
+ # Gets a resource group permissions.
49
+ #
50
+ # @param resource_group_name [String] Name of the resource group to get the
51
+ # permissions for.The name is case insensitive.
52
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
53
+ # will be added to the HTTP request.
54
+ #
55
+ # @return [Array<Permission>] operation results.
56
+ #
57
+ def list_for_resource_group(resource_group_name, custom_headers = nil)
58
+ first_page = list_for_resource_group_as_lazy(resource_group_name, custom_headers)
59
+ first_page.get_all_items
38
60
  end
39
61
 
40
62
  #
@@ -65,6 +87,8 @@ module Azure::ARM::Authorization
65
87
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
66
88
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
67
89
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
90
+
91
+
68
92
  request_headers = {}
69
93
 
70
94
  # Set Headers
@@ -100,10 +124,8 @@ module Azure::ARM::Authorization
100
124
  if status_code == 200
101
125
  begin
102
126
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
103
- unless parsed_response.nil?
104
- parsed_response = PermissionGetResult.deserialize_object(parsed_response)
105
- end
106
- result.body = parsed_response
127
+ result_mapper = PermissionGetResult.mapper()
128
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
107
129
  rescue Exception => e
108
130
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
109
131
  end
@@ -127,11 +149,37 @@ module Azure::ARM::Authorization
127
149
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
128
150
  # will be added to the HTTP request.
129
151
  #
130
- # @return [PermissionGetResult] operation results.
152
+ # @return [PermissionGetResult] which provide lazy access to pages of the
153
+ # response.
131
154
  #
132
- def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers = nil)
155
+ def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers = nil)
133
156
  response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers).value!
134
- response.body unless response.nil?
157
+ unless response.nil?
158
+ page = response.body
159
+ page.next_method = Proc.new do |next_link|
160
+ list_for_resource_next_async(next_link, custom_headers)
161
+ end
162
+ page
163
+ end
164
+ end
165
+
166
+ #
167
+ # Gets a resource permissions.
168
+ #
169
+ # @param resource_group_name [String] The name of the resource group. The name
170
+ # is case insensitive.
171
+ # @param resource_provider_namespace [String] Resource
172
+ # @param parent_resource_path [String] Resource
173
+ # @param resource_type [String] Resource
174
+ # @param resource_name [String] Resource
175
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
176
+ # will be added to the HTTP request.
177
+ #
178
+ # @return [Array<Permission>] operation results.
179
+ #
180
+ def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers = nil)
181
+ first_page = list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers)
182
+ first_page.get_all_items
135
183
  end
136
184
 
137
185
  #
@@ -174,6 +222,8 @@ module Azure::ARM::Authorization
174
222
  fail ArgumentError, 'resource_name is nil' if resource_name.nil?
175
223
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
176
224
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
225
+
226
+
177
227
  request_headers = {}
178
228
 
179
229
  # Set Headers
@@ -210,10 +260,8 @@ module Azure::ARM::Authorization
210
260
  if status_code == 200
211
261
  begin
212
262
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
213
- unless parsed_response.nil?
214
- parsed_response = PermissionGetResult.deserialize_object(parsed_response)
215
- end
216
- result.body = parsed_response
263
+ result_mapper = PermissionGetResult.mapper()
264
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
217
265
  rescue Exception => e
218
266
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
219
267
  end
@@ -266,6 +314,8 @@ module Azure::ARM::Authorization
266
314
  #
267
315
  def list_for_resource_group_next_async(next_page_link, custom_headers = nil)
268
316
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
317
+
318
+
269
319
  request_headers = {}
270
320
 
271
321
  # Set Headers
@@ -300,10 +350,8 @@ module Azure::ARM::Authorization
300
350
  if status_code == 200
301
351
  begin
302
352
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
303
- unless parsed_response.nil?
304
- parsed_response = PermissionGetResult.deserialize_object(parsed_response)
305
- end
306
- result.body = parsed_response
353
+ result_mapper = PermissionGetResult.mapper()
354
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
307
355
  rescue Exception => e
308
356
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
309
357
  end
@@ -356,6 +404,8 @@ module Azure::ARM::Authorization
356
404
  #
357
405
  def list_for_resource_next_async(next_page_link, custom_headers = nil)
358
406
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
407
+
408
+
359
409
  request_headers = {}
360
410
 
361
411
  # Set Headers
@@ -390,10 +440,8 @@ module Azure::ARM::Authorization
390
440
  if status_code == 200
391
441
  begin
392
442
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
393
- unless parsed_response.nil?
394
- parsed_response = PermissionGetResult.deserialize_object(parsed_response)
395
- end
396
- result.body = parsed_response
443
+ result_mapper = PermissionGetResult.mapper()
444
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
397
445
  rescue Exception => e
398
446
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
399
447
  end
@@ -70,6 +70,8 @@ module Azure::ARM::Authorization
70
70
  def get_async(resource_provider_namespace, api_version, expand = 'resourceTypes', custom_headers = nil)
71
71
  fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
72
72
  fail ArgumentError, 'api_version is nil' if api_version.nil?
73
+
74
+
73
75
  request_headers = {}
74
76
 
75
77
  # Set Headers
@@ -105,10 +107,8 @@ module Azure::ARM::Authorization
105
107
  if status_code == 200
106
108
  begin
107
109
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
108
- unless parsed_response.nil?
109
- parsed_response = ProviderOperationsMetadata.deserialize_object(parsed_response)
110
- end
111
- result.body = parsed_response
110
+ result_mapper = ProviderOperationsMetadata.mapper()
111
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
112
112
  rescue Exception => e
113
113
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
114
114
  end
@@ -128,11 +128,33 @@ module Azure::ARM::Authorization
128
128
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
129
129
  # will be added to the HTTP request.
130
130
  #
131
- # @return [ProviderOperationsMetadataListResult] operation results.
131
+ # @return [ProviderOperationsMetadataListResult] which provide lazy access to
132
+ # pages of the response.
132
133
  #
133
- def list(api_version, expand = 'resourceTypes', custom_headers = nil)
134
+ def list_as_lazy(api_version, expand = 'resourceTypes', custom_headers = nil)
134
135
  response = list_async(api_version, expand, custom_headers).value!
135
- response.body unless response.nil?
136
+ unless response.nil?
137
+ page = response.body
138
+ page.next_method = Proc.new do |next_link|
139
+ list_next_async(next_link, custom_headers)
140
+ end
141
+ page
142
+ end
143
+ end
144
+
145
+ #
146
+ # Gets provider operations metadata list
147
+ #
148
+ # @param api_version [String]
149
+ # @param expand [String]
150
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
151
+ # will be added to the HTTP request.
152
+ #
153
+ # @return [Array<ProviderOperationsMetadata>] operation results.
154
+ #
155
+ def list(api_version, expand = 'resourceTypes', custom_headers = nil)
156
+ first_page = list_as_lazy(api_version, expand, custom_headers)
157
+ first_page.get_all_items
136
158
  end
137
159
 
138
160
  #
@@ -161,6 +183,8 @@ module Azure::ARM::Authorization
161
183
  #
162
184
  def list_async(api_version, expand = 'resourceTypes', custom_headers = nil)
163
185
  fail ArgumentError, 'api_version is nil' if api_version.nil?
186
+
187
+
164
188
  request_headers = {}
165
189
 
166
190
  # Set Headers
@@ -195,10 +219,8 @@ module Azure::ARM::Authorization
195
219
  if status_code == 200
196
220
  begin
197
221
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
198
- unless parsed_response.nil?
199
- parsed_response = ProviderOperationsMetadataListResult.deserialize_object(parsed_response)
200
- end
201
- result.body = parsed_response
222
+ result_mapper = ProviderOperationsMetadataListResult.mapper()
223
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
202
224
  rescue Exception => e
203
225
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
204
226
  end
@@ -251,6 +273,8 @@ module Azure::ARM::Authorization
251
273
  #
252
274
  def list_next_async(next_page_link, custom_headers = nil)
253
275
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
276
+
277
+
254
278
  request_headers = {}
255
279
 
256
280
  # Set Headers
@@ -285,10 +309,8 @@ module Azure::ARM::Authorization
285
309
  if status_code == 200
286
310
  begin
287
311
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
288
- unless parsed_response.nil?
289
- parsed_response = ProviderOperationsMetadataListResult.deserialize_object(parsed_response)
290
- end
291
- result.body = parsed_response
312
+ result_mapper = ProviderOperationsMetadataListResult.mapper()
313
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
292
314
  rescue Exception => e
293
315
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
294
316
  end