azure_mgmt_authorization 0.18.1 → 0.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +1 -1
  3. data/lib/2015-07-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +1 -1
  4. data/lib/2015-07-01/generated/azure_mgmt_authorization/authorization_management_client.rb +1 -1
  5. data/lib/2017-10-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +1 -1
  6. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization.rb +9 -9
  7. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +5 -5
  8. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/permissions.rb +1 -5
  9. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb +1 -5
  10. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/role_assignments.rb +1 -5
  11. data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/role_definitions.rb +1 -5
  12. data/lib/2018-07-01-preview/generated/azure_mgmt_authorization.rb +33 -0
  13. data/lib/2018-07-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +131 -0
  14. data/lib/2018-07-01-preview/generated/azure_mgmt_authorization/deny_assignments.rb +1226 -0
  15. data/lib/2018-07-01-preview/generated/azure_mgmt_authorization/models/deny_assignment.rb +191 -0
  16. data/lib/2018-07-01-preview/generated/azure_mgmt_authorization/models/deny_assignment_filter.rb +71 -0
  17. data/lib/2018-07-01-preview/generated/azure_mgmt_authorization/models/deny_assignment_list_result.rb +98 -0
  18. data/lib/2018-07-01-preview/generated/azure_mgmt_authorization/models/deny_assignment_permission.rb +115 -0
  19. data/lib/2018-07-01-preview/generated/azure_mgmt_authorization/models/principal.rb +65 -0
  20. data/lib/2018-07-01-preview/generated/azure_mgmt_authorization/module_definition.rb +9 -0
  21. data/lib/2018-09-01-preview/generated/azure_mgmt_authorization.rb +33 -0
  22. data/lib/2018-09-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +131 -0
  23. data/lib/2018-09-01-preview/generated/azure_mgmt_authorization/models/principal_type.rb +24 -0
  24. data/lib/2018-09-01-preview/generated/azure_mgmt_authorization/models/role_assignment.rb +115 -0
  25. data/lib/2018-09-01-preview/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +85 -0
  26. data/lib/2018-09-01-preview/generated/azure_mgmt_authorization/models/role_assignment_filter.rb +57 -0
  27. data/lib/2018-09-01-preview/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb +98 -0
  28. data/lib/2018-09-01-preview/generated/azure_mgmt_authorization/module_definition.rb +9 -0
  29. data/lib/2018-09-01-preview/generated/azure_mgmt_authorization/role_assignments.rb +1492 -0
  30. data/lib/azure_mgmt_authorization.rb +2 -0
  31. data/lib/profiles/latest/modules/authorization_profile_module.rb +72 -30
  32. data/lib/version.rb +1 -1
  33. metadata +20 -2
