azure_mgmt_policy 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1cd9a37952483a76c2b149c1ce26e24cb3fe42e2
4
- data.tar.gz: e87d5e1af071d3792dc212627b39ca21a821f33c
3
+ metadata.gz: 446e1a1714efde8c48a25dc7efa01260b3df0534
4
+ data.tar.gz: 4c0343184a744547c56873c6432dd49f2af180d8
5
5
  SHA512:
6
- metadata.gz: 21fb0c0af13c128d03dbee120ba8a62adc782c6cfce32c35f30adc580da7d657ffcafdf179a9fca552d3cffdfc78be8700acad7bac60924d2091f06d8089bd08
7
- data.tar.gz: b9d25c5321ec0646110a65082185c265a1c35223248cc4f3b1409d16d169b3976cb2184bc4fcf6493c6344ab076f584e47d3d5b94933c4713d2d77570bcfca1d
6
+ metadata.gz: f93b55e390cc19946fd5f87f078312eb9f8f4fb23b706166579e60ad7c7b571d0b313fc162488361956671a1f04f7e1299727ca44b5243aaffae200e130b0ae3
7
+ data.tar.gz: 81c7688b3dca8becbc4952d1fd5670c5ebd13c5de3493474efd624925172cf51cf64c504bc54257627d5f02fe069b97cce98268cf52db01c3bd3f27974c0983a
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -21,14 +21,21 @@ require 'ms_rest_azure'
21
21
 
22
22
  module Azure::ARM::Policy
23
23
  autoload :PolicyAssignments, 'generated/azure_mgmt_policy/policy_assignments.rb'
24
+ autoload :PolicySetDefinitions, 'generated/azure_mgmt_policy/policy_set_definitions.rb'
24
25
  autoload :PolicyDefinitions, 'generated/azure_mgmt_policy/policy_definitions.rb'
25
26
  autoload :PolicyClient, 'generated/azure_mgmt_policy/policy_client.rb'
26
27
 
27
28
  module Models
29
+ autoload :PolicyDefinitionReference, 'generated/azure_mgmt_policy/models/policy_definition_reference.rb'
30
+ autoload :PolicySetDefinition, 'generated/azure_mgmt_policy/models/policy_set_definition.rb'
28
31
  autoload :PolicyAssignment, 'generated/azure_mgmt_policy/models/policy_assignment.rb'
32
+ autoload :PolicySetDefinitionListResult, 'generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb'
33
+ autoload :ErrorResponse, 'generated/azure_mgmt_policy/models/error_response.rb'
29
34
  autoload :PolicyDefinition, 'generated/azure_mgmt_policy/models/policy_definition.rb'
30
35
  autoload :PolicyAssignmentListResult, 'generated/azure_mgmt_policy/models/policy_assignment_list_result.rb'
31
36
  autoload :PolicyDefinitionListResult, 'generated/azure_mgmt_policy/models/policy_definition_list_result.rb'
37
+ autoload :PolicySku, 'generated/azure_mgmt_policy/models/policy_sku.rb'
32
38
  autoload :PolicyType, 'generated/azure_mgmt_policy/models/policy_type.rb'
39
+ autoload :PolicyMode, 'generated/azure_mgmt_policy/models/policy_mode.rb'
33
40
  end
34
41
  end
