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,49 @@
|
|
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
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '2019-09-01/generated/azure_mgmt_policy/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Policy::Mgmt::V2019_09_01
|
23
|
+
autoload :PolicyAssignments, '2019-09-01/generated/azure_mgmt_policy/policy_assignments.rb'
|
24
|
+
autoload :PolicyDefinitions, '2019-09-01/generated/azure_mgmt_policy/policy_definitions.rb'
|
25
|
+
autoload :PolicySetDefinitions, '2019-09-01/generated/azure_mgmt_policy/policy_set_definitions.rb'
|
26
|
+
autoload :PolicyClient, '2019-09-01/generated/azure_mgmt_policy/policy_client.rb'
|
27
|
+
|
28
|
+
module Models
|
29
|
+
autoload :PolicyAssignmentListResult, '2019-09-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb'
|
30
|
+
autoload :ParameterDefinitionsValueMetadata, '2019-09-01/generated/azure_mgmt_policy/models/parameter_definitions_value_metadata.rb'
|
31
|
+
autoload :ErrorResponse, '2019-09-01/generated/azure_mgmt_policy/models/error_response.rb'
|
32
|
+
autoload :ParameterDefinitionsValue, '2019-09-01/generated/azure_mgmt_policy/models/parameter_definitions_value.rb'
|
33
|
+
autoload :ParameterValuesValue, '2019-09-01/generated/azure_mgmt_policy/models/parameter_values_value.rb'
|
34
|
+
autoload :PolicyDefinition, '2019-09-01/generated/azure_mgmt_policy/models/policy_definition.rb'
|
35
|
+
autoload :Identity, '2019-09-01/generated/azure_mgmt_policy/models/identity.rb'
|
36
|
+
autoload :PolicyDefinitionListResult, '2019-09-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb'
|
37
|
+
autoload :ErrorAdditionalInfo, '2019-09-01/generated/azure_mgmt_policy/models/error_additional_info.rb'
|
38
|
+
autoload :PolicyDefinitionReference, '2019-09-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb'
|
39
|
+
autoload :PolicySku, '2019-09-01/generated/azure_mgmt_policy/models/policy_sku.rb'
|
40
|
+
autoload :PolicyDefinitionGroup, '2019-09-01/generated/azure_mgmt_policy/models/policy_definition_group.rb'
|
41
|
+
autoload :PolicySetDefinition, '2019-09-01/generated/azure_mgmt_policy/models/policy_set_definition.rb'
|
42
|
+
autoload :PolicyAssignment, '2019-09-01/generated/azure_mgmt_policy/models/policy_assignment.rb'
|
43
|
+
autoload :PolicySetDefinitionListResult, '2019-09-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb'
|
44
|
+
autoload :EnforcementMode, '2019-09-01/generated/azure_mgmt_policy/models/enforcement_mode.rb'
|
45
|
+
autoload :ResourceIdentityType, '2019-09-01/generated/azure_mgmt_policy/models/resource_identity_type.rb'
|
46
|
+
autoload :PolicyType, '2019-09-01/generated/azure_mgmt_policy/models/policy_type.rb'
|
47
|
+
autoload :ParameterType, '2019-09-01/generated/azure_mgmt_policy/models/parameter_type.rb'
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,16 @@
|
|
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 EnforcementMode
|
10
|
+
#
|
11
|
+
module EnforcementMode
|
12
|
+
Default = "Default"
|
13
|
+
DoNotEnforce = "DoNotEnforce"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,59 @@
|
|
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 resource management error additional info.
|
10
|
+
#
|
11
|
+
class ErrorAdditionalInfo
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The additional info type.
|
16
|
+
attr_accessor :type
|
17
|
+
|
18
|
+
# @return The additional info.
|
19
|
+
attr_accessor :info
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for ErrorAdditionalInfo class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'ErrorAdditionalInfo',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'ErrorAdditionalInfo',
|
34
|
+
model_properties: {
|
35
|
+
type: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
read_only: true,
|
39
|
+
serialized_name: 'type',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
info: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
read_only: true,
|
48
|
+
serialized_name: 'info',
|
49
|
+
type: {
|
50
|
+
name: 'Object'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,113 @@
|
|
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 resource management error response.
|
10
|
+
#
|
11
|
+
class ErrorResponse
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The error code.
|
16
|
+
attr_accessor :code
|
17
|
+
|
18
|
+
# @return [String] The error message.
|
19
|
+
attr_accessor :message
|
20
|
+
|
21
|
+
# @return [String] The error target.
|
22
|
+
attr_accessor :target
|
23
|
+
|
24
|
+
# @return [Array<ErrorResponse>] The error details.
|
25
|
+
attr_accessor :details
|
26
|
+
|
27
|
+
# @return [Array<ErrorAdditionalInfo>] The error additional info.
|
28
|
+
attr_accessor :additional_info
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for ErrorResponse class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'ErrorResponse',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'ErrorResponse',
|
43
|
+
model_properties: {
|
44
|
+
code: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
read_only: true,
|
48
|
+
serialized_name: 'code',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
message: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
read_only: true,
|
57
|
+
serialized_name: 'message',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
target: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
read_only: true,
|
66
|
+
serialized_name: 'target',
|
67
|
+
type: {
|
68
|
+
name: 'String'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
details: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: false,
|
74
|
+
read_only: true,
|
75
|
+
serialized_name: 'details',
|
76
|
+
type: {
|
77
|
+
name: 'Sequence',
|
78
|
+
element: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
serialized_name: 'ErrorResponseElementType',
|
82
|
+
type: {
|
83
|
+
name: 'Composite',
|
84
|
+
class_name: 'ErrorResponse'
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
},
|
89
|
+
additional_info: {
|
90
|
+
client_side_validation: true,
|
91
|
+
required: false,
|
92
|
+
read_only: true,
|
93
|
+
serialized_name: 'additionalInfo',
|
94
|
+
type: {
|
95
|
+
name: 'Sequence',
|
96
|
+
element: {
|
97
|
+
client_side_validation: true,
|
98
|
+
required: false,
|
99
|
+
serialized_name: 'ErrorAdditionalInfoElementType',
|
100
|
+
type: {
|
101
|
+
name: 'Composite',
|
102
|
+
class_name: 'ErrorAdditionalInfo'
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
@@ -0,0 +1,73 @@
|
|
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
|
+
# Identity for the resource.
|
10
|
+
#
|
11
|
+
class Identity
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The principal ID of the resource identity.
|
16
|
+
attr_accessor :principal_id
|
17
|
+
|
18
|
+
# @return [String] The tenant ID of the resource identity.
|
19
|
+
attr_accessor :tenant_id
|
20
|
+
|
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'
|
24
|
+
attr_accessor :type
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for Identity class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'Identity',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'Identity',
|
39
|
+
model_properties: {
|
40
|
+
principal_id: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
read_only: true,
|
44
|
+
serialized_name: 'principalId',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
tenant_id: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
read_only: true,
|
53
|
+
serialized_name: 'tenantId',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
type: {
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'type',
|
62
|
+
type: {
|
63
|
+
name: 'Enum',
|
64
|
+
module: 'ResourceIdentityType'
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +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 definition of a parameter that can be provided to the policy.
|
10
|
+
#
|
11
|
+
class ParameterDefinitionsValue
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [ParameterType] The data type of the parameter. Possible values
|
16
|
+
# include: 'String', 'Array', 'Object', 'Boolean', 'Integer', 'Float',
|
17
|
+
# 'DateTime'
|
18
|
+
attr_accessor :type
|
19
|
+
|
20
|
+
# @return The allowed values for the parameter.
|
21
|
+
attr_accessor :allowed_values
|
22
|
+
|
23
|
+
# @return The default value for the parameter if no value is provided.
|
24
|
+
attr_accessor :default_value
|
25
|
+
|
26
|
+
# @return [ParameterDefinitionsValueMetadata] General metadata for the
|
27
|
+
# parameter.
|
28
|
+
attr_accessor :metadata
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for ParameterDefinitionsValue class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'ParameterDefinitionsValue',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'ParameterDefinitionsValue',
|
43
|
+
model_properties: {
|
44
|
+
type: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'type',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
allowed_values: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'allowedValues',
|
56
|
+
type: {
|
57
|
+
name: 'Sequence',
|
58
|
+
element: {
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'ObjectElementType',
|
62
|
+
type: {
|
63
|
+
name: 'Object'
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
},
|
68
|
+
default_value: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'defaultValue',
|
72
|
+
type: {
|
73
|
+
name: 'Object'
|
74
|
+
}
|
75
|
+
},
|
76
|
+
metadata: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'metadata',
|
80
|
+
type: {
|
81
|
+
name: 'Composite',
|
82
|
+
class_name: 'ParameterDefinitionsValueMetadata'
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_definitions_value_metadata.rb
ADDED
@@ -0,0 +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
|