@@ -0,0 +1,191 @@
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_07_01_preview
7
+ module Models
8
+ #
9
+ # Deny Assignment
10
+ #
11
+ class DenyAssignment
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The deny assignment ID.
16
+ attr_accessor :id
17
+
18
+ # @return [String] The deny assignment name.
19
+ attr_accessor :name
20
+
21
+ # @return [String] The deny assignment type.
22
+ attr_accessor :type
23
+
24
+ # @return [String] The display name of the deny assignment.
25
+ attr_accessor :deny_assignment_name
26
+
27
+ # @return [String] The description of the deny assignment.
28
+ attr_accessor :description
29
+
30
+ # @return [Array<DenyAssignmentPermission>] An array of permissions that
31
+ # are denied by the deny assignment.
32
+ attr_accessor :permissions
33
+
34
+ # @return [String] The deny assignment scope.
35
+ attr_accessor :scope
36
+
37
+ # @return [Boolean] Determines if the deny assignment applies to child
38
+ # scopes. Default value is false.
39
+ attr_accessor :do_not_apply_to_child_scopes
40
+
41
+ # @return [Array<Principal>] Array of principals to which the deny
42
+ # assignment applies.
43
+ attr_accessor :principals
44
+
45
+ # @return [Array<Principal>] Array of principals to which the deny
46
+ # assignment does not apply.
47
+ attr_accessor :exclude_principals
48
+
49
+ # @return [Boolean] Specifies whether this deny assignment was created by
50
+ # Azure and cannot be edited or deleted.
51
+ attr_accessor :is_system_protected
52
+
53
+
54
+ #
55
+ # Mapper for DenyAssignment 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: 'DenyAssignment',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'DenyAssignment',
66
+ model_properties: {
67
+ id: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'id',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ name: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'name',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ type: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'type',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ },
94
+ deny_assignment_name: {
95
+ client_side_validation: true,
96
+ required: false,
97
+ serialized_name: 'properties.denyAssignmentName',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ },
102
+ description: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ serialized_name: 'properties.description',
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ },
110
+ permissions: {
111
+ client_side_validation: true,
112
+ required: false,
113
+ serialized_name: 'properties.permissions',
114
+ type: {
115
+ name: 'Sequence',
116
+ element: {
117
+ client_side_validation: true,
118
+ required: false,
119
+ serialized_name: 'DenyAssignmentPermissionElementType',
120
+ type: {
121
+ name: 'Composite',
122
+ class_name: 'DenyAssignmentPermission'
123
+ }
124
+ }
125
+ }
126
+ },
127
+ scope: {
128
+ client_side_validation: true,
129
+ required: false,
130
+ serialized_name: 'properties.scope',
131
+ type: {
132
+ name: 'String'
133
+ }
134
+ },
135
+ do_not_apply_to_child_scopes: {
136
+ client_side_validation: true,
137
+ required: false,
138
+ serialized_name: 'properties.doNotApplyToChildScopes',
139
+ type: {
140
+ name: 'Boolean'
141
+ }
142
+ },
143
+ principals: {
144
+ client_side_validation: true,
145
+ required: false,
146
+ serialized_name: 'properties.principals',
147
+ type: {
148
+ name: 'Sequence',
149
+ element: {
150
+ client_side_validation: true,
151
+ required: false,
152
+ serialized_name: 'PrincipalElementType',
153
+ type: {
154
+ name: 'Composite',
155
+ class_name: 'Principal'
156
+ }
157
+ }
158
+ }
159
+ },
160
+ exclude_principals: {
161
+ client_side_validation: true,
162
+ required: false,
163
+ serialized_name: 'properties.excludePrincipals',
164
+ type: {
165
+ name: 'Sequence',
166
+ element: {
167
+ client_side_validation: true,
168
+ required: false,
169
+ serialized_name: 'PrincipalElementType',
170
+ type: {
171
+ name: 'Composite',
172
+ class_name: 'Principal'
173
+ }
174
+ }
175
+ }
176
+ },
177
+ is_system_protected: {
178
+ client_side_validation: true,
179
+ required: false,
180
+ serialized_name: 'properties.isSystemProtected',
181
+ type: {
182
+ name: 'Boolean'
183
+ }
184
+ }
185
+ }
186
+ }
187
+ }
188
+ end
189
+ end
190
+ end
191
+ 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_07_01_preview
7
+ module Models
8
+ #
9
+ # Deny Assignments filter
10
+ #
11
+ class DenyAssignmentFilter
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Return deny assignment with specified name.
16
+ attr_accessor :deny_assignment_name
17
+
18
+ # @return [String] Return all deny assignments where the specified
19
+ # principal is listed in the principals list of deny assignments.
20
+ attr_accessor :principal_id
21
+
22
+ # @return [String] Return all deny assignments where the specified
23
+ # principal is listed either in the principals list or exclude principals
24
+ # list of deny assignments.
25
+ attr_accessor :gdpr_export_principal_id
26
+
27
+
28
+ #
29
+ # Mapper for DenyAssignmentFilter 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: 'DenyAssignmentFilter',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'DenyAssignmentFilter',
40
+ model_properties: {
41
+ deny_assignment_name: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'denyAssignmentName',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ principal_id: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'principalId',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ gdpr_export_principal_id: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'gdprExportPrincipalId',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ end
69
+ end
70
+ end
71
+ 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_07_01_preview
7
+ module Models
8
+ #
9
+ # Deny assignment list operation result.
10
+ #
11
+ class DenyAssignmentListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<DenyAssignment>] Deny 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<DenyAssignment>] 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 [DenyAssignmentListResult] 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 DenyAssignmentListResult 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: 'DenyAssignmentListResult',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'DenyAssignmentListResult',
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: 'DenyAssignmentElementType',
77
+ type: {
78
+ name: 'Composite',
79
+ class_name: 'DenyAssignment'
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,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_07_01_preview
7
+ module Models
8
+ #
9
+ # Deny assignment permissions.
10
+ #
11
+ class DenyAssignmentPermission
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<String>] Actions to which the deny assignment does not
16
+ # grant access.
17
+ attr_accessor :actions
18
+
19
+ # @return [Array<String>] Actions to exclude from that the deny
20
+ # assignment does not grant access.
21
+ attr_accessor :not_actions
22
+
23
+ # @return [Array<String>] Data actions to which the deny assignment does
24
+ # not grant access.
25
+ attr_accessor :data_actions
26
+
27
+ # @return [Array<String>] Data actions to exclude from that the deny
28
+ # assignment does not grant access.
29
+ attr_accessor :not_data_actions
30
+
31
+
32
+ #
33
+ # Mapper for DenyAssignmentPermission class as Ruby Hash.
34
+ # This will be used for serialization/deserialization.
35
+ #
36
+ def self.mapper()
37
+ {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'DenyAssignmentPermission',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'DenyAssignmentPermission',
44
+ model_properties: {
45
+ actions: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'actions',
49
+ type: {
50
+ name: 'Sequence',
51
+ element: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'StringElementType',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ }
59
+ }
60
+ },
61
+ not_actions: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'notActions',
65
+ type: {
66
+ name: 'Sequence',
67
+ element: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'StringElementType',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ }
75
+ }
76
+ },
77
+ data_actions: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'dataActions',
81
+ type: {
82
+ name: 'Sequence',
83
+ element: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ serialized_name: 'StringElementType',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ }
91
+ }
92
+ },
93
+ not_data_actions: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ serialized_name: 'notDataActions',
97
+ type: {
98
+ name: 'Sequence',
99
+ element: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ serialized_name: 'StringElementType',
103
+ type: {
104
+ name: 'String'
105
+ }
106
+ }
107
+ }
108
+ }
109
+ }
110
+ }
111
+ }
112
+ end
113
+ end
114
+ end
115
+ end