azure_mgmt_authorization 0.3.1 → 0.4.0

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 (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,110 @@
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
+ # Provider Operations metadata
10
+ #
11
+ class ProviderOperationsMetadata
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the provider id.
16
+ attr_accessor :id
17
+
18
+ # @return [String] Gets or sets the provider name
19
+ attr_accessor :name
20
+
21
+ # @return [String] Gets or sets the provider type
22
+ attr_accessor :type
23
+
24
+ # @return [String] Gets or sets the provider display name
25
+ attr_accessor :display_name
26
+
27
+ # @return [Array<ResourceType>] Gets or sets the provider resource types
28
+ attr_accessor :resource_types
29
+
30
+ # @return [Array<ProviderOperation>] Gets or sets the provider operations
31
+ attr_accessor :operations
32
+
33
+
34
+ #
35
+ # Mapper for ProviderOperationsMetadata class as Ruby Hash.
36
+ # This will be used for serialization/deserialization.
37
+ #
38
+ def self.mapper()
39
+ {
40
+ required: false,
41
+ serialized_name: 'ProviderOperationsMetadata',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'ProviderOperationsMetadata',
45
+ model_properties: {
46
+ id: {
47
+ required: false,
48
+ serialized_name: 'id',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ name: {
54
+ required: false,
55
+ serialized_name: 'name',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ type: {
61
+ required: false,
62
+ serialized_name: 'type',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ display_name: {
68
+ required: false,
69
+ serialized_name: 'displayName',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ resource_types: {
75
+ required: false,
76
+ serialized_name: 'resourceTypes',
77
+ type: {
78
+ name: 'Sequence',
79
+ element: {
80
+ required: false,
81
+ serialized_name: 'ResourceTypeElementType',
82
+ type: {
83
+ name: 'Composite',
84
+ class_name: 'ResourceType'
85
+ }
86
+ }
87
+ }
88
+ },
89
+ operations: {
90
+ required: false,
91
+ serialized_name: 'operations',
92
+ type: {
93
+ name: 'Sequence',
94
+ element: {
95
+ required: false,
96
+ serialized_name: 'ProviderOperationElementType',
97
+ type: {
98
+ name: 'Composite',
99
+ class_name: 'ProviderOperation'
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
107
+ end
108
+ end
109
+ end
110
+ end
@@ -0,0 +1,84 @@
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
+ # Provider operations metadata list
10
+ #
11
+ class ProviderOperationsMetadataListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<ProviderOperationsMetadata>] Gets or sets the list of
16
+ # providers.
17
+ attr_accessor :value
18
+
19
+ # return [Proc] with next page method call.
20
+ attr_accessor :next_method
21
+
22
+ #
23
+ # Gets the rest of the items for the request, enabling auto-pagination.
24
+ #
25
+ # @return [Array<ProviderOperationsMetadata>] operation results.
26
+ #
27
+ def get_all_items
28
+ items = @value
29
+ page = self
30
+ while page.next_link != nil do
31
+ page = page.get_next_page
32
+ items.concat(page.value)
33
+ end
34
+ items
35
+ end
36
+
37
+ #
38
+ # Gets the next page of results.
39
+ #
40
+ # @return [ProviderOperationsMetadataListResult] with next page content.
41
+ #
42
+ def get_next_page
43
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
44
+ unless response.nil?
45
+ @next_link = response.body.next_link
46
+ @value = response.body.value
47
+ self
48
+ end
49
+ end
50
+
51
+ #
52
+ # Mapper for ProviderOperationsMetadataListResult class as Ruby Hash.
53
+ # This will be used for serialization/deserialization.
54
+ #
55
+ def self.mapper()
56
+ {
57
+ required: false,
58
+ serialized_name: 'ProviderOperationsMetadataListResult',
59
+ type: {
60
+ name: 'Composite',
61
+ class_name: 'ProviderOperationsMetadataListResult',
62
+ model_properties: {
63
+ value: {
64
+ required: false,
65
+ serialized_name: 'value',
66
+ type: {
67
+ name: 'Sequence',
68
+ element: {
69
+ required: false,
70
+ serialized_name: 'ProviderOperationsMetadataElementType',
71
+ type: {
72
+ name: 'Composite',
73
+ class_name: 'ProviderOperationsMetadata'
74
+ }
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,73 @@
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
+ # Resource Type
10
+ #
11
+ class ResourceType
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the resource type name
16
+ attr_accessor :name
17
+
18
+ # @return [String] Gets or sets the resource type display name
19
+ attr_accessor :display_name
20
+
21
+ # @return [Array<ProviderOperation>] Gets or sets the resource type
22
+ # operations
23
+ attr_accessor :operations
24
+
25
+
26
+ #
27
+ # Mapper for ResourceType class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ required: false,
33
+ serialized_name: 'ResourceType',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'ResourceType',
37
+ model_properties: {
38
+ name: {
39
+ required: false,
40
+ serialized_name: 'name',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ display_name: {
46
+ required: false,
47
+ serialized_name: 'displayName',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ },
52
+ operations: {
53
+ required: false,
54
+ serialized_name: 'operations',
55
+ type: {
56
+ name: 'Sequence',
57
+ element: {
58
+ required: false,
59
+ serialized_name: 'ProviderOperationElementType',
60
+ type: {
61
+ name: 'Composite',
62
+ class_name: 'ProviderOperation'
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ end
71
+ end
72
+ end
73
+ end
@@ -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 Assignments
10
+ #
11
+ class RoleAssignment
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets role assignment id.
16
+ attr_accessor :id
17
+
18
+ # @return [String] Gets or sets role assignment name.
19
+ attr_accessor :name
20
+
21
+ # @return [String] Gets or sets role assignment type.
22
+ attr_accessor :type
23
+
24
+ # @return [RoleAssignmentPropertiesWithScope] Gets or sets role
25
+ # assignment properties.
26
+ attr_accessor :properties
27
+
28
+
29
+ #
30
+ # Mapper for RoleAssignment class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ required: false,
36
+ serialized_name: 'RoleAssignment',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'RoleAssignment',
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: 'RoleAssignmentPropertiesWithScope'
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ end
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,46 @@
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 assignment create parameters.
10
+ #
11
+ class RoleAssignmentCreateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [RoleAssignmentProperties] Gets or sets role assignment
16
+ # properties.
17
+ attr_accessor :properties
18
+
19
+
20
+ #
21
+ # Mapper for RoleAssignmentCreateParameters class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'RoleAssignmentCreateParameters',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'RoleAssignmentCreateParameters',
31
+ model_properties: {
32
+ properties: {
33
+ required: false,
34
+ serialized_name: 'properties',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'RoleAssignmentProperties'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ 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 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
+
19
+ #
20
+ # Mapper for RoleAssignmentFilter class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ required: false,
26
+ serialized_name: 'RoleAssignmentFilter',
27
+ type: {
28
+ name: 'Composite',
29
+ class_name: 'RoleAssignmentFilter',
30
+ model_properties: {
31
+ principal_id: {
32
+ required: false,
33
+ serialized_name: 'principalId',
34
+ type: {
35
+ name: 'String'
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,94 @@
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 assignment list operation result.
10
+ #
11
+ class RoleAssignmentListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<RoleAssignment>] Role assignment list.
16
+ attr_accessor :value
17
+
18
+ # @return [String] Gets or sets the URL to get the next set of role
19
+ # assignment 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
+ required: false,
61
+ serialized_name: 'RoleAssignmentListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'RoleAssignmentListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'RoleAssignmentElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'RoleAssignment'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: false,
83
+ serialized_name: 'nextLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,54 @@
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 assignment properties.
10
+ #
11
+ class RoleAssignmentProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets role definition id.
16
+ attr_accessor :role_definition_id
17
+
18
+ # @return [String] Gets or sets principal Id.
19
+ attr_accessor :principal_id
20
+
21
+
22
+ #
23
+ # Mapper for RoleAssignmentProperties class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ required: false,
29
+ serialized_name: 'RoleAssignmentProperties',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'RoleAssignmentProperties',
33
+ model_properties: {
34
+ role_definition_id: {
35
+ required: false,
36
+ serialized_name: 'roleDefinitionId',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ },
41
+ principal_id: {
42
+ required: false,
43
+ serialized_name: 'principalId',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,64 @@
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 assignment properties with scope.
10
+ #
11
+ class RoleAssignmentPropertiesWithScope
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets role assignment scope.
16
+ attr_accessor :scope
17
+
18
+ # @return [String] Gets or sets role definition id.
19
+ attr_accessor :role_definition_id
20
+
21
+ # @return [String] Gets or sets principal Id.
22
+ attr_accessor :principal_id
23
+
24
+
25
+ #
26
+ # Mapper for RoleAssignmentPropertiesWithScope class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ required: false,
32
+ serialized_name: 'RoleAssignmentPropertiesWithScope',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'RoleAssignmentPropertiesWithScope',
36
+ model_properties: {
37
+ scope: {
38
+ required: false,
39
+ serialized_name: 'scope',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ role_definition_id: {
45
+ required: false,
46
+ serialized_name: 'roleDefinitionId',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ principal_id: {
52
+ required: false,
53
+ serialized_name: 'principalId',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ end
62
+ end
63
+ end
64
+ end