blob: 1be2f78ec1a7084c81af02b0e6802b0221742ebe [file] [log] [blame]
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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
yoshi-code-bot96afc042021-08-24 00:22:31 -070075<h1><a href="gkehub_v1alpha.html">GKE Hub API</a> . <a href="gkehub_v1alpha.projects.html">projects</a> . <a href="gkehub_v1alpha.projects.locations.html">locations</a> . <a href="gkehub_v1alpha.projects.locations.features.html">features</a></h1>
Anthonios Partheniou10f4b672021-04-13 14:47:53 -040076<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">
yoshi-code-bot44a67192021-05-02 03:48:02 -070081 <code><a href="#create">create(parent, body=None, featureId=None, requestId=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Adds a new Feature.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(name, force=None, requestId=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Removes a Feature.</p>
86<p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Gets details of a single Feature.</p>
89<p class="toc_element">
Anthonios Partheniou10f4b672021-04-13 14:47:53 -040090 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.</p>
92<p class="toc_element">
yoshi-code-bot44a67192021-05-02 03:48:02 -070093 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Lists Features in a given project and location.</p>
95<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
99 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Updates an existing Feature.</p>
101<p class="toc_element">
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400102 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.</p>
104<p class="toc_element">
105 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
106<p class="firstline">Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.</p>
107<h3>Method Details</h3>
108<div class="method">
109 <code class="details" id="close">close()</code>
110 <pre>Close httplib2 connections.</pre>
111</div>
112
113<div class="method">
yoshi-code-bot44a67192021-05-02 03:48:02 -0700114 <code class="details" id="create">create(parent, body=None, featureId=None, requestId=None, x__xgafv=None)</code>
115 <pre>Adds a new Feature.
116
117Args:
118 parent: string, The parent (project and location) where the Feature will be created. Specified in the format `projects/*/locations/*`. (required)
119 body: object, The request body.
120 The object takes the form of:
121
122{ # Feature represents the settings and status of any Hub Feature.
123 &quot;createTime&quot;: &quot;A String&quot;, # Output only. When the Feature resource was created.
124 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. When the Feature resource was deleted.
125 &quot;labels&quot;: { # GCP labels for this Feature.
126 &quot;a_key&quot;: &quot;A String&quot;,
127 },
yoshi-code-bot07708072021-07-20 00:20:24 -0700128 &quot;membershipSpecs&quot;: { # Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused. The keys indicate which Membership the configuration is for, in the form: `projects/{p}/locations/{l}/memberships/{m}` Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature&#x27;s project. {p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700129 &quot;a_key&quot;: { # MembershipFeatureSpec contains configuration information for a single Membership.
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700130 &quot;configmanagement&quot;: { # **Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR. # Config Management-specific spec.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700131 &quot;binauthz&quot;: { # Configuration for Binauthz # Binauthz conifguration for the cluster.
132 &quot;enabled&quot;: True or False, # Whether binauthz is enabled in this cluster.
133 },
134 &quot;configSync&quot;: { # Configuration for Config Sync # Config Sync configuration for the cluster.
135 &quot;git&quot;: { # Git repo configuration for a single cluster. # Git repo configuration for the cluster.
136 &quot;gcpServiceAccountEmail&quot;: &quot;A String&quot;, # The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.
137 &quot;httpsProxy&quot;: &quot;A String&quot;, # URL for the HTTPS proxy to be used when communicating with the Git repo.
138 &quot;policyDir&quot;: &quot;A String&quot;, # The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository.
139 &quot;secretType&quot;: &quot;A String&quot;, # Type of secret configured for access to the Git repo.
140 &quot;syncBranch&quot;: &quot;A String&quot;, # The branch of the repository to sync from. Default: master.
141 &quot;syncRepo&quot;: &quot;A String&quot;, # The URL of the Git repository to use as the source of truth.
142 &quot;syncRev&quot;: &quot;A String&quot;, # Git revision (tag or hash) to check out. Default HEAD.
143 &quot;syncWaitSecs&quot;: &quot;A String&quot;, # Period in seconds between consecutive syncs. Default: 15.
144 },
145 &quot;sourceFormat&quot;: &quot;A String&quot;, # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode.
146 },
147 &quot;hierarchyController&quot;: { # Configuration for Hierarchy Controller # Hierarchy Controller configuration for the cluster.
148 &quot;enableHierarchicalResourceQuota&quot;: True or False, # Whether hierarchical resource quota is enabled in this cluster.
149 &quot;enablePodTreeLabels&quot;: True or False, # Whether pod tree labels are enabled in this cluster.
150 &quot;enabled&quot;: True or False, # Whether Hierarchy Controller is enabled in this cluster.
151 },
152 &quot;policyController&quot;: { # Configuration for Policy Controller # Policy Controller configuration for the cluster.
153 &quot;auditIntervalSeconds&quot;: &quot;A String&quot;, # Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether.
154 &quot;enabled&quot;: True or False, # Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect.
155 &quot;exemptableNamespaces&quot;: [ # The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.
156 &quot;A String&quot;,
157 ],
158 &quot;logDeniesEnabled&quot;: True or False, # Logs all denies and dry run failures.
yoshi-code-bot38664e82021-05-29 00:50:02 -0700159 &quot;mutationEnabled&quot;: True or False, # Enable users to try out mutation for PolicyController.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700160 &quot;referentialRulesEnabled&quot;: True or False, # Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.
161 &quot;templateLibraryInstalled&quot;: True or False, # Installs the default template library along with Policy Controller.
162 },
163 &quot;version&quot;: &quot;A String&quot;, # Version of ACM installed.
164 },
yoshi-code-bot96afc042021-08-24 00:22:31 -0700165 &quot;identityservice&quot;: { # **Anthos Identity Service**: Configuration for a single Membership. # Identity Service-specific spec.
166 &quot;authMethods&quot;: [ # A member may support multiple auth methods.
167 { # Configuration of an auth method for a member/cluster. Only one authentication method (e.g., OIDC and LDAP) can be set per AuthMethod.
168 &quot;name&quot;: &quot;A String&quot;, # Identifier for auth config.
169 &quot;oidcConfig&quot;: { # Configuration for OIDC Auth flow. # OIDC specific configuration.
170 &quot;certificateAuthorityData&quot;: &quot;A String&quot;, # PEM-encoded CA for OIDC provider.
171 &quot;clientId&quot;: &quot;A String&quot;, # ID for OIDC client application.
172 &quot;deployCloudConsoleProxy&quot;: True or False, # Flag to denote if reverse proxy is used to connect to auth provider. This flag should be set to true when provider is not reachable by Google Cloud Console.
173 &quot;extraParams&quot;: &quot;A String&quot;, # Comma-separated list of key-value pairs.
174 &quot;groupPrefix&quot;: &quot;A String&quot;, # Prefix to prepend to group name.
175 &quot;groupsClaim&quot;: &quot;A String&quot;, # Claim in OIDC ID token that holds group information.
176 &quot;issuerUri&quot;: &quot;A String&quot;, # URI for the OIDC provider. This should point to the level below .well-known/openid-configuration.
177 &quot;kubectlRedirectUri&quot;: &quot;A String&quot;, # Registered redirect uri to redirect users going through OAuth flow using kubectl plugin.
178 &quot;scopes&quot;: &quot;A String&quot;, # Comma-separated list of identifiers.
179 &quot;userClaim&quot;: &quot;A String&quot;, # Claim in OIDC ID token that holds username.
180 &quot;userPrefix&quot;: &quot;A String&quot;, # Prefix to prepend to user name.
181 },
182 &quot;proxy&quot;: &quot;A String&quot;, # Proxy server address to use for auth method.
183 },
184 ],
185 },
yoshi-code-bot44a67192021-05-02 03:48:02 -0700186 },
187 },
yoshi-code-bot07708072021-07-20 00:20:24 -0700188 &quot;membershipStates&quot;: { # Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: `projects/{p}/locations/{l}/memberships/{m}` Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature&#x27;s project number.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700189 &quot;a_key&quot;: { # MembershipFeatureState contains Feature status information for a single Membership.
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700190 &quot;configmanagement&quot;: { # **Anthos Config Management**: State for a single cluster. # Config Management-specific state.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700191 &quot;binauthzState&quot;: { # State for Binauthz # Binauthz status
192 &quot;version&quot;: { # The version of binauthz. # The version of binauthz that is installed.
193 &quot;webhookVersion&quot;: &quot;A String&quot;, # The version of the binauthz webhook.
194 },
195 &quot;webhook&quot;: &quot;A String&quot;, # The state of the binauthz webhook.
196 },
197 &quot;clusterName&quot;: &quot;A String&quot;, # The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership&#x27;s membership_name, unless the user installed ACM on the cluster manually prior to enabling the ACM hub feature. Unique within a Anthos Config Management installation.
198 &quot;configSyncState&quot;: { # State information for ConfigSync # Current sync status
199 &quot;deploymentState&quot;: { # The state of ConfigSync&#x27;s deployment on a cluster # Information about the deployment of ConfigSync, including the version of the various Pods deployed
200 &quot;gitSync&quot;: &quot;A String&quot;, # Deployment state of the git-sync pod
201 &quot;importer&quot;: &quot;A String&quot;, # Deployment state of the importer pod
202 &quot;monitor&quot;: &quot;A String&quot;, # Deployment state of the monitor pod
203 &quot;reconcilerManager&quot;: &quot;A String&quot;, # Deployment state of reconciler-manager pod
204 &quot;rootReconciler&quot;: &quot;A String&quot;, # Deployment state of root-reconciler
205 &quot;syncer&quot;: &quot;A String&quot;, # Deployment state of the syncer pod
206 },
207 &quot;syncState&quot;: { # State indicating an ACM&#x27;s progress syncing configurations to a cluster # The state of ConfigSync&#x27;s process to sync configs to a cluster
208 &quot;code&quot;: &quot;A String&quot;, # Sync status code
209 &quot;errors&quot;: [ # A list of errors resulting from problematic configs. This list will be truncated after 100 errors, although it is unlikely for that many errors to simultaneously exist.
210 { # An ACM created error representing a problem syncing configurations
211 &quot;code&quot;: &quot;A String&quot;, # An ACM defined error code
212 &quot;errorMessage&quot;: &quot;A String&quot;, # A description of the error
213 &quot;errorResources&quot;: [ # A list of config(s) associated with the error, if any
214 { # Model for a config file in the git repo with an associated Sync error
215 &quot;resourceGvk&quot;: { # A Kubernetes object&#x27;s GVK # Group/version/kind of the resource that is causing an error
216 &quot;group&quot;: &quot;A String&quot;, # Kubernetes Group
217 &quot;kind&quot;: &quot;A String&quot;, # Kubernetes Kind
218 &quot;version&quot;: &quot;A String&quot;, # Kubernetes Version
219 },
220 &quot;resourceName&quot;: &quot;A String&quot;, # Metadata name of the resource that is causing an error
221 &quot;resourceNamespace&quot;: &quot;A String&quot;, # Namespace of the resource that is causing an error
222 &quot;sourcePath&quot;: &quot;A String&quot;, # Path in the git repo of the erroneous config
223 },
224 ],
225 },
226 ],
227 &quot;importToken&quot;: &quot;A String&quot;, # Token indicating the state of the importer.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700228 &quot;lastSync&quot;: &quot;A String&quot;, # Deprecated: use last_sync_time instead. Timestamp of when ACM last successfully synced the repo The time format is specified in https://golang.org/pkg/time/#Time.String
yoshi-code-bot44a67192021-05-02 03:48:02 -0700229 &quot;lastSyncTime&quot;: &quot;A String&quot;, # Timestamp type of when ACM last successfully synced the repo
230 &quot;sourceToken&quot;: &quot;A String&quot;, # Token indicating the state of the repo.
231 &quot;syncToken&quot;: &quot;A String&quot;, # Token indicating the state of the syncer.
232 },
233 &quot;version&quot;: { # Specific versioning information pertaining to ConfigSync&#x27;s Pods # The version of ConfigSync deployed
234 &quot;gitSync&quot;: &quot;A String&quot;, # Version of the deployed git-sync pod
235 &quot;importer&quot;: &quot;A String&quot;, # Version of the deployed importer pod
236 &quot;monitor&quot;: &quot;A String&quot;, # Version of the deployed monitor pod
237 &quot;reconcilerManager&quot;: &quot;A String&quot;, # Version of the deployed reconciler-manager pod
238 &quot;rootReconciler&quot;: &quot;A String&quot;, # Version of the deployed reconciler container in root-reconciler pod
239 &quot;syncer&quot;: &quot;A String&quot;, # Version of the deployed syncer pod
240 },
241 },
242 &quot;hierarchyControllerState&quot;: { # State for Hierarchy Controller # Hierarchy Controller status
243 &quot;state&quot;: { # Deployment state for Hierarchy Controller # The deployment state for Hierarchy Controller
244 &quot;extension&quot;: &quot;A String&quot;, # The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
245 &quot;hnc&quot;: &quot;A String&quot;, # The deployment state for open source HNC (e.g. v0.7.0-hc.0)
246 },
247 &quot;version&quot;: { # Version for Hierarchy Controller # The version for Hierarchy Controller
248 &quot;extension&quot;: &quot;A String&quot;, # Version for Hierarchy Controller extension
249 &quot;hnc&quot;: &quot;A String&quot;, # Version for open source HNC
250 },
251 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700252 &quot;membershipSpec&quot;: { # **Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR. # Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state
yoshi-code-bot44a67192021-05-02 03:48:02 -0700253 &quot;binauthz&quot;: { # Configuration for Binauthz # Binauthz conifguration for the cluster.
254 &quot;enabled&quot;: True or False, # Whether binauthz is enabled in this cluster.
255 },
256 &quot;configSync&quot;: { # Configuration for Config Sync # Config Sync configuration for the cluster.
257 &quot;git&quot;: { # Git repo configuration for a single cluster. # Git repo configuration for the cluster.
258 &quot;gcpServiceAccountEmail&quot;: &quot;A String&quot;, # The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.
259 &quot;httpsProxy&quot;: &quot;A String&quot;, # URL for the HTTPS proxy to be used when communicating with the Git repo.
260 &quot;policyDir&quot;: &quot;A String&quot;, # The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository.
261 &quot;secretType&quot;: &quot;A String&quot;, # Type of secret configured for access to the Git repo.
262 &quot;syncBranch&quot;: &quot;A String&quot;, # The branch of the repository to sync from. Default: master.
263 &quot;syncRepo&quot;: &quot;A String&quot;, # The URL of the Git repository to use as the source of truth.
264 &quot;syncRev&quot;: &quot;A String&quot;, # Git revision (tag or hash) to check out. Default HEAD.
265 &quot;syncWaitSecs&quot;: &quot;A String&quot;, # Period in seconds between consecutive syncs. Default: 15.
266 },
267 &quot;sourceFormat&quot;: &quot;A String&quot;, # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode.
268 },
269 &quot;hierarchyController&quot;: { # Configuration for Hierarchy Controller # Hierarchy Controller configuration for the cluster.
270 &quot;enableHierarchicalResourceQuota&quot;: True or False, # Whether hierarchical resource quota is enabled in this cluster.
271 &quot;enablePodTreeLabels&quot;: True or False, # Whether pod tree labels are enabled in this cluster.
272 &quot;enabled&quot;: True or False, # Whether Hierarchy Controller is enabled in this cluster.
273 },
274 &quot;policyController&quot;: { # Configuration for Policy Controller # Policy Controller configuration for the cluster.
275 &quot;auditIntervalSeconds&quot;: &quot;A String&quot;, # Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether.
276 &quot;enabled&quot;: True or False, # Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect.
277 &quot;exemptableNamespaces&quot;: [ # The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.
278 &quot;A String&quot;,
279 ],
280 &quot;logDeniesEnabled&quot;: True or False, # Logs all denies and dry run failures.
yoshi-code-bot38664e82021-05-29 00:50:02 -0700281 &quot;mutationEnabled&quot;: True or False, # Enable users to try out mutation for PolicyController.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700282 &quot;referentialRulesEnabled&quot;: True or False, # Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.
283 &quot;templateLibraryInstalled&quot;: True or False, # Installs the default template library along with Policy Controller.
284 },
285 &quot;version&quot;: &quot;A String&quot;, # Version of ACM installed.
286 },
287 &quot;operatorState&quot;: { # State information for an ACM&#x27;s Operator # Current install status of ACM&#x27;s Operator
288 &quot;deploymentState&quot;: &quot;A String&quot;, # The state of the Operator&#x27;s deployment
289 &quot;errors&quot;: [ # Install errors.
290 { # Errors pertaining to the installation of ACM
291 &quot;errorMessage&quot;: &quot;A String&quot;, # A string representing the user facing error message
292 },
293 ],
294 &quot;version&quot;: &quot;A String&quot;, # The semenatic version number of the operator
295 },
296 &quot;policyControllerState&quot;: { # State for PolicyControllerState. # PolicyController status
297 &quot;deploymentState&quot;: { # State of Policy Controller installation. # The state about the policy controller installation.
298 &quot;gatekeeperAudit&quot;: &quot;A String&quot;, # Status of gatekeeper-audit deployment.
299 &quot;gatekeeperControllerManagerState&quot;: &quot;A String&quot;, # Status of gatekeeper-controller-manager pod.
yoshi-code-bot38664e82021-05-29 00:50:02 -0700300 &quot;gatekeeperMutation&quot;: &quot;A String&quot;, # Status of the pod serving the mutation webhook.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700301 },
302 &quot;version&quot;: { # The build version of Gatekeeper Policy Controller is using. # The version of Gatekeeper Policy Controller deployed.
303 &quot;version&quot;: &quot;A String&quot;, # The gatekeeper image tag that is composed of ACM version, git tag, build number.
304 },
305 },
306 },
yoshi-code-bot96afc042021-08-24 00:22:31 -0700307 &quot;identityservice&quot;: { # **Anthos Identity Service**: State for a single Membership. # Identity Service-specific state.
308 &quot;failureReason&quot;: &quot;A String&quot;, # The reason of the failure.
309 &quot;installedVersion&quot;: &quot;A String&quot;, # Installed AIS version. This is the AIS version installed on this member. The values makes sense iff state is OK.
310 &quot;memberConfig&quot;: { # **Anthos Identity Service**: Configuration for a single Membership. # Last reconciled membership configuration
311 &quot;authMethods&quot;: [ # A member may support multiple auth methods.
312 { # Configuration of an auth method for a member/cluster. Only one authentication method (e.g., OIDC and LDAP) can be set per AuthMethod.
313 &quot;name&quot;: &quot;A String&quot;, # Identifier for auth config.
314 &quot;oidcConfig&quot;: { # Configuration for OIDC Auth flow. # OIDC specific configuration.
315 &quot;certificateAuthorityData&quot;: &quot;A String&quot;, # PEM-encoded CA for OIDC provider.
316 &quot;clientId&quot;: &quot;A String&quot;, # ID for OIDC client application.
317 &quot;deployCloudConsoleProxy&quot;: True or False, # Flag to denote if reverse proxy is used to connect to auth provider. This flag should be set to true when provider is not reachable by Google Cloud Console.
318 &quot;extraParams&quot;: &quot;A String&quot;, # Comma-separated list of key-value pairs.
319 &quot;groupPrefix&quot;: &quot;A String&quot;, # Prefix to prepend to group name.
320 &quot;groupsClaim&quot;: &quot;A String&quot;, # Claim in OIDC ID token that holds group information.
321 &quot;issuerUri&quot;: &quot;A String&quot;, # URI for the OIDC provider. This should point to the level below .well-known/openid-configuration.
322 &quot;kubectlRedirectUri&quot;: &quot;A String&quot;, # Registered redirect uri to redirect users going through OAuth flow using kubectl plugin.
323 &quot;scopes&quot;: &quot;A String&quot;, # Comma-separated list of identifiers.
324 &quot;userClaim&quot;: &quot;A String&quot;, # Claim in OIDC ID token that holds username.
325 &quot;userPrefix&quot;: &quot;A String&quot;, # Prefix to prepend to user name.
326 },
327 &quot;proxy&quot;: &quot;A String&quot;, # Proxy server address to use for auth method.
328 },
329 ],
330 },
331 &quot;state&quot;: &quot;A String&quot;, # Deployment state on this member
332 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700333 &quot;metering&quot;: { # **Metering**: Per-Membership Feature State. # Metering-specific spec.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700334 &quot;lastMeasurementTime&quot;: &quot;A String&quot;, # The time stamp of the most recent measurement of the number of vCPUs in the cluster.
335 &quot;preciseLastMeasuredClusterVcpuCapacity&quot;: 3.14, # The vCPUs capacity in the cluster according to the most recent measurement (1/1000 precision).
336 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700337 &quot;servicemesh&quot;: { # **Service Mesh**: State for a single Membership, as analyzed by the Service Mesh Hub Controller. # Service Mesh-specific state.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700338 &quot;analysisMessages&quot;: [ # Output only. Results of running Service Mesh analyzers.
339 { # AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration.
340 &quot;args&quot;: { # A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.
341 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
342 },
343 &quot;description&quot;: &quot;A String&quot;, # A human readable description of what the error means. It is suitable for non-internationalize display purposes.
344 &quot;messageBase&quot;: { # AnalysisMessageBase describes some common information that is needed for all messages. # Details common to all types of Istio and ServiceMesh analysis messages.
345 &quot;documentationUrl&quot;: &quot;A String&quot;, # A url pointing to the Service Mesh or Istio documentation for this specific error type.
346 &quot;level&quot;: &quot;A String&quot;, # Represents how severe a message is.
347 &quot;type&quot;: { # A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type # Represents the specific type of a message.
348 &quot;code&quot;: &quot;A String&quot;, # A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended to uniquely identify the message type. (e.g. &quot;IST0001&quot; is mapped to the &quot;InternalError&quot; message type.)
349 &quot;displayName&quot;: &quot;A String&quot;, # A human-readable name for the message type. e.g. &quot;InternalError&quot;, &quot;PodMissingProxy&quot;. This should be the same for all messages of the same type. (This corresponds to the `name` field in open-source Istio.)
350 },
351 },
352 &quot;resourcePaths&quot;: [ # A list of strings specifying the resource identifiers that were the cause of message generation. A &quot;path&quot; here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
353 &quot;A String&quot;,
354 ],
355 },
356 ],
357 },
358 &quot;state&quot;: { # FeatureState describes the high-level state of a Feature. It may be used to describe a Feature&#x27;s state at the environ-level, or per-membershop, depending on the context. # The high-level state of this Feature for a single membership.
359 &quot;code&quot;: &quot;A String&quot;, # The high-level, machine-readable status of this Feature.
360 &quot;description&quot;: &quot;A String&quot;, # A human-readable description of the current status.
361 &quot;updateTime&quot;: &quot;A String&quot;, # The time this status and any related Feature-specific details were updated.
362 },
363 },
364 },
365 &quot;name&quot;: &quot;A String&quot;, # Output only. The full, unique name of this Feature resource in the format `projects/*/locations/*/features/*`.
366 &quot;resourceState&quot;: { # FeatureResourceState describes the state of a Feature *resource* in the GkeHub API. See `FeatureState` for the &quot;running state&quot; of the Feature in the Hub and across Memberships. # Output only. State of the Feature resource itself.
367 &quot;state&quot;: &quot;A String&quot;, # The current state of the Feature resource in the Hub API.
368 },
369 &quot;spec&quot;: { # CommonFeatureSpec contains Hub-wide configuration information # Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused.
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700370 &quot;cloudauditlogging&quot;: { # **Cloud Audit Logging**: Spec for Audit Logging Allowlisting. # Cloud Audit Logging-specific spec.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700371 &quot;allowlistedServiceAccounts&quot;: [ # Service account that should be allowlisted to send the audit logs; eg cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must already exist, but do not need to have any permissions granted to them. The customer&#x27;s entitlements will be checked prior to allowlisting (i.e. the customer must be an Anthos customer.)
372 &quot;A String&quot;,
373 ],
374 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700375 &quot;multiclusteringress&quot;: { # **Multi-cluster Ingress**: The configuration for the MultiClusterIngress feature. # Multicluster Ingress-specific spec.
yoshi-code-bot07708072021-07-20 00:20:24 -0700376 &quot;billing&quot;: &quot;A String&quot;, # Deprecated: This field will be ignored and should not be set. Customer&#x27;s billing structure.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700377 &quot;configMembership&quot;: &quot;A String&quot;, # Fully-qualified Membership name which hosts the MultiClusterIngress CRD. Example: `projects/foo-proj/locations/global/memberships/bar`
378 },
379 },
380 &quot;state&quot;: { # CommonFeatureState contains Hub-wide Feature status information. # Output only. The Hub-wide Feature state.
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700381 &quot;servicemesh&quot;: { # **Service Mesh**: State for the whole Hub, as analyzed by the Service Mesh Hub Controller. # Service Mesh-specific state.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700382 &quot;analysisMessages&quot;: [ # Output only. Results of running Service Mesh analyzers.
383 { # AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration.
384 &quot;args&quot;: { # A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.
385 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
386 },
387 &quot;description&quot;: &quot;A String&quot;, # A human readable description of what the error means. It is suitable for non-internationalize display purposes.
388 &quot;messageBase&quot;: { # AnalysisMessageBase describes some common information that is needed for all messages. # Details common to all types of Istio and ServiceMesh analysis messages.
389 &quot;documentationUrl&quot;: &quot;A String&quot;, # A url pointing to the Service Mesh or Istio documentation for this specific error type.
390 &quot;level&quot;: &quot;A String&quot;, # Represents how severe a message is.
391 &quot;type&quot;: { # A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type # Represents the specific type of a message.
392 &quot;code&quot;: &quot;A String&quot;, # A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended to uniquely identify the message type. (e.g. &quot;IST0001&quot; is mapped to the &quot;InternalError&quot; message type.)
393 &quot;displayName&quot;: &quot;A String&quot;, # A human-readable name for the message type. e.g. &quot;InternalError&quot;, &quot;PodMissingProxy&quot;. This should be the same for all messages of the same type. (This corresponds to the `name` field in open-source Istio.)
394 },
395 },
396 &quot;resourcePaths&quot;: [ # A list of strings specifying the resource identifiers that were the cause of message generation. A &quot;path&quot; here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
397 &quot;A String&quot;,
398 ],
399 },
400 ],
401 },
402 &quot;state&quot;: { # FeatureState describes the high-level state of a Feature. It may be used to describe a Feature&#x27;s state at the environ-level, or per-membershop, depending on the context. # Output only. The &quot;running state&quot; of the Feature in this Hub.
403 &quot;code&quot;: &quot;A String&quot;, # The high-level, machine-readable status of this Feature.
404 &quot;description&quot;: &quot;A String&quot;, # A human-readable description of the current status.
405 &quot;updateTime&quot;: &quot;A String&quot;, # The time this status and any related Feature-specific details were updated.
406 },
407 },
408 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. When the Feature resource was last updated.
409}
410
411 featureId: string, The ID of the feature to create.
412 requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
413 x__xgafv: string, V1 error format.
414 Allowed values
415 1 - v1 error format
416 2 - v2 error format
417
418Returns:
419 An object of the form:
420
421 { # This resource represents a long-running operation that is the result of a network API call.
422 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
423 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
424 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
425 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
426 {
427 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
428 },
429 ],
430 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
431 },
432 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
433 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
434 },
435 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
436 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
437 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
438 },
439}</pre>
440</div>
441
442<div class="method">
443 <code class="details" id="delete">delete(name, force=None, requestId=None, x__xgafv=None)</code>
444 <pre>Removes a Feature.
445
446Args:
447 name: string, The Feature resource name in the format `projects/*/locations/*/features/*`. (required)
448 force: boolean, If set to true, the delete will ignore any outstanding resources for this Feature (that is, `FeatureState.has_resources` is set to true). These resources will NOT be cleaned up or modified in any way.
449 requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
450 x__xgafv: string, V1 error format.
451 Allowed values
452 1 - v1 error format
453 2 - v2 error format
454
455Returns:
456 An object of the form:
457
458 { # This resource represents a long-running operation that is the result of a network API call.
459 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
460 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
461 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
462 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
463 {
464 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
465 },
466 ],
467 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
468 },
469 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
470 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
471 },
472 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
473 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
474 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
475 },
476}</pre>
477</div>
478
479<div class="method">
480 <code class="details" id="get">get(name, x__xgafv=None)</code>
481 <pre>Gets details of a single Feature.
482
483Args:
484 name: string, The Feature resource name in the format `projects/*/locations/*/features/*` (required)
485 x__xgafv: string, V1 error format.
486 Allowed values
487 1 - v1 error format
488 2 - v2 error format
489
490Returns:
491 An object of the form:
492
493 { # Feature represents the settings and status of any Hub Feature.
494 &quot;createTime&quot;: &quot;A String&quot;, # Output only. When the Feature resource was created.
495 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. When the Feature resource was deleted.
496 &quot;labels&quot;: { # GCP labels for this Feature.
497 &quot;a_key&quot;: &quot;A String&quot;,
498 },
yoshi-code-bot07708072021-07-20 00:20:24 -0700499 &quot;membershipSpecs&quot;: { # Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused. The keys indicate which Membership the configuration is for, in the form: `projects/{p}/locations/{l}/memberships/{m}` Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature&#x27;s project. {p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700500 &quot;a_key&quot;: { # MembershipFeatureSpec contains configuration information for a single Membership.
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700501 &quot;configmanagement&quot;: { # **Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR. # Config Management-specific spec.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700502 &quot;binauthz&quot;: { # Configuration for Binauthz # Binauthz conifguration for the cluster.
503 &quot;enabled&quot;: True or False, # Whether binauthz is enabled in this cluster.
504 },
505 &quot;configSync&quot;: { # Configuration for Config Sync # Config Sync configuration for the cluster.
506 &quot;git&quot;: { # Git repo configuration for a single cluster. # Git repo configuration for the cluster.
507 &quot;gcpServiceAccountEmail&quot;: &quot;A String&quot;, # The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.
508 &quot;httpsProxy&quot;: &quot;A String&quot;, # URL for the HTTPS proxy to be used when communicating with the Git repo.
509 &quot;policyDir&quot;: &quot;A String&quot;, # The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository.
510 &quot;secretType&quot;: &quot;A String&quot;, # Type of secret configured for access to the Git repo.
511 &quot;syncBranch&quot;: &quot;A String&quot;, # The branch of the repository to sync from. Default: master.
512 &quot;syncRepo&quot;: &quot;A String&quot;, # The URL of the Git repository to use as the source of truth.
513 &quot;syncRev&quot;: &quot;A String&quot;, # Git revision (tag or hash) to check out. Default HEAD.
514 &quot;syncWaitSecs&quot;: &quot;A String&quot;, # Period in seconds between consecutive syncs. Default: 15.
515 },
516 &quot;sourceFormat&quot;: &quot;A String&quot;, # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode.
517 },
518 &quot;hierarchyController&quot;: { # Configuration for Hierarchy Controller # Hierarchy Controller configuration for the cluster.
519 &quot;enableHierarchicalResourceQuota&quot;: True or False, # Whether hierarchical resource quota is enabled in this cluster.
520 &quot;enablePodTreeLabels&quot;: True or False, # Whether pod tree labels are enabled in this cluster.
521 &quot;enabled&quot;: True or False, # Whether Hierarchy Controller is enabled in this cluster.
522 },
523 &quot;policyController&quot;: { # Configuration for Policy Controller # Policy Controller configuration for the cluster.
524 &quot;auditIntervalSeconds&quot;: &quot;A String&quot;, # Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether.
525 &quot;enabled&quot;: True or False, # Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect.
526 &quot;exemptableNamespaces&quot;: [ # The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.
527 &quot;A String&quot;,
528 ],
529 &quot;logDeniesEnabled&quot;: True or False, # Logs all denies and dry run failures.
yoshi-code-bot38664e82021-05-29 00:50:02 -0700530 &quot;mutationEnabled&quot;: True or False, # Enable users to try out mutation for PolicyController.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700531 &quot;referentialRulesEnabled&quot;: True or False, # Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.
532 &quot;templateLibraryInstalled&quot;: True or False, # Installs the default template library along with Policy Controller.
533 },
534 &quot;version&quot;: &quot;A String&quot;, # Version of ACM installed.
535 },
yoshi-code-bot96afc042021-08-24 00:22:31 -0700536 &quot;identityservice&quot;: { # **Anthos Identity Service**: Configuration for a single Membership. # Identity Service-specific spec.
537 &quot;authMethods&quot;: [ # A member may support multiple auth methods.
538 { # Configuration of an auth method for a member/cluster. Only one authentication method (e.g., OIDC and LDAP) can be set per AuthMethod.
539 &quot;name&quot;: &quot;A String&quot;, # Identifier for auth config.
540 &quot;oidcConfig&quot;: { # Configuration for OIDC Auth flow. # OIDC specific configuration.
541 &quot;certificateAuthorityData&quot;: &quot;A String&quot;, # PEM-encoded CA for OIDC provider.
542 &quot;clientId&quot;: &quot;A String&quot;, # ID for OIDC client application.
543 &quot;deployCloudConsoleProxy&quot;: True or False, # Flag to denote if reverse proxy is used to connect to auth provider. This flag should be set to true when provider is not reachable by Google Cloud Console.
544 &quot;extraParams&quot;: &quot;A String&quot;, # Comma-separated list of key-value pairs.
545 &quot;groupPrefix&quot;: &quot;A String&quot;, # Prefix to prepend to group name.
546 &quot;groupsClaim&quot;: &quot;A String&quot;, # Claim in OIDC ID token that holds group information.
547 &quot;issuerUri&quot;: &quot;A String&quot;, # URI for the OIDC provider. This should point to the level below .well-known/openid-configuration.
548 &quot;kubectlRedirectUri&quot;: &quot;A String&quot;, # Registered redirect uri to redirect users going through OAuth flow using kubectl plugin.
549 &quot;scopes&quot;: &quot;A String&quot;, # Comma-separated list of identifiers.
550 &quot;userClaim&quot;: &quot;A String&quot;, # Claim in OIDC ID token that holds username.
551 &quot;userPrefix&quot;: &quot;A String&quot;, # Prefix to prepend to user name.
552 },
553 &quot;proxy&quot;: &quot;A String&quot;, # Proxy server address to use for auth method.
554 },
555 ],
556 },
yoshi-code-bot44a67192021-05-02 03:48:02 -0700557 },
558 },
yoshi-code-bot07708072021-07-20 00:20:24 -0700559 &quot;membershipStates&quot;: { # Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: `projects/{p}/locations/{l}/memberships/{m}` Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature&#x27;s project number.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700560 &quot;a_key&quot;: { # MembershipFeatureState contains Feature status information for a single Membership.
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700561 &quot;configmanagement&quot;: { # **Anthos Config Management**: State for a single cluster. # Config Management-specific state.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700562 &quot;binauthzState&quot;: { # State for Binauthz # Binauthz status
563 &quot;version&quot;: { # The version of binauthz. # The version of binauthz that is installed.
564 &quot;webhookVersion&quot;: &quot;A String&quot;, # The version of the binauthz webhook.
565 },
566 &quot;webhook&quot;: &quot;A String&quot;, # The state of the binauthz webhook.
567 },
568 &quot;clusterName&quot;: &quot;A String&quot;, # The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership&#x27;s membership_name, unless the user installed ACM on the cluster manually prior to enabling the ACM hub feature. Unique within a Anthos Config Management installation.
569 &quot;configSyncState&quot;: { # State information for ConfigSync # Current sync status
570 &quot;deploymentState&quot;: { # The state of ConfigSync&#x27;s deployment on a cluster # Information about the deployment of ConfigSync, including the version of the various Pods deployed
571 &quot;gitSync&quot;: &quot;A String&quot;, # Deployment state of the git-sync pod
572 &quot;importer&quot;: &quot;A String&quot;, # Deployment state of the importer pod
573 &quot;monitor&quot;: &quot;A String&quot;, # Deployment state of the monitor pod
574 &quot;reconcilerManager&quot;: &quot;A String&quot;, # Deployment state of reconciler-manager pod
575 &quot;rootReconciler&quot;: &quot;A String&quot;, # Deployment state of root-reconciler
576 &quot;syncer&quot;: &quot;A String&quot;, # Deployment state of the syncer pod
577 },
578 &quot;syncState&quot;: { # State indicating an ACM&#x27;s progress syncing configurations to a cluster # The state of ConfigSync&#x27;s process to sync configs to a cluster
579 &quot;code&quot;: &quot;A String&quot;, # Sync status code
580 &quot;errors&quot;: [ # A list of errors resulting from problematic configs. This list will be truncated after 100 errors, although it is unlikely for that many errors to simultaneously exist.
581 { # An ACM created error representing a problem syncing configurations
582 &quot;code&quot;: &quot;A String&quot;, # An ACM defined error code
583 &quot;errorMessage&quot;: &quot;A String&quot;, # A description of the error
584 &quot;errorResources&quot;: [ # A list of config(s) associated with the error, if any
585 { # Model for a config file in the git repo with an associated Sync error
586 &quot;resourceGvk&quot;: { # A Kubernetes object&#x27;s GVK # Group/version/kind of the resource that is causing an error
587 &quot;group&quot;: &quot;A String&quot;, # Kubernetes Group
588 &quot;kind&quot;: &quot;A String&quot;, # Kubernetes Kind
589 &quot;version&quot;: &quot;A String&quot;, # Kubernetes Version
590 },
591 &quot;resourceName&quot;: &quot;A String&quot;, # Metadata name of the resource that is causing an error
592 &quot;resourceNamespace&quot;: &quot;A String&quot;, # Namespace of the resource that is causing an error
593 &quot;sourcePath&quot;: &quot;A String&quot;, # Path in the git repo of the erroneous config
594 },
595 ],
596 },
597 ],
598 &quot;importToken&quot;: &quot;A String&quot;, # Token indicating the state of the importer.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700599 &quot;lastSync&quot;: &quot;A String&quot;, # Deprecated: use last_sync_time instead. Timestamp of when ACM last successfully synced the repo The time format is specified in https://golang.org/pkg/time/#Time.String
yoshi-code-bot44a67192021-05-02 03:48:02 -0700600 &quot;lastSyncTime&quot;: &quot;A String&quot;, # Timestamp type of when ACM last successfully synced the repo
601 &quot;sourceToken&quot;: &quot;A String&quot;, # Token indicating the state of the repo.
602 &quot;syncToken&quot;: &quot;A String&quot;, # Token indicating the state of the syncer.
603 },
604 &quot;version&quot;: { # Specific versioning information pertaining to ConfigSync&#x27;s Pods # The version of ConfigSync deployed
605 &quot;gitSync&quot;: &quot;A String&quot;, # Version of the deployed git-sync pod
606 &quot;importer&quot;: &quot;A String&quot;, # Version of the deployed importer pod
607 &quot;monitor&quot;: &quot;A String&quot;, # Version of the deployed monitor pod
608 &quot;reconcilerManager&quot;: &quot;A String&quot;, # Version of the deployed reconciler-manager pod
609 &quot;rootReconciler&quot;: &quot;A String&quot;, # Version of the deployed reconciler container in root-reconciler pod
610 &quot;syncer&quot;: &quot;A String&quot;, # Version of the deployed syncer pod
611 },
612 },
613 &quot;hierarchyControllerState&quot;: { # State for Hierarchy Controller # Hierarchy Controller status
614 &quot;state&quot;: { # Deployment state for Hierarchy Controller # The deployment state for Hierarchy Controller
615 &quot;extension&quot;: &quot;A String&quot;, # The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
616 &quot;hnc&quot;: &quot;A String&quot;, # The deployment state for open source HNC (e.g. v0.7.0-hc.0)
617 },
618 &quot;version&quot;: { # Version for Hierarchy Controller # The version for Hierarchy Controller
619 &quot;extension&quot;: &quot;A String&quot;, # Version for Hierarchy Controller extension
620 &quot;hnc&quot;: &quot;A String&quot;, # Version for open source HNC
621 },
622 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700623 &quot;membershipSpec&quot;: { # **Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR. # Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state
yoshi-code-bot44a67192021-05-02 03:48:02 -0700624 &quot;binauthz&quot;: { # Configuration for Binauthz # Binauthz conifguration for the cluster.
625 &quot;enabled&quot;: True or False, # Whether binauthz is enabled in this cluster.
626 },
627 &quot;configSync&quot;: { # Configuration for Config Sync # Config Sync configuration for the cluster.
628 &quot;git&quot;: { # Git repo configuration for a single cluster. # Git repo configuration for the cluster.
629 &quot;gcpServiceAccountEmail&quot;: &quot;A String&quot;, # The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.
630 &quot;httpsProxy&quot;: &quot;A String&quot;, # URL for the HTTPS proxy to be used when communicating with the Git repo.
631 &quot;policyDir&quot;: &quot;A String&quot;, # The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository.
632 &quot;secretType&quot;: &quot;A String&quot;, # Type of secret configured for access to the Git repo.
633 &quot;syncBranch&quot;: &quot;A String&quot;, # The branch of the repository to sync from. Default: master.
634 &quot;syncRepo&quot;: &quot;A String&quot;, # The URL of the Git repository to use as the source of truth.
635 &quot;syncRev&quot;: &quot;A String&quot;, # Git revision (tag or hash) to check out. Default HEAD.
636 &quot;syncWaitSecs&quot;: &quot;A String&quot;, # Period in seconds between consecutive syncs. Default: 15.
637 },
638 &quot;sourceFormat&quot;: &quot;A String&quot;, # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode.
639 },
640 &quot;hierarchyController&quot;: { # Configuration for Hierarchy Controller # Hierarchy Controller configuration for the cluster.
641 &quot;enableHierarchicalResourceQuota&quot;: True or False, # Whether hierarchical resource quota is enabled in this cluster.
642 &quot;enablePodTreeLabels&quot;: True or False, # Whether pod tree labels are enabled in this cluster.
643 &quot;enabled&quot;: True or False, # Whether Hierarchy Controller is enabled in this cluster.
644 },
645 &quot;policyController&quot;: { # Configuration for Policy Controller # Policy Controller configuration for the cluster.
646 &quot;auditIntervalSeconds&quot;: &quot;A String&quot;, # Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether.
647 &quot;enabled&quot;: True or False, # Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect.
648 &quot;exemptableNamespaces&quot;: [ # The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.
649 &quot;A String&quot;,
650 ],
651 &quot;logDeniesEnabled&quot;: True or False, # Logs all denies and dry run failures.
yoshi-code-bot38664e82021-05-29 00:50:02 -0700652 &quot;mutationEnabled&quot;: True or False, # Enable users to try out mutation for PolicyController.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700653 &quot;referentialRulesEnabled&quot;: True or False, # Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.
654 &quot;templateLibraryInstalled&quot;: True or False, # Installs the default template library along with Policy Controller.
655 },
656 &quot;version&quot;: &quot;A String&quot;, # Version of ACM installed.
657 },
658 &quot;operatorState&quot;: { # State information for an ACM&#x27;s Operator # Current install status of ACM&#x27;s Operator
659 &quot;deploymentState&quot;: &quot;A String&quot;, # The state of the Operator&#x27;s deployment
660 &quot;errors&quot;: [ # Install errors.
661 { # Errors pertaining to the installation of ACM
662 &quot;errorMessage&quot;: &quot;A String&quot;, # A string representing the user facing error message
663 },
664 ],
665 &quot;version&quot;: &quot;A String&quot;, # The semenatic version number of the operator
666 },
667 &quot;policyControllerState&quot;: { # State for PolicyControllerState. # PolicyController status
668 &quot;deploymentState&quot;: { # State of Policy Controller installation. # The state about the policy controller installation.
669 &quot;gatekeeperAudit&quot;: &quot;A String&quot;, # Status of gatekeeper-audit deployment.
670 &quot;gatekeeperControllerManagerState&quot;: &quot;A String&quot;, # Status of gatekeeper-controller-manager pod.
yoshi-code-bot38664e82021-05-29 00:50:02 -0700671 &quot;gatekeeperMutation&quot;: &quot;A String&quot;, # Status of the pod serving the mutation webhook.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700672 },
673 &quot;version&quot;: { # The build version of Gatekeeper Policy Controller is using. # The version of Gatekeeper Policy Controller deployed.
674 &quot;version&quot;: &quot;A String&quot;, # The gatekeeper image tag that is composed of ACM version, git tag, build number.
675 },
676 },
677 },
yoshi-code-bot96afc042021-08-24 00:22:31 -0700678 &quot;identityservice&quot;: { # **Anthos Identity Service**: State for a single Membership. # Identity Service-specific state.
679 &quot;failureReason&quot;: &quot;A String&quot;, # The reason of the failure.
680 &quot;installedVersion&quot;: &quot;A String&quot;, # Installed AIS version. This is the AIS version installed on this member. The values makes sense iff state is OK.
681 &quot;memberConfig&quot;: { # **Anthos Identity Service**: Configuration for a single Membership. # Last reconciled membership configuration
682 &quot;authMethods&quot;: [ # A member may support multiple auth methods.
683 { # Configuration of an auth method for a member/cluster. Only one authentication method (e.g., OIDC and LDAP) can be set per AuthMethod.
684 &quot;name&quot;: &quot;A String&quot;, # Identifier for auth config.
685 &quot;oidcConfig&quot;: { # Configuration for OIDC Auth flow. # OIDC specific configuration.
686 &quot;certificateAuthorityData&quot;: &quot;A String&quot;, # PEM-encoded CA for OIDC provider.
687 &quot;clientId&quot;: &quot;A String&quot;, # ID for OIDC client application.
688 &quot;deployCloudConsoleProxy&quot;: True or False, # Flag to denote if reverse proxy is used to connect to auth provider. This flag should be set to true when provider is not reachable by Google Cloud Console.
689 &quot;extraParams&quot;: &quot;A String&quot;, # Comma-separated list of key-value pairs.
690 &quot;groupPrefix&quot;: &quot;A String&quot;, # Prefix to prepend to group name.
691 &quot;groupsClaim&quot;: &quot;A String&quot;, # Claim in OIDC ID token that holds group information.
692 &quot;issuerUri&quot;: &quot;A String&quot;, # URI for the OIDC provider. This should point to the level below .well-known/openid-configuration.
693 &quot;kubectlRedirectUri&quot;: &quot;A String&quot;, # Registered redirect uri to redirect users going through OAuth flow using kubectl plugin.
694 &quot;scopes&quot;: &quot;A String&quot;, # Comma-separated list of identifiers.
695 &quot;userClaim&quot;: &quot;A String&quot;, # Claim in OIDC ID token that holds username.
696 &quot;userPrefix&quot;: &quot;A String&quot;, # Prefix to prepend to user name.
697 },
698 &quot;proxy&quot;: &quot;A String&quot;, # Proxy server address to use for auth method.
699 },
700 ],
701 },
702 &quot;state&quot;: &quot;A String&quot;, # Deployment state on this member
703 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700704 &quot;metering&quot;: { # **Metering**: Per-Membership Feature State. # Metering-specific spec.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700705 &quot;lastMeasurementTime&quot;: &quot;A String&quot;, # The time stamp of the most recent measurement of the number of vCPUs in the cluster.
706 &quot;preciseLastMeasuredClusterVcpuCapacity&quot;: 3.14, # The vCPUs capacity in the cluster according to the most recent measurement (1/1000 precision).
707 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700708 &quot;servicemesh&quot;: { # **Service Mesh**: State for a single Membership, as analyzed by the Service Mesh Hub Controller. # Service Mesh-specific state.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700709 &quot;analysisMessages&quot;: [ # Output only. Results of running Service Mesh analyzers.
710 { # AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration.
711 &quot;args&quot;: { # A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.
712 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
713 },
714 &quot;description&quot;: &quot;A String&quot;, # A human readable description of what the error means. It is suitable for non-internationalize display purposes.
715 &quot;messageBase&quot;: { # AnalysisMessageBase describes some common information that is needed for all messages. # Details common to all types of Istio and ServiceMesh analysis messages.
716 &quot;documentationUrl&quot;: &quot;A String&quot;, # A url pointing to the Service Mesh or Istio documentation for this specific error type.
717 &quot;level&quot;: &quot;A String&quot;, # Represents how severe a message is.
718 &quot;type&quot;: { # A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type # Represents the specific type of a message.
719 &quot;code&quot;: &quot;A String&quot;, # A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended to uniquely identify the message type. (e.g. &quot;IST0001&quot; is mapped to the &quot;InternalError&quot; message type.)
720 &quot;displayName&quot;: &quot;A String&quot;, # A human-readable name for the message type. e.g. &quot;InternalError&quot;, &quot;PodMissingProxy&quot;. This should be the same for all messages of the same type. (This corresponds to the `name` field in open-source Istio.)
721 },
722 },
723 &quot;resourcePaths&quot;: [ # A list of strings specifying the resource identifiers that were the cause of message generation. A &quot;path&quot; here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
724 &quot;A String&quot;,
725 ],
726 },
727 ],
728 },
729 &quot;state&quot;: { # FeatureState describes the high-level state of a Feature. It may be used to describe a Feature&#x27;s state at the environ-level, or per-membershop, depending on the context. # The high-level state of this Feature for a single membership.
730 &quot;code&quot;: &quot;A String&quot;, # The high-level, machine-readable status of this Feature.
731 &quot;description&quot;: &quot;A String&quot;, # A human-readable description of the current status.
732 &quot;updateTime&quot;: &quot;A String&quot;, # The time this status and any related Feature-specific details were updated.
733 },
734 },
735 },
736 &quot;name&quot;: &quot;A String&quot;, # Output only. The full, unique name of this Feature resource in the format `projects/*/locations/*/features/*`.
737 &quot;resourceState&quot;: { # FeatureResourceState describes the state of a Feature *resource* in the GkeHub API. See `FeatureState` for the &quot;running state&quot; of the Feature in the Hub and across Memberships. # Output only. State of the Feature resource itself.
738 &quot;state&quot;: &quot;A String&quot;, # The current state of the Feature resource in the Hub API.
739 },
740 &quot;spec&quot;: { # CommonFeatureSpec contains Hub-wide configuration information # Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused.
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700741 &quot;cloudauditlogging&quot;: { # **Cloud Audit Logging**: Spec for Audit Logging Allowlisting. # Cloud Audit Logging-specific spec.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700742 &quot;allowlistedServiceAccounts&quot;: [ # Service account that should be allowlisted to send the audit logs; eg cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must already exist, but do not need to have any permissions granted to them. The customer&#x27;s entitlements will be checked prior to allowlisting (i.e. the customer must be an Anthos customer.)
743 &quot;A String&quot;,
744 ],
745 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700746 &quot;multiclusteringress&quot;: { # **Multi-cluster Ingress**: The configuration for the MultiClusterIngress feature. # Multicluster Ingress-specific spec.
yoshi-code-bot07708072021-07-20 00:20:24 -0700747 &quot;billing&quot;: &quot;A String&quot;, # Deprecated: This field will be ignored and should not be set. Customer&#x27;s billing structure.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700748 &quot;configMembership&quot;: &quot;A String&quot;, # Fully-qualified Membership name which hosts the MultiClusterIngress CRD. Example: `projects/foo-proj/locations/global/memberships/bar`
749 },
750 },
751 &quot;state&quot;: { # CommonFeatureState contains Hub-wide Feature status information. # Output only. The Hub-wide Feature state.
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700752 &quot;servicemesh&quot;: { # **Service Mesh**: State for the whole Hub, as analyzed by the Service Mesh Hub Controller. # Service Mesh-specific state.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700753 &quot;analysisMessages&quot;: [ # Output only. Results of running Service Mesh analyzers.
754 { # AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration.
755 &quot;args&quot;: { # A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.
756 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
757 },
758 &quot;description&quot;: &quot;A String&quot;, # A human readable description of what the error means. It is suitable for non-internationalize display purposes.
759 &quot;messageBase&quot;: { # AnalysisMessageBase describes some common information that is needed for all messages. # Details common to all types of Istio and ServiceMesh analysis messages.
760 &quot;documentationUrl&quot;: &quot;A String&quot;, # A url pointing to the Service Mesh or Istio documentation for this specific error type.
761 &quot;level&quot;: &quot;A String&quot;, # Represents how severe a message is.
762 &quot;type&quot;: { # A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type # Represents the specific type of a message.
763 &quot;code&quot;: &quot;A String&quot;, # A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended to uniquely identify the message type. (e.g. &quot;IST0001&quot; is mapped to the &quot;InternalError&quot; message type.)
764 &quot;displayName&quot;: &quot;A String&quot;, # A human-readable name for the message type. e.g. &quot;InternalError&quot;, &quot;PodMissingProxy&quot;. This should be the same for all messages of the same type. (This corresponds to the `name` field in open-source Istio.)
765 },
766 },
767 &quot;resourcePaths&quot;: [ # A list of strings specifying the resource identifiers that were the cause of message generation. A &quot;path&quot; here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
768 &quot;A String&quot;,
769 ],
770 },
771 ],
772 },
773 &quot;state&quot;: { # FeatureState describes the high-level state of a Feature. It may be used to describe a Feature&#x27;s state at the environ-level, or per-membershop, depending on the context. # Output only. The &quot;running state&quot; of the Feature in this Hub.
774 &quot;code&quot;: &quot;A String&quot;, # The high-level, machine-readable status of this Feature.
775 &quot;description&quot;: &quot;A String&quot;, # A human-readable description of the current status.
776 &quot;updateTime&quot;: &quot;A String&quot;, # The time this status and any related Feature-specific details were updated.
777 },
778 },
779 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. When the Feature resource was last updated.
780}</pre>
781</div>
782
783<div class="method">
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400784 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
785 <pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
786
787Args:
788 resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required)
789 options_requestedPolicyVersion: integer, Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
790 x__xgafv: string, V1 error format.
791 Allowed values
792 1 - v1 error format
793 2 - v2 error format
794
795Returns:
796 An object of the form:
797
yoshi-code-bot96afc042021-08-24 00:22:31 -0700798 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400799 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
800 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:aliya@example.com&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
801 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
802 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
803 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
804 &quot;A String&quot;,
805 ],
806 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
807 },
808 ],
809 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
810 },
811 ],
812 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
813 { # Associates `members` with a `role`.
814 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
815 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
816 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
817 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
818 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
819 },
820 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
821 &quot;A String&quot;,
822 ],
823 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
824 },
825 ],
826 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
827 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
828}</pre>
829</div>
830
831<div class="method">
yoshi-code-bot44a67192021-05-02 03:48:02 -0700832 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
833 <pre>Lists Features in a given project and location.
834
835Args:
836 parent: string, The parent (project and location) where the Features will be listed. Specified in the format `projects/*/locations/*`. (required)
837 filter: string, Lists Features that match the filter expression, following the syntax outlined in https://google.aip.dev/160. Examples: - Feature with the name &quot;servicemesh&quot; in project &quot;foo-proj&quot;: name = &quot;projects/foo-proj/locations/global/features/servicemesh&quot; - Features that have a label called `foo`: labels.foo:* - Features that have a label called `foo` whose value is `bar`: labels.foo = bar
838 orderBy: string, One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.
839 pageSize: integer, When requesting a &#x27;page&#x27; of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned.
840 pageToken: string, Token returned by previous call to `ListFeatures` which specifies the position in the list from where to continue listing the resources.
841 x__xgafv: string, V1 error format.
842 Allowed values
843 1 - v1 error format
844 2 - v2 error format
845
846Returns:
847 An object of the form:
848
849 { # Response message for the `GkeHub.ListFeatures` method.
850 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to request the next page of resources from the `ListFeatures` method. The value of an empty string means that there are no more resources to return.
851 &quot;resources&quot;: [ # The list of matching Features
852 { # Feature represents the settings and status of any Hub Feature.
853 &quot;createTime&quot;: &quot;A String&quot;, # Output only. When the Feature resource was created.
854 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. When the Feature resource was deleted.
855 &quot;labels&quot;: { # GCP labels for this Feature.
856 &quot;a_key&quot;: &quot;A String&quot;,
857 },
yoshi-code-bot07708072021-07-20 00:20:24 -0700858 &quot;membershipSpecs&quot;: { # Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused. The keys indicate which Membership the configuration is for, in the form: `projects/{p}/locations/{l}/memberships/{m}` Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature&#x27;s project. {p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700859 &quot;a_key&quot;: { # MembershipFeatureSpec contains configuration information for a single Membership.
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700860 &quot;configmanagement&quot;: { # **Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR. # Config Management-specific spec.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700861 &quot;binauthz&quot;: { # Configuration for Binauthz # Binauthz conifguration for the cluster.
862 &quot;enabled&quot;: True or False, # Whether binauthz is enabled in this cluster.
863 },
864 &quot;configSync&quot;: { # Configuration for Config Sync # Config Sync configuration for the cluster.
865 &quot;git&quot;: { # Git repo configuration for a single cluster. # Git repo configuration for the cluster.
866 &quot;gcpServiceAccountEmail&quot;: &quot;A String&quot;, # The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.
867 &quot;httpsProxy&quot;: &quot;A String&quot;, # URL for the HTTPS proxy to be used when communicating with the Git repo.
868 &quot;policyDir&quot;: &quot;A String&quot;, # The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository.
869 &quot;secretType&quot;: &quot;A String&quot;, # Type of secret configured for access to the Git repo.
870 &quot;syncBranch&quot;: &quot;A String&quot;, # The branch of the repository to sync from. Default: master.
871 &quot;syncRepo&quot;: &quot;A String&quot;, # The URL of the Git repository to use as the source of truth.
872 &quot;syncRev&quot;: &quot;A String&quot;, # Git revision (tag or hash) to check out. Default HEAD.
873 &quot;syncWaitSecs&quot;: &quot;A String&quot;, # Period in seconds between consecutive syncs. Default: 15.
874 },
875 &quot;sourceFormat&quot;: &quot;A String&quot;, # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode.
876 },
877 &quot;hierarchyController&quot;: { # Configuration for Hierarchy Controller # Hierarchy Controller configuration for the cluster.
878 &quot;enableHierarchicalResourceQuota&quot;: True or False, # Whether hierarchical resource quota is enabled in this cluster.
879 &quot;enablePodTreeLabels&quot;: True or False, # Whether pod tree labels are enabled in this cluster.
880 &quot;enabled&quot;: True or False, # Whether Hierarchy Controller is enabled in this cluster.
881 },
882 &quot;policyController&quot;: { # Configuration for Policy Controller # Policy Controller configuration for the cluster.
883 &quot;auditIntervalSeconds&quot;: &quot;A String&quot;, # Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether.
884 &quot;enabled&quot;: True or False, # Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect.
885 &quot;exemptableNamespaces&quot;: [ # The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.
886 &quot;A String&quot;,
887 ],
888 &quot;logDeniesEnabled&quot;: True or False, # Logs all denies and dry run failures.
yoshi-code-bot38664e82021-05-29 00:50:02 -0700889 &quot;mutationEnabled&quot;: True or False, # Enable users to try out mutation for PolicyController.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700890 &quot;referentialRulesEnabled&quot;: True or False, # Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.
891 &quot;templateLibraryInstalled&quot;: True or False, # Installs the default template library along with Policy Controller.
892 },
893 &quot;version&quot;: &quot;A String&quot;, # Version of ACM installed.
894 },
yoshi-code-bot96afc042021-08-24 00:22:31 -0700895 &quot;identityservice&quot;: { # **Anthos Identity Service**: Configuration for a single Membership. # Identity Service-specific spec.
896 &quot;authMethods&quot;: [ # A member may support multiple auth methods.
897 { # Configuration of an auth method for a member/cluster. Only one authentication method (e.g., OIDC and LDAP) can be set per AuthMethod.
898 &quot;name&quot;: &quot;A String&quot;, # Identifier for auth config.
899 &quot;oidcConfig&quot;: { # Configuration for OIDC Auth flow. # OIDC specific configuration.
900 &quot;certificateAuthorityData&quot;: &quot;A String&quot;, # PEM-encoded CA for OIDC provider.
901 &quot;clientId&quot;: &quot;A String&quot;, # ID for OIDC client application.
902 &quot;deployCloudConsoleProxy&quot;: True or False, # Flag to denote if reverse proxy is used to connect to auth provider. This flag should be set to true when provider is not reachable by Google Cloud Console.
903 &quot;extraParams&quot;: &quot;A String&quot;, # Comma-separated list of key-value pairs.
904 &quot;groupPrefix&quot;: &quot;A String&quot;, # Prefix to prepend to group name.
905 &quot;groupsClaim&quot;: &quot;A String&quot;, # Claim in OIDC ID token that holds group information.
906 &quot;issuerUri&quot;: &quot;A String&quot;, # URI for the OIDC provider. This should point to the level below .well-known/openid-configuration.
907 &quot;kubectlRedirectUri&quot;: &quot;A String&quot;, # Registered redirect uri to redirect users going through OAuth flow using kubectl plugin.
908 &quot;scopes&quot;: &quot;A String&quot;, # Comma-separated list of identifiers.
909 &quot;userClaim&quot;: &quot;A String&quot;, # Claim in OIDC ID token that holds username.
910 &quot;userPrefix&quot;: &quot;A String&quot;, # Prefix to prepend to user name.
911 },
912 &quot;proxy&quot;: &quot;A String&quot;, # Proxy server address to use for auth method.
913 },
914 ],
915 },
yoshi-code-bot44a67192021-05-02 03:48:02 -0700916 },
917 },
yoshi-code-bot07708072021-07-20 00:20:24 -0700918 &quot;membershipStates&quot;: { # Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: `projects/{p}/locations/{l}/memberships/{m}` Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature&#x27;s project number.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700919 &quot;a_key&quot;: { # MembershipFeatureState contains Feature status information for a single Membership.
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700920 &quot;configmanagement&quot;: { # **Anthos Config Management**: State for a single cluster. # Config Management-specific state.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700921 &quot;binauthzState&quot;: { # State for Binauthz # Binauthz status
922 &quot;version&quot;: { # The version of binauthz. # The version of binauthz that is installed.
923 &quot;webhookVersion&quot;: &quot;A String&quot;, # The version of the binauthz webhook.
924 },
925 &quot;webhook&quot;: &quot;A String&quot;, # The state of the binauthz webhook.
926 },
927 &quot;clusterName&quot;: &quot;A String&quot;, # The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership&#x27;s membership_name, unless the user installed ACM on the cluster manually prior to enabling the ACM hub feature. Unique within a Anthos Config Management installation.
928 &quot;configSyncState&quot;: { # State information for ConfigSync # Current sync status
929 &quot;deploymentState&quot;: { # The state of ConfigSync&#x27;s deployment on a cluster # Information about the deployment of ConfigSync, including the version of the various Pods deployed
930 &quot;gitSync&quot;: &quot;A String&quot;, # Deployment state of the git-sync pod
931 &quot;importer&quot;: &quot;A String&quot;, # Deployment state of the importer pod
932 &quot;monitor&quot;: &quot;A String&quot;, # Deployment state of the monitor pod
933 &quot;reconcilerManager&quot;: &quot;A String&quot;, # Deployment state of reconciler-manager pod
934 &quot;rootReconciler&quot;: &quot;A String&quot;, # Deployment state of root-reconciler
935 &quot;syncer&quot;: &quot;A String&quot;, # Deployment state of the syncer pod
936 },
937 &quot;syncState&quot;: { # State indicating an ACM&#x27;s progress syncing configurations to a cluster # The state of ConfigSync&#x27;s process to sync configs to a cluster
938 &quot;code&quot;: &quot;A String&quot;, # Sync status code
939 &quot;errors&quot;: [ # A list of errors resulting from problematic configs. This list will be truncated after 100 errors, although it is unlikely for that many errors to simultaneously exist.
940 { # An ACM created error representing a problem syncing configurations
941 &quot;code&quot;: &quot;A String&quot;, # An ACM defined error code
942 &quot;errorMessage&quot;: &quot;A String&quot;, # A description of the error
943 &quot;errorResources&quot;: [ # A list of config(s) associated with the error, if any
944 { # Model for a config file in the git repo with an associated Sync error
945 &quot;resourceGvk&quot;: { # A Kubernetes object&#x27;s GVK # Group/version/kind of the resource that is causing an error
946 &quot;group&quot;: &quot;A String&quot;, # Kubernetes Group
947 &quot;kind&quot;: &quot;A String&quot;, # Kubernetes Kind
948 &quot;version&quot;: &quot;A String&quot;, # Kubernetes Version
949 },
950 &quot;resourceName&quot;: &quot;A String&quot;, # Metadata name of the resource that is causing an error
951 &quot;resourceNamespace&quot;: &quot;A String&quot;, # Namespace of the resource that is causing an error
952 &quot;sourcePath&quot;: &quot;A String&quot;, # Path in the git repo of the erroneous config
953 },
954 ],
955 },
956 ],
957 &quot;importToken&quot;: &quot;A String&quot;, # Token indicating the state of the importer.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700958 &quot;lastSync&quot;: &quot;A String&quot;, # Deprecated: use last_sync_time instead. Timestamp of when ACM last successfully synced the repo The time format is specified in https://golang.org/pkg/time/#Time.String
yoshi-code-bot44a67192021-05-02 03:48:02 -0700959 &quot;lastSyncTime&quot;: &quot;A String&quot;, # Timestamp type of when ACM last successfully synced the repo
960 &quot;sourceToken&quot;: &quot;A String&quot;, # Token indicating the state of the repo.
961 &quot;syncToken&quot;: &quot;A String&quot;, # Token indicating the state of the syncer.
962 },
963 &quot;version&quot;: { # Specific versioning information pertaining to ConfigSync&#x27;s Pods # The version of ConfigSync deployed
964 &quot;gitSync&quot;: &quot;A String&quot;, # Version of the deployed git-sync pod
965 &quot;importer&quot;: &quot;A String&quot;, # Version of the deployed importer pod
966 &quot;monitor&quot;: &quot;A String&quot;, # Version of the deployed monitor pod
967 &quot;reconcilerManager&quot;: &quot;A String&quot;, # Version of the deployed reconciler-manager pod
968 &quot;rootReconciler&quot;: &quot;A String&quot;, # Version of the deployed reconciler container in root-reconciler pod
969 &quot;syncer&quot;: &quot;A String&quot;, # Version of the deployed syncer pod
970 },
971 },
972 &quot;hierarchyControllerState&quot;: { # State for Hierarchy Controller # Hierarchy Controller status
973 &quot;state&quot;: { # Deployment state for Hierarchy Controller # The deployment state for Hierarchy Controller
974 &quot;extension&quot;: &quot;A String&quot;, # The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
975 &quot;hnc&quot;: &quot;A String&quot;, # The deployment state for open source HNC (e.g. v0.7.0-hc.0)
976 },
977 &quot;version&quot;: { # Version for Hierarchy Controller # The version for Hierarchy Controller
978 &quot;extension&quot;: &quot;A String&quot;, # Version for Hierarchy Controller extension
979 &quot;hnc&quot;: &quot;A String&quot;, # Version for open source HNC
980 },
981 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -0700982 &quot;membershipSpec&quot;: { # **Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR. # Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state
yoshi-code-bot44a67192021-05-02 03:48:02 -0700983 &quot;binauthz&quot;: { # Configuration for Binauthz # Binauthz conifguration for the cluster.
984 &quot;enabled&quot;: True or False, # Whether binauthz is enabled in this cluster.
985 },
986 &quot;configSync&quot;: { # Configuration for Config Sync # Config Sync configuration for the cluster.
987 &quot;git&quot;: { # Git repo configuration for a single cluster. # Git repo configuration for the cluster.
988 &quot;gcpServiceAccountEmail&quot;: &quot;A String&quot;, # The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.
989 &quot;httpsProxy&quot;: &quot;A String&quot;, # URL for the HTTPS proxy to be used when communicating with the Git repo.
990 &quot;policyDir&quot;: &quot;A String&quot;, # The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository.
991 &quot;secretType&quot;: &quot;A String&quot;, # Type of secret configured for access to the Git repo.
992 &quot;syncBranch&quot;: &quot;A String&quot;, # The branch of the repository to sync from. Default: master.
993 &quot;syncRepo&quot;: &quot;A String&quot;, # The URL of the Git repository to use as the source of truth.
994 &quot;syncRev&quot;: &quot;A String&quot;, # Git revision (tag or hash) to check out. Default HEAD.
995 &quot;syncWaitSecs&quot;: &quot;A String&quot;, # Period in seconds between consecutive syncs. Default: 15.
996 },
997 &quot;sourceFormat&quot;: &quot;A String&quot;, # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode.
998 },
999 &quot;hierarchyController&quot;: { # Configuration for Hierarchy Controller # Hierarchy Controller configuration for the cluster.
1000 &quot;enableHierarchicalResourceQuota&quot;: True or False, # Whether hierarchical resource quota is enabled in this cluster.
1001 &quot;enablePodTreeLabels&quot;: True or False, # Whether pod tree labels are enabled in this cluster.
1002 &quot;enabled&quot;: True or False, # Whether Hierarchy Controller is enabled in this cluster.
1003 },
1004 &quot;policyController&quot;: { # Configuration for Policy Controller # Policy Controller configuration for the cluster.
1005 &quot;auditIntervalSeconds&quot;: &quot;A String&quot;, # Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether.
1006 &quot;enabled&quot;: True or False, # Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect.
1007 &quot;exemptableNamespaces&quot;: [ # The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.
1008 &quot;A String&quot;,
1009 ],
1010 &quot;logDeniesEnabled&quot;: True or False, # Logs all denies and dry run failures.
yoshi-code-bot38664e82021-05-29 00:50:02 -07001011 &quot;mutationEnabled&quot;: True or False, # Enable users to try out mutation for PolicyController.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001012 &quot;referentialRulesEnabled&quot;: True or False, # Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.
1013 &quot;templateLibraryInstalled&quot;: True or False, # Installs the default template library along with Policy Controller.
1014 },
1015 &quot;version&quot;: &quot;A String&quot;, # Version of ACM installed.
1016 },
1017 &quot;operatorState&quot;: { # State information for an ACM&#x27;s Operator # Current install status of ACM&#x27;s Operator
1018 &quot;deploymentState&quot;: &quot;A String&quot;, # The state of the Operator&#x27;s deployment
1019 &quot;errors&quot;: [ # Install errors.
1020 { # Errors pertaining to the installation of ACM
1021 &quot;errorMessage&quot;: &quot;A String&quot;, # A string representing the user facing error message
1022 },
1023 ],
1024 &quot;version&quot;: &quot;A String&quot;, # The semenatic version number of the operator
1025 },
1026 &quot;policyControllerState&quot;: { # State for PolicyControllerState. # PolicyController status
1027 &quot;deploymentState&quot;: { # State of Policy Controller installation. # The state about the policy controller installation.
1028 &quot;gatekeeperAudit&quot;: &quot;A String&quot;, # Status of gatekeeper-audit deployment.
1029 &quot;gatekeeperControllerManagerState&quot;: &quot;A String&quot;, # Status of gatekeeper-controller-manager pod.
yoshi-code-bot38664e82021-05-29 00:50:02 -07001030 &quot;gatekeeperMutation&quot;: &quot;A String&quot;, # Status of the pod serving the mutation webhook.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001031 },
1032 &quot;version&quot;: { # The build version of Gatekeeper Policy Controller is using. # The version of Gatekeeper Policy Controller deployed.
1033 &quot;version&quot;: &quot;A String&quot;, # The gatekeeper image tag that is composed of ACM version, git tag, build number.
1034 },
1035 },
1036 },
yoshi-code-bot96afc042021-08-24 00:22:31 -07001037 &quot;identityservice&quot;: { # **Anthos Identity Service**: State for a single Membership. # Identity Service-specific state.
1038 &quot;failureReason&quot;: &quot;A String&quot;, # The reason of the failure.
1039 &quot;installedVersion&quot;: &quot;A String&quot;, # Installed AIS version. This is the AIS version installed on this member. The values makes sense iff state is OK.
1040 &quot;memberConfig&quot;: { # **Anthos Identity Service**: Configuration for a single Membership. # Last reconciled membership configuration
1041 &quot;authMethods&quot;: [ # A member may support multiple auth methods.
1042 { # Configuration of an auth method for a member/cluster. Only one authentication method (e.g., OIDC and LDAP) can be set per AuthMethod.
1043 &quot;name&quot;: &quot;A String&quot;, # Identifier for auth config.
1044 &quot;oidcConfig&quot;: { # Configuration for OIDC Auth flow. # OIDC specific configuration.
1045 &quot;certificateAuthorityData&quot;: &quot;A String&quot;, # PEM-encoded CA for OIDC provider.
1046 &quot;clientId&quot;: &quot;A String&quot;, # ID for OIDC client application.
1047 &quot;deployCloudConsoleProxy&quot;: True or False, # Flag to denote if reverse proxy is used to connect to auth provider. This flag should be set to true when provider is not reachable by Google Cloud Console.
1048 &quot;extraParams&quot;: &quot;A String&quot;, # Comma-separated list of key-value pairs.
1049 &quot;groupPrefix&quot;: &quot;A String&quot;, # Prefix to prepend to group name.
1050 &quot;groupsClaim&quot;: &quot;A String&quot;, # Claim in OIDC ID token that holds group information.
1051 &quot;issuerUri&quot;: &quot;A String&quot;, # URI for the OIDC provider. This should point to the level below .well-known/openid-configuration.
1052 &quot;kubectlRedirectUri&quot;: &quot;A String&quot;, # Registered redirect uri to redirect users going through OAuth flow using kubectl plugin.
1053 &quot;scopes&quot;: &quot;A String&quot;, # Comma-separated list of identifiers.
1054 &quot;userClaim&quot;: &quot;A String&quot;, # Claim in OIDC ID token that holds username.
1055 &quot;userPrefix&quot;: &quot;A String&quot;, # Prefix to prepend to user name.
1056 },
1057 &quot;proxy&quot;: &quot;A String&quot;, # Proxy server address to use for auth method.
1058 },
1059 ],
1060 },
1061 &quot;state&quot;: &quot;A String&quot;, # Deployment state on this member
1062 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001063 &quot;metering&quot;: { # **Metering**: Per-Membership Feature State. # Metering-specific spec.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001064 &quot;lastMeasurementTime&quot;: &quot;A String&quot;, # The time stamp of the most recent measurement of the number of vCPUs in the cluster.
1065 &quot;preciseLastMeasuredClusterVcpuCapacity&quot;: 3.14, # The vCPUs capacity in the cluster according to the most recent measurement (1/1000 precision).
1066 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001067 &quot;servicemesh&quot;: { # **Service Mesh**: State for a single Membership, as analyzed by the Service Mesh Hub Controller. # Service Mesh-specific state.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001068 &quot;analysisMessages&quot;: [ # Output only. Results of running Service Mesh analyzers.
1069 { # AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration.
1070 &quot;args&quot;: { # A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.
1071 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1072 },
1073 &quot;description&quot;: &quot;A String&quot;, # A human readable description of what the error means. It is suitable for non-internationalize display purposes.
1074 &quot;messageBase&quot;: { # AnalysisMessageBase describes some common information that is needed for all messages. # Details common to all types of Istio and ServiceMesh analysis messages.
1075 &quot;documentationUrl&quot;: &quot;A String&quot;, # A url pointing to the Service Mesh or Istio documentation for this specific error type.
1076 &quot;level&quot;: &quot;A String&quot;, # Represents how severe a message is.
1077 &quot;type&quot;: { # A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type # Represents the specific type of a message.
1078 &quot;code&quot;: &quot;A String&quot;, # A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended to uniquely identify the message type. (e.g. &quot;IST0001&quot; is mapped to the &quot;InternalError&quot; message type.)
1079 &quot;displayName&quot;: &quot;A String&quot;, # A human-readable name for the message type. e.g. &quot;InternalError&quot;, &quot;PodMissingProxy&quot;. This should be the same for all messages of the same type. (This corresponds to the `name` field in open-source Istio.)
1080 },
1081 },
1082 &quot;resourcePaths&quot;: [ # A list of strings specifying the resource identifiers that were the cause of message generation. A &quot;path&quot; here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
1083 &quot;A String&quot;,
1084 ],
1085 },
1086 ],
1087 },
1088 &quot;state&quot;: { # FeatureState describes the high-level state of a Feature. It may be used to describe a Feature&#x27;s state at the environ-level, or per-membershop, depending on the context. # The high-level state of this Feature for a single membership.
1089 &quot;code&quot;: &quot;A String&quot;, # The high-level, machine-readable status of this Feature.
1090 &quot;description&quot;: &quot;A String&quot;, # A human-readable description of the current status.
1091 &quot;updateTime&quot;: &quot;A String&quot;, # The time this status and any related Feature-specific details were updated.
1092 },
1093 },
1094 },
1095 &quot;name&quot;: &quot;A String&quot;, # Output only. The full, unique name of this Feature resource in the format `projects/*/locations/*/features/*`.
1096 &quot;resourceState&quot;: { # FeatureResourceState describes the state of a Feature *resource* in the GkeHub API. See `FeatureState` for the &quot;running state&quot; of the Feature in the Hub and across Memberships. # Output only. State of the Feature resource itself.
1097 &quot;state&quot;: &quot;A String&quot;, # The current state of the Feature resource in the Hub API.
1098 },
1099 &quot;spec&quot;: { # CommonFeatureSpec contains Hub-wide configuration information # Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused.
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001100 &quot;cloudauditlogging&quot;: { # **Cloud Audit Logging**: Spec for Audit Logging Allowlisting. # Cloud Audit Logging-specific spec.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001101 &quot;allowlistedServiceAccounts&quot;: [ # Service account that should be allowlisted to send the audit logs; eg cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must already exist, but do not need to have any permissions granted to them. The customer&#x27;s entitlements will be checked prior to allowlisting (i.e. the customer must be an Anthos customer.)
1102 &quot;A String&quot;,
1103 ],
1104 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001105 &quot;multiclusteringress&quot;: { # **Multi-cluster Ingress**: The configuration for the MultiClusterIngress feature. # Multicluster Ingress-specific spec.
yoshi-code-bot07708072021-07-20 00:20:24 -07001106 &quot;billing&quot;: &quot;A String&quot;, # Deprecated: This field will be ignored and should not be set. Customer&#x27;s billing structure.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001107 &quot;configMembership&quot;: &quot;A String&quot;, # Fully-qualified Membership name which hosts the MultiClusterIngress CRD. Example: `projects/foo-proj/locations/global/memberships/bar`
1108 },
1109 },
1110 &quot;state&quot;: { # CommonFeatureState contains Hub-wide Feature status information. # Output only. The Hub-wide Feature state.
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001111 &quot;servicemesh&quot;: { # **Service Mesh**: State for the whole Hub, as analyzed by the Service Mesh Hub Controller. # Service Mesh-specific state.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001112 &quot;analysisMessages&quot;: [ # Output only. Results of running Service Mesh analyzers.
1113 { # AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration.
1114 &quot;args&quot;: { # A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.
1115 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1116 },
1117 &quot;description&quot;: &quot;A String&quot;, # A human readable description of what the error means. It is suitable for non-internationalize display purposes.
1118 &quot;messageBase&quot;: { # AnalysisMessageBase describes some common information that is needed for all messages. # Details common to all types of Istio and ServiceMesh analysis messages.
1119 &quot;documentationUrl&quot;: &quot;A String&quot;, # A url pointing to the Service Mesh or Istio documentation for this specific error type.
1120 &quot;level&quot;: &quot;A String&quot;, # Represents how severe a message is.
1121 &quot;type&quot;: { # A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type # Represents the specific type of a message.
1122 &quot;code&quot;: &quot;A String&quot;, # A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended to uniquely identify the message type. (e.g. &quot;IST0001&quot; is mapped to the &quot;InternalError&quot; message type.)
1123 &quot;displayName&quot;: &quot;A String&quot;, # A human-readable name for the message type. e.g. &quot;InternalError&quot;, &quot;PodMissingProxy&quot;. This should be the same for all messages of the same type. (This corresponds to the `name` field in open-source Istio.)
1124 },
1125 },
1126 &quot;resourcePaths&quot;: [ # A list of strings specifying the resource identifiers that were the cause of message generation. A &quot;path&quot; here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
1127 &quot;A String&quot;,
1128 ],
1129 },
1130 ],
1131 },
1132 &quot;state&quot;: { # FeatureState describes the high-level state of a Feature. It may be used to describe a Feature&#x27;s state at the environ-level, or per-membershop, depending on the context. # Output only. The &quot;running state&quot; of the Feature in this Hub.
1133 &quot;code&quot;: &quot;A String&quot;, # The high-level, machine-readable status of this Feature.
1134 &quot;description&quot;: &quot;A String&quot;, # A human-readable description of the current status.
1135 &quot;updateTime&quot;: &quot;A String&quot;, # The time this status and any related Feature-specific details were updated.
1136 },
1137 },
1138 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. When the Feature resource was last updated.
1139 },
1140 ],
1141}</pre>
1142</div>
1143
1144<div class="method">
1145 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1146 <pre>Retrieves the next page of results.
1147
1148Args:
1149 previous_request: The request for the previous page. (required)
1150 previous_response: The response from the request for the previous page. (required)
1151
1152Returns:
1153 A request object that you can call &#x27;execute()&#x27; on to request the next
1154 page. Returns None if there are no more items in the collection.
1155 </pre>
1156</div>
1157
1158<div class="method">
1159 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
1160 <pre>Updates an existing Feature.
1161
1162Args:
1163 name: string, The Feature resource name in the format `projects/*/locations/*/features/*`. (required)
1164 body: object, The request body.
1165 The object takes the form of:
1166
1167{ # Feature represents the settings and status of any Hub Feature.
1168 &quot;createTime&quot;: &quot;A String&quot;, # Output only. When the Feature resource was created.
1169 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. When the Feature resource was deleted.
1170 &quot;labels&quot;: { # GCP labels for this Feature.
1171 &quot;a_key&quot;: &quot;A String&quot;,
1172 },
yoshi-code-bot07708072021-07-20 00:20:24 -07001173 &quot;membershipSpecs&quot;: { # Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused. The keys indicate which Membership the configuration is for, in the form: `projects/{p}/locations/{l}/memberships/{m}` Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature&#x27;s project. {p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001174 &quot;a_key&quot;: { # MembershipFeatureSpec contains configuration information for a single Membership.
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001175 &quot;configmanagement&quot;: { # **Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR. # Config Management-specific spec.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001176 &quot;binauthz&quot;: { # Configuration for Binauthz # Binauthz conifguration for the cluster.
1177 &quot;enabled&quot;: True or False, # Whether binauthz is enabled in this cluster.
1178 },
1179 &quot;configSync&quot;: { # Configuration for Config Sync # Config Sync configuration for the cluster.
1180 &quot;git&quot;: { # Git repo configuration for a single cluster. # Git repo configuration for the cluster.
1181 &quot;gcpServiceAccountEmail&quot;: &quot;A String&quot;, # The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.
1182 &quot;httpsProxy&quot;: &quot;A String&quot;, # URL for the HTTPS proxy to be used when communicating with the Git repo.
1183 &quot;policyDir&quot;: &quot;A String&quot;, # The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository.
1184 &quot;secretType&quot;: &quot;A String&quot;, # Type of secret configured for access to the Git repo.
1185 &quot;syncBranch&quot;: &quot;A String&quot;, # The branch of the repository to sync from. Default: master.
1186 &quot;syncRepo&quot;: &quot;A String&quot;, # The URL of the Git repository to use as the source of truth.
1187 &quot;syncRev&quot;: &quot;A String&quot;, # Git revision (tag or hash) to check out. Default HEAD.
1188 &quot;syncWaitSecs&quot;: &quot;A String&quot;, # Period in seconds between consecutive syncs. Default: 15.
1189 },
1190 &quot;sourceFormat&quot;: &quot;A String&quot;, # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode.
1191 },
1192 &quot;hierarchyController&quot;: { # Configuration for Hierarchy Controller # Hierarchy Controller configuration for the cluster.
1193 &quot;enableHierarchicalResourceQuota&quot;: True or False, # Whether hierarchical resource quota is enabled in this cluster.
1194 &quot;enablePodTreeLabels&quot;: True or False, # Whether pod tree labels are enabled in this cluster.
1195 &quot;enabled&quot;: True or False, # Whether Hierarchy Controller is enabled in this cluster.
1196 },
1197 &quot;policyController&quot;: { # Configuration for Policy Controller # Policy Controller configuration for the cluster.
1198 &quot;auditIntervalSeconds&quot;: &quot;A String&quot;, # Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether.
1199 &quot;enabled&quot;: True or False, # Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect.
1200 &quot;exemptableNamespaces&quot;: [ # The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.
1201 &quot;A String&quot;,
1202 ],
1203 &quot;logDeniesEnabled&quot;: True or False, # Logs all denies and dry run failures.
yoshi-code-bot38664e82021-05-29 00:50:02 -07001204 &quot;mutationEnabled&quot;: True or False, # Enable users to try out mutation for PolicyController.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001205 &quot;referentialRulesEnabled&quot;: True or False, # Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.
1206 &quot;templateLibraryInstalled&quot;: True or False, # Installs the default template library along with Policy Controller.
1207 },
1208 &quot;version&quot;: &quot;A String&quot;, # Version of ACM installed.
1209 },
yoshi-code-bot96afc042021-08-24 00:22:31 -07001210 &quot;identityservice&quot;: { # **Anthos Identity Service**: Configuration for a single Membership. # Identity Service-specific spec.
1211 &quot;authMethods&quot;: [ # A member may support multiple auth methods.
1212 { # Configuration of an auth method for a member/cluster. Only one authentication method (e.g., OIDC and LDAP) can be set per AuthMethod.
1213 &quot;name&quot;: &quot;A String&quot;, # Identifier for auth config.
1214 &quot;oidcConfig&quot;: { # Configuration for OIDC Auth flow. # OIDC specific configuration.
1215 &quot;certificateAuthorityData&quot;: &quot;A String&quot;, # PEM-encoded CA for OIDC provider.
1216 &quot;clientId&quot;: &quot;A String&quot;, # ID for OIDC client application.
1217 &quot;deployCloudConsoleProxy&quot;: True or False, # Flag to denote if reverse proxy is used to connect to auth provider. This flag should be set to true when provider is not reachable by Google Cloud Console.
1218 &quot;extraParams&quot;: &quot;A String&quot;, # Comma-separated list of key-value pairs.
1219 &quot;groupPrefix&quot;: &quot;A String&quot;, # Prefix to prepend to group name.
1220 &quot;groupsClaim&quot;: &quot;A String&quot;, # Claim in OIDC ID token that holds group information.
1221 &quot;issuerUri&quot;: &quot;A String&quot;, # URI for the OIDC provider. This should point to the level below .well-known/openid-configuration.
1222 &quot;kubectlRedirectUri&quot;: &quot;A String&quot;, # Registered redirect uri to redirect users going through OAuth flow using kubectl plugin.
1223 &quot;scopes&quot;: &quot;A String&quot;, # Comma-separated list of identifiers.
1224 &quot;userClaim&quot;: &quot;A String&quot;, # Claim in OIDC ID token that holds username.
1225 &quot;userPrefix&quot;: &quot;A String&quot;, # Prefix to prepend to user name.
1226 },
1227 &quot;proxy&quot;: &quot;A String&quot;, # Proxy server address to use for auth method.
1228 },
1229 ],
1230 },
yoshi-code-bot44a67192021-05-02 03:48:02 -07001231 },
1232 },
yoshi-code-bot07708072021-07-20 00:20:24 -07001233 &quot;membershipStates&quot;: { # Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: `projects/{p}/locations/{l}/memberships/{m}` Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature&#x27;s project number.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001234 &quot;a_key&quot;: { # MembershipFeatureState contains Feature status information for a single Membership.
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001235 &quot;configmanagement&quot;: { # **Anthos Config Management**: State for a single cluster. # Config Management-specific state.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001236 &quot;binauthzState&quot;: { # State for Binauthz # Binauthz status
1237 &quot;version&quot;: { # The version of binauthz. # The version of binauthz that is installed.
1238 &quot;webhookVersion&quot;: &quot;A String&quot;, # The version of the binauthz webhook.
1239 },
1240 &quot;webhook&quot;: &quot;A String&quot;, # The state of the binauthz webhook.
1241 },
1242 &quot;clusterName&quot;: &quot;A String&quot;, # The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership&#x27;s membership_name, unless the user installed ACM on the cluster manually prior to enabling the ACM hub feature. Unique within a Anthos Config Management installation.
1243 &quot;configSyncState&quot;: { # State information for ConfigSync # Current sync status
1244 &quot;deploymentState&quot;: { # The state of ConfigSync&#x27;s deployment on a cluster # Information about the deployment of ConfigSync, including the version of the various Pods deployed
1245 &quot;gitSync&quot;: &quot;A String&quot;, # Deployment state of the git-sync pod
1246 &quot;importer&quot;: &quot;A String&quot;, # Deployment state of the importer pod
1247 &quot;monitor&quot;: &quot;A String&quot;, # Deployment state of the monitor pod
1248 &quot;reconcilerManager&quot;: &quot;A String&quot;, # Deployment state of reconciler-manager pod
1249 &quot;rootReconciler&quot;: &quot;A String&quot;, # Deployment state of root-reconciler
1250 &quot;syncer&quot;: &quot;A String&quot;, # Deployment state of the syncer pod
1251 },
1252 &quot;syncState&quot;: { # State indicating an ACM&#x27;s progress syncing configurations to a cluster # The state of ConfigSync&#x27;s process to sync configs to a cluster
1253 &quot;code&quot;: &quot;A String&quot;, # Sync status code
1254 &quot;errors&quot;: [ # A list of errors resulting from problematic configs. This list will be truncated after 100 errors, although it is unlikely for that many errors to simultaneously exist.
1255 { # An ACM created error representing a problem syncing configurations
1256 &quot;code&quot;: &quot;A String&quot;, # An ACM defined error code
1257 &quot;errorMessage&quot;: &quot;A String&quot;, # A description of the error
1258 &quot;errorResources&quot;: [ # A list of config(s) associated with the error, if any
1259 { # Model for a config file in the git repo with an associated Sync error
1260 &quot;resourceGvk&quot;: { # A Kubernetes object&#x27;s GVK # Group/version/kind of the resource that is causing an error
1261 &quot;group&quot;: &quot;A String&quot;, # Kubernetes Group
1262 &quot;kind&quot;: &quot;A String&quot;, # Kubernetes Kind
1263 &quot;version&quot;: &quot;A String&quot;, # Kubernetes Version
1264 },
1265 &quot;resourceName&quot;: &quot;A String&quot;, # Metadata name of the resource that is causing an error
1266 &quot;resourceNamespace&quot;: &quot;A String&quot;, # Namespace of the resource that is causing an error
1267 &quot;sourcePath&quot;: &quot;A String&quot;, # Path in the git repo of the erroneous config
1268 },
1269 ],
1270 },
1271 ],
1272 &quot;importToken&quot;: &quot;A String&quot;, # Token indicating the state of the importer.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001273 &quot;lastSync&quot;: &quot;A String&quot;, # Deprecated: use last_sync_time instead. Timestamp of when ACM last successfully synced the repo The time format is specified in https://golang.org/pkg/time/#Time.String
yoshi-code-bot44a67192021-05-02 03:48:02 -07001274 &quot;lastSyncTime&quot;: &quot;A String&quot;, # Timestamp type of when ACM last successfully synced the repo
1275 &quot;sourceToken&quot;: &quot;A String&quot;, # Token indicating the state of the repo.
1276 &quot;syncToken&quot;: &quot;A String&quot;, # Token indicating the state of the syncer.
1277 },
1278 &quot;version&quot;: { # Specific versioning information pertaining to ConfigSync&#x27;s Pods # The version of ConfigSync deployed
1279 &quot;gitSync&quot;: &quot;A String&quot;, # Version of the deployed git-sync pod
1280 &quot;importer&quot;: &quot;A String&quot;, # Version of the deployed importer pod
1281 &quot;monitor&quot;: &quot;A String&quot;, # Version of the deployed monitor pod
1282 &quot;reconcilerManager&quot;: &quot;A String&quot;, # Version of the deployed reconciler-manager pod
1283 &quot;rootReconciler&quot;: &quot;A String&quot;, # Version of the deployed reconciler container in root-reconciler pod
1284 &quot;syncer&quot;: &quot;A String&quot;, # Version of the deployed syncer pod
1285 },
1286 },
1287 &quot;hierarchyControllerState&quot;: { # State for Hierarchy Controller # Hierarchy Controller status
1288 &quot;state&quot;: { # Deployment state for Hierarchy Controller # The deployment state for Hierarchy Controller
1289 &quot;extension&quot;: &quot;A String&quot;, # The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
1290 &quot;hnc&quot;: &quot;A String&quot;, # The deployment state for open source HNC (e.g. v0.7.0-hc.0)
1291 },
1292 &quot;version&quot;: { # Version for Hierarchy Controller # The version for Hierarchy Controller
1293 &quot;extension&quot;: &quot;A String&quot;, # Version for Hierarchy Controller extension
1294 &quot;hnc&quot;: &quot;A String&quot;, # Version for open source HNC
1295 },
1296 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001297 &quot;membershipSpec&quot;: { # **Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR. # Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state
yoshi-code-bot44a67192021-05-02 03:48:02 -07001298 &quot;binauthz&quot;: { # Configuration for Binauthz # Binauthz conifguration for the cluster.
1299 &quot;enabled&quot;: True or False, # Whether binauthz is enabled in this cluster.
1300 },
1301 &quot;configSync&quot;: { # Configuration for Config Sync # Config Sync configuration for the cluster.
1302 &quot;git&quot;: { # Git repo configuration for a single cluster. # Git repo configuration for the cluster.
1303 &quot;gcpServiceAccountEmail&quot;: &quot;A String&quot;, # The GCP Service Account Email used for auth when secret_type is gcpServiceAccount.
1304 &quot;httpsProxy&quot;: &quot;A String&quot;, # URL for the HTTPS proxy to be used when communicating with the Git repo.
1305 &quot;policyDir&quot;: &quot;A String&quot;, # The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository.
1306 &quot;secretType&quot;: &quot;A String&quot;, # Type of secret configured for access to the Git repo.
1307 &quot;syncBranch&quot;: &quot;A String&quot;, # The branch of the repository to sync from. Default: master.
1308 &quot;syncRepo&quot;: &quot;A String&quot;, # The URL of the Git repository to use as the source of truth.
1309 &quot;syncRev&quot;: &quot;A String&quot;, # Git revision (tag or hash) to check out. Default HEAD.
1310 &quot;syncWaitSecs&quot;: &quot;A String&quot;, # Period in seconds between consecutive syncs. Default: 15.
1311 },
1312 &quot;sourceFormat&quot;: &quot;A String&quot;, # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode.
1313 },
1314 &quot;hierarchyController&quot;: { # Configuration for Hierarchy Controller # Hierarchy Controller configuration for the cluster.
1315 &quot;enableHierarchicalResourceQuota&quot;: True or False, # Whether hierarchical resource quota is enabled in this cluster.
1316 &quot;enablePodTreeLabels&quot;: True or False, # Whether pod tree labels are enabled in this cluster.
1317 &quot;enabled&quot;: True or False, # Whether Hierarchy Controller is enabled in this cluster.
1318 },
1319 &quot;policyController&quot;: { # Configuration for Policy Controller # Policy Controller configuration for the cluster.
1320 &quot;auditIntervalSeconds&quot;: &quot;A String&quot;, # Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether.
1321 &quot;enabled&quot;: True or False, # Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect.
1322 &quot;exemptableNamespaces&quot;: [ # The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.
1323 &quot;A String&quot;,
1324 ],
1325 &quot;logDeniesEnabled&quot;: True or False, # Logs all denies and dry run failures.
yoshi-code-bot38664e82021-05-29 00:50:02 -07001326 &quot;mutationEnabled&quot;: True or False, # Enable users to try out mutation for PolicyController.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001327 &quot;referentialRulesEnabled&quot;: True or False, # Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.
1328 &quot;templateLibraryInstalled&quot;: True or False, # Installs the default template library along with Policy Controller.
1329 },
1330 &quot;version&quot;: &quot;A String&quot;, # Version of ACM installed.
1331 },
1332 &quot;operatorState&quot;: { # State information for an ACM&#x27;s Operator # Current install status of ACM&#x27;s Operator
1333 &quot;deploymentState&quot;: &quot;A String&quot;, # The state of the Operator&#x27;s deployment
1334 &quot;errors&quot;: [ # Install errors.
1335 { # Errors pertaining to the installation of ACM
1336 &quot;errorMessage&quot;: &quot;A String&quot;, # A string representing the user facing error message
1337 },
1338 ],
1339 &quot;version&quot;: &quot;A String&quot;, # The semenatic version number of the operator
1340 },
1341 &quot;policyControllerState&quot;: { # State for PolicyControllerState. # PolicyController status
1342 &quot;deploymentState&quot;: { # State of Policy Controller installation. # The state about the policy controller installation.
1343 &quot;gatekeeperAudit&quot;: &quot;A String&quot;, # Status of gatekeeper-audit deployment.
1344 &quot;gatekeeperControllerManagerState&quot;: &quot;A String&quot;, # Status of gatekeeper-controller-manager pod.
yoshi-code-bot38664e82021-05-29 00:50:02 -07001345 &quot;gatekeeperMutation&quot;: &quot;A String&quot;, # Status of the pod serving the mutation webhook.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001346 },
1347 &quot;version&quot;: { # The build version of Gatekeeper Policy Controller is using. # The version of Gatekeeper Policy Controller deployed.
1348 &quot;version&quot;: &quot;A String&quot;, # The gatekeeper image tag that is composed of ACM version, git tag, build number.
1349 },
1350 },
1351 },
yoshi-code-bot96afc042021-08-24 00:22:31 -07001352 &quot;identityservice&quot;: { # **Anthos Identity Service**: State for a single Membership. # Identity Service-specific state.
1353 &quot;failureReason&quot;: &quot;A String&quot;, # The reason of the failure.
1354 &quot;installedVersion&quot;: &quot;A String&quot;, # Installed AIS version. This is the AIS version installed on this member. The values makes sense iff state is OK.
1355 &quot;memberConfig&quot;: { # **Anthos Identity Service**: Configuration for a single Membership. # Last reconciled membership configuration
1356 &quot;authMethods&quot;: [ # A member may support multiple auth methods.
1357 { # Configuration of an auth method for a member/cluster. Only one authentication method (e.g., OIDC and LDAP) can be set per AuthMethod.
1358 &quot;name&quot;: &quot;A String&quot;, # Identifier for auth config.
1359 &quot;oidcConfig&quot;: { # Configuration for OIDC Auth flow. # OIDC specific configuration.
1360 &quot;certificateAuthorityData&quot;: &quot;A String&quot;, # PEM-encoded CA for OIDC provider.
1361 &quot;clientId&quot;: &quot;A String&quot;, # ID for OIDC client application.
1362 &quot;deployCloudConsoleProxy&quot;: True or False, # Flag to denote if reverse proxy is used to connect to auth provider. This flag should be set to true when provider is not reachable by Google Cloud Console.
1363 &quot;extraParams&quot;: &quot;A String&quot;, # Comma-separated list of key-value pairs.
1364 &quot;groupPrefix&quot;: &quot;A String&quot;, # Prefix to prepend to group name.
1365 &quot;groupsClaim&quot;: &quot;A String&quot;, # Claim in OIDC ID token that holds group information.
1366 &quot;issuerUri&quot;: &quot;A String&quot;, # URI for the OIDC provider. This should point to the level below .well-known/openid-configuration.
1367 &quot;kubectlRedirectUri&quot;: &quot;A String&quot;, # Registered redirect uri to redirect users going through OAuth flow using kubectl plugin.
1368 &quot;scopes&quot;: &quot;A String&quot;, # Comma-separated list of identifiers.
1369 &quot;userClaim&quot;: &quot;A String&quot;, # Claim in OIDC ID token that holds username.
1370 &quot;userPrefix&quot;: &quot;A String&quot;, # Prefix to prepend to user name.
1371 },
1372 &quot;proxy&quot;: &quot;A String&quot;, # Proxy server address to use for auth method.
1373 },
1374 ],
1375 },
1376 &quot;state&quot;: &quot;A String&quot;, # Deployment state on this member
1377 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001378 &quot;metering&quot;: { # **Metering**: Per-Membership Feature State. # Metering-specific spec.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001379 &quot;lastMeasurementTime&quot;: &quot;A String&quot;, # The time stamp of the most recent measurement of the number of vCPUs in the cluster.
1380 &quot;preciseLastMeasuredClusterVcpuCapacity&quot;: 3.14, # The vCPUs capacity in the cluster according to the most recent measurement (1/1000 precision).
1381 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001382 &quot;servicemesh&quot;: { # **Service Mesh**: State for a single Membership, as analyzed by the Service Mesh Hub Controller. # Service Mesh-specific state.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001383 &quot;analysisMessages&quot;: [ # Output only. Results of running Service Mesh analyzers.
1384 { # AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration.
1385 &quot;args&quot;: { # A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.
1386 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1387 },
1388 &quot;description&quot;: &quot;A String&quot;, # A human readable description of what the error means. It is suitable for non-internationalize display purposes.
1389 &quot;messageBase&quot;: { # AnalysisMessageBase describes some common information that is needed for all messages. # Details common to all types of Istio and ServiceMesh analysis messages.
1390 &quot;documentationUrl&quot;: &quot;A String&quot;, # A url pointing to the Service Mesh or Istio documentation for this specific error type.
1391 &quot;level&quot;: &quot;A String&quot;, # Represents how severe a message is.
1392 &quot;type&quot;: { # A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type # Represents the specific type of a message.
1393 &quot;code&quot;: &quot;A String&quot;, # A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended to uniquely identify the message type. (e.g. &quot;IST0001&quot; is mapped to the &quot;InternalError&quot; message type.)
1394 &quot;displayName&quot;: &quot;A String&quot;, # A human-readable name for the message type. e.g. &quot;InternalError&quot;, &quot;PodMissingProxy&quot;. This should be the same for all messages of the same type. (This corresponds to the `name` field in open-source Istio.)
1395 },
1396 },
1397 &quot;resourcePaths&quot;: [ # A list of strings specifying the resource identifiers that were the cause of message generation. A &quot;path&quot; here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
1398 &quot;A String&quot;,
1399 ],
1400 },
1401 ],
1402 },
1403 &quot;state&quot;: { # FeatureState describes the high-level state of a Feature. It may be used to describe a Feature&#x27;s state at the environ-level, or per-membershop, depending on the context. # The high-level state of this Feature for a single membership.
1404 &quot;code&quot;: &quot;A String&quot;, # The high-level, machine-readable status of this Feature.
1405 &quot;description&quot;: &quot;A String&quot;, # A human-readable description of the current status.
1406 &quot;updateTime&quot;: &quot;A String&quot;, # The time this status and any related Feature-specific details were updated.
1407 },
1408 },
1409 },
1410 &quot;name&quot;: &quot;A String&quot;, # Output only. The full, unique name of this Feature resource in the format `projects/*/locations/*/features/*`.
1411 &quot;resourceState&quot;: { # FeatureResourceState describes the state of a Feature *resource* in the GkeHub API. See `FeatureState` for the &quot;running state&quot; of the Feature in the Hub and across Memberships. # Output only. State of the Feature resource itself.
1412 &quot;state&quot;: &quot;A String&quot;, # The current state of the Feature resource in the Hub API.
1413 },
1414 &quot;spec&quot;: { # CommonFeatureSpec contains Hub-wide configuration information # Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused.
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001415 &quot;cloudauditlogging&quot;: { # **Cloud Audit Logging**: Spec for Audit Logging Allowlisting. # Cloud Audit Logging-specific spec.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001416 &quot;allowlistedServiceAccounts&quot;: [ # Service account that should be allowlisted to send the audit logs; eg cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must already exist, but do not need to have any permissions granted to them. The customer&#x27;s entitlements will be checked prior to allowlisting (i.e. the customer must be an Anthos customer.)
1417 &quot;A String&quot;,
1418 ],
1419 },
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001420 &quot;multiclusteringress&quot;: { # **Multi-cluster Ingress**: The configuration for the MultiClusterIngress feature. # Multicluster Ingress-specific spec.
yoshi-code-bot07708072021-07-20 00:20:24 -07001421 &quot;billing&quot;: &quot;A String&quot;, # Deprecated: This field will be ignored and should not be set. Customer&#x27;s billing structure.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001422 &quot;configMembership&quot;: &quot;A String&quot;, # Fully-qualified Membership name which hosts the MultiClusterIngress CRD. Example: `projects/foo-proj/locations/global/memberships/bar`
1423 },
1424 },
1425 &quot;state&quot;: { # CommonFeatureState contains Hub-wide Feature status information. # Output only. The Hub-wide Feature state.
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001426 &quot;servicemesh&quot;: { # **Service Mesh**: State for the whole Hub, as analyzed by the Service Mesh Hub Controller. # Service Mesh-specific state.
yoshi-code-bot44a67192021-05-02 03:48:02 -07001427 &quot;analysisMessages&quot;: [ # Output only. Results of running Service Mesh analyzers.
1428 { # AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration.
1429 &quot;args&quot;: { # A UI can combine these args with a template (based on message_base.type) to produce an internationalized message.
1430 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1431 },
1432 &quot;description&quot;: &quot;A String&quot;, # A human readable description of what the error means. It is suitable for non-internationalize display purposes.
1433 &quot;messageBase&quot;: { # AnalysisMessageBase describes some common information that is needed for all messages. # Details common to all types of Istio and ServiceMesh analysis messages.
1434 &quot;documentationUrl&quot;: &quot;A String&quot;, # A url pointing to the Service Mesh or Istio documentation for this specific error type.
1435 &quot;level&quot;: &quot;A String&quot;, # Represents how severe a message is.
1436 &quot;type&quot;: { # A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type # Represents the specific type of a message.
1437 &quot;code&quot;: &quot;A String&quot;, # A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended to uniquely identify the message type. (e.g. &quot;IST0001&quot; is mapped to the &quot;InternalError&quot; message type.)
1438 &quot;displayName&quot;: &quot;A String&quot;, # A human-readable name for the message type. e.g. &quot;InternalError&quot;, &quot;PodMissingProxy&quot;. This should be the same for all messages of the same type. (This corresponds to the `name` field in open-source Istio.)
1439 },
1440 },
1441 &quot;resourcePaths&quot;: [ # A list of strings specifying the resource identifiers that were the cause of message generation. A &quot;path&quot; here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster
1442 &quot;A String&quot;,
1443 ],
1444 },
1445 ],
1446 },
1447 &quot;state&quot;: { # FeatureState describes the high-level state of a Feature. It may be used to describe a Feature&#x27;s state at the environ-level, or per-membershop, depending on the context. # Output only. The &quot;running state&quot; of the Feature in this Hub.
1448 &quot;code&quot;: &quot;A String&quot;, # The high-level, machine-readable status of this Feature.
1449 &quot;description&quot;: &quot;A String&quot;, # A human-readable description of the current status.
1450 &quot;updateTime&quot;: &quot;A String&quot;, # The time this status and any related Feature-specific details were updated.
1451 },
1452 },
1453 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. When the Feature resource was last updated.
1454}
1455
1456 requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1457 updateMask: string, Mask of fields to update.
1458 x__xgafv: string, V1 error format.
1459 Allowed values
1460 1 - v1 error format
1461 2 - v2 error format
1462
1463Returns:
1464 An object of the form:
1465
1466 { # This resource represents a long-running operation that is the result of a network API call.
1467 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
1468 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1469 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1470 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1471 {
1472 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1473 },
1474 ],
1475 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1476 },
1477 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1478 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1479 },
1480 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
1481 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1482 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1483 },
1484}</pre>
1485</div>
1486
1487<div class="method">
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001488 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
1489 <pre>Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
1490
1491Args:
1492 resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
1493 body: object, The request body.
1494 The object takes the form of:
1495
1496{ # Request message for `SetIamPolicy` method.
yoshi-code-bot96afc042021-08-24 00:22:31 -07001497 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001498 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1499 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:aliya@example.com&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
1500 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1501 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
1502 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
1503 &quot;A String&quot;,
1504 ],
1505 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1506 },
1507 ],
1508 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
1509 },
1510 ],
1511 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
1512 { # Associates `members` with a `role`.
1513 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1514 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1515 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1516 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1517 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
1518 },
1519 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
1520 &quot;A String&quot;,
1521 ],
1522 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1523 },
1524 ],
1525 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
1526 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1527 },
1528 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: &quot;bindings, etag&quot;`
1529}
1530
1531 x__xgafv: string, V1 error format.
1532 Allowed values
1533 1 - v1 error format
1534 2 - v2 error format
1535
1536Returns:
1537 An object of the form:
1538
yoshi-code-bot96afc042021-08-24 00:22:31 -07001539 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001540 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1541 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:aliya@example.com&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
1542 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1543 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
1544 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
1545 &quot;A String&quot;,
1546 ],
1547 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1548 },
1549 ],
1550 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
1551 },
1552 ],
1553 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
1554 { # Associates `members` with a `role`.
1555 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1556 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1557 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1558 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1559 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
1560 },
1561 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
1562 &quot;A String&quot;,
1563 ],
1564 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1565 },
1566 ],
1567 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
1568 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1569}</pre>
1570</div>
1571
1572<div class="method">
1573 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
1574 <pre>Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may &quot;fail open&quot; without warning.
1575
1576Args:
1577 resource: string, REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. (required)
1578 body: object, The request body.
1579 The object takes the form of:
1580
1581{ # Request message for `TestIamPermissions` method.
1582 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1583 &quot;A String&quot;,
1584 ],
1585}
1586
1587 x__xgafv: string, V1 error format.
1588 Allowed values
1589 1 - v1 error format
1590 2 - v2 error format
1591
1592Returns:
1593 An object of the form:
1594
1595 { # Response message for `TestIamPermissions` method.
1596 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1597 &quot;A String&quot;,
1598 ],
1599}</pre>
1600</div>
1601
1602</body></html>