azure_mgmt_policy 0.17.7 → 0.17.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2015-10-01-preview/generated/azure_mgmt_policy.rb +34 -34
  3. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_assignment.rb +101 -101
  4. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
  5. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_definition.rb +106 -106
  6. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -98
  7. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_type.rb +17 -17
  8. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/module_definition.rb +9 -9
  9. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_assignments.rb +1356 -1356
  10. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_client.rb +1 -1
  11. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_definitions.rb +505 -505
  12. data/lib/2016-04-01/generated/azure_mgmt_policy.rb +34 -34
  13. data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_assignment.rb +101 -101
  14. data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
  15. data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_definition.rb +106 -106
  16. data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -98
  17. data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -17
  18. data/lib/2016-04-01/generated/azure_mgmt_policy/module_definition.rb +9 -9
  19. data/lib/2016-04-01/generated/azure_mgmt_policy/policy_assignments.rb +1356 -1356
  20. data/lib/2016-04-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
  21. data/lib/2016-04-01/generated/azure_mgmt_policy/policy_definitions.rb +505 -505
  22. data/lib/2016-12-01/generated/azure_mgmt_policy.rb +35 -35
  23. data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment.rb +125 -125
  24. data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
  25. data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_definition.rb +140 -140
  26. data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -98
  27. data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_mode.rb +17 -17
  28. data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -17
  29. data/lib/2016-12-01/generated/azure_mgmt_policy/module_definition.rb +9 -9
  30. data/lib/2016-12-01/generated/azure_mgmt_policy/policy_assignments.rb +1356 -1356
  31. data/lib/2016-12-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
  32. data/lib/2016-12-01/generated/azure_mgmt_policy/policy_definitions.rb +1275 -1275
  33. data/lib/2017-06-01-preview/generated/azure_mgmt_policy.rb +37 -37
  34. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/error_response.rb +69 -69
  35. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_assignment.rb +169 -169
  36. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
  37. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_definition_reference.rb +58 -58
  38. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_set_definition.rb +151 -151
  39. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -99
  40. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_sku.rb +59 -59
  41. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_type.rb +17 -17
  42. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/module_definition.rb +9 -9
  43. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_assignments.rb +1356 -1356
  44. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_client.rb +1 -1
  45. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_set_definitions.rb +1295 -1295
  46. data/lib/2018-03-01/generated/azure_mgmt_policy.rb +41 -41
  47. data/lib/2018-03-01/generated/azure_mgmt_policy/models/error_response.rb +69 -69
  48. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_assignment.rb +171 -171
  49. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
  50. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_definition.rb +153 -153
  51. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -98
  52. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +58 -58
  53. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_mode.rb +17 -17
  54. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +151 -151
  55. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -99
  56. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -59
  57. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -17
  58. data/lib/2018-03-01/generated/azure_mgmt_policy/module_definition.rb +9 -9
  59. data/lib/2018-03-01/generated/azure_mgmt_policy/policy_assignments.rb +1902 -1902
  60. data/lib/2018-03-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
  61. data/lib/2018-03-01/generated/azure_mgmt_policy/policy_definitions.rb +1391 -1391
  62. data/lib/2018-03-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -1414
  63. data/lib/2018-05-01/generated/azure_mgmt_policy.rb +43 -43
  64. data/lib/2018-05-01/generated/azure_mgmt_policy/models/error_response.rb +69 -69
  65. data/lib/2018-05-01/generated/azure_mgmt_policy/models/identity.rb +72 -72
  66. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_assignment.rb +196 -196
  67. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
  68. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_definition.rb +153 -153
  69. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -98
  70. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +58 -58
  71. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_mode.rb +17 -17
  72. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +151 -151
  73. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -99
  74. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -59
  75. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -17
  76. data/lib/2018-05-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +16 -16
  77. data/lib/2018-05-01/generated/azure_mgmt_policy/module_definition.rb +9 -9
  78. data/lib/2018-05-01/generated/azure_mgmt_policy/policy_assignments.rb +1902 -1902
  79. data/lib/2018-05-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
  80. data/lib/2018-05-01/generated/azure_mgmt_policy/policy_definitions.rb +1391 -1391
  81. data/lib/2018-05-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -1414
  82. data/lib/2019-01-01/generated/azure_mgmt_policy.rb +42 -42
  83. data/lib/2019-01-01/generated/azure_mgmt_policy/models/error_response.rb +69 -69
  84. data/lib/2019-01-01/generated/azure_mgmt_policy/models/identity.rb +72 -72
  85. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_assignment.rb +196 -196
  86. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
  87. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition.rb +152 -152
  88. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -98
  89. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +58 -58
  90. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +151 -151
  91. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -99
  92. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -59
  93. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -17
  94. data/lib/2019-01-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +16 -16
  95. data/lib/2019-01-01/generated/azure_mgmt_policy/module_definition.rb +9 -9
  96. data/lib/2019-01-01/generated/azure_mgmt_policy/policy_assignments.rb +1902 -1902
  97. data/lib/2019-01-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
  98. data/lib/2019-01-01/generated/azure_mgmt_policy/policy_definitions.rb +1391 -1391
  99. data/lib/2019-01-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -1414
  100. data/lib/2019-06-01/generated/azure_mgmt_policy.rb +43 -43
  101. data/lib/2019-06-01/generated/azure_mgmt_policy/models/enforcement_mode.rb +16 -16
  102. data/lib/2019-06-01/generated/azure_mgmt_policy/models/error_response.rb +69 -69
  103. data/lib/2019-06-01/generated/azure_mgmt_policy/models/identity.rb +72 -72
  104. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_assignment.rb +209 -209
  105. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
  106. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition.rb +152 -152
  107. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -98
  108. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +58 -58
  109. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +151 -151
  110. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -99
  111. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -59
  112. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -17
  113. data/lib/2019-06-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +16 -16
  114. data/lib/2019-06-01/generated/azure_mgmt_policy/module_definition.rb +9 -9
  115. data/lib/2019-06-01/generated/azure_mgmt_policy/policy_assignments.rb +1902 -1902
  116. data/lib/2019-06-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
  117. data/lib/2019-06-01/generated/azure_mgmt_policy/policy_definitions.rb +1391 -1391
  118. data/lib/2019-06-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -1414
  119. data/lib/2019-09-01/generated/azure_mgmt_policy.rb +49 -49
  120. data/lib/2019-09-01/generated/azure_mgmt_policy/models/enforcement_mode.rb +16 -16
  121. data/lib/2019-09-01/generated/azure_mgmt_policy/models/error_additional_info.rb +59 -59
  122. data/lib/2019-09-01/generated/azure_mgmt_policy/models/error_response.rb +113 -113
  123. data/lib/2019-09-01/generated/azure_mgmt_policy/models/identity.rb +3 -2
  124. data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_definitions_value.rb +1 -2
  125. data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_definitions_value_metadata.rb +76 -76
  126. data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_type.rb +21 -21
  127. data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_values_value.rb +1 -2
  128. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_assignment.rb +220 -220
  129. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
  130. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition.rb +164 -164
  131. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_group.rb +91 -91
  132. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -98
  133. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +100 -100
  134. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +182 -182
  135. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -99
  136. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -59
  137. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_type.rb +18 -18
  138. data/lib/2019-09-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +16 -16
  139. data/lib/2019-09-01/generated/azure_mgmt_policy/module_definition.rb +9 -9
  140. data/lib/2019-09-01/generated/azure_mgmt_policy/policy_assignments.rb +277 -0
  141. data/lib/2019-09-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
  142. data/lib/2019-09-01/generated/azure_mgmt_policy/policy_definitions.rb +1391 -1391
  143. data/lib/2019-09-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -1414
  144. data/lib/azure_mgmt_policy.rb +17 -17
  145. data/lib/version.rb +1 -1
  146. metadata +3 -3
