azure_mgmt_authorization 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +13 -5
  2. data/azure_mgmt_authorization.gemspec +1 -1
  3. data/lib/azure_mgmt_authorization/authorization_management_client.rb +1 -1
  4. data/lib/azure_mgmt_authorization/classic_administrators.rb +71 -11
  5. data/lib/azure_mgmt_authorization/models/classic_administrator.rb +1 -1
  6. data/lib/azure_mgmt_authorization/models/classic_administrator_list_result.rb +1 -1
  7. data/lib/azure_mgmt_authorization/models/classic_administrator_properties.rb +1 -1
  8. data/lib/azure_mgmt_authorization/models/permission.rb +1 -1
  9. data/lib/azure_mgmt_authorization/models/permission_get_result.rb +1 -1
  10. data/lib/azure_mgmt_authorization/models/provider_operation.rb +1 -1
  11. data/lib/azure_mgmt_authorization/models/provider_operations_metadata.rb +1 -1
  12. data/lib/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb +1 -1
  13. data/lib/azure_mgmt_authorization/models/resource_type.rb +1 -1
  14. data/lib/azure_mgmt_authorization/models/role_assignment.rb +1 -1
  15. data/lib/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +1 -1
  16. data/lib/azure_mgmt_authorization/models/role_assignment_filter.rb +1 -1
  17. data/lib/azure_mgmt_authorization/models/role_assignment_list_result.rb +1 -1
  18. data/lib/azure_mgmt_authorization/models/role_assignment_properties.rb +1 -1
  19. data/lib/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb +1 -1
  20. data/lib/azure_mgmt_authorization/models/role_definition.rb +1 -1
  21. data/lib/azure_mgmt_authorization/models/role_definition_filter.rb +1 -1
  22. data/lib/azure_mgmt_authorization/models/role_definition_list_result.rb +1 -1
  23. data/lib/azure_mgmt_authorization/models/role_definition_properties.rb +1 -1
  24. data/lib/azure_mgmt_authorization/module_definition.rb +1 -1
  25. data/lib/azure_mgmt_authorization/permissions.rb +153 -21
  26. data/lib/azure_mgmt_authorization/provider_operations_metadata_operations.rb +115 -18
  27. data/lib/azure_mgmt_authorization/role_assignments.rb +511 -73
  28. data/lib/azure_mgmt_authorization/role_definitions.rb +222 -32
  29. data/lib/azure_mgmt_authorization/version.rb +2 -2
  30. data/lib/azure_mgmt_authorization.rb +1 -1
  31. metadata +25 -20
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -29,13 +29,45 @@ module Azure::ARM::Authorization
29
29
  # provider.
30
30
  # @param api_version [String]
31
31
  # @param expand [String]
32
- # @param [Hash{String => String}] The hash of custom headers need to be
33
- # applied to HTTP request.
32
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
+ # will be added to the HTTP request.
34
34
  #
35
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
36
- # response.
35
+ # @return [ProviderOperationsMetadata] operation results.
37
36
  #
38
- def get(resource_provider_namespace, api_version, expand = "'resourceTypes'", custom_headers = nil)
37
+ def get(resource_provider_namespace, api_version, expand = 'resourceTypes', custom_headers = nil)
38
+ response = get_async(resource_provider_namespace, api_version, expand, custom_headers).value!
39
+ response.body unless response.nil?
40
+ end
41
+
42
+ #
43
+ # Gets provider operations metadata
44
+ #
45
+ # @param resource_provider_namespace [String] Namespace of the resource
46
+ # provider.
47
+ # @param api_version [String]
48
+ # @param expand [String]
49
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
50
+ # will be added to the HTTP request.
51
+ #
52
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
53
+ #
54
+ def get_with_http_info(resource_provider_namespace, api_version, expand = 'resourceTypes', custom_headers = nil)
55
+ get_async(resource_provider_namespace, api_version, expand, custom_headers).value!
56
+ end
57
+
58
+ #
59
+ # Gets provider operations metadata
60
+ #
61
+ # @param resource_provider_namespace [String] Namespace of the resource
62
+ # provider.
63
+ # @param api_version [String]
64
+ # @param expand [String]
65
+ # @param [Hash{String => String}] A hash of custom headers that will be added
66
+ # to the HTTP request.
67
+ #
68
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
69
+ #
70
+ def get_async(resource_provider_namespace, api_version, expand = 'resourceTypes', custom_headers = nil)
39
71
  fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
40
72
  fail ArgumentError, 'api_version is nil' if api_version.nil?
41
73
  request_headers = {}
