Debian Codegraph @

docs/dyn/binaryauthorization_v1.projects.platforms.gke.policies.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="binaryauthorization_v1.html">Binary Authorization API</a> . <a href="binaryauthorization_v1.projects.html">projects</a> . <a href="binaryauthorization_v1.projects.platforms.html">platforms</a> . <a href="binaryauthorization_v1.projects.platforms.gke.html">gke</a> . <a href="binaryauthorization_v1.projects.platforms.gke.policies.html">policies</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#evaluate">evaluate(name, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Evaluates a Kubernetes object versus a GKE platform policy. Returns `NOT_FOUND` if the policy doesn't exist, `INVALID_ARGUMENT` if the policy or request is malformed and `PERMISSION_DENIED` if the client does not have sufficient permissions.</p>
83 <h3>Method Details</h3>
84 <div class="method">
85 <code class="details" id="close">close()</code>
86 <pre>Close httplib2 connections.</pre>
87 </div>
88
89 <div class="method">
90 <code class="details" id="evaluate">evaluate(name, body=None, x__xgafv=None)</code>
91 <pre>Evaluates a Kubernetes object versus a GKE platform policy. Returns `NOT_FOUND` if the policy doesn&#x27;t exist, `INVALID_ARGUMENT` if the policy or request is malformed and `PERMISSION_DENIED` if the client does not have sufficient permissions.
92
93 Args:
94 name: string, Required. The name of the platform policy to evaluate in the format `projects/*/platforms/*/policies/*`. (required)
95 body: object, The request body.
96 The object takes the form of:
97
98 { # Request message for PlatformPolicyEvaluationService.EvaluateGkePolicy.
99 &quot;resource&quot;: { # Required. JSON or YAML blob representing a Kubernetes resource.
100 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
101 },
102 }
103
104 x__xgafv: string, V1 error format.
105 Allowed values
106 1 - v1 error format
107 2 - v2 error format
108
109 Returns:
110 An object of the form:
111
112 { # Response message for PlatformPolicyEvaluationService.EvaluateGkePolicy.
113 &quot;results&quot;: [ # Evaluation result for each Pod contained in the request.
114 { # Result of evaluating the whole GKE policy for one Pod.
115 &quot;imageResults&quot;: [ # Per-image details.
116 { # Result of evaluating one image.
117 &quot;allowlistResult&quot;: { # Result of evaluating an image name allowlist. # If the image was exempted by a top-level allow_pattern, contains the allowlist pattern that the image name matched.
118 &quot;matchedPattern&quot;: &quot;A String&quot;, # The allowlist pattern that the image matched.
119 },
120 &quot;checkSetResult&quot;: { # Result of evaluating one check set. # If a check set was evaluated, contains the result of the check set. Empty if there were no check sets.
121 &quot;allowlistResult&quot;: { # Result of evaluating an image name allowlist. # If the image was exempted by an allow_pattern in the check set, contains the pattern that the image name matched.
122 &quot;matchedPattern&quot;: &quot;A String&quot;, # The allowlist pattern that the image matched.
123 },
124 &quot;checkResults&quot;: { # Result of evaluating one or more checks. # If checks were evaluated, contains the results of evaluating each check.
125 &quot;results&quot;: [ # Per-check details.
126 { # Result of evaluating one check.
127 &quot;allowlistResult&quot;: { # Result of evaluating an image name allowlist. # If the image was exempted by an allow_pattern in the check, contains the pattern that the image name matched.
128 &quot;matchedPattern&quot;: &quot;A String&quot;, # The allowlist pattern that the image matched.
129 },
130 &quot;displayName&quot;: &quot;A String&quot;, # The name of the check.
131 &quot;evaluationResult&quot;: { # Result of evaluating one check. # If a check was evaluated, contains the result of the check.
132 &quot;verdict&quot;: &quot;A String&quot;, # The result of evaluating this check.
133 },
134 &quot;explanation&quot;: &quot;A String&quot;, # Explanation of this check result.
135 &quot;index&quot;: &quot;A String&quot;, # The index of the check.
136 &quot;type&quot;: &quot;A String&quot;, # The type of the check.
137 },
138 ],
139 },
140 &quot;displayName&quot;: &quot;A String&quot;, # The name of the check set.
141 &quot;explanation&quot;: &quot;A String&quot;, # Explanation of this check set result. Only populated if no checks were evaluated.
142 &quot;index&quot;: &quot;A String&quot;, # The index of the check set.
143 &quot;scope&quot;: { # A scope specifier for `CheckSet` objects. # The scope of the check set.
144 &quot;kubernetesNamespace&quot;: &quot;A String&quot;, # Optional. Matches all Kubernetes service accounts in the provided namespace, unless a more specific `kubernetes_service_account` scope already matched.
145 &quot;kubernetesServiceAccount&quot;: &quot;A String&quot;, # Optional. Matches a single Kubernetes service account, e.g. `my-namespace:my-service-account`. `kubernetes_service_account` scope is always more specific than `kubernetes_namespace` scope for the same namespace.
146 },
147 },
148 &quot;explanation&quot;: &quot;A String&quot;, # Explanation of this image result. Only populated if no check sets were evaluated.
149 &quot;imageUri&quot;: &quot;A String&quot;, # Image URI from the request.
150 &quot;verdict&quot;: &quot;A String&quot;, # The result of evaluating this image.
151 },
152 ],
153 &quot;kubernetesNamespace&quot;: &quot;A String&quot;, # The Kubernetes namespace of the Pod.
154 &quot;kubernetesServiceAccount&quot;: &quot;A String&quot;, # The Kubernetes service account of the Pod.
155 &quot;podName&quot;: &quot;A String&quot;, # The name of the Pod.
156 &quot;verdict&quot;: &quot;A String&quot;, # The result of evaluating this Pod.
157 },
158 ],
159 &quot;verdict&quot;: &quot;A String&quot;, # The result of evaluating all Pods in the request.
160 }</pre>
161 </div>
162
163 </body></html>