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.
- checksums.yaml +5 -5
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy.rb +34 -34
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_assignment.rb +101 -101
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_definition.rb +106 -106
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -98
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_type.rb +17 -17
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/module_definition.rb +9 -9
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_assignments.rb +1356 -1356
- 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 +505 -505
- data/lib/2016-04-01/generated/azure_mgmt_policy.rb +34 -34
- data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_assignment.rb +101 -101
- data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
- data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_definition.rb +106 -106
- data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -98
- data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -17
- data/lib/2016-04-01/generated/azure_mgmt_policy/module_definition.rb +9 -9
- data/lib/2016-04-01/generated/azure_mgmt_policy/policy_assignments.rb +1356 -1356
- 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 +505 -505
- data/lib/2016-12-01/generated/azure_mgmt_policy.rb +35 -35
- data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment.rb +125 -125
- data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
- data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_definition.rb +140 -140
- data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -98
- data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_mode.rb +17 -17
- data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -17
- data/lib/2016-12-01/generated/azure_mgmt_policy/module_definition.rb +9 -9
- data/lib/2016-12-01/generated/azure_mgmt_policy/policy_assignments.rb +1356 -1356
- 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 +1275 -1275
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy.rb +37 -37
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/error_response.rb +69 -69
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_assignment.rb +169 -169
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_definition_reference.rb +58 -58
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_set_definition.rb +151 -151
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -99
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_sku.rb +59 -59
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_type.rb +17 -17
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/module_definition.rb +9 -9
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_assignments.rb +1356 -1356
- 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 +1295 -1295
- data/lib/2018-03-01/generated/azure_mgmt_policy.rb +41 -41
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/error_response.rb +69 -69
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_assignment.rb +171 -171
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_definition.rb +153 -153
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -98
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +58 -58
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_mode.rb +17 -17
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +151 -151
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -99
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -59
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -17
- data/lib/2018-03-01/generated/azure_mgmt_policy/module_definition.rb +9 -9
- data/lib/2018-03-01/generated/azure_mgmt_policy/policy_assignments.rb +1902 -1902
- 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 +1391 -1391
- data/lib/2018-03-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -1414
- data/lib/2018-05-01/generated/azure_mgmt_policy.rb +43 -43
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/error_response.rb +69 -69
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/identity.rb +72 -72
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_assignment.rb +196 -196
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_definition.rb +153 -153
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -98
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +58 -58
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_mode.rb +17 -17
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +151 -151
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -99
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -59
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -17
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +16 -16
- data/lib/2018-05-01/generated/azure_mgmt_policy/module_definition.rb +9 -9
- data/lib/2018-05-01/generated/azure_mgmt_policy/policy_assignments.rb +1902 -1902
- 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 +1391 -1391
- data/lib/2018-05-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -1414
- data/lib/2019-01-01/generated/azure_mgmt_policy.rb +42 -42
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/error_response.rb +69 -69
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/identity.rb +72 -72
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_assignment.rb +196 -196
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition.rb +152 -152
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -98
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +58 -58
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +151 -151
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -99
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -59
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -17
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +16 -16
- data/lib/2019-01-01/generated/azure_mgmt_policy/module_definition.rb +9 -9
- data/lib/2019-01-01/generated/azure_mgmt_policy/policy_assignments.rb +1902 -1902
- data/lib/2019-01-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2019-01-01/generated/azure_mgmt_policy/policy_definitions.rb +1391 -1391
- data/lib/2019-01-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -1414
- data/lib/2019-06-01/generated/azure_mgmt_policy.rb +43 -43
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/enforcement_mode.rb +16 -16
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/error_response.rb +69 -69
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/identity.rb +72 -72
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_assignment.rb +209 -209
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition.rb +152 -152
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -98
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +58 -58
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +151 -151
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -99
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -59
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -17
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +16 -16
- data/lib/2019-06-01/generated/azure_mgmt_policy/module_definition.rb +9 -9
- data/lib/2019-06-01/generated/azure_mgmt_policy/policy_assignments.rb +1902 -1902
- data/lib/2019-06-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2019-06-01/generated/azure_mgmt_policy/policy_definitions.rb +1391 -1391
- data/lib/2019-06-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -1414
- data/lib/2019-09-01/generated/azure_mgmt_policy.rb +49 -49
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/enforcement_mode.rb +16 -16
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/error_additional_info.rb +59 -59
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/error_response.rb +113 -113
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/identity.rb +3 -2
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_definitions_value.rb +1 -2
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_definitions_value_metadata.rb +76 -76
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_type.rb +21 -21
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_values_value.rb +1 -2
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_assignment.rb +220 -220
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -98
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition.rb +164 -164
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_group.rb +91 -91
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -98
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +100 -100
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +182 -182
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -99
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -59
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_type.rb +18 -18
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +16 -16
- data/lib/2019-09-01/generated/azure_mgmt_policy/module_definition.rb +9 -9
- data/lib/2019-09-01/generated/azure_mgmt_policy/policy_assignments.rb +277 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2019-09-01/generated/azure_mgmt_policy/policy_definitions.rb +1391 -1391
- data/lib/2019-09-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -1414
- data/lib/azure_mgmt_policy.rb +17 -17
- data/lib/version.rb +1 -1
- metadata +3 -3
@@ -1,91 +1,91 @@
|
|
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 group.
|
10
|
-
#
|
11
|
-
class PolicyDefinitionGroup
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] The name of the group.
|
16
|
-
attr_accessor :name
|
17
|
-
|
18
|
-
# @return [String] The group's display name.
|
19
|
-
attr_accessor :display_name
|
20
|
-
|
21
|
-
# @return [String] The group's category.
|
22
|
-
attr_accessor :category
|
23
|
-
|
24
|
-
# @return [String] The group's description.
|
25
|
-
attr_accessor :description
|
26
|
-
|
27
|
-
# @return [String] A resource ID of a resource that contains additional
|
28
|
-
# metadata about the group.
|
29
|
-
attr_accessor :additional_metadata_id
|
30
|
-
|
31
|
-
|
32
|
-
#
|
33
|
-
# Mapper for PolicyDefinitionGroup class as Ruby Hash.
|
34
|
-
# This will be used for serialization/deserialization.
|
35
|
-
#
|
36
|
-
def self.mapper()
|
37
|
-
{
|
38
|
-
client_side_validation: true,
|
39
|
-
required: false,
|
40
|
-
serialized_name: 'PolicyDefinitionGroup',
|
41
|
-
type: {
|
42
|
-
name: 'Composite',
|
43
|
-
class_name: 'PolicyDefinitionGroup',
|
44
|
-
model_properties: {
|
45
|
-
name: {
|
46
|
-
client_side_validation: true,
|
47
|
-
required: true,
|
48
|
-
serialized_name: 'name',
|
49
|
-
type: {
|
50
|
-
name: 'String'
|
51
|
-
}
|
52
|
-
},
|
53
|
-
display_name: {
|
54
|
-
client_side_validation: true,
|
55
|
-
required: false,
|
56
|
-
serialized_name: 'displayName',
|
57
|
-
type: {
|
58
|
-
name: 'String'
|
59
|
-
}
|
60
|
-
},
|
61
|
-
category: {
|
62
|
-
client_side_validation: true,
|
63
|
-
required: false,
|
64
|
-
serialized_name: 'category',
|
65
|
-
type: {
|
66
|
-
name: 'String'
|
67
|
-
}
|
68
|
-
},
|
69
|
-
description: {
|
70
|
-
client_side_validation: true,
|
71
|
-
required: false,
|
72
|
-
serialized_name: 'description',
|
73
|
-
type: {
|
74
|
-
name: 'String'
|
75
|
-
}
|
76
|
-
},
|
77
|
-
additional_metadata_id: {
|
78
|
-
client_side_validation: true,
|
79
|
-
required: false,
|
80
|
-
serialized_name: 'additionalMetadataId',
|
81
|
-
type: {
|
82
|
-
name: 'String'
|
83
|
-
}
|
84
|
-
}
|
85
|
-
}
|
86
|
-
}
|
87
|
-
}
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|
91
|
-
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 definition group.
|
10
|
+
#
|
11
|
+
class PolicyDefinitionGroup
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The name of the group.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] The group's display name.
|
19
|
+
attr_accessor :display_name
|
20
|
+
|
21
|
+
# @return [String] The group's category.
|
22
|
+
attr_accessor :category
|
23
|
+
|
24
|
+
# @return [String] The group's description.
|
25
|
+
attr_accessor :description
|
26
|
+
|
27
|
+
# @return [String] A resource ID of a resource that contains additional
|
28
|
+
# metadata about the group.
|
29
|
+
attr_accessor :additional_metadata_id
|
30
|
+
|
31
|
+
|
32
|
+
#
|
33
|
+
# Mapper for PolicyDefinitionGroup class as Ruby Hash.
|
34
|
+
# This will be used for serialization/deserialization.
|
35
|
+
#
|
36
|
+
def self.mapper()
|
37
|
+
{
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'PolicyDefinitionGroup',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'PolicyDefinitionGroup',
|
44
|
+
model_properties: {
|
45
|
+
name: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: true,
|
48
|
+
serialized_name: 'name',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
display_name: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'displayName',
|
57
|
+
type: {
|
58
|
+
name: 'String'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
category: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'category',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
description: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'description',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
},
|
77
|
+
additional_metadata_id: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: false,
|
80
|
+
serialized_name: 'additionalMetadataId',
|
81
|
+
type: {
|
82
|
+
name: 'String'
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -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::V2019_09_01
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# List of policy definitions.
|
10
|
-
#
|
11
|
-
class PolicyDefinitionListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
include MsRest::JSONable
|
16
|
-
# @return [Array<PolicyDefinition>] An array of policy definitions.
|
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<PolicyDefinition>] 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 [PolicyDefinitionListResult] 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 PolicyDefinitionListResult 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: 'PolicyDefinitionListResult',
|
63
|
-
type: {
|
64
|
-
name: 'Composite',
|
65
|
-
class_name: 'PolicyDefinitionListResult',
|
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: 'PolicyDefinitionElementType',
|
77
|
-
type: {
|
78
|
-
name: 'Composite',
|
79
|
-
class_name: 'PolicyDefinition'
|
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::V2019_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# List of policy definitions.
|
10
|
+
#
|
11
|
+
class PolicyDefinitionListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<PolicyDefinition>] An array of policy definitions.
|
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<PolicyDefinition>] 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 [PolicyDefinitionListResult] 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 PolicyDefinitionListResult 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: 'PolicyDefinitionListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'PolicyDefinitionListResult',
|
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: 'PolicyDefinitionElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'PolicyDefinition'
|
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,100 +1,100 @@
|
|
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 reference.
|
10
|
-
#
|
11
|
-
class PolicyDefinitionReference
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] The ID of the policy definition or policy set
|
16
|
-
# definition.
|
17
|
-
attr_accessor :policy_definition_id
|
18
|
-
|
19
|
-
# @return [Hash{String => ParameterValuesValue}] The parameter values for
|
20
|
-
# the referenced policy rule. The keys are the parameter names.
|
21
|
-
attr_accessor :parameters
|
22
|
-
|
23
|
-
# @return [String] A unique id (within the policy set definition) for
|
24
|
-
# this policy definition reference.
|
25
|
-
attr_accessor :policy_definition_reference_id
|
26
|
-
|
27
|
-
# @return [Array<String>] The name of the groups that this policy
|
28
|
-
# definition reference belongs to.
|
29
|
-
attr_accessor :group_names
|
30
|
-
|
31
|
-
|
32
|
-
#
|
33
|
-
# Mapper for PolicyDefinitionReference class as Ruby Hash.
|
34
|
-
# This will be used for serialization/deserialization.
|
35
|
-
#
|
36
|
-
def self.mapper()
|
37
|
-
{
|
38
|
-
client_side_validation: true,
|
39
|
-
required: false,
|
40
|
-
serialized_name: 'PolicyDefinitionReference',
|
41
|
-
type: {
|
42
|
-
name: 'Composite',
|
43
|
-
class_name: 'PolicyDefinitionReference',
|
44
|
-
model_properties: {
|
45
|
-
policy_definition_id: {
|
46
|
-
client_side_validation: true,
|
47
|
-
required: true,
|
48
|
-
serialized_name: 'policyDefinitionId',
|
49
|
-
type: {
|
50
|
-
name: 'String'
|
51
|
-
}
|
52
|
-
},
|
53
|
-
parameters: {
|
54
|
-
client_side_validation: true,
|
55
|
-
required: false,
|
56
|
-
serialized_name: 'parameters',
|
57
|
-
type: {
|
58
|
-
name: 'Dictionary',
|
59
|
-
value: {
|
60
|
-
client_side_validation: true,
|
61
|
-
required: false,
|
62
|
-
serialized_name: 'ParameterValuesValueElementType',
|
63
|
-
type: {
|
64
|
-
name: 'Composite',
|
65
|
-
class_name: 'ParameterValuesValue'
|
66
|
-
}
|
67
|
-
}
|
68
|
-
}
|
69
|
-
},
|
70
|
-
policy_definition_reference_id: {
|
71
|
-
client_side_validation: true,
|
72
|
-
required: false,
|
73
|
-
serialized_name: 'policyDefinitionReferenceId',
|
74
|
-
type: {
|
75
|
-
name: 'String'
|
76
|
-
}
|
77
|
-
},
|
78
|
-
group_names: {
|
79
|
-
client_side_validation: true,
|
80
|
-
required: false,
|
81
|
-
serialized_name: 'groupNames',
|
82
|
-
type: {
|
83
|
-
name: 'Sequence',
|
84
|
-
element: {
|
85
|
-
client_side_validation: true,
|
86
|
-
required: false,
|
87
|
-
serialized_name: 'StringElementType',
|
88
|
-
type: {
|
89
|
-
name: 'String'
|
90
|
-
}
|
91
|
-
}
|
92
|
-
}
|
93
|
-
}
|
94
|
-
}
|
95
|
-
}
|
96
|
-
}
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|
100
|
-
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 definition reference.
|
10
|
+
#
|
11
|
+
class PolicyDefinitionReference
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The ID of the policy definition or policy set
|
16
|
+
# definition.
|
17
|
+
attr_accessor :policy_definition_id
|
18
|
+
|
19
|
+
# @return [Hash{String => ParameterValuesValue}] The parameter values for
|
20
|
+
# the referenced policy rule. The keys are the parameter names.
|
21
|
+
attr_accessor :parameters
|
22
|
+
|
23
|
+
# @return [String] A unique id (within the policy set definition) for
|
24
|
+
# this policy definition reference.
|
25
|
+
attr_accessor :policy_definition_reference_id
|
26
|
+
|
27
|
+
# @return [Array<String>] The name of the groups that this policy
|
28
|
+
# definition reference belongs to.
|
29
|
+
attr_accessor :group_names
|
30
|
+
|
31
|
+
|
32
|
+
#
|
33
|
+
# Mapper for PolicyDefinitionReference class as Ruby Hash.
|
34
|
+
# This will be used for serialization/deserialization.
|
35
|
+
#
|
36
|
+
def self.mapper()
|
37
|
+
{
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'PolicyDefinitionReference',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'PolicyDefinitionReference',
|
44
|
+
model_properties: {
|
45
|
+
policy_definition_id: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: true,
|
48
|
+
serialized_name: 'policyDefinitionId',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
parameters: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'parameters',
|
57
|
+
type: {
|
58
|
+
name: 'Dictionary',
|
59
|
+
value: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'ParameterValuesValueElementType',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'ParameterValuesValue'
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
},
|
70
|
+
policy_definition_reference_id: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'policyDefinitionReferenceId',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
group_names: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
serialized_name: 'groupNames',
|
82
|
+
type: {
|
83
|
+
name: 'Sequence',
|
84
|
+
element: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'StringElementType',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|