@@ -1,98 +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::Policy::Mgmt::V2018_03_01
7
- module Models
8
- #
9
- # List of policy assignments.
10
- #
11
- class PolicyAssignmentListResult
12
-
13
- include MsRestAzure
14
-
15
- include MsRest::JSONable
16
- # @return [Array<PolicyAssignment>] An array of policy assignments.
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<PolicyAssignment>] operation results.
29
- #
30
- def get_all_items
31
- items = @value
32
- page = self
33
- while page.next_link != nil && !page.next_link.strip.empty? 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 [PolicyAssignmentListResult] 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 PolicyAssignmentListResult 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: 'PolicyAssignmentListResult',
63
- type: {
64
- name: 'Composite',
65
- class_name: 'PolicyAssignmentListResult',
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: 'PolicyAssignmentElementType',
77
- type: {
78
- name: 'Composite',
79
- class_name: 'PolicyAssignment'
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
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::Policy::Mgmt::V2018_03_01
7
+ module Models
8
+ #
9
+ # List of policy assignments.
10
+ #
11
+ class PolicyAssignmentListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<PolicyAssignment>] An array of policy assignments.
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<PolicyAssignment>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil && !page.next_link.strip.empty? 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 [PolicyAssignmentListResult] 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 PolicyAssignmentListResult 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: 'PolicyAssignmentListResult',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'PolicyAssignmentListResult',
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: 'PolicyAssignmentElementType',
77
+ type: {
78
+ name: 'Composite',
79
+ class_name: 'PolicyAssignment'
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
@@ -1,153 +1,153 @@
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::Policy::Mgmt::V2018_03_01
7
- module Models
8
- #
9
- # The policy definition.
10
- #
11
- class PolicyDefinition
12
-
13
- include MsRestAzure
14
-
15
- # @return [PolicyType] The type of policy definition. Possible values are
16
- # NotSpecified, BuiltIn, and Custom. Possible values include:
17
- # 'NotSpecified', 'BuiltIn', 'Custom'
18
- attr_accessor :policy_type
19
-
20
- # @return [PolicyMode] The policy definition mode. Possible values are
21
- # NotSpecified, Indexed, and All. Possible values include:
22
- # 'NotSpecified', 'Indexed', 'All'
23
- attr_accessor :mode
24
-
25
- # @return [String] The display name of the policy definition.
26
- attr_accessor :display_name
27
-
28
- # @return [String] The policy definition description.
29
- attr_accessor :description
30
-
31
- # @return The policy rule.
32
- attr_accessor :policy_rule
33
-
34
- # @return The policy definition metadata.
35
- attr_accessor :metadata
36
-
37
- # @return Required if a parameter is used in policy rule.
38
- attr_accessor :parameters
39
-
40
- # @return [String] The ID of the policy definition.
41
- attr_accessor :id
42
-
43
- # @return [String] The name of the policy definition.
44
- attr_accessor :name
45
-
46
- # @return [String] The type of the resource
47
- # (Microsoft.Authorization/policyDefinitions).
48
- attr_accessor :type
49
-
50
-
51
- #
52
- # Mapper for PolicyDefinition class as Ruby Hash.
53
- # This will be used for serialization/deserialization.
54
- #
55
- def self.mapper()
56
- {
57
- client_side_validation: true,
58
- required: false,
59
- serialized_name: 'PolicyDefinition',
60
- type: {
61
- name: 'Composite',
62
- class_name: 'PolicyDefinition',
63
- model_properties: {
64
- policy_type: {
65
- client_side_validation: true,
66
- required: false,
67
- serialized_name: 'properties.policyType',
68
- type: {
69
- name: 'String'
70
- }
71
- },
72
- mode: {
73
- client_side_validation: true,
74
- required: false,
75
- serialized_name: 'properties.mode',
76
- type: {
77
- name: 'String'
78
- }
79
- },
80
- display_name: {
81
- client_side_validation: true,
82
- required: false,
83
- serialized_name: 'properties.displayName',
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
- policy_rule: {
97
- client_side_validation: true,
98
- required: false,
99
- serialized_name: 'properties.policyRule',
100
- type: {
101
- name: 'Object'
102
- }
103
- },
104
- metadata: {
105
- client_side_validation: true,
106
- required: false,
107
- serialized_name: 'properties.metadata',
108
- type: {
109
- name: 'Object'
110
- }
111
- },
112
- parameters: {
113
- client_side_validation: true,
114
- required: false,
115
- serialized_name: 'properties.parameters',
116
- type: {
117
- name: 'Object'
118
- }
119
- },
120
- id: {
121
- client_side_validation: true,
122
- required: false,
123
- read_only: true,
124
- serialized_name: 'id',
125
- type: {
126
- name: 'String'
127
- }
128
- },
129
- name: {
130
- client_side_validation: true,
131
- required: false,
132
- read_only: true,
133
- serialized_name: 'name',
134
- type: {
135
- name: 'String'
136
- }
137
- },
138
- type: {
139
- client_side_validation: true,
140
- required: false,
141
- read_only: true,
142
- serialized_name: 'type',
143
- type: {
144
- name: 'String'
145
- }
146
- }
147
- }
148
- }
149
- }
150
- end
151
- end
152
- end
153
- end
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::Policy::Mgmt::V2018_03_01
7
+ module Models
8
+ #
9
+ # The policy definition.
10
+ #
11
+ class PolicyDefinition
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [PolicyType] The type of policy definition. Possible values are
16
+ # NotSpecified, BuiltIn, and Custom. Possible values include:
17
+ # 'NotSpecified', 'BuiltIn', 'Custom'
18
+ attr_accessor :policy_type
19
+
20
+ # @return [PolicyMode] The policy definition mode. Possible values are
21
+ # NotSpecified, Indexed, and All. Possible values include:
22
+ # 'NotSpecified', 'Indexed', 'All'
23
+ attr_accessor :mode
24
+
25
+ # @return [String] The display name of the policy definition.
26
+ attr_accessor :display_name
27
+
28
+ # @return [String] The policy definition description.
29
+ attr_accessor :description
30
+
31
+ # @return The policy rule.
32
+ attr_accessor :policy_rule
33
+
34
+ # @return The policy definition metadata.
35
+ attr_accessor :metadata
36
+
37
+ # @return Required if a parameter is used in policy rule.
38
+ attr_accessor :parameters
39
+
40
+ # @return [String] The ID of the policy definition.
41
+ attr_accessor :id
42
+
43
+ # @return [String] The name of the policy definition.
44
+ attr_accessor :name
45
+
46
+ # @return [String] The type of the resource
47
+ # (Microsoft.Authorization/policyDefinitions).
48
+ attr_accessor :type
49
+
50
+
51
+ #
52
+ # Mapper for PolicyDefinition class as Ruby Hash.
53
+ # This will be used for serialization/deserialization.
54
+ #
55
+ def self.mapper()
56
+ {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'PolicyDefinition',
60
+ type: {
61
+ name: 'Composite',
62
+ class_name: 'PolicyDefinition',
63
+ model_properties: {
64
+ policy_type: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ serialized_name: 'properties.policyType',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ mode: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ serialized_name: 'properties.mode',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ display_name: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ serialized_name: 'properties.displayName',
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
+ policy_rule: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ serialized_name: 'properties.policyRule',
100
+ type: {
101
+ name: 'Object'
102
+ }
103
+ },
104
+ metadata: {
105
+ client_side_validation: true,
106
+ required: false,
107
+ serialized_name: 'properties.metadata',
108
+ type: {
109
+ name: 'Object'
110
+ }
111
+ },
112
+ parameters: {
113
+ client_side_validation: true,
114
+ required: false,
115
+ serialized_name: 'properties.parameters',
116
+ type: {
117
+ name: 'Object'
118
+ }
119
+ },
120
+ id: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ read_only: true,
124
+ serialized_name: 'id',
125
+ type: {
126
+ name: 'String'
127
+ }
128
+ },
129
+ name: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ read_only: true,
133
+ serialized_name: 'name',
134
+ type: {
135
+ name: 'String'
136
+ }
137
+ },
138
+ type: {
139
+ client_side_validation: true,
140
+ required: false,
141
+ read_only: true,
142
+ serialized_name: 'type',
143
+ type: {
144
+ name: 'String'
145
+ }
146
+ }
147
+ }
148
+ }
149
+ }
150
+ end
151
+ end
152
+ end
153
+ end