azure_mgmt_authorization 0.16.0 → 0.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-01/generated/azure_mgmt_authorization/authorization_management_client.rb +130 -0
  3. data/lib/2015-06-01/generated/azure_mgmt_authorization/classic_administrators.rb +228 -0
  4. data/lib/2015-06-01/generated/azure_mgmt_authorization/models/classic_administrator.rb +90 -0
  5. data/lib/2015-06-01/generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb +98 -0
  6. data/lib/2015-06-01/generated/azure_mgmt_authorization/module_definition.rb +9 -0
  7. data/lib/2015-06-01/generated/azure_mgmt_authorization.rb +30 -0
  8. data/lib/2015-07-01/generated/azure_mgmt_authorization/authorization_management_client.rb +1 -1
  9. data/lib/2017-10-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +130 -0
  10. data/lib/2017-10-01-preview/generated/azure_mgmt_authorization/models/role_assignment.rb +115 -0
  11. data/lib/2017-10-01-preview/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +71 -0
  12. data/lib/2017-10-01-preview/generated/azure_mgmt_authorization/models/role_assignment_filter.rb +57 -0
  13. data/lib/2017-10-01-preview/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb +98 -0
  14. data/lib/2017-10-01-preview/generated/azure_mgmt_authorization/module_definition.rb +9 -0
  15. data/lib/2017-10-01-preview/generated/azure_mgmt_authorization/role_assignments.rb +1493 -0
  16. data/lib/2017-10-01-preview/generated/azure_mgmt_authorization.rb +32 -0
  17. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +143 -0
  18. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/permission.rb +111 -0
  19. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/permission_get_result.rb +98 -0
  20. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/provider_operation.rb +101 -0
  21. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/provider_operations_metadata.rb +119 -0
  22. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb +98 -0
  23. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/resource_type.rb +77 -0
  24. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/role_assignment.rb +115 -0
  25. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +71 -0
  26. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/role_assignment_filter.rb +57 -0
  27. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb +98 -0
  28. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/role_definition.rb +143 -0
  29. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/role_definition_filter.rb +57 -0
  30. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/role_definition_list_result.rb +98 -0
  31. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/module_definition.rb +9 -0
  32. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/permissions.rb +452 -0
  33. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb +316 -0
  34. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/role_assignments.rb +1493 -0
  35. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/role_definitions.rb +622 -0
  36. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization.rb +44 -0
  37. data/lib/azure_mgmt_authorization.rb +3 -0
  38. data/lib/profiles/latest/modules/authorization_profile_module.rb +63 -71
  39. data/lib/version.rb +1 -1
  40. metadata +36 -2
