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
@@ -18,8 +18,9 @@ module Azure::Policy::Mgmt::V2019_09_01
18
18
  # @return [String] The tenant ID of the resource identity.
19
19
  attr_accessor :tenant_id
20
20
 
21
- # @return [ResourceIdentityType] The identity type. Possible values
22
- # include: 'SystemAssigned', 'None'
21
+ # @return [ResourceIdentityType] The identity type. This is the only
22
+ # required field when adding a system assigned identity to a resource.
23
+ # Possible values include: 'SystemAssigned', 'None'
23
24
  attr_accessor :type
24
25
 
25
26
 
@@ -6,8 +6,7 @@
6
6
  module Azure::Policy::Mgmt::V2019_09_01
7
7
  module Models
8
8
  #
9
- # Model object.
10
- #
9
+ # The definition of a parameter that can be provided to the policy.
11
10
  #
12
11
  class ParameterDefinitionsValue
13
12
 
@@ -1,76 +1,76 @@
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::V2019_09_01
7
- module Models
8
- #
9
- # General metadata for the parameter.
10
- #
11
- class ParameterDefinitionsValueMetadata
12
-
13
- include MsRestAzure
14
-
15
- # @return Unmatched properties from the message are deserialized this
16
- # collection
17
- attr_accessor :additional_properties
18
-
19
- # @return [String] The display name for the parameter.
20
- attr_accessor :display_name
21
-
22
- # @return [String] The description of the parameter.
23
- attr_accessor :description
24
-
25
-
26
- #
27
- # Mapper for ParameterDefinitionsValueMetadata class as Ruby Hash.
28
- # This will be used for serialization/deserialization.
29
- #
30
- def self.mapper()
31
- {
32
- client_side_validation: true,
33
- required: false,
34
- serialized_name: 'ParameterDefinitionsValue_metadata',
35
- type: {
36
- name: 'Composite',
37
- class_name: 'ParameterDefinitionsValueMetadata',
38
- model_properties: {
39
- additional_properties: {
40
- client_side_validation: true,
41
- required: false,
42
- type: {
43
- name: 'Dictionary',
44
- value: {
45
- client_side_validation: true,
46
- required: false,
47
- serialized_name: 'ObjectElementType',
48
- type: {
49
- name: 'Object'
50
- }
51
- }
52
- }
53
- },
54
- display_name: {
55
- client_side_validation: true,
56
- required: false,
57
- serialized_name: 'displayName',
58
- type: {
59
- name: 'String'
60
- }
61
- },
62
- description: {
63
- client_side_validation: true,
64
- required: false,
65
- serialized_name: 'description',
66
- type: {
67
- name: 'String'
68
- }
69
- }
70
- }
71
- }
72
- }
73
- end
74
- end
75
- end
76
- 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::V2019_09_01
7
+ module Models
8
+ #
9
+ # General metadata for the parameter.
10
+ #
11
+ class ParameterDefinitionsValueMetadata
12
+
13
+ include MsRestAzure
14
+
15
+ # @return Unmatched properties from the message are deserialized this
16
+ # collection
17
+ attr_accessor :additional_properties
18
+
19
+ # @return [String] The display name for the parameter.
20
+ attr_accessor :display_name
21
+
22
+ # @return [String] The description of the parameter.
23
+ attr_accessor :description
24
+
25
+
26
+ #
27
+ # Mapper for ParameterDefinitionsValueMetadata class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'ParameterDefinitionsValue_metadata',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'ParameterDefinitionsValueMetadata',
38
+ model_properties: {
39
+ additional_properties: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ type: {
43
+ name: 'Dictionary',
44
+ value: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'ObjectElementType',
48
+ type: {
49
+ name: 'Object'
50
+ }
51
+ }
52
+ }
53
+ },
54
+ display_name: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'displayName',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ description: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'description',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ end
74
+ end
75
+ end
76
+ end
@@ -1,21 +1,21 @@
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::V2019_09_01
7
- module Models
8
- #
9
- # Defines values for ParameterType
10
- #
11
- module ParameterType
12
- String = "String"
13
- Array = "Array"
14
- Object = "Object"
15
- Boolean = "Boolean"
16
- Integer = "Integer"
17
- Float = "Float"
18
- DateTime = "DateTime"
19
- end
20
- end
21
- 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::V2019_09_01
7
+ module Models
8
+ #
9
+ # Defines values for ParameterType
10
+ #
11
+ module ParameterType
12
+ String = "String"
13
+ Array = "Array"
14
+ Object = "Object"
15
+ Boolean = "Boolean"
16
+ Integer = "Integer"
17
+ Float = "Float"
18
+ DateTime = "DateTime"
19
+ end
20
+ end
21
+ end
@@ -6,8 +6,7 @@
6
6
  module Azure::Policy::Mgmt::V2019_09_01
