source: vendor/google/apiclient-services/src/BinaryAuthorization/Policy.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 5.2 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\BinaryAuthorization;
19
20class Policy extends \Google\Collection
21{
22 protected $collection_key = 'admissionWhitelistPatterns';
23 protected $admissionWhitelistPatternsType = AdmissionWhitelistPattern::class;
24 protected $admissionWhitelistPatternsDataType = 'array';
25 protected $clusterAdmissionRulesType = AdmissionRule::class;
26 protected $clusterAdmissionRulesDataType = 'map';
27 protected $defaultAdmissionRuleType = AdmissionRule::class;
28 protected $defaultAdmissionRuleDataType = '';
29 /**
30 * @var string
31 */
32 public $description;
33 /**
34 * @var string
35 */
36 public $etag;
37 /**
38 * @var string
39 */
40 public $globalPolicyEvaluationMode;
41 protected $istioServiceIdentityAdmissionRulesType = AdmissionRule::class;
42 protected $istioServiceIdentityAdmissionRulesDataType = 'map';
43 protected $kubernetesNamespaceAdmissionRulesType = AdmissionRule::class;
44 protected $kubernetesNamespaceAdmissionRulesDataType = 'map';
45 protected $kubernetesServiceAccountAdmissionRulesType = AdmissionRule::class;
46 protected $kubernetesServiceAccountAdmissionRulesDataType = 'map';
47 /**
48 * @var string
49 */
50 public $name;
51 /**
52 * @var string
53 */
54 public $updateTime;
55
56 /**
57 * @param AdmissionWhitelistPattern[]
58 */
59 public function setAdmissionWhitelistPatterns($admissionWhitelistPatterns)
60 {
61 $this->admissionWhitelistPatterns = $admissionWhitelistPatterns;
62 }
63 /**
64 * @return AdmissionWhitelistPattern[]
65 */
66 public function getAdmissionWhitelistPatterns()
67 {
68 return $this->admissionWhitelistPatterns;
69 }
70 /**
71 * @param AdmissionRule[]
72 */
73 public function setClusterAdmissionRules($clusterAdmissionRules)
74 {
75 $this->clusterAdmissionRules = $clusterAdmissionRules;
76 }
77 /**
78 * @return AdmissionRule[]
79 */
80 public function getClusterAdmissionRules()
81 {
82 return $this->clusterAdmissionRules;
83 }
84 /**
85 * @param AdmissionRule
86 */
87 public function setDefaultAdmissionRule(AdmissionRule $defaultAdmissionRule)
88 {
89 $this->defaultAdmissionRule = $defaultAdmissionRule;
90 }
91 /**
92 * @return AdmissionRule
93 */
94 public function getDefaultAdmissionRule()
95 {
96 return $this->defaultAdmissionRule;
97 }
98 /**
99 * @param string
100 */
101 public function setDescription($description)
102 {
103 $this->description = $description;
104 }
105 /**
106 * @return string
107 */
108 public function getDescription()
109 {
110 return $this->description;
111 }
112 /**
113 * @param string
114 */
115 public function setEtag($etag)
116 {
117 $this->etag = $etag;
118 }
119 /**
120 * @return string
121 */
122 public function getEtag()
123 {
124 return $this->etag;
125 }
126 /**
127 * @param string
128 */
129 public function setGlobalPolicyEvaluationMode($globalPolicyEvaluationMode)
130 {
131 $this->globalPolicyEvaluationMode = $globalPolicyEvaluationMode;
132 }
133 /**
134 * @return string
135 */
136 public function getGlobalPolicyEvaluationMode()
137 {
138 return $this->globalPolicyEvaluationMode;
139 }
140 /**
141 * @param AdmissionRule[]
142 */
143 public function setIstioServiceIdentityAdmissionRules($istioServiceIdentityAdmissionRules)
144 {
145 $this->istioServiceIdentityAdmissionRules = $istioServiceIdentityAdmissionRules;
146 }
147 /**
148 * @return AdmissionRule[]
149 */
150 public function getIstioServiceIdentityAdmissionRules()
151 {
152 return $this->istioServiceIdentityAdmissionRules;
153 }
154 /**
155 * @param AdmissionRule[]
156 */
157 public function setKubernetesNamespaceAdmissionRules($kubernetesNamespaceAdmissionRules)
158 {
159 $this->kubernetesNamespaceAdmissionRules = $kubernetesNamespaceAdmissionRules;
160 }
161 /**
162 * @return AdmissionRule[]
163 */
164 public function getKubernetesNamespaceAdmissionRules()
165 {
166 return $this->kubernetesNamespaceAdmissionRules;
167 }
168 /**
169 * @param AdmissionRule[]
170 */
171 public function setKubernetesServiceAccountAdmissionRules($kubernetesServiceAccountAdmissionRules)
172 {
173 $this->kubernetesServiceAccountAdmissionRules = $kubernetesServiceAccountAdmissionRules;
174 }
175 /**
176 * @return AdmissionRule[]
177 */
178 public function getKubernetesServiceAccountAdmissionRules()
179 {
180 return $this->kubernetesServiceAccountAdmissionRules;
181 }
182 /**
183 * @param string
184 */
185 public function setName($name)
186 {
187 $this->name = $name;
188 }
189 /**
190 * @return string
191 */
192 public function getName()
193 {
194 return $this->name;
195 }
196 /**
197 * @param string
198 */
199 public function setUpdateTime($updateTime)
200 {
201 $this->updateTime = $updateTime;
202 }
203 /**
204 * @return string
205 */
206 public function getUpdateTime()
207 {
208 return $this->updateTime;
209 }
210}
211
212// Adding a class alias for backwards compatibility with the previous class name.
213class_alias(Policy::class, 'Google_Service_BinaryAuthorization_Policy');
Note: See TracBrowser for help on using the repository browser.