azure_mgmt_authorization 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_authorization.rb +10 -10
  3. data/lib/generated/azure_mgmt_authorization/authorization_management_client.rb +16 -5
  4. data/lib/generated/azure_mgmt_authorization/classic_administrators.rb +49 -38
  5. data/lib/generated/azure_mgmt_authorization/models/classic_administrator.rb +6 -6
  6. data/lib/generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb +3 -5
  7. data/lib/generated/azure_mgmt_authorization/models/classic_administrator_properties.rb +3 -3
  8. data/lib/generated/azure_mgmt_authorization/models/permission.rb +3 -3
  9. data/lib/generated/azure_mgmt_authorization/models/permission_get_result.rb +3 -4
  10. data/lib/generated/azure_mgmt_authorization/models/provider_operation.rb +6 -6
  11. data/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata.rb +7 -7
  12. data/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb +3 -5
  13. data/lib/generated/azure_mgmt_authorization/models/resource_type.rb +4 -5
  14. data/lib/generated/azure_mgmt_authorization/models/role_assignment.rb +5 -6
  15. data/lib/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +2 -3
  16. data/lib/generated/azure_mgmt_authorization/models/role_assignment_filter.rb +1 -1
  17. data/lib/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb +2 -3
  18. data/lib/generated/azure_mgmt_authorization/models/role_assignment_properties.rb +5 -3
  19. data/lib/generated/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb +4 -4
  20. data/lib/generated/azure_mgmt_authorization/models/role_definition.rb +5 -6
  21. data/lib/generated/azure_mgmt_authorization/models/role_definition_filter.rb +1 -1
  22. data/lib/generated/azure_mgmt_authorization/models/role_definition_list_result.rb +2 -3
  23. data/lib/generated/azure_mgmt_authorization/models/role_definition_properties.rb +6 -6
  24. data/lib/generated/azure_mgmt_authorization/module_definition.rb +1 -1
  25. data/lib/generated/azure_mgmt_authorization/permissions.rb +110 -98
  26. data/lib/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb +58 -54
  27. data/lib/generated/azure_mgmt_authorization/role_assignments.rb +312 -222
  28. data/lib/generated/azure_mgmt_authorization/role_definitions.rb +83 -79
  29. data/lib/generated/azure_mgmt_authorization/version.rb +2 -2
  30. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93925c93c93986b804c2642845c3e1a10745493c
4
- data.tar.gz: 47d7ca3bf77875594b689cfbf609dcba7d5cebbc
3
+ metadata.gz: 4eaa91d0787735f5da0e780c044e1a17b39dab43
4
+ data.tar.gz: e1b71e654561c000103b4e43cbb5d1119a16f088
5
5
  SHA512:
6
- metadata.gz: 65b9737b55a44682dec3778d496eb09dc4eb414d5b31dc2bbdf46b9544f763941b2b3540d0e2c99ed5905d8af668181711956b27e754c52c0e943877d229fbc2
7
- data.tar.gz: 062ade7c4d76fff88147d8da8e302aa6f3f6d9336f4e5513122aab85f64724ac791918372079fed6fb823fae1bde1d95910c37059e6e26ed7c4b986acfd38ba8
6
+ metadata.gz: 349488b7906e0e0308a7042e1cebb36d412fa1b993c40c26a772084f0d0a8096946114ce319f8780e1e9e03b937fce27bb4924a6c4d0247db863a870d78816ea
7
+ data.tar.gz: 518fec8518e6b2485ee9cd4e313019a641002177b8e888bf784c3dd30a0b529b7b4c450fcd9f2f4d6f860196944139801ee6d98fa5d624961f25748071fe868c
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -28,24 +28,24 @@ module Azure::ARM::Authorization
28
28
  autoload :AuthorizationManagementClient, 'generated/azure_mgmt_authorization/authorization_management_client.rb'
29
29
 
30
30
  module Models
31
- autoload :RoleAssignmentFilter, 'generated/azure_mgmt_authorization/models/role_assignment_filter.rb'
32
- autoload :RoleDefinitionFilter, 'generated/azure_mgmt_authorization/models/role_definition_filter.rb'
33
- autoload :ClassicAdministratorProperties, 'generated/azure_mgmt_authorization/models/classic_administrator_properties.rb'
34
- autoload :ClassicAdministrator, 'generated/azure_mgmt_authorization/models/classic_administrator.rb'
35
- autoload :ClassicAdministratorListResult, 'generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb'
36
- autoload :Permission, 'generated/azure_mgmt_authorization/models/permission.rb'
37
- autoload :PermissionGetResult, 'generated/azure_mgmt_authorization/models/permission_get_result.rb'
38
- autoload :ProviderOperation, 'generated/azure_mgmt_authorization/models/provider_operation.rb'
39
- autoload :ResourceType, 'generated/azure_mgmt_authorization/models/resource_type.rb'
40
31
  autoload :ProviderOperationsMetadata, 'generated/azure_mgmt_authorization/models/provider_operations_metadata.rb'