7
7
  module Models
8
8
  #
9
- # Model object.
10
- #
9
+ # The value of a parameter.
11
10
  #
12
11
  class ParameterValuesValue
13
12
 
@@ -1,220 +1,220 @@
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::V2019_09_01
7
- module Models
8
- #
9
- # The policy assignment.
10
- #
11
- class PolicyAssignment
12
-
13
- include MsRestAzure
14
-
15
- # @return [String] The display name of the policy assignment.
16
- attr_accessor :display_name
17
-
18
- # @return [String] The ID of the policy definition or policy set
19
- # definition being assigned.
20
- attr_accessor :policy_definition_id
21
-
22
- # @return [String] The scope for the policy assignment.
23
- attr_accessor :scope
24
-
25
- # @return [Array<String>] The policy's excluded scopes.
26
- attr_accessor :not_scopes
27
-
28
- # @return [Hash{String => ParameterValuesValue}] The parameter values for
29
- # the assigned policy rule. The keys are the parameter names.
30
- attr_accessor :parameters
31
-
32
- # @return [String] This message will be part of response in case of
33
- # policy violation.
34
- attr_accessor :description
35
-
36
- # @return The policy assignment metadata. Metadata is an open ended
37
- # object and is typically a collection of key value pairs.
38
- attr_accessor :metadata
39
-
40
- # @return [EnforcementMode] The policy assignment enforcement mode.
41
- # Possible values are Default and DoNotEnforce. Possible values include:
42
- # 'Default', 'DoNotEnforce'
43
- attr_accessor :enforcement_mode
44
-
45
- # @return [String] The ID of the policy assignment.
46
- attr_accessor :id
47
-
48
- # @return [String] The type of the policy assignment.
49
- attr_accessor :type
50
-
51
- # @return [String] The name of the policy assignment.
52
- attr_accessor :name
53
-
54
- # @return [PolicySku] The policy sku. This property is optional,
55
- # obsolete, and will be ignored.
56
- attr_accessor :sku
57
-
58
- # @return [String] The location of the policy assignment. Only required
59
- # when utilizing managed identity.
60
- attr_accessor :location
61
-
62
- # @return [Identity] The managed identity associated with the policy
63
- # assignment.
64
- attr_accessor :identity
65
-
66
-
67
- #
68
- # Mapper for PolicyAssignment class as Ruby Hash.
69
- # This will be used for serialization/deserialization.
70
- #
71
- def self.mapper()
72
- {
73
- client_side_validation: true,
74
- required: false,
75
- serialized_name: 'PolicyAssignment',
76
- type: {
77
- name: 'Composite',
78
- class_name: 'PolicyAssignment',
79
- model_properties: {
80
- display_name: {
81
- client_side_validation: true,
82
- required: false,
83
- serialized_name: 'properties.displayName',
84
- type: {
85
- name: 'String'
86
- }
87
- },
88
- policy_definition_id: {
89
- client_side_validation: true,
90
- required: false,
91
- serialized_name: 'properties.policyDefinitionId',
92
- type: {
93
- name: 'String'
94
- }
95
- },
96
- scope: {
97
- client_side_validation: true,
98
- required: false,
99
- serialized_name: 'properties.scope',
100
- type: {
101
- name: 'String'
102
- }
103
- },
104
- not_scopes: {
105
- client_side_validation: true,
106
- required: false,
107
- serialized_name: 'properties.notScopes',
108
- type: {
109
- name: 'Sequence',
110
- element: {
111
- client_side_validation: true,
112
- required: false,
113
- serialized_name: 'StringElementType',
114
- type: {
115
- name: 'String'
116
- }
117
- }
118
- }
119
- },
120
- parameters: {
121
- client_side_validation: true,
122
- required: false,
123
- serialized_name: 'properties.parameters',
124
- type: {
125
- name: 'Dictionary',
126
- value: {
127
- client_side_validation: true,
128
- required: false,
129
- serialized_name: 'ParameterValuesValueElementType',
130
- type: {
131
- name: 'Composite',
132
- class_name: 'ParameterValuesValue'
133
- }
134
- }
135
- }
136
- },
137
- description: {
138
- client_side_validation: true,
139
- required: false,
140
- serialized_name: 'properties.description',
141
- type: {
142
- name: 'String'
143
- }
144
- },
145
- metadata: {
146
- client_side_validation: true,
147
- required: false,
148
- serialized_name: 'properties.metadata',
149
- type: {
150
- name: 'Object'
151
- }
152
- },
153
- enforcement_mode: {
154
- client_side_validation: true,
155
- required: false,
156
- serialized_name: 'properties.enforcementMode',
157
- type: {
158
- name: 'String'
159
- }
160
- },
161
- id: {
162
- client_side_validation: true,
163
- required: false,
164
- read_only: true,
165
- serialized_name: 'id',
166
- type: {
167
- name: 'String'
168
- }
169
- },
170
- type: {
171
- client_side_validation: true,
172
- required: false,
173
- read_only: true,
174
- serialized_name: 'type',
175
- type: {
176
- name: 'String'
177
- }
178
- },
179
- name: {
180
- client_side_validation: true,
181
- required: false,
182
- read_only: true,
183
- serialized_name: 'name',
184
- type: {
185
- name: 'String'
186
- }
187
- },
188
- sku: {
189
- client_side_validation: true,
190
- required: false,
191
- serialized_name: 'sku',
192
- type: {
193
- name: 'Composite',
194
- class_name: 'PolicySku'
195
- }
196
- },
197
- location: {
198
- client_side_validation: true,
199
- required: false,
200
- serialized_name: 'location',
201
- type: {
202
- name: 'String'
203
- }
204
- },
205
- identity: {
206
- client_side_validation: true,
207
- required: false,
208
- serialized_name: 'identity',
209
- type: {
210
- name: 'Composite',
211
- class_name: 'Identity'
212
- }
213
- }
214
- }
215
- }
216
- }
217
- end
218
- end
219
- end
220
- 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::V2019_09_01
7
+ module Models
8
+ #
9
+ # The policy assignment.
10
+ #
11
+ class PolicyAssignment
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The display name of the policy assignment.
16
+ attr_accessor :display_name
17
+
18
+ # @return [String] The ID of the policy definition or policy set
19
+ # definition being assigned.
20
+ attr_accessor :policy_definition_id
21
+
22
+ # @return [String] The scope for the policy assignment.
23
+ attr_accessor :scope
24
+
25
+ # @return [Array<String>] The policy's excluded scopes.
26
+ attr_accessor :not_scopes
27
+
28
+ # @return [Hash{String => ParameterValuesValue}] The parameter values for
29
+ # the assigned policy rule. The keys are the parameter names.
30
+ attr_accessor :parameters
31
+
32
+ # @return [String] This message will be part of response in case of
33
+ # policy violation.
34
+ attr_accessor :description
35
+
36
+ # @return The policy assignment metadata. Metadata is an open ended
37
+ # object and is typically a collection of key value pairs.
38
+ attr_accessor :metadata
39
+
40
+ # @return [EnforcementMode] The policy assignment enforcement mode.
41
+ # Possible values are Default and DoNotEnforce. Possible values include:
42
+ # 'Default', 'DoNotEnforce'
43
+ attr_accessor :enforcement_mode
44
+
45
+ # @return [String] The ID of the policy assignment.
46
+ attr_accessor :id
47
+
48
+ # @return [String] The type of the policy assignment.
49
+ attr_accessor :type
50
+
51
+ # @return [String] The name of the policy assignment.
52
+ attr_accessor :name
53
+
54
+ # @return [PolicySku] The policy sku. This property is optional,
55
+ # obsolete, and will be ignored.
56
+ attr_accessor :sku
57
+
58
+ # @return [String] The location of the policy assignment. Only required
59
+ # when utilizing managed identity.
60
+ attr_accessor :location
61
+
62
+ # @return [Identity] The managed identity associated with the policy
63
+ # assignment.
64
+ attr_accessor :identity
65
+
66
+
67
+ #
68
+ # Mapper for PolicyAssignment class as Ruby Hash.
69
+ # This will be used for serialization/deserialization.
70
+ #
71
+ def self.mapper()
72
+ {
73
+ client_side_validation: true,
74
+ required: false,
75
+ serialized_name: 'PolicyAssignment',
76
+ type: {
77
+ name: 'Composite',
78
+ class_name: 'PolicyAssignment',
79
+ model_properties: {
80
+ display_name: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ serialized_name: 'properties.displayName',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ },
88
+ policy_definition_id: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ serialized_name: 'properties.policyDefinitionId',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ },
96
+ scope: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ serialized_name: 'properties.scope',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ },
104
+ not_scopes: {
105
+ client_side_validation: true,
106
+ required: false,
107
+ serialized_name: 'properties.notScopes',
108
+ type: {
109
+ name: 'Sequence',
110
+ element: {
111
+ client_side_validation: true,
112
+ required: false,
113
+ serialized_name: 'StringElementType',
114
+ type: {
115
+ name: 'String'
116
+ }
117
+ }
118
+ }
119
+ },
120
+ parameters: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ serialized_name: 'properties.parameters',
124
+ type: {
125
+ name: 'Dictionary',
126
+ value: {
127
+ client_side_validation: true,
128
+ required: false,
129
+ serialized_name: 'ParameterValuesValueElementType',
130
+ type: {
131
+ name: 'Composite',
132
+ class_name: 'ParameterValuesValue'
133
+ }
134
+ }
135
+ }
136
+ },
137
+ description: {
138
+ client_side_validation: true,
139
+ required: false,
140
+ serialized_name: 'properties.description',
141
+ type: {
142
+ name: 'String'
143
+ }
144
+ },
145
+ metadata: {
146
+ client_side_validation: true,
147
+ required: false,
148
+ serialized_name: 'properties.metadata',
149
+ type: {
150
+ name: 'Object'
151
+ }
152
+ },
153
+ enforcement_mode: {
154
+ client_side_validation: true,
155
+ required: false,
156
+ serialized_name: 'properties.enforcementMode',
157
+ type: {
158
+ name: 'String'
159
+ }
160
+ },
161
+ id: {
162
+ client_side_validation: true,
163
+ required: false,
164
+ read_only: true,
165
+ serialized_name: 'id',
166
+ type: {
167
+ name: 'String'
168
+ }
169
+ },
170
+ type: {
171
+ client_side_validation: true,
172
+ required: false,
173
+ read_only: true,
174
+ serialized_name: 'type',
175
+ type: {
176
+ name: 'String'
177
+ }
178
+ },
179
+ name: {
180
+ client_side_validation: true,
181
+ required: false,
182
+ read_only: true,
183
+ serialized_name: 'name',
184
+ type: {
185
+ name: 'String'
186
+ }
187
+ },
188
+ sku: {
189
+ client_side_validation: true,
190
+ required: false,
191
+ serialized_name: 'sku',
192
+ type: {
193
+ name: 'Composite',
194
+ class_name: 'PolicySku'
195
+ }
196
+ },
197
+ location: {
198
+ client_side_validation: true,
199
+ required: false,
200
+ serialized_name: 'location',
201
+ type: {
202
+ name: 'String'
203
+ }
204
+ },
205
+ identity: {
206
+ client_side_validation: true,
207
+ required: false,
208
+ serialized_name: 'identity',
209
+ type: {
210
+ name: 'Composite',
211
+ class_name: 'Identity'
212
+ }
213
+ }
214
+ }
215
+ }
216
+ }
217
+ end
218
+ end
219
+ end
220
+ end