azure_mgmt_policy 0.17.4 → 0.17.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_assignments.rb +24 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_definitions.rb +10 -0
- data/lib/2016-04-01/generated/azure_mgmt_policy/policy_assignments.rb +24 -0
- data/lib/2016-04-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_policy/policy_definitions.rb +10 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/policy_assignments.rb +24 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2016-12-01/generated/azure_mgmt_policy/policy_definitions.rb +26 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_assignments.rb +24 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_set_definitions.rb +26 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/policy_assignments.rb +101 -84
- data/lib/2018-03-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2018-03-01/generated/azure_mgmt_policy/policy_definitions.rb +26 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/policy_set_definitions.rb +26 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/policy_assignments.rb +101 -84
- data/lib/2018-05-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2018-05-01/generated/azure_mgmt_policy/policy_definitions.rb +26 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/policy_set_definitions.rb +26 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy.rb +42 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/error_response.rb +69 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/identity.rb +72 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_assignment.rb +196 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition.rb +152 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +58 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +151 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/module_definition.rb +9 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/policy_assignments.rb +1902 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/policy_client.rb +139 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/policy_definitions.rb +1391 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy.rb +43 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/enforcement_mode.rb +16 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/error_response.rb +69 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/identity.rb +72 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_assignment.rb +209 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition.rb +152 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +58 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +151 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +16 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/module_definition.rb +9 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/policy_assignments.rb +1902 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/policy_client.rb +139 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/policy_definitions.rb +1391 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy.rb +49 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/enforcement_mode.rb +16 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/error_additional_info.rb +59 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/error_response.rb +113 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/identity.rb +73 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_definitions_value.rb +91 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_definitions_value_metadata.rb +76 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_type.rb +21 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_values_value.rb +46 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_assignment.rb +220 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition.rb +164 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_group.rb +91 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +100 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +182 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_type.rb +18 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +16 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/module_definition.rb +9 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/policy_assignments.rb +2179 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/policy_client.rb +139 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/policy_definitions.rb +1391 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -0
- data/lib/azure_mgmt_policy.rb +6 -3
- data/lib/profiles/latest/modules/policy_profile_module.rb +32 -32
- data/lib/version.rb +1 -1
- metadata +67 -5
@@ -0,0 +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
|
@@ -0,0 +1,46 @@
|
|
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 value of a parameter.
|
10
|
+
#
|
11
|
+
class ParameterValuesValue
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return The value of the parameter.
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for ParameterValuesValue class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'ParameterValuesValue',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'ParameterValuesValue',
|
31
|
+
model_properties: {
|
32
|
+
value: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'value',
|
36
|
+
type: {
|
37
|
+
name: 'Object'
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +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
|
@@ -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::Policy::Mgmt::V2019_09_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
|
@@ -0,0 +1,164 @@
|
|
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 definition.
|
10
|
+
#
|
11
|
+
class PolicyDefinition
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [PolicyType] The type of policy definition. Possible values are
|
16
|
+
# NotSpecified, BuiltIn, Custom, and Static. Possible values include:
|
17
|
+
# 'NotSpecified', 'BuiltIn', 'Custom', 'Static'
|
18
|
+
attr_accessor :policy_type
|
19
|
+
|
20
|
+
# @return [String] The policy definition mode. Some examples are All,
|
21
|
+
# Indexed, Microsoft.KeyVault.Data.
|
22
|
+
attr_accessor :mode
|
23
|
+
|
24
|
+
# @return [String] The display name of the policy definition.
|
25
|
+
attr_accessor :display_name
|
26
|
+
|
27
|
+
# @return [String] The policy definition description.
|
28
|
+
attr_accessor :description
|
29
|
+
|
30
|
+
# @return The policy rule.
|
31
|
+
attr_accessor :policy_rule
|
32
|
+
|
33
|
+
# @return The policy definition metadata. Metadata is an open ended
|
34
|
+
# object and is typically a collection of key value pairs.
|
35
|
+
attr_accessor :metadata
|
36
|
+
|
37
|
+
# @return [Hash{String => ParameterDefinitionsValue}] The parameter
|
38
|
+
# definitions for parameters used in the policy rule. The keys are the
|
39
|
+
# parameter names.
|
40
|
+
attr_accessor :parameters
|
41
|
+
|
42
|
+
# @return [String] The ID of the policy definition.
|
43
|
+
attr_accessor :id
|
44
|
+
|
45
|
+
# @return [String] The name of the policy definition.
|
46
|
+
attr_accessor :name
|
47
|
+
|
48
|
+
# @return [String] The type of the resource
|
49
|
+
# (Microsoft.Authorization/policyDefinitions).
|
50
|
+
attr_accessor :type
|
51
|
+
|
52
|
+
|
53
|
+
#
|
54
|
+
# Mapper for PolicyDefinition class as Ruby Hash.
|
55
|
+
# This will be used for serialization/deserialization.
|
56
|
+
#
|
57
|
+
def self.mapper()
|
58
|
+
{
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'PolicyDefinition',
|
62
|
+
type: {
|
63
|
+
name: 'Composite',
|
64
|
+
class_name: 'PolicyDefinition',
|
65
|
+
model_properties: {
|
66
|
+
policy_type: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'properties.policyType',
|
70
|
+
type: {
|
71
|
+
name: 'String'
|
72
|
+
}
|
73
|
+
},
|
74
|
+
mode: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'properties.mode',
|
78
|
+
type: {
|
79
|
+
name: 'String'
|
80
|
+
}
|
81
|
+
},
|
82
|
+
display_name: {
|
83
|
+
client_side_validation: true,
|
84
|
+
required: false,
|
85
|
+
serialized_name: 'properties.displayName',
|
86
|
+
type: {
|
87
|
+
name: 'String'
|
88
|
+
}
|
89
|
+
},
|
90
|
+
description: {
|
91
|
+
client_side_validation: true,
|
92
|
+
required: false,
|
93
|
+
serialized_name: 'properties.description',
|
94
|
+
type: {
|
95
|
+
name: 'String'
|
96
|
+
}
|
97
|
+
},
|
98
|
+
policy_rule: {
|
99
|
+
client_side_validation: true,
|
100
|
+
required: false,
|
101
|
+
serialized_name: 'properties.policyRule',
|
102
|
+
type: {
|
103
|
+
name: 'Object'
|
104
|
+
}
|
105
|
+
},
|
106
|
+
metadata: {
|
107
|
+
client_side_validation: true,
|
108
|
+
required: false,
|
109
|
+
serialized_name: 'properties.metadata',
|
110
|
+
type: {
|
111
|
+
name: 'Object'
|
112
|
+
}
|
113
|
+
},
|
114
|
+
parameters: {
|
115
|
+
client_side_validation: true,
|
116
|
+
required: false,
|
117
|
+
serialized_name: 'properties.parameters',
|
118
|
+
type: {
|
119
|
+
name: 'Dictionary',
|
120
|
+
value: {
|
121
|
+
client_side_validation: true,
|
122
|
+
required: false,
|
123
|
+
serialized_name: 'ParameterDefinitionsValueElementType',
|
124
|
+
type: {
|
125
|
+
name: 'Composite',
|
126
|
+
class_name: 'ParameterDefinitionsValue'
|
127
|
+
}
|
128
|
+
}
|
129
|
+
}
|
130
|
+
},
|
131
|
+
id: {
|
132
|
+
client_side_validation: true,
|
133
|
+
required: false,
|
134
|
+
read_only: true,
|
135
|
+
serialized_name: 'id',
|
136
|
+
type: {
|
137
|
+
name: 'String'
|
138
|
+
}
|
139
|
+
},
|
140
|
+
name: {
|
141
|
+
client_side_validation: true,
|
142
|
+
required: false,
|
143
|
+
read_only: true,
|
144
|
+
serialized_name: 'name',
|
145
|
+
type: {
|
146
|
+
name: 'String'
|
147
|
+
}
|
148
|
+
},
|
149
|
+
type: {
|
150
|
+
client_side_validation: true,
|
151
|
+
required: false,
|
152
|
+
read_only: true,
|
153
|
+
serialized_name: 'type',
|
154
|
+
type: {
|
155
|
+
name: 'String'
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|