41
32
  autoload :ProviderOperationsMetadataListResult, 'generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb'
33
+ autoload :RoleDefinitionFilter, 'generated/azure_mgmt_authorization/models/role_definition_filter.rb'
42
34
  autoload :RoleAssignmentPropertiesWithScope, 'generated/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb'
35
+ autoload :ClassicAdministrator, 'generated/azure_mgmt_authorization/models/classic_administrator.rb'
43
36
  autoload :RoleAssignment, 'generated/azure_mgmt_authorization/models/role_assignment.rb'
37
+ autoload :Permission, 'generated/azure_mgmt_authorization/models/permission.rb'
44
38
  autoload :RoleAssignmentListResult, 'generated/azure_mgmt_authorization/models/role_assignment_list_result.rb'
39
+ autoload :ProviderOperation, 'generated/azure_mgmt_authorization/models/provider_operation.rb'
45
40
  autoload :RoleAssignmentProperties, 'generated/azure_mgmt_authorization/models/role_assignment_properties.rb'
41
+ autoload :RoleAssignmentFilter, 'generated/azure_mgmt_authorization/models/role_assignment_filter.rb'
46
42
  autoload :RoleAssignmentCreateParameters, 'generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb'
43
+ autoload :ClassicAdministratorListResult, 'generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb'
47
44
  autoload :RoleDefinitionProperties, 'generated/azure_mgmt_authorization/models/role_definition_properties.rb'
45
+ autoload :ResourceType, 'generated/azure_mgmt_authorization/models/resource_type.rb'
48
46
  autoload :RoleDefinition, 'generated/azure_mgmt_authorization/models/role_definition.rb'
47
+ autoload :PermissionGetResult, 'generated/azure_mgmt_authorization/models/permission_get_result.rb'
49
48
  autoload :RoleDefinitionListResult, 'generated/azure_mgmt_authorization/models/role_definition_list_result.rb'
49
+ autoload :ClassicAdministratorProperties, 'generated/azure_mgmt_authorization/models/classic_administrator_properties.rb'
50
50
  end
51
51
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -17,12 +17,10 @@ module Azure::ARM::Authorization
17
17
  # @return Credentials needed for the client to connect to Azure.
18
18
  attr_reader :credentials
19
19
 
20
- # @return [String] Gets subscription credentials which uniquely identify
21
- # Microsoft Azure subscription. The subscription ID forms part of the URI
22
- # for every service call.
20
+ # @return [String] The ID of the target subscription.
23
21
  attr_accessor :subscription_id
24
22
 
25
- # @return [String] Client Api Version.
23
+ # @return [String] The API version to use for this operation.
26
24
  attr_reader :api_version
27
25
 
28
26
  # @return [String] Gets or sets the preferred language for the response.
@@ -75,6 +73,7 @@ module Azure::ARM::Authorization
75
73
  @accept_language = 'en-US'
76
74
  @long_running_operation_retry_timeout = 30
77
75
  @generate_client_request_id = true
76
+ add_telemetry
78
77
  end
79
78
 
80
79
  #
@@ -132,5 +131,17 @@ module Azure::ARM::Authorization
132
131
  super(request_url, method, path, options)
133
132
  end
134
133
 
134
+
135
+ private
136
+ #
137
+ # Adds telemetry information.
138
+ #
139
+ def add_telemetry
140
+ sdk_information = 'azure_mgmt_authorization'
141
+ if defined? Azure::ARM::Authorization::VERSION
142
+ sdk_information = "#{sdk_information}/#{Azure::ARM::Authorization::VERSION}"
143
+ end
144
+ add_user_agent_information(sdk_information)
145
+ end
135
146
  end
136
147
  end
@@ -1,11 +1,15 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Authorization
7
7
  #
8
- # ClassicAdministrators
8
+ # Role based access control provides you a way to apply granular level policy
9
+ # administration down to individual resources or resource groups. These
10
+ # operations enable you to manage role definitions and role assignments. A
11
+ # role definition describes the set of actions that can be performed on
12
+ # resources. A role assignment grants access to Azure Active Directory users.
9
13
  #
10
14
  class ClassicAdministrators
11
15
  include Azure::ARM::Authorization::Models
@@ -23,30 +27,10 @@ module Azure::ARM::Authorization
23
27
  attr_reader :client
24
28
 
25
29
  #