@@ -0,0 +1,66 @@
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::ARM::Policy
7
+ module Models
8
+ #
9
+ # Error reponse 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
+ include MsRest::JSONable
17
+ # @return [String] Http status code.
18
+ attr_accessor :http_status
19
+
20
+ # @return [String] Error code.
21
+ attr_accessor :error_code
22
+
23
+ # @return [String] Error message indicating why the operation failed.
24
+ attr_accessor :error_message
25
+
26
+
27
+ #
28
+ # Mapper for ErrorResponse class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ required: false,
34
+ serialized_name: 'ErrorResponse',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'ErrorResponse',
38
+ model_properties: {
39
+ http_status: {
40
+ required: false,
41
+ serialized_name: 'httpStatus',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ error_code: {
47
+ required: false,
48
+ serialized_name: 'errorCode',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ error_message: {
54
+ required: false,
55
+ serialized_name: 'errorMessage',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ end
64
+ end
65
+ end
66
+ end
@@ -1,12 +1,12 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Policy
7
7
  module Models
8
8
  #
9
- # The policy definition.
9
+ # The policy assignment.
10
10
  #
11
11
  class PolicyAssignment
12
12
 
@@ -22,6 +22,9 @@ module Azure::ARM::Policy
22
22
  # @return [String] The scope for the policy assignment.
23
23
  attr_accessor :scope
24
24
 
25
+ # @return [Array<String>] The policy's excluded scopes.
26
+ attr_accessor :not_scopes
27
+
25
28
  # @return Required if a parameter is used in policy rule.
26
29
  attr_accessor :parameters
27
30
 
@@ -29,6 +32,9 @@ module Azure::ARM::Policy
29
32
  # policy violation.
30
33
  attr_accessor :description
31
34
 
35
+ # @return The policy assignment metadata.
36
+ attr_accessor :metadata
37
+
32
38
  # @return [String] The ID of the policy assignment.
33
39
  attr_accessor :id
34
40
 
@@ -38,6 +44,9 @@ module Azure::ARM::Policy
38
44
  # @return [String] The name of the policy assignment.
39
45
  attr_accessor :name
40
46
 
47
+ # @return [PolicySku] The policy sku.
48
+ attr_accessor :sku
49
+
41
50
 
42
51
  #
43
52
  # Mapper for PolicyAssignment class as Ruby Hash.
@@ -72,6 +81,20 @@ module Azure::ARM::Policy
72
81
  name: 'String'
73
82
  }
74
83
  },
84
+ not_scopes: {
85
+ required: false,
86
+ serialized_name: 'properties.notScopes',
87
+ type: {
88
+ name: 'Sequence',
89
+ element: {
90
+ required: false,
91
+ serialized_name: 'StringElementType',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ }
96
+ }
97
+ },
75
98
  parameters: {
76
99
  required: false,
77
100
  serialized_name: 'properties.parameters',
@@ -86,8 +109,16 @@ module Azure::ARM::Policy
86
109
  name: 'String'
87
110
  }
88
111
  },
112
+ metadata: {
113
+ required: false,
114
+ serialized_name: 'properties.metadata',
115
+ type: {
116
+ name: 'Object'
117
+ }
118
+ },
89
119
  id: {
90
120
  required: false,
121
+ read_only: true,
91
122
  serialized_name: 'id',
92
123
  type: {
93
124
  name: 'String'
@@ -95,6 +126,7 @@ module Azure::ARM::Policy
95
126
  },
96
127
  type: {
97
128
  required: false,
129
+ read_only: true,
98
130
  serialized_name: 'type',
99
131
  type: {
100
132
  name: 'String'
@@ -102,10 +134,19 @@ module Azure::ARM::Policy
102
134
  },
103
135
  name: {
104
136
  required: false,
137
+ read_only: true,
105
138
  serialized_name: 'name',
106
139
  type: {
107
140
  name: 'String'
108
141
  }
142
+ },
143
+ sku: {
144
+ required: false,
145
+ serialized_name: 'sku',
146
+ type: {
147
+ name: 'Composite',
148
+ class_name: 'PolicySku'
149
+ }
109
150
  }
110
151
  }
111
152
  }
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -18,6 +18,11 @@ module Azure::ARM::Policy
18
18
  # 'NotSpecified', 'BuiltIn', 'Custom'
19
19
  attr_accessor :policy_type
20
20
 
21
+ # @return [PolicyMode] The policy definition mode. Possible values are
22
+ # NotSpecified, Indexed, and All. Possible values include:
23
+ # 'NotSpecified', 'Indexed', 'All'
24
+ attr_accessor :mode
25
+
21
26
  # @return [String] The display name of the policy definition.
22
27
  attr_accessor :display_name
23
28
 
@@ -27,15 +32,16 @@ module Azure::ARM::Policy
27
32
  # @return The policy rule.
28
33
  attr_accessor :policy_rule
29
34
 
35
+ # @return The policy definition metadata.
36
+ attr_accessor :metadata
37
+
30
38
  # @return Required if a parameter is used in policy rule.
31
39
  attr_accessor :parameters
32
40
 
33
41
  # @return [String] The ID of the policy definition.
34
42
  attr_accessor :id
35
43
 
36
- # @return [String] The name of the policy definition. If you do not
37
- # specify a value for name, the value is inferred from the name value in
38
- # the request URI.
44
+ # @return [String] The name of the policy definition.
39
45
  attr_accessor :name
40
46
 
41
47
 
@@ -58,6 +64,13 @@ module Azure::ARM::Policy
58
64
  name: 'String'
59
65
  }
60
66
  },
67
+ mode: {
68
+ required: false,
69
+ serialized_name: 'properties.mode',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
61
74
  display_name: {
62
75
  required: false,
63
76
  serialized_name: 'properties.displayName',
@@ -79,6 +92,13 @@ module Azure::ARM::Policy
79
92
  name: 'Object'
80
93
  }
81
94
  },
95
+ metadata: {
96
+ required: false,
97
+ serialized_name: 'properties.metadata',
98
+ type: {
99
+ name: 'Object'
100
+ }
101
+ },
82
102
  parameters: {
83
103
  required: false,
84
104
  serialized_name: 'properties.parameters',
@@ -88,6 +108,7 @@ module Azure::ARM::Policy
88
108
  },