@@ -0,0 +1,77 @@
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::Authorization::Mgmt::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # Resource Type
10
+ #
11
+ class ResourceType
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The resource type name.
16
+ attr_accessor :name
17
+
18
+ # @return [String] The resource type display name.
19
+ attr_accessor :display_name
20
+
21
+ # @return [Array<ProviderOperation>] The resource type operations.
22
+ attr_accessor :operations
23
+
24
+
25
+ #
26
+ # Mapper for ResourceType class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'ResourceType',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'ResourceType',
37
+ model_properties: {
38
+ name: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'name',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ display_name: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'displayName',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ operations: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'operations',
58
+ type: {
59
+ name: 'Sequence',
60
+ element: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'ProviderOperationElementType',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'ProviderOperation'
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,115 @@
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::Authorization::Mgmt::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # Role Assignments
10
+ #
11
+ class RoleAssignment
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The role assignment ID.
16
+ attr_accessor :id
17
+
18
+ # @return [String] The role assignment name.
19
+ attr_accessor :name
20
+
21
+ # @return [String] The role assignment type.
22
+ attr_accessor :type
23
+
24
+ # @return [String] The role assignment scope.
25
+ attr_accessor :scope
26
+
27
+ # @return [String] The role definition ID.
28
+ attr_accessor :role_definition_id
29
+
30
+ # @return [String] The principal ID.
31
+ attr_accessor :principal_id
32
+
33
+ # @return [Boolean] The Delegation flag for the roleassignment
34
+ attr_accessor :can_delegate
35
+
36
+
37
+ #
38
+ # Mapper for RoleAssignment class as Ruby Hash.
39
+ # This will be used for serialization/deserialization.
40
+ #
41
+ def self.mapper()
42
+ {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'RoleAssignment',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'RoleAssignment',
49
+ model_properties: {
50
+ id: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'id',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ name: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ read_only: true,
63
+ serialized_name: 'name',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ type: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'type',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ scope: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'properties.scope',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ role_definition_id: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ serialized_name: 'properties.roleDefinitionId',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ principal_id: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ serialized_name: 'properties.principalId',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ can_delegate: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ serialized_name: 'properties.canDelegate',
105
+ type: {
106
+ name: 'Boolean'
107
+ }
108
+ }
109
+ }
110
+ }
111
+ }
112
+ end
113
+ end
114
+ end
115
+ end
@@ -0,0 +1,71 @@
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::Authorization::Mgmt::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # Role assignment create parameters.
10
+ #
11
+ class RoleAssignmentCreateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The role definition ID used in the role assignment.
16
+ attr_accessor :role_definition_id
17
+
18
+ # @return [String] The principal ID assigned to the role. This maps to
19
+ # the ID inside the Active Directory. It can point to a user, service
20
+ # principal, or security group.
21
+ attr_accessor :principal_id
22
+
23
+ # @return [Boolean] The delgation flag used for creating a role
24
+ # assignment
25
+ attr_accessor :can_delegate
26
+
27
+
28
+ #
29
+ # Mapper for RoleAssignmentCreateParameters class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'RoleAssignmentCreateParameters',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'RoleAssignmentCreateParameters',
40
+ model_properties: {
41
+ role_definition_id: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'properties.roleDefinitionId',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ principal_id: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'properties.principalId',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ can_delegate: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'properties.canDelegate',
61
+ type: {
62
+ name: 'Boolean'
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ end
69
+ end
70
+ end
71
+ 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::Authorization::Mgmt::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # Role Assignments filter
10
+ #
11
+ class RoleAssignmentFilter
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Returns role assignment of the specific principal.
16
+ attr_accessor :principal_id
17
+
18
+ # @return [Boolean] The Delegation flag for the roleassignment
19
+ attr_accessor :can_delegate
20
+
21
+
22
+ #
23
+ # Mapper for RoleAssignmentFilter 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: 'RoleAssignmentFilter',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'RoleAssignmentFilter',
34
+ model_properties: {
35
+ principal_id: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'principalId',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ can_delegate: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'canDelegate',
47
+ type: {
48
+ name: 'Boolean'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,98 @@
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::Authorization::Mgmt::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # Role assignment list operation result.
10
+ #
11
+ class RoleAssignmentListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<RoleAssignment>] Role assignment list.
17
+ attr_accessor :value
18
+
19
+ # @return [String] The URL to use for getting the next set of results.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<RoleAssignment>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [RoleAssignmentListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for RoleAssignmentListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'RoleAssignmentListResult',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'RoleAssignmentListResult',
66
+ model_properties: {
67
+ value: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'value',
71
+ type: {
72
+ name: 'Sequence',
73
+ element: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ serialized_name: 'RoleAssignmentElementType',
77
+ type: {
78
+ name: 'Composite',
79
+ class_name: 'RoleAssignment'
80
+ }
81
+ }
82
+ }
83
+ },
84
+ next_link: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ serialized_name: 'nextLink',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,143 @@
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::Authorization::Mgmt::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # Role definition.
10
+ #
11
+ class RoleDefinition
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The role definition ID.
16
+ attr_accessor :id
17
+
18
+ # @return [String] The role definition name.
19
+ attr_accessor :name
20
+
21
+ # @return [String] The role definition type.
22
+ attr_accessor :type
23
+
24
+ # @return [String] The role name.
25
+ attr_accessor :role_name
26
+
27
+ # @return [String] The role definition description.
28
+ attr_accessor :description
29
+
30
+ # @return [String] The role type.
31
+ attr_accessor :role_type
32
+
33
+ # @return [Array<Permission>] Role definition permissions.
34
+ attr_accessor :permissions
35
+
36
+ # @return [Array<String>] Role definition assignable scopes.
37
+ attr_accessor :assignable_scopes
38
+
39
+
40
+ #
41
+ # Mapper for RoleDefinition class as Ruby Hash.
42
+ # This will be used for serialization/deserialization.
43
+ #
44
+ def self.mapper()
45
+ {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'RoleDefinition',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'RoleDefinition',
52
+ model_properties: {
53
+ id: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'id',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ name: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'name',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ type: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'type',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ role_name: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ serialized_name: 'properties.roleName',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ },
88
+ description: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ serialized_name: 'properties.description',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ },
96
+ role_type: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ serialized_name: 'properties.type',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ },
104
+ permissions: {
105
+ client_side_validation: true,
106
+ required: false,
107
+ serialized_name: 'properties.permissions',
108
+ type: {
109
+ name: 'Sequence',
110
+ element: {
111
+ client_side_validation: true,
112
+ required: false,
113
+ serialized_name: 'PermissionElementType',
114
+ type: {
115
+ name: 'Composite',
116
+ class_name: 'Permission'
117
+ }
118
+ }
119
+ }
120
+ },
121
+ assignable_scopes: {
122
+ client_side_validation: true,
123
+ required: false,
124
+ serialized_name: 'properties.assignableScopes',
125
+ type: {
126
+ name: 'Sequence',
127
+ element: {
128
+ client_side_validation: true,
129
+ required: false,
130
+ serialized_name: 'StringElementType',
131
+ type: {
132
+ name: 'String'
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }
139
+ }
140
+ end
141
+ end
142
+ end
143
+ 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::Authorization::Mgmt::V2018_01_01_preview
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
+ # @return [String] Returns role definition with the specific type.
19
+ attr_accessor :type
20
+
21
+
22
+ #
23
+ # Mapper for RoleDefinitionFilter 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: 'RoleDefinitionFilter',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'RoleDefinitionFilter',
34
+ model_properties: {
35
+ role_name: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'roleName',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ type: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'type',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end