26
- # Gets a list of classic administrators for the subscription.
30
+ # Gets service administrator, account administrator, and co-administrators for
31
+ # the subscription.
27
32
  #
28
- # @param api_version [String]
29
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
- # will be added to the HTTP request.
31
- #
32
- # @return [ClassicAdministratorListResult] which provide lazy access to pages
33
- # of the response.
34
- #
35
- def list_as_lazy(api_version, custom_headers = nil)
36
- response = list_async(api_version, custom_headers).value!
37
- unless response.nil?
38
- page = response.body
39
- page.next_method = Proc.new do |next_page_link|
40
- list_next_async(next_page_link, custom_headers)
41
- end
42
- page
43
- end
44
- end
45
-
46
- #
47
- # Gets a list of classic administrators for the subscription.
48
- #
49
- # @param api_version [String]
33
+ # @param api_version [String] The API version to use for this operation.
50
34
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
51
35
  # will be added to the HTTP request.
52
36
  #
@@ -58,9 +42,10 @@ module Azure::ARM::Authorization
58
42
  end
59
43
 
60
44
  #
61
- # Gets a list of classic administrators for the subscription.
45
+ # Gets service administrator, account administrator, and co-administrators for
46
+ # the subscription.
62
47
  #
63
- # @param api_version [String]
48
+ # @param api_version [String] The API version to use for this operation.
64
49
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
65
50
  # will be added to the HTTP request.
66
51
  #
@@ -71,9 +56,10 @@ module Azure::ARM::Authorization
71
56
  end
72
57
 
73
58
  #
74
- # Gets a list of classic administrators for the subscription.
59
+ # Gets service administrator, account administrator, and co-administrators for
60
+ # the subscription.
75
61
  #
76
- # @param api_version [String]
62
+ # @param api_version [String] The API version to use for this operation.
77
63
  # @param [Hash{String => String}] A hash of custom headers that will be added
78
64
  # to the HTTP request.
79
65
  #
@@ -130,10 +116,11 @@ module Azure::ARM::Authorization
130
116
  end
131
117
 
132
118
  #
133
- # Gets a list of classic administrators for the subscription.
119
+ # Gets service administrator, account administrator, and co-administrators for
120
+ # the subscription.
134
121
  #
135
- # @param next_page_link [String] The NextLink from the previous successful
136
- # call to List operation.
122
+ # @param next_page_link [String] The NextLink from the previous successful call
123
+ # to List operation.
137
124
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
138
125
  # will be added to the HTTP request.
139
126
  #
@@ -145,10 +132,11 @@ module Azure::ARM::Authorization
145
132
  end
146
133
 
147
134
  #
148
- # Gets a list of classic administrators for the subscription.
135
+ # Gets service administrator, account administrator, and co-administrators for
136
+ # the subscription.
149
137
  #
150
- # @param next_page_link [String] The NextLink from the previous successful
151
- # call to List operation.
138
+ # @param next_page_link [String] The NextLink from the previous successful call
139
+ # to List operation.
152
140
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
153
141
  # will be added to the HTTP request.
154
142
  #
@@ -159,10 +147,11 @@ module Azure::ARM::Authorization
159
147
  end
160
148
 
161
149
  #
162
- # Gets a list of classic administrators for the subscription.
150
+ # Gets service administrator, account administrator, and co-administrators for
151
+ # the subscription.
163
152
  #
164
- # @param next_page_link [String] The NextLink from the previous successful
165
- # call to List operation.
153
+ # @param next_page_link [String] The NextLink from the previous successful call
154
+ # to List operation.
166
155
  # @param [Hash{String => String}] A hash of custom headers that will be added
167
156
  # to the HTTP request.
168
157
  #
@@ -216,5 +205,27 @@ module Azure::ARM::Authorization
216
205
  promise.execute
217
206
  end
218
207
 
208
+ #
209
+ # Gets service administrator, account administrator, and co-administrators for
210
+ # the subscription.
211
+ #
212
+ # @param api_version [String] The API version to use for this operation.
213
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
214
+ # will be added to the HTTP request.
215
+ #
216
+ # @return [ClassicAdministratorListResult] which provide lazy access to pages
217
+ # of the response.
218
+ #
219
+ def list_as_lazy(api_version, custom_headers = nil)
220
+ response = list_async(api_version, custom_headers).value!
221
+ unless response.nil?
222
+ page = response.body
223
+ page.next_method = Proc.new do |next_page_link|
224
+ list_next_async(next_page_link, custom_headers)
225
+ end
226
+ page
227
+ end
228
+ end
229
+
219
230
  end
220
231
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,17 +12,17 @@ module Azure::ARM::Authorization
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets or sets the classic administrator id.
15
+ # @return [String] The ID of the administrator.
16
16
  attr_accessor :id