89
109
  id: {
90
110
  required: false,
111
+ read_only: true,
91
112
  serialized_name: 'id',
92
113
  type: {
93
114
  name: 'String'
@@ -95,6 +116,7 @@ module Azure::ARM::Policy
95
116
  },
96
117
  name: {
97
118
  required: false,
119
+ read_only: true,
98
120
  serialized_name: 'name',
99
121
  type: {
100
122
  name: 'String'
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -0,0 +1,56 @@
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::ARM::Policy
7
+ module Models
8
+ #
9
+ # The policy definition reference.
10
+ #
11
+ class PolicyDefinitionReference
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] The ID of the policy definition or policy set
17
+ # definition.
18
+ attr_accessor :policy_definition_id
19
+
20
+ # @return Required if a parameter is used in policy rule.
21
+ attr_accessor :parameters
22
+
23
+
24
+ #
25
+ # Mapper for PolicyDefinitionReference class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ required: false,
31
+ serialized_name: 'PolicyDefinitionReference',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'PolicyDefinitionReference',
35
+ model_properties: {
36
+ policy_definition_id: {
37
+ required: false,
38
+ serialized_name: 'policyDefinitionId',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ parameters: {
44
+ required: false,
45
+ serialized_name: 'parameters',
46
+ type: {
47
+ name: 'Object'
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,17 @@
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::ARM::Policy
7
+ module Models
8
+ #
9
+ # Defines values for PolicyMode
10
+ #
11
+ module PolicyMode
12
+ NotSpecified = "NotSpecified"
13
+ Indexed = "Indexed"
14
+ All = "All"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,141 @@
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::ARM::Policy
7
+ module Models
8
+ #
9
+ # The policy set definition.
10
+ #
11
+ class PolicySetDefinition
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [PolicyType] The type of policy definition. Possible values are
17
+ # NotSpecified, BuiltIn, and Custom. Possible values include:
18
+ # 'NotSpecified', 'BuiltIn', 'Custom'
19
+ attr_accessor :policy_type
20
+
21
+ # @return [String] The display name of the policy set definition.
22
+ attr_accessor :display_name
23
+
24
+ # @return [String] The policy set definition description.
25
+ attr_accessor :description
26
+
27
+ # @return The policy set definition metadata.
28
+ attr_accessor :metadata
29
+
30
+ # @return The policy set definition parameters that can be used in policy
31
+ # definition references.
32
+ attr_accessor :parameters
33
+
34
+ # @return [Array<PolicyDefinitionReference>] An array of policy
35
+ # definition references.
36
+ attr_accessor :policy_definitions
37
+
38
+ # @return [String] The ID of the policy set definition.
39
+ attr_accessor :id
40
+
41
+ # @return [String] The name of the policy set definition.
42
+ attr_accessor :name
43
+
44
+ # @return [String] The type of the resource
45
+ # (Microsoft.Authorization/policySetDefinitions).
46
+ attr_accessor :type
47
+
48
+
49
+ #
50
+ # Mapper for PolicySetDefinition class as Ruby Hash.
51
+ # This will be used for serialization/deserialization.
52
+ #
53
+ def self.mapper()
54
+ {
55
+ required: false,
56
+ serialized_name: 'PolicySetDefinition',
57
+ type: {
58
+ name: 'Composite',
59
+ class_name: 'PolicySetDefinition',
60
+ model_properties: {
61
+ policy_type: {
62
+ required: false,
63
+ serialized_name: 'properties.policyType',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ display_name: {
69
+ required: false,
70
+ serialized_name: 'properties.displayName',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ description: {
76
+ required: false,
77
+ serialized_name: 'properties.description',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ metadata: {
83
+ required: false,
84
+ serialized_name: 'properties.metadata',
85
+ type: {
86
+ name: 'Object'
87
+ }
88
+ },
89
+ parameters: {
90
+ required: false,
91
+ serialized_name: 'properties.parameters',
92
+ type: {
93
+ name: 'Object'
94
+ }
95
+ },
96
+ policy_definitions: {
97
+ required: true,
98
+ serialized_name: 'properties.policyDefinitions',
99
+ type: {
100
+ name: 'Sequence',
101
+ element: {
102
+ required: false,
103
+ serialized_name: 'PolicyDefinitionReferenceElementType',
104
+ type: {
105
+ name: 'Composite',
106
+ class_name: 'PolicyDefinitionReference'
107
+ }
108
+ }
109
+ }
110
+ },
111
+ id: {
112
+ required: false,
113
+ read_only: true,
114
+ serialized_name: 'id',
115
+ type: {
116
+ name: 'String'
117
+ }
118
+ },
119
+ name: {
120
+ required: false,
121
+ read_only: true,
122
+ serialized_name: 'name',
123
+ type: {
124
+ name: 'String'
125
+ }
126
+ },
127
+ type: {
128
+ required: false,
129
+ read_only: true,
130
+ serialized_name: 'type',
131
+ type: {
132
+ name: 'String'
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ end
139
+ end
140
+ end
141
+ end