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,37 +1,37 @@
|
|
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 '2017-06-01-preview/generated/azure_mgmt_policy/module_definition'
|
20
|
-
require 'ms_rest_azure'
|
21
|
-
|
22
|
-
module Azure::Policy::Mgmt::V2017_06_01_preview
|
23
|
-
autoload :PolicyAssignments, '2017-06-01-preview/generated/azure_mgmt_policy/policy_assignments.rb'
|
24
|
-
autoload :PolicySetDefinitions, '2017-06-01-preview/generated/azure_mgmt_policy/policy_set_definitions.rb'
|
25
|
-
autoload :PolicyClient, '2017-06-01-preview/generated/azure_mgmt_policy/policy_client.rb'
|
26
|
-
|
27
|
-
module Models
|
28
|
-
autoload :ErrorResponse, '2017-06-01-preview/generated/azure_mgmt_policy/models/error_response.rb'
|
29
|
-
autoload :PolicyDefinitionReference, '2017-06-01-preview/generated/azure_mgmt_policy/models/policy_definition_reference.rb'
|
30
|
-
autoload :PolicyAssignment, '2017-06-01-preview/generated/azure_mgmt_policy/models/policy_assignment.rb'
|
31
|
-
autoload :PolicySetDefinition, '2017-06-01-preview/generated/azure_mgmt_policy/models/policy_set_definition.rb'
|
32
|
-
autoload :PolicySku, '2017-06-01-preview/generated/azure_mgmt_policy/models/policy_sku.rb'
|
33
|
-
autoload :PolicySetDefinitionListResult, '2017-06-01-preview/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb'
|
34
|
-
autoload :PolicyAssignmentListResult, '2017-06-01-preview/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb'
|
35
|
-
autoload :PolicyType, '2017-06-01-preview/generated/azure_mgmt_policy/models/policy_type.rb'
|
36
|
-
end
|
37
|
-
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
|
+
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 '2017-06-01-preview/generated/azure_mgmt_policy/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Policy::Mgmt::V2017_06_01_preview
|
23
|
+
autoload :PolicyAssignments, '2017-06-01-preview/generated/azure_mgmt_policy/policy_assignments.rb'
|
24
|
+
autoload :PolicySetDefinitions, '2017-06-01-preview/generated/azure_mgmt_policy/policy_set_definitions.rb'
|
25
|
+
autoload :PolicyClient, '2017-06-01-preview/generated/azure_mgmt_policy/policy_client.rb'
|
26
|
+
|
27
|
+
module Models
|
28
|
+
autoload :ErrorResponse, '2017-06-01-preview/generated/azure_mgmt_policy/models/error_response.rb'
|
29
|
+
autoload :PolicyDefinitionReference, '2017-06-01-preview/generated/azure_mgmt_policy/models/policy_definition_reference.rb'
|
30
|
+
autoload :PolicyAssignment, '2017-06-01-preview/generated/azure_mgmt_policy/models/policy_assignment.rb'
|
31
|
+
autoload :PolicySetDefinition, '2017-06-01-preview/generated/azure_mgmt_policy/models/policy_set_definition.rb'
|
32
|
+
autoload :PolicySku, '2017-06-01-preview/generated/azure_mgmt_policy/models/policy_sku.rb'
|
33
|
+
autoload :PolicySetDefinitionListResult, '2017-06-01-preview/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb'
|
34
|
+
autoload :PolicyAssignmentListResult, '2017-06-01-preview/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb'
|
35
|
+
autoload :PolicyType, '2017-06-01-preview/generated/azure_mgmt_policy/models/policy_type.rb'
|
36
|
+
end
|
37
|
+
end
|
@@ -1,69 +1,69 @@
|
|
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::V2017_06_01_preview
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Error response indicates ARM is not able to process the incoming request.
|
10
|
-
# The reason is provided in the error message.
|
11
|
-
#
|
12
|
-
class ErrorResponse
|
13
|
-
|
14
|
-
include MsRestAzure
|
15
|
-
|
16
|
-
# @return [String] Http status code.
|
17
|
-
attr_accessor :http_status
|
18
|
-
|
19
|
-
# @return [String] Error code.
|
20
|
-
attr_accessor :error_code
|
21
|
-
|
22
|
-
# @return [String] Error message indicating why the operation failed.
|
23
|
-
attr_accessor :error_message
|
24
|
-
|
25
|
-
|
26
|
-
#
|
27
|
-
# Mapper for ErrorResponse 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: 'ErrorResponse',
|
35
|
-
type: {
|
36
|
-
name: 'Composite',
|
37
|
-
class_name: 'ErrorResponse',
|
38
|
-
model_properties: {
|
39
|
-
http_status: {
|
40
|
-
client_side_validation: true,
|
41
|
-
required: false,
|
42
|
-
serialized_name: 'httpStatus',
|
43
|
-
type: {
|
44
|
-
name: 'String'
|
45
|
-
}
|
46
|
-
},
|
47
|
-
error_code: {
|
48
|
-
client_side_validation: true,
|
49
|
-
required: false,
|
50
|
-
serialized_name: 'errorCode',
|
51
|
-
type: {
|
52
|
-
name: 'String'
|
53
|
-
}
|
54
|
-
},
|
55
|
-
error_message: {
|
56
|
-
client_side_validation: true,
|
57
|
-
required: false,
|
58
|
-
serialized_name: 'errorMessage',
|
59
|
-
type: {
|
60
|
-
name: 'String'
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
65
|
-
}
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
69
|
-
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::V2017_06_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Error response indicates ARM is not able to process the incoming request.
|
10
|
+
# The reason is provided in the error message.
|
11
|
+
#
|
12
|
+
class ErrorResponse
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Http status code.
|
17
|
+
attr_accessor :http_status
|
18
|
+
|
19
|
+
# @return [String] Error code.
|
20
|
+
attr_accessor :error_code
|
21
|
+
|
22
|
+
# @return [String] Error message indicating why the operation failed.
|
23
|
+
attr_accessor :error_message
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for ErrorResponse 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: 'ErrorResponse',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'ErrorResponse',
|
38
|
+
model_properties: {
|
39
|
+
http_status: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'httpStatus',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
error_code: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'errorCode',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
error_message: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'errorMessage',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -1,169 +1,169 @@
|
|
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::V2017_06_01_preview
|
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.
|
19
|
-
attr_accessor :policy_definition_id
|
20
|
-
|
21
|
-
# @return [String] The scope for the policy assignment.
|
22
|
-
attr_accessor :scope
|
23
|
-
|
24
|
-
# @return [Array<String>] The policy's excluded scopes.
|
25
|
-
attr_accessor :not_scopes
|
26
|
-
|
27
|
-
# @return Required if a parameter is used in policy rule.
|
28
|
-
attr_accessor :parameters
|
29
|
-
|
30
|
-
# @return [String] This message will be part of response in case of
|
31
|
-
# policy violation.
|
32
|
-
attr_accessor :description
|
33
|
-
|
34
|
-
# @return The policy assignment metadata.
|
35
|
-
attr_accessor :metadata
|
36
|
-
|
37
|
-
# @return [String] The ID of the policy assignment.
|
38
|
-
attr_accessor :id
|
39
|
-
|
40
|
-
# @return [String] The type of the policy assignment.
|
41
|
-
attr_accessor :type
|
42
|
-
|
43
|
-
# @return [String] The name of the policy assignment.
|
44
|
-
attr_accessor :name
|
45
|
-
|
46
|
-
# @return [PolicySku] The policy sku.
|
47
|
-
attr_accessor :sku
|
48
|
-
|
49
|
-
|
50
|
-
#
|
51
|
-
# Mapper for PolicyAssignment class as Ruby Hash.
|
52
|
-
# This will be used for serialization/deserialization.
|
53
|
-
#
|
54
|
-
def self.mapper()
|
55
|
-
{
|
56
|
-
client_side_validation: true,
|
57
|
-
required: false,
|
58
|
-
serialized_name: 'PolicyAssignment',
|
59
|
-
type: {
|
60
|
-
name: 'Composite',
|
61
|
-
class_name: 'PolicyAssignment',
|
62
|
-
model_properties: {
|
63
|
-
display_name: {
|
64
|
-
client_side_validation: true,
|
65
|
-
required: false,
|
66
|
-
serialized_name: 'properties.displayName',
|
67
|
-
type: {
|
68
|
-
name: 'String'
|
69
|
-
}
|
70
|
-
},
|
71
|
-
policy_definition_id: {
|
72
|
-
client_side_validation: true,
|
73
|
-
required: false,
|
74
|
-
serialized_name: 'properties.policyDefinitionId',
|
75
|
-
type: {
|
76
|
-
name: 'String'
|
77
|
-
}
|
78
|
-
},
|
79
|
-
scope: {
|
80
|
-
client_side_validation: true,
|
81
|
-
required: false,
|
82
|
-
serialized_name: 'properties.scope',
|
83
|
-
type: {
|
84
|
-
name: 'String'
|
85
|
-
}
|
86
|
-
},
|
87
|
-
not_scopes: {
|
88
|
-
client_side_validation: true,
|
89
|
-
required: false,
|
90
|
-
serialized_name: 'properties.notScopes',
|
91
|
-
type: {
|
92
|
-
name: 'Sequence',
|
93
|
-
element: {
|
94
|
-
client_side_validation: true,
|
95
|
-
required: false,
|
96
|
-
serialized_name: 'StringElementType',
|
97
|
-
type: {
|
98
|
-
name: 'String'
|
99
|
-
}
|
100
|
-
}
|
101
|
-
}
|
102
|
-
},
|
103
|
-
parameters: {
|
104
|
-
client_side_validation: true,
|
105
|
-
required: false,
|
106
|
-
serialized_name: 'properties.parameters',
|
107
|
-
type: {
|
108
|
-
name: 'Object'
|
109
|
-
}
|
110
|
-
},
|
111
|
-
description: {
|
112
|
-
client_side_validation: true,
|
113
|
-
required: false,
|
114
|
-
serialized_name: 'properties.description',
|
115
|
-
type: {
|
116
|
-
name: 'String'
|
117
|
-
}
|
118
|
-
},
|
119
|
-
metadata: {
|
120
|
-
client_side_validation: true,
|
121
|
-
required: false,
|
122
|
-
serialized_name: 'properties.metadata',
|
123
|
-
type: {
|
124
|
-
name: 'Object'
|
125
|
-
}
|
126
|
-
},
|
127
|
-
id: {
|
128
|
-
client_side_validation: true,
|
129
|
-
required: false,
|
130
|
-
read_only: true,
|
131
|
-
serialized_name: 'id',
|
132
|
-
type: {
|
133
|
-
name: 'String'
|
134
|
-
}
|
135
|
-
},
|
136
|
-
type: {
|
137
|
-
client_side_validation: true,
|
138
|
-
required: false,
|
139
|
-
read_only: true,
|
140
|
-
serialized_name: 'type',
|
141
|
-
type: {
|
142
|
-
name: 'String'
|
143
|
-
}
|
144
|
-
},
|
145
|
-
name: {
|
146
|
-
client_side_validation: true,
|
147
|
-
required: false,
|
148
|
-
read_only: true,
|
149
|
-
serialized_name: 'name',
|
150
|
-
type: {
|
151
|
-
name: 'String'
|
152
|
-
}
|
153
|
-
},
|
154
|
-
sku: {
|
155
|
-
client_side_validation: true,
|
156
|
-
required: false,
|
157
|
-
serialized_name: 'sku',
|
158
|
-
type: {
|
159
|
-
name: 'Composite',
|
160
|
-
class_name: 'PolicySku'
|
161
|
-
}
|
162
|
-
}
|
163
|
-
}
|
164
|
-
}
|
165
|
-
}
|
166
|
-
end
|
167
|
-
end
|
168
|
-
end
|
169
|
-
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::V2017_06_01_preview
|
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.
|
19
|
+
attr_accessor :policy_definition_id
|
20
|
+
|
21
|
+
# @return [String] The scope for the policy assignment.
|
22
|
+
attr_accessor :scope
|
23
|
+
|
24
|
+
# @return [Array<String>] The policy's excluded scopes.
|
25
|
+
attr_accessor :not_scopes
|
26
|
+
|
27
|
+
# @return Required if a parameter is used in policy rule.
|
28
|
+
attr_accessor :parameters
|
29
|
+
|
30
|
+
# @return [String] This message will be part of response in case of
|
31
|
+
# policy violation.
|
32
|
+
attr_accessor :description
|
33
|
+
|
34
|
+
# @return The policy assignment metadata.
|
35
|
+
attr_accessor :metadata
|
36
|
+
|
37
|
+
# @return [String] The ID of the policy assignment.
|
38
|
+
attr_accessor :id
|
39
|
+
|
40
|
+
# @return [String] The type of the policy assignment.
|
41
|
+
attr_accessor :type
|
42
|
+
|
43
|
+
# @return [String] The name of the policy assignment.
|
44
|
+
attr_accessor :name
|
45
|
+
|
46
|
+
# @return [PolicySku] The policy sku.
|
47
|
+
attr_accessor :sku
|
48
|
+
|
49
|
+
|
50
|
+
#
|
51
|
+
# Mapper for PolicyAssignment class as Ruby Hash.
|
52
|
+
# This will be used for serialization/deserialization.
|
53
|
+
#
|
54
|
+
def self.mapper()
|
55
|
+
{
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'PolicyAssignment',
|
59
|
+
type: {
|
60
|
+
name: 'Composite',
|
61
|
+
class_name: 'PolicyAssignment',
|
62
|
+
model_properties: {
|
63
|
+
display_name: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: false,
|
66
|
+
serialized_name: 'properties.displayName',
|
67
|
+
type: {
|
68
|
+
name: 'String'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
policy_definition_id: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'properties.policyDefinitionId',
|
75
|
+
type: {
|
76
|
+
name: 'String'
|
77
|
+
}
|
78
|
+
},
|
79
|
+
scope: {
|
80
|
+
client_side_validation: true,
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'properties.scope',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
not_scopes: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'properties.notScopes',
|
91
|
+
type: {
|
92
|
+
name: 'Sequence',
|
93
|
+
element: {
|
94
|
+
client_side_validation: true,
|
95
|
+
required: false,
|
96
|
+
serialized_name: 'StringElementType',
|
97
|
+
type: {
|
98
|
+
name: 'String'
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
},
|
103
|
+
parameters: {
|
104
|
+
client_side_validation: true,
|
105
|
+
required: false,
|
106
|
+
serialized_name: 'properties.parameters',
|
107
|
+
type: {
|
108
|
+
name: 'Object'
|
109
|
+
}
|
110
|
+
},
|
111
|
+
description: {
|
112
|
+
client_side_validation: true,
|
113
|
+
required: false,
|
114
|
+
serialized_name: 'properties.description',
|
115
|
+
type: {
|
116
|
+
name: 'String'
|
117
|
+
}
|
118
|
+
},
|
119
|
+
metadata: {
|
120
|
+
client_side_validation: true,
|
121
|
+
required: false,
|
122
|
+
serialized_name: 'properties.metadata',
|
123
|
+
type: {
|
124
|
+
name: 'Object'
|
125
|
+
}
|
126
|
+
},
|
127
|
+
id: {
|
128
|
+
client_side_validation: true,
|
129
|
+
required: false,
|
130
|
+
read_only: true,
|
131
|
+
serialized_name: 'id',
|
132
|
+
type: {
|
133
|
+
name: 'String'
|
134
|
+
}
|
135
|
+
},
|
136
|
+
type: {
|
137
|
+
client_side_validation: true,
|
138
|
+
required: false,
|
139
|
+
read_only: true,
|
140
|
+
serialized_name: 'type',
|
141
|
+
type: {
|
142
|
+
name: 'String'
|
143
|
+
}
|
144
|
+
},
|
145
|
+
name: {
|
146
|
+
client_side_validation: true,
|
147
|
+
required: false,
|
148
|
+
read_only: true,
|
149
|
+
serialized_name: 'name',
|
150
|
+
type: {
|
151
|
+
name: 'String'
|
152
|
+
}
|
153
|
+
},
|
154
|
+
sku: {
|
155
|
+
client_side_validation: true,
|
156
|
+
required: false,
|
157
|
+
serialized_name: 'sku',
|
158
|
+
type: {
|
159
|
+
name: 'Composite',
|
160
|
+
class_name: 'PolicySku'
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}
|
164
|
+
}
|
165
|
+
}
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|