17
17
 
18
- # @return [String] Gets or sets the classic administrator name.
18
+ # @return [String] The name of the administrator.
19
19
  attr_accessor :name
20
20
 
21
- # @return [String] Gets or sets the classic administrator type.
21
+ # @return [String] The type of the administrator.
22
22
  attr_accessor :type
23
23
 
24
- # @return [ClassicAdministratorProperties] Gets or sets the classic
25
- # administrator properties.
24
+ # @return [ClassicAdministratorProperties] Properties for the classic
25
+ # administrator.
26
26
  attr_accessor :properties
27
27
 
28
28
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,12 +12,10 @@ module Azure::ARM::Authorization
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<ClassicAdministrator>] Gets or sets
16
- # ClassicAdministrators.
15
+ # @return [Array<ClassicAdministrator>] An array of administrators.
17
16
  attr_accessor :value
18
17
 
19
- # @return [String] Gets or sets the URL to get the next set of classic
20
- # administrators results.
18
+ # @return [String] The URL to use for getting the next set of results.
21
19
  attr_accessor :next_link
22
20
 
23
21
  # return [Proc] with next page method call.
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,10 +12,10 @@ module Azure::ARM::Authorization
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets or sets the email address
15
+ # @return [String] The email address of the administrator.
16
16
  attr_accessor :email_address
17
17
 
18
- # @return [String] Gets or sets the role
18
+ # @return [String] The role of the administrator.
19
19
  attr_accessor :role
20
20
 
21
21
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,10 +12,10 @@ module Azure::ARM::Authorization
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<String>] Role definition allowed actions.
15
+ # @return [Array<String>] Allowed actions.
16
16
  attr_accessor :actions
17
17
 
18
- # @return [Array<String>] Role definition denied actions.
18
+ # @return [Array<String>] Denied actions.
19
19
  attr_accessor :not_actions
20
20
 
21
21
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,11 +12,10 @@ module Azure::ARM::Authorization
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<Permission>] Gets or sets permissions.
15
+ # @return [Array<Permission>] An array of permissions.
16
16
  attr_accessor :value
17
17
 
18
- # @return [String] Gets or sets the URL to get the next set of
19
- # permissions results.
18
+ # @return [String] The URL to use for getting the next set of results.
20
19
  attr_accessor :next_link
21
20
 
22
21
  # return [Proc] with next page method call.
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,19 +12,19 @@ module Azure::ARM::Authorization
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets or sets the operation name
15
+ # @return [String] The operation name.
16
16
  attr_accessor :name
17
17
 
18
- # @return [String] Gets or sets the operation display name
18
+ # @return [String] The operation display name.
19
19
  attr_accessor :display_name
20
20
 
21
- # @return [String] Gets or sets the operation description
21
+ # @return [String] The operation description.
22
22
  attr_accessor :description
23
23
 
24
- # @return [String] Gets or sets the operation origin
24
+ # @return [String] The operation origin.
25
25
  attr_accessor :origin
26
26
 
27
- # @return Gets or sets the operation properties
27
+ # @return The operation properties.
28
28
  attr_accessor :properties
29
29
 
30
30
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,22 +12,22 @@ module Azure::ARM::Authorization
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets or sets the provider id.
15
+ # @return [String] The provider id.
16
16
  attr_accessor :id
17
17
 
18
- # @return [String] Gets or sets the provider name
18
+ # @return [String] The provider name.
19
19
  attr_accessor :name
20
20
 
21
- # @return [String] Gets or sets the provider type
21
+ # @return [String] The provider type.
22
22
  attr_accessor :type
23
23
 
24
- # @return [String] Gets or sets the provider display name
24
+ # @return [String] The provider display name.
25
25
  attr_accessor :display_name
26
26
 
27
- # @return [Array<ResourceType>] Gets or sets the provider resource types
27
+ # @return [Array<ResourceType>] The provider resource types
28
28
  attr_accessor :resource_types
29
29
 
30
- # @return [Array<ProviderOperation>] Gets or sets the provider operations
30
+ # @return [Array<ProviderOperation>] The provider operations.
31
31
  attr_accessor :operations
32
32
 
33
33
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,12 +12,10 @@ module Azure::ARM::Authorization
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<ProviderOperationsMetadata>] Gets or sets the list of
16
- # providers.
15
+ # @return [Array<ProviderOperationsMetadata>] The list of providers.
17
16
  attr_accessor :value
18
17
 
19
- # @return [String] Gets or sets the URL to get the next set of provider
20
- # operations metadata results.
18
+ # @return [String] The URL to use for getting the next set of results.
21
19
  attr_accessor :next_link
22
20
 
23
21
  # return [Proc] with next page method call.