@@ -50,7 +82,10 @@ module Azure::ARM::Authorization
50
82
  query_params: {'api-version' => api_version,'$expand' => expand},
51
83
  headers: request_headers.merge(custom_headers || {})
52
84
  }
53
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
85
+
86
+ request_url = @base_url || @client.base_url
87
+
88
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
54
89
  promise = request.run_promise do |req|
55
90
  @client.credentials.sign_request(req) unless @client.credentials.nil?
56
91
  end
@@ -90,13 +125,41 @@ module Azure::ARM::Authorization
90
125
  #
91
126
  # @param api_version [String]
92
127
  # @param expand [String]
93
- # @param [Hash{String => String}] The hash of custom headers need to be
94
- # applied to HTTP request.
128
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
129
+ # will be added to the HTTP request.
130
+ #
131
+ # @return [ProviderOperationsMetadataListResult] operation results.
132
+ #
133
+ def list(api_version, expand = 'resourceTypes', custom_headers = nil)
134
+ response = list_async(api_version, expand, custom_headers).value!
135
+ response.body unless response.nil?
136
+ end
137
+
138
+ #
139
+ # Gets provider operations metadata list
140
+ #
141
+ # @param api_version [String]
142
+ # @param expand [String]
143
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
144
+ # will be added to the HTTP request.
145
+ #
146
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
147
+ #
148
+ def list_with_http_info(api_version, expand = 'resourceTypes', custom_headers = nil)
149
+ list_async(api_version, expand, custom_headers).value!
150
+ end
151
+
152
+ #
153
+ # Gets provider operations metadata list
154
+ #
155
+ # @param api_version [String]
156
+ # @param expand [String]
157
+ # @param [Hash{String => String}] A hash of custom headers that will be added
158
+ # to the HTTP request.
95
159
  #
96
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
97
- # response.
160
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
98
161
  #
99
- def list(api_version, expand = "'resourceTypes'", custom_headers = nil)
162
+ def list_async(api_version, expand = 'resourceTypes', custom_headers = nil)
100
163
  fail ArgumentError, 'api_version is nil' if api_version.nil?
101
164
  request_headers = {}
102
165
 
@@ -109,7 +172,10 @@ module Azure::ARM::Authorization
109
172
  query_params: {'api-version' => api_version,'$expand' => expand},
110
173
  headers: request_headers.merge(custom_headers || {})
111
174
  }
112
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
175
+
176
+ request_url = @base_url || @client.base_url
177
+
178
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
113
179
  promise = request.run_promise do |req|
114
180
  @client.credentials.sign_request(req) unless @client.credentials.nil?
115
181
  end
@@ -149,13 +215,41 @@ module Azure::ARM::Authorization
149
215
  #
150
216
  # @param next_page_link [String] The NextLink from the previous successful
151
217
  # call to List operation.
152
- # @param [Hash{String => String}] The hash of custom headers need to be
153
- # applied to HTTP request.
218
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
219
+ # will be added to the HTTP request.
154
220
  #
155
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
156
- # response.
221
+ # @return [ProviderOperationsMetadataListResult] operation results.
157
222
  #
158
223
  def list_next(next_page_link, custom_headers = nil)
224
+ response = list_next_async(next_page_link, custom_headers).value!
225
+ response.body unless response.nil?
226
+ end
227
+
228
+ #
229
+ # Gets provider operations metadata list
230
+ #
231
+ # @param next_page_link [String] The NextLink from the previous successful
232
+ # call to List operation.
233
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
234
+ # will be added to the HTTP request.
235
+ #
236
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
237
+ #
238
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
239
+ list_next_async(next_page_link, custom_headers).value!
240
+ end
241
+
242
+ #
243
+ # Gets provider operations metadata list
244
+ #
245
+ # @param next_page_link [String] The NextLink from the previous successful
246
+ # call to List operation.
247
+ # @param [Hash{String => String}] A hash of custom headers that will be added
248
+ # to the HTTP request.
249
+ #
250
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
251
+ #
252
+ def list_next_async(next_page_link, custom_headers = nil)
159
253
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
160
254
  request_headers = {}
161
255
 
@@ -168,7 +262,10 @@ module Azure::ARM::Authorization
168
262
  skip_encoding_path_params: {'nextLink' => next_page_link},
169
263
  headers: request_headers.merge(custom_headers || {})
170
264
  }
171
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
265
+
266
+ request_url = @base_url || @client.base_url
267
+
268
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
172
269
  promise = request.run_promise do |req|
173
270
  @client.credentials.sign_request(req) unless @client.credentials.nil?
174
271
  end