Debian Codegraph @

docs/dyn/apigee_v1.organizations.environments.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="apigee_v1.html">Apigee API</a> . <a href="apigee_v1.organizations.html">organizations</a> . <a href="apigee_v1.organizations.environments.html">environments</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="apigee_v1.organizations.environments.addonsConfig.html">addonsConfig()</a></code>
79 </p>
80 <p class="firstline">Returns the addonsConfig Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="apigee_v1.organizations.environments.analytics.html">analytics()</a></code>
84 </p>
85 <p class="firstline">Returns the analytics Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="apigee_v1.organizations.environments.apis.html">apis()</a></code>
89 </p>
90 <p class="firstline">Returns the apis Resource.</p>
91
92 <p class="toc_element">
93 <code><a href="apigee_v1.organizations.environments.archiveDeployments.html">archiveDeployments()</a></code>
94 </p>
95 <p class="firstline">Returns the archiveDeployments Resource.</p>
96
97 <p class="toc_element">
98 <code><a href="apigee_v1.organizations.environments.caches.html">caches()</a></code>
99 </p>
100 <p class="firstline">Returns the caches Resource.</p>
101
102 <p class="toc_element">
103 <code><a href="apigee_v1.organizations.environments.deployments.html">deployments()</a></code>
104 </p>
105 <p class="firstline">Returns the deployments Resource.</p>
106
107 <p class="toc_element">
108 <code><a href="apigee_v1.organizations.environments.flowhooks.html">flowhooks()</a></code>
109 </p>
110 <p class="firstline">Returns the flowhooks Resource.</p>
111
112 <p class="toc_element">
113 <code><a href="apigee_v1.organizations.environments.keystores.html">keystores()</a></code>
114 </p>
115 <p class="firstline">Returns the keystores Resource.</p>
116
117 <p class="toc_element">
118 <code><a href="apigee_v1.organizations.environments.keyvaluemaps.html">keyvaluemaps()</a></code>
119 </p>
120 <p class="firstline">Returns the keyvaluemaps Resource.</p>
121
122 <p class="toc_element">
123 <code><a href="apigee_v1.organizations.environments.optimizedStats.html">optimizedStats()</a></code>
124 </p>
125 <p class="firstline">Returns the optimizedStats Resource.</p>
126
127 <p class="toc_element">
128 <code><a href="apigee_v1.organizations.environments.queries.html">queries()</a></code>
129 </p>
130 <p class="firstline">Returns the queries Resource.</p>
131
132 <p class="toc_element">
133 <code><a href="apigee_v1.organizations.environments.references.html">references()</a></code>
134 </p>
135 <p class="firstline">Returns the references Resource.</p>
136
137 <p class="toc_element">
138 <code><a href="apigee_v1.organizations.environments.resourcefiles.html">resourcefiles()</a></code>
139 </p>
140 <p class="firstline">Returns the resourcefiles Resource.</p>
141
142 <p class="toc_element">
143 <code><a href="apigee_v1.organizations.environments.securityActions.html">securityActions()</a></code>
144 </p>
145 <p class="firstline">Returns the securityActions Resource.</p>
146
147 <p class="toc_element">
148 <code><a href="apigee_v1.organizations.environments.securityIncidents.html">securityIncidents()</a></code>
149 </p>
150 <p class="firstline">Returns the securityIncidents Resource.</p>
151
152 <p class="toc_element">
153 <code><a href="apigee_v1.organizations.environments.securityReports.html">securityReports()</a></code>
154 </p>
155 <p class="firstline">Returns the securityReports Resource.</p>
156
157 <p class="toc_element">
158 <code><a href="apigee_v1.organizations.environments.securityStats.html">securityStats()</a></code>
159 </p>
160 <p class="firstline">Returns the securityStats Resource.</p>
161
162 <p class="toc_element">
163 <code><a href="apigee_v1.organizations.environments.sharedflows.html">sharedflows()</a></code>
164 </p>
165 <p class="firstline">Returns the sharedflows Resource.</p>
166
167 <p class="toc_element">
168 <code><a href="apigee_v1.organizations.environments.stats.html">stats()</a></code>
169 </p>
170 <p class="firstline">Returns the stats Resource.</p>
171
172 <p class="toc_element">
173 <code><a href="apigee_v1.organizations.environments.targetservers.html">targetservers()</a></code>
174 </p>
175 <p class="firstline">Returns the targetservers Resource.</p>
176
177 <p class="toc_element">
178 <code><a href="apigee_v1.organizations.environments.traceConfig.html">traceConfig()</a></code>
179 </p>
180 <p class="firstline">Returns the traceConfig Resource.</p>
181
182 <p class="toc_element">
183 <code><a href="#close">close()</a></code></p>
184 <p class="firstline">Close httplib2 connections.</p>
185 <p class="toc_element">
186 <code><a href="#create">create(parent, body=None, name=None, x__xgafv=None)</a></code></p>
187 <p class="firstline">Creates an environment in an organization.</p>
188 <p class="toc_element">
189 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
190 <p class="firstline">Deletes an environment from an organization. **Warning: You must delete all key value maps and key value entries before you delete an environment.** Otherwise, if you re-create the environment the key value map entry operations will encounter encryption/decryption discrepancies.</p>
191 <p class="toc_element">
192 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
193 <p class="firstline">Gets environment details.</p>
194 <p class="toc_element">
195 <code><a href="#getAddonsConfig">getAddonsConfig(name, x__xgafv=None)</a></code></p>
196 <p class="firstline">Gets the add-ons config of an environment.</p>
197 <p class="toc_element">
198 <code><a href="#getApiSecurityRuntimeConfig">getApiSecurityRuntimeConfig(name, x__xgafv=None)</a></code></p>
199 <p class="firstline">Gets the API Security runtime configuration for an environment. This named ApiSecurityRuntimeConfig to prevent conflicts with ApiSecurityConfig from addon config.</p>
200 <p class="toc_element">
201 <code><a href="#getDebugmask">getDebugmask(name, x__xgafv=None)</a></code></p>
202 <p class="firstline">Gets the debug mask singleton resource for an environment.</p>
203 <p class="toc_element">
204 <code><a href="#getDeployedConfig">getDeployedConfig(name, x__xgafv=None)</a></code></p>
205 <p class="firstline">Gets the deployed configuration for an environment.</p>
206 <p class="toc_element">
207 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
208 <p class="firstline">Gets the IAM policy on an environment. For more information, see [Manage users, roles, and permissions using the API](https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles). You must have the `apigee.environments.getIamPolicy` permission to call this API.</p>
209 <p class="toc_element">
210 <code><a href="#getSecurityActionsConfig">getSecurityActionsConfig(name, x__xgafv=None)</a></code></p>
211 <p class="firstline">GetSecurityActionConfig returns the current SecurityActions configuration.</p>
212 <p class="toc_element">
213 <code><a href="#getTraceConfig">getTraceConfig(name, x__xgafv=None)</a></code></p>
214 <p class="firstline">Get distributed trace configuration in an environment.</p>
215 <p class="toc_element">
216 <code><a href="#modifyEnvironment">modifyEnvironment(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
217 <p class="firstline">Updates properties for an Apigee environment with patch semantics using a field mask. **Note:** Not supported for Apigee hybrid.</p>
218 <p class="toc_element">
219 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
220 <p class="firstline">Sets the IAM policy on an environment, if the policy already exists it will be replaced. For more information, see [Manage users, roles, and permissions using the API](https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles). You must have the `apigee.environments.setIamPolicy` permission to call this API.</p>
221 <p class="toc_element">
222 <code><a href="#subscribe">subscribe(parent, x__xgafv=None)</a></code></p>
223 <p class="firstline">Creates a subscription for the environment's Pub/Sub topic. The server will assign a random name for this subscription. The "name" and "push_config" must *not* be specified.</p>
224 <p class="toc_element">
225 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
226 <p class="firstline">Tests the permissions of a user on an environment, and returns a subset of permissions that the user has on the environment. If the environment does not exist, an empty permission set is returned (a NOT_FOUND error is not returned).</p>
227 <p class="toc_element">
228 <code><a href="#unsubscribe">unsubscribe(parent, body=None, x__xgafv=None)</a></code></p>
229 <p class="firstline">Deletes a subscription for the environment's Pub/Sub topic.</p>
230 <p class="toc_element">
231 <code><a href="#update">update(name, body=None, x__xgafv=None)</a></code></p>
232 <p class="firstline">Updates an existing environment. When updating properties, you must pass all existing properties to the API, even if they are not being changed. If you omit properties from the payload, the properties are removed. To get the current list of properties for the environment, use the [Get Environment API](get). **Note**: Both `PUT` and `POST` methods are supported for updating an existing environment.</p>
233 <p class="toc_element">
234 <code><a href="#updateDebugmask">updateDebugmask(name, body=None, replaceRepeatedFields=None, updateMask=None, x__xgafv=None)</a></code></p>
235 <p class="firstline">Updates the debug mask singleton resource for an environment.</p>
236 <p class="toc_element">
237 <code><a href="#updateEnvironment">updateEnvironment(name, body=None, x__xgafv=None)</a></code></p>
238 <p class="firstline">Updates an existing environment. When updating properties, you must pass all existing properties to the API, even if they are not being changed. If you omit properties from the payload, the properties are removed. To get the current list of properties for the environment, use the [Get Environment API](get). **Note**: Both `PUT` and `POST` methods are supported for updating an existing environment.</p>
239 <p class="toc_element">
240 <code><a href="#updateSecurityActionsConfig">updateSecurityActionsConfig(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
241 <p class="firstline">UpdateSecurityActionConfig updates the current SecurityActions configuration. This method is used to enable/disable the feature at the environment level.</p>
242 <p class="toc_element">
243 <code><a href="#updateTraceConfig">updateTraceConfig(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
244 <p class="firstline">Updates the trace configurations in an environment. Note that the repeated fields have replace semantics when included in the field mask and that they will be overwritten by the value of the fields in the request body.</p>
245 <h3>Method Details</h3>
246 <div class="method">
247 <code class="details" id="close">close()</code>
248 <pre>Close httplib2 connections.</pre>
249 </div>
250
251 <div class="method">
252 <code class="details" id="create">create(parent, body=None, name=None, x__xgafv=None)</code>
253 <pre>Creates an environment in an organization.
254
255 Args:
256 parent: string, Required. Name of the organization in which the environment will be created. Use the following structure in your request: `organizations/{org}` (required)
257 body: object, The request body.
258 The object takes the form of:
259
260 {
261 &quot;apiProxyType&quot;: &quot;A String&quot;, # Optional. API Proxy type supported by the environment. The type can be set when creating the Environment and cannot be changed.
262 &quot;clientIpResolutionConfig&quot;: { # Configuration for resolving the client ip. # Optional. The algorithm to resolve IP. This will affect Analytics, API Security, and other features that use the client ip. To remove a client ip resolution config, update the field to an empty value. Example: &#x27;{ &quot;clientIpResolutionConfig&quot; = {} }&#x27; For more information, see: https://cloud.google.com/apigee/docs/api-platform/system-administration/client-ip-resolution.
263 &quot;headerIndexAlgorithm&quot;: { # Resolves the client ip based on a custom header. # Resolves the client ip based on a custom header.
264 &quot;ipHeaderIndex&quot;: 42, # Required. The index of the ip in the header. Positive indices 0, 1, 2, 3 chooses indices from the left (first ips) Negative indices -1, -2, -3 chooses indices from the right (last ips)
265 &quot;ipHeaderName&quot;: &quot;A String&quot;, # Required. The name of the header to extract the client ip from.
266 },
267 },
268 &quot;createdAt&quot;: &quot;A String&quot;, # Output only. Creation time of this environment as milliseconds since epoch.
269 &quot;deploymentType&quot;: &quot;A String&quot;, # Optional. Deployment type supported by the environment. The deployment type can be set when creating the environment and cannot be changed. When you enable archive deployment, you will be **prevented from performing** a [subset of actions](/apigee/docs/api-platform/local-development/overview#prevented-actions) within the environment, including: * Managing the deployment of API proxy or shared flow revisions * Creating, updating, or deleting resource files * Creating, updating, or deleting target servers
270 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the environment.
271 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name for this environment.
272 &quot;forwardProxyUri&quot;: &quot;A String&quot;, # Optional. URI of the forward proxy to be applied to the runtime instances in this environment. Must be in the format of {scheme}://{hostname}:{port}. Note that the only supported scheme is &quot;http&quot;. The port must be supplied. To remove a forward proxy setting, update the field to an empty value. Note: At this time, PUT operations to add forwardProxyUri to an existing environment fail if the environment has nodeConfig set up. To successfully add the forwardProxyUri setting in this case, include the NodeConfig details with the request.
273 &quot;hasAttachedFlowHooks&quot;: True or False,
274 &quot;lastModifiedAt&quot;: &quot;A String&quot;, # Output only. Last modification time of this environment as milliseconds since epoch.
275 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the environment. Values must match the regular expression `^[.\\p{Alnum}-_]{1,255}$`
276 &quot;nodeConfig&quot;: { # NodeConfig for setting the min/max number of nodes associated with the environment. # Optional. NodeConfig of the environment.
277 &quot;currentAggregateNodeCount&quot;: &quot;A String&quot;, # Output only. The current total number of gateway nodes that each environment currently has across all instances.
278 &quot;maxNodeCount&quot;: &quot;A String&quot;, # Optional. The maximum total number of gateway nodes that the is reserved for all instances that has the specified environment. If not specified, the default is determined by the recommended maximum number of nodes for that gateway.
279 &quot;minNodeCount&quot;: &quot;A String&quot;, # Optional. The minimum total number of gateway nodes that the is reserved for all instances that has the specified environment. If not specified, the default is determined by the recommended minimum number of nodes for that gateway.
280 },
281 &quot;properties&quot;: { # Message for compatibility with legacy Edge specification for Java Properties object in JSON. # Optional. Key-value pairs that may be used for customizing the environment.
282 &quot;property&quot;: [ # List of all properties in the object
283 { # A single property entry in the Properties message.
284 &quot;name&quot;: &quot;A String&quot;, # The property key
285 &quot;value&quot;: &quot;A String&quot;, # The property value
286 },
287 ],
288 },
289 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the environment. Values other than ACTIVE means the resource is not ready to use.
290 &quot;type&quot;: &quot;A String&quot;, # Optional. EnvironmentType selected for the environment.
291 }
292
293 name: string, Optional. Name of the environment.
294 x__xgafv: string, V1 error format.
295 Allowed values
296 1 - v1 error format
297 2 - v2 error format
298
299 Returns:
300 An object of the form:
301
302 { # This resource represents a long-running operation that is the result of a network API call.
303 &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.
304 &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.
305 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
306 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
307 {
308 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
309 },
310 ],
311 &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.
312 },
313 &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.
314 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
315 },
316 &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}`.
317 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
318 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
319 },
320 }</pre>
321 </div>
322
323 <div class="method">
324 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
325 <pre>Deletes an environment from an organization. **Warning: You must delete all key value maps and key value entries before you delete an environment.** Otherwise, if you re-create the environment the key value map entry operations will encounter encryption/decryption discrepancies.
326
327 Args:
328 name: string, Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}` (required)
329 x__xgafv: string, V1 error format.
330 Allowed values
331 1 - v1 error format
332 2 - v2 error format
333
334 Returns:
335 An object of the form:
336
337 { # This resource represents a long-running operation that is the result of a network API call.
338 &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.
339 &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.
340 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
341 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
342 {
343 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
344 },
345 ],
346 &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.
347 },
348 &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.
349 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
350 },
351 &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}`.
352 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
353 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
354 },
355 }</pre>
356 </div>
357
358 <div class="method">
359 <code class="details" id="get">get(name, x__xgafv=None)</code>
360 <pre>Gets environment details.
361
362 Args:
363 name: string, Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}` (required)
364 x__xgafv: string, V1 error format.
365 Allowed values
366 1 - v1 error format
367 2 - v2 error format
368
369 Returns:
370 An object of the form:
371
372 {
373 &quot;apiProxyType&quot;: &quot;A String&quot;, # Optional. API Proxy type supported by the environment. The type can be set when creating the Environment and cannot be changed.
374 &quot;clientIpResolutionConfig&quot;: { # Configuration for resolving the client ip. # Optional. The algorithm to resolve IP. This will affect Analytics, API Security, and other features that use the client ip. To remove a client ip resolution config, update the field to an empty value. Example: &#x27;{ &quot;clientIpResolutionConfig&quot; = {} }&#x27; For more information, see: https://cloud.google.com/apigee/docs/api-platform/system-administration/client-ip-resolution.
375 &quot;headerIndexAlgorithm&quot;: { # Resolves the client ip based on a custom header. # Resolves the client ip based on a custom header.
376 &quot;ipHeaderIndex&quot;: 42, # Required. The index of the ip in the header. Positive indices 0, 1, 2, 3 chooses indices from the left (first ips) Negative indices -1, -2, -3 chooses indices from the right (last ips)
377 &quot;ipHeaderName&quot;: &quot;A String&quot;, # Required. The name of the header to extract the client ip from.
378 },
379 },
380 &quot;createdAt&quot;: &quot;A String&quot;, # Output only. Creation time of this environment as milliseconds since epoch.
381 &quot;deploymentType&quot;: &quot;A String&quot;, # Optional. Deployment type supported by the environment. The deployment type can be set when creating the environment and cannot be changed. When you enable archive deployment, you will be **prevented from performing** a [subset of actions](/apigee/docs/api-platform/local-development/overview#prevented-actions) within the environment, including: * Managing the deployment of API proxy or shared flow revisions * Creating, updating, or deleting resource files * Creating, updating, or deleting target servers
382 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the environment.
383 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name for this environment.
384 &quot;forwardProxyUri&quot;: &quot;A String&quot;, # Optional. URI of the forward proxy to be applied to the runtime instances in this environment. Must be in the format of {scheme}://{hostname}:{port}. Note that the only supported scheme is &quot;http&quot;. The port must be supplied. To remove a forward proxy setting, update the field to an empty value. Note: At this time, PUT operations to add forwardProxyUri to an existing environment fail if the environment has nodeConfig set up. To successfully add the forwardProxyUri setting in this case, include the NodeConfig details with the request.
385 &quot;hasAttachedFlowHooks&quot;: True or False,
386 &quot;lastModifiedAt&quot;: &quot;A String&quot;, # Output only. Last modification time of this environment as milliseconds since epoch.
387 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the environment. Values must match the regular expression `^[.\\p{Alnum}-_]{1,255}$`
388 &quot;nodeConfig&quot;: { # NodeConfig for setting the min/max number of nodes associated with the environment. # Optional. NodeConfig of the environment.
389 &quot;currentAggregateNodeCount&quot;: &quot;A String&quot;, # Output only. The current total number of gateway nodes that each environment currently has across all instances.
390 &quot;maxNodeCount&quot;: &quot;A String&quot;, # Optional. The maximum total number of gateway nodes that the is reserved for all instances that has the specified environment. If not specified, the default is determined by the recommended maximum number of nodes for that gateway.
391 &quot;minNodeCount&quot;: &quot;A String&quot;, # Optional. The minimum total number of gateway nodes that the is reserved for all instances that has the specified environment. If not specified, the default is determined by the recommended minimum number of nodes for that gateway.
392 },
393 &quot;properties&quot;: { # Message for compatibility with legacy Edge specification for Java Properties object in JSON. # Optional. Key-value pairs that may be used for customizing the environment.
394 &quot;property&quot;: [ # List of all properties in the object
395 { # A single property entry in the Properties message.
396 &quot;name&quot;: &quot;A String&quot;, # The property key
397 &quot;value&quot;: &quot;A String&quot;, # The property value
398 },
399 ],
400 },
401 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the environment. Values other than ACTIVE means the resource is not ready to use.
402 &quot;type&quot;: &quot;A String&quot;, # Optional. EnvironmentType selected for the environment.
403 }</pre>
404 </div>
405
406 <div class="method">
407 <code class="details" id="getAddonsConfig">getAddonsConfig(name, x__xgafv=None)</code>
408 <pre>Gets the add-ons config of an environment.
409
410 Args:
411 name: string, Required. Name of the add-ons config. Must be in the format of `/organizations/{org}/environments/{env}/addonsConfig` (required)
412 x__xgafv: string, V1 error format.
413 Allowed values
414 1 - v1 error format
415 2 - v2 error format
416
417 Returns:
418 An object of the form:
419
420 { # Add-on configurations for the Apigee organization.
421 &quot;advancedApiOpsConfig&quot;: { # Configuration for the Advanced API Ops add-on. # Configuration for the Advanced API Ops add-on.
422 &quot;enabled&quot;: True or False, # Flag that specifies whether the Advanced API Ops add-on is enabled.
423 },
424 &quot;analyticsConfig&quot;: { # Configuration for the Analytics add-on. # Configuration for the Analytics add-on. Only used in organizations.environments.addonsConfig.
425 &quot;enabled&quot;: True or False, # Whether the Analytics add-on is enabled.
426 &quot;expireTimeMillis&quot;: &quot;A String&quot;, # Output only. Time at which the Analytics add-on expires in milliseconds since epoch. If unspecified, the add-on will never expire.
427 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the Analytics add-on.
428 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The latest update time.
429 },
430 &quot;apiSecurityConfig&quot;: { # Configurations of the API Security add-on. # Configuration for the API Security add-on.
431 &quot;enabled&quot;: True or False, # Flag that specifies whether the API security add-on is enabled.
432 &quot;expiresAt&quot;: &quot;A String&quot;, # Output only. Time at which the API Security add-on expires in milliseconds since epoch. If unspecified, the add-on will never expire.
433 },
434 &quot;connectorsPlatformConfig&quot;: { # Configuration for the Connectors Platform add-on. # Configuration for the Connectors Platform add-on.
435 &quot;enabled&quot;: True or False, # Flag that specifies whether the Connectors Platform add-on is enabled.
436 &quot;expiresAt&quot;: &quot;A String&quot;, # Output only. Time at which the Connectors Platform add-on expires in milliseconds since epoch. If unspecified, the add-on will never expire.
437 },
438 &quot;integrationConfig&quot;: { # Configuration for the Integration add-on. # Configuration for the Integration add-on.
439 &quot;enabled&quot;: True or False, # Flag that specifies whether the Integration add-on is enabled.
440 },
441 &quot;monetizationConfig&quot;: { # Configuration for the Monetization add-on. # Configuration for the Monetization add-on.
442 &quot;enabled&quot;: True or False, # Flag that specifies whether the Monetization add-on is enabled.
443 },
444 }</pre>
445 </div>
446
447 <div class="method">
448 <code class="details" id="getApiSecurityRuntimeConfig">getApiSecurityRuntimeConfig(name, x__xgafv=None)</code>
449 <pre>Gets the API Security runtime configuration for an environment. This named ApiSecurityRuntimeConfig to prevent conflicts with ApiSecurityConfig from addon config.
450
451 Args:
452 name: string, Required. Name of the environment API Security Runtime configuration resource. Use the following structure in your request: `organizations/{org}/environments/{env}/apiSecurityRuntimeConfig` (required)
453 x__xgafv: string, V1 error format.
454 Allowed values
455 1 - v1 error format
456 2 - v2 error format
457
458 Returns:
459 An object of the form:
460
461 { # Response for GetApiSecurityRuntimeConfig[EnvironmentService.GetApiSecurityRuntimeConfig].
462 &quot;location&quot;: [ # A list of up to 5 Cloud Storage Blobs that contain SecurityActions.
463 &quot;A String&quot;,
464 ],
465 &quot;name&quot;: &quot;A String&quot;, # Name of the environment API Security Runtime configuration resource. Format: `organizations/{org}/environments/{env}/apiSecurityRuntimeConfig`
466 &quot;revisionId&quot;: &quot;A String&quot;, # Revision ID of the API Security Runtime configuration. The higher the value, the more recently the configuration was deployed.
467 &quot;uid&quot;: &quot;A String&quot;, # Unique ID for the API Security Runtime configuration. The ID will only change if the environment is deleted and recreated.
468 &quot;updateTime&quot;: &quot;A String&quot;, # Time that the API Security Runtime configuration was updated.
469 }</pre>
470 </div>
471
472 <div class="method">
473 <code class="details" id="getDebugmask">getDebugmask(name, x__xgafv=None)</code>
474 <pre>Gets the debug mask singleton resource for an environment.
475
476 Args:
477 name: string, Required. Name of the debug mask. Use the following structure in your request: `organizations/{org}/environments/{env}/debugmask`. (required)
478 x__xgafv: string, V1 error format.
479 Allowed values
480 1 - v1 error format
481 2 - v2 error format
482
483 Returns:
484 An object of the form:
485
486 {
487 &quot;faultJSONPaths&quot;: [ # List of JSON paths that specify the JSON elements to be filtered from JSON payloads in error flows.
488 &quot;A String&quot;,
489 ],
490 &quot;faultXPaths&quot;: [ # List of XPaths that specify the XML elements to be filtered from XML payloads in error flows.
491 &quot;A String&quot;,
492 ],
493 &quot;name&quot;: &quot;A String&quot;, # Name of the debug mask.
494 &quot;namespaces&quot;: { # Map of namespaces to URIs.
495 &quot;a_key&quot;: &quot;A String&quot;,
496 },
497 &quot;requestJSONPaths&quot;: [ # List of JSON paths that specify the JSON elements to be filtered from JSON request message payloads.
498 &quot;A String&quot;,
499 ],
500 &quot;requestXPaths&quot;: [ # List of XPaths that specify the XML elements to be filtered from XML request message payloads.
501 &quot;A String&quot;,
502 ],
503 &quot;responseJSONPaths&quot;: [ # List of JSON paths that specify the JSON elements to be filtered from JSON response message payloads.
504 &quot;A String&quot;,
505 ],
506 &quot;responseXPaths&quot;: [ # List of XPaths that specify the XML elements to be filtered from XML response message payloads.
507 &quot;A String&quot;,
508 ],
509 &quot;variables&quot;: [ # List of variables that should be masked from the debug output.
510 &quot;A String&quot;,
511 ],
512 }</pre>
513 </div>
514
515 <div class="method">
516 <code class="details" id="getDeployedConfig">getDeployedConfig(name, x__xgafv=None)</code>
517 <pre>Gets the deployed configuration for an environment.
518
519 Args:
520 name: string, Required. Name of the environment deployed configuration resource. Use the following structure in your request: `organizations/{org}/environments/{env}/deployedConfig` (required)
521 x__xgafv: string, V1 error format.
522 Allowed values
523 1 - v1 error format
524 2 - v2 error format
525
526 Returns:
527 An object of the form:
528
529 {
530 &quot;addonsConfig&quot;: { # RuntimeAddonsConfig defines the runtime configurations for add-ons in an environment. # The latest runtime configurations for add-ons.
531 &quot;analyticsConfig&quot;: { # Runtime configuration for the Analytics add-on. # Runtime configuration for Analytics add-on.
532 &quot;billingPipelineEnabled&quot;: True or False, # If Runtime should send billing data to AX or not.
533 &quot;enabled&quot;: True or False, # If the Analytics is enabled or not.
534 },
535 &quot;apiSecurityConfig&quot;: { # Runtime configuration for the API Security add-on. # Runtime configuration for API Security add-on.
536 &quot;enabled&quot;: True or False, # If the API Security is enabled or not.
537 },
538 &quot;name&quot;: &quot;A String&quot;, # Name of the addons config in the format: `organizations/{org}/environments/{env}/addonsConfig`
539 &quot;revisionId&quot;: &quot;A String&quot;, # Revision number used by the runtime to detect config changes.
540 &quot;uid&quot;: &quot;A String&quot;, # UID is to detect if config is recreated after deletion. The add-on config will only be deleted when the environment itself gets deleted, thus it will always be the same as the UID of EnvironmentConfig.
541 },
542 &quot;arcConfigLocation&quot;: &quot;A String&quot;, # The location for the config blob of API Runtime Control, aka Envoy Adapter, for op-based authentication as a URI, e.g. a Cloud Storage URI. This is only used by Envoy-based gateways.
543 &quot;clientIpResolutionConfig&quot;: { # Configuration for resolving the client ip. # The algorithm to resolve IP.
544 &quot;headerIndexAlgorithm&quot;: { # Resolves the client ip based on a custom header. # Resolves the client ip based on a custom header.
545 &quot;ipHeaderIndex&quot;: 42, # The index of the ip in the header. (By default, value is 0 if missing)
546 &quot;ipHeaderName&quot;: &quot;A String&quot;, # The name of the header to extract the client ip from.
547 },
548 },
549 &quot;createTime&quot;: &quot;A String&quot;, # Time that the environment configuration was created.
550 &quot;dataCollectors&quot;: [ # List of data collectors used by the deployments in the environment.
551 { # Data collector and its configuration.
552 &quot;name&quot;: &quot;A String&quot;, # Name of the data collector in the following format: `organizations/{org}/datacollectors/{datacollector}`
553 &quot;type&quot;: &quot;A String&quot;, # Data type accepted by the data collector.
554 },
555 ],
556 &quot;debugMask&quot;: { # Debug mask that applies to all deployments in the environment.
557 &quot;faultJSONPaths&quot;: [ # List of JSON paths that specify the JSON elements to be filtered from JSON payloads in error flows.
558 &quot;A String&quot;,
559 ],
560 &quot;faultXPaths&quot;: [ # List of XPaths that specify the XML elements to be filtered from XML payloads in error flows.
561 &quot;A String&quot;,
562 ],
563 &quot;name&quot;: &quot;A String&quot;, # Name of the debug mask.
564 &quot;namespaces&quot;: { # Map of namespaces to URIs.
565 &quot;a_key&quot;: &quot;A String&quot;,
566 },
567 &quot;requestJSONPaths&quot;: [ # List of JSON paths that specify the JSON elements to be filtered from JSON request message payloads.
568 &quot;A String&quot;,
569 ],
570 &quot;requestXPaths&quot;: [ # List of XPaths that specify the XML elements to be filtered from XML request message payloads.
571 &quot;A String&quot;,
572 ],
573 &quot;responseJSONPaths&quot;: [ # List of JSON paths that specify the JSON elements to be filtered from JSON response message payloads.
574 &quot;A String&quot;,
575 ],
576 &quot;responseXPaths&quot;: [ # List of XPaths that specify the XML elements to be filtered from XML response message payloads.
577 &quot;A String&quot;,
578 ],
579 &quot;variables&quot;: [ # List of variables that should be masked from the debug output.
580 &quot;A String&quot;,
581 ],
582 },
583 &quot;deploymentGroups&quot;: [ # List of deployment groups in the environment.
584 { # DeploymentGroupConfig represents a deployment group that should be present in a particular environment.
585 &quot;deploymentGroupType&quot;: &quot;A String&quot;, # Type of the deployment group, which will be either Standard or Extensible.
586 &quot;name&quot;: &quot;A String&quot;, # Name of the deployment group in the following format: `organizations/{org}/environments/{env}/deploymentGroups/{group}`.
587 &quot;revisionId&quot;: &quot;A String&quot;, # Revision number which can be used by the runtime to detect if the deployment group has changed between two versions.
588 &quot;uid&quot;: &quot;A String&quot;, # Unique ID. The ID will only change if the deployment group is deleted and recreated.
589 },
590 ],
591 &quot;deployments&quot;: [ # List of deployments in the environment.
592 { # NEXT ID: 11
593 &quot;attributes&quot;: { # Additional key-value metadata for the deployment.
594 &quot;a_key&quot;: &quot;A String&quot;,
595 },
596 &quot;basePath&quot;: &quot;A String&quot;, # Base path where the application will be hosted. Defaults to &quot;/&quot;.
597 &quot;deploymentGroups&quot;: [ # The list of deployment groups in which this proxy should be deployed. Not currently populated for shared flows.
598 &quot;A String&quot;,
599 ],
600 &quot;endpoints&quot;: { # A mapping from basepaths to proxy endpoint names in this proxy. Not populated for shared flows.
601 &quot;a_key&quot;: &quot;A String&quot;,
602 },
603 &quot;location&quot;: &quot;A String&quot;, # Location of the API proxy bundle as a URI.
604 &quot;name&quot;: &quot;A String&quot;, # Name of the API or shared flow revision to be deployed in the following format: `organizations/{org}/apis/{api}/revisions/{rev}` or `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`
605 &quot;proxyUid&quot;: &quot;A String&quot;, # Unique ID of the API proxy revision.
606 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account identity associated with this deployment. If non-empty, will be in the following format: `projects/-/serviceAccounts/{account_email}`
607 &quot;uid&quot;: &quot;A String&quot;, # Unique ID. The ID will only change if the deployment is deleted and recreated.
608 },
609 ],
610 &quot;envScopedRevisionId&quot;: &quot;A String&quot;, # Revision ID for environment-scoped resources (e.g. target servers, keystores) in this config. This ID will increment any time a resource not scoped to a deployment group changes.
611 &quot;featureFlags&quot;: { # Feature flags inherited from the organization and environment.
612 &quot;a_key&quot;: &quot;A String&quot;,
613 },
614 &quot;flowhooks&quot;: [ # List of flow hooks in the environment.
615 {
616 &quot;continueOnError&quot;: True or False, # Flag that specifies whether the flow should abort after an error in the flow hook. Defaults to `true` (continue on error).
617 &quot;name&quot;: &quot;A String&quot;, # Name of the flow hook in the following format: `organizations/{org}/environments/{env}/flowhooks/{point}`. Valid `point` values include: `PreProxyFlowHook`, `PostProxyFlowHook`, `PreTargetFlowHook`, and `PostTargetFlowHook`
618 &quot;sharedFlowName&quot;: &quot;A String&quot;, # Name of the shared flow to invoke in the following format: `organizations/{org}/sharedflows/{sharedflow}`
619 },
620 ],
621 &quot;forwardProxyUri&quot;: &quot;A String&quot;, # The forward proxy&#x27;s url to be used by the runtime. When set, runtime will send requests to the target via the given forward proxy. This is only used by programmable gateways.
622 &quot;gatewayConfigLocation&quot;: &quot;A String&quot;, # The location for the gateway config blob as a URI, e.g. a Cloud Storage URI. This is only used by Envoy-based gateways.
623 &quot;keystores&quot;: [ # List of keystores in the environment.
624 {
625 &quot;aliases&quot;: [ # Aliases in the keystore.
626 {
627 &quot;location&quot;: &quot;A String&quot;, # Location of the alias file. For example, a Google Cloud Storage URI.
628 &quot;name&quot;: &quot;A String&quot;, # Name of the alias revision included in the keystore in the following format: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}/revisions/{rev}`
629 &quot;type&quot;: &quot;A String&quot;,
630 },
631 ],
632 &quot;name&quot;: &quot;A String&quot;, # Resource name in the following format: `organizations/{org}/environments/{env}/keystores/{keystore}`
633 },
634 ],
635 &quot;name&quot;: &quot;A String&quot;, # Name of the environment configuration in the following format: `organizations/{org}/environments/{env}/configs/{config}`
636 &quot;provider&quot;: &quot;A String&quot;, # Used by the Control plane to add context information to help detect the source of the document during diagnostics and debugging.
637 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Name of the PubSub topic for the environment.
638 &quot;resourceReferences&quot;: [ # List of resource references in the environment.
639 {
640 &quot;name&quot;: &quot;A String&quot;, # Name of the reference in the following format: `organizations/{org}/environments/{env}/references/{reference}`
641 &quot;resourceName&quot;: &quot;A String&quot;, # Name of the referenced resource in the following format: `organizations/{org}/environments/{env}/keystores/{keystore}` Only references to keystore resources are supported.
642 },
643 ],
644 &quot;resources&quot;: [ # List of resource versions in the environment.
645 {
646 &quot;location&quot;: &quot;A String&quot;, # Location of the resource as a URI.
647 &quot;name&quot;: &quot;A String&quot;, # Resource name in the following format: `organizations/{org}/environments/{env}/resourcefiles/{type}/{file}/revisions/{rev}` Only environment-scoped resource files are supported.
648 },
649 ],
650 &quot;revisionId&quot;: &quot;A String&quot;, # Revision ID of the environment configuration. The higher the value, the more recently the configuration was deployed.
651 &quot;sequenceNumber&quot;: &quot;A String&quot;, # DEPRECATED: Use revision_id.
652 &quot;targets&quot;: [ # List of target servers in the environment. Disabled target servers are not displayed.
653 {
654 &quot;enabled&quot;: True or False, # Whether the target server is enabled. An empty/omitted value for this field should be interpreted as true.
655 &quot;host&quot;: &quot;A String&quot;, # Host name of the target server.
656 &quot;name&quot;: &quot;A String&quot;, # Target server revision name in the following format: `organizations/{org}/environments/{env}/targetservers/{targetserver}/revisions/{rev}`
657 &quot;port&quot;: 42, # Port number for the target server.
658 &quot;protocol&quot;: &quot;A String&quot;, # The protocol used by this target server.
659 &quot;tlsInfo&quot;: { # TLS settings for the target server.
660 &quot;ciphers&quot;: [ # List of ciphers that are granted access.
661 &quot;A String&quot;,
662 ],
663 &quot;clientAuthEnabled&quot;: True or False, # Flag that specifies whether client-side authentication is enabled for the target server. Enables two-way TLS.
664 &quot;commonName&quot;: { # Common name to validate the target server against.
665 &quot;matchWildCards&quot;: True or False,
666 &quot;name&quot;: &quot;A String&quot;,
667 },
668 &quot;enabled&quot;: True or False, # Flag that specifies whether one-way TLS is enabled. Set to `true` to enable one-way TLS.
669 &quot;enforce&quot;: True or False, # Flag that enforces TLS settings
670 &quot;ignoreValidationErrors&quot;: True or False, # Flag that specifies whether to ignore TLS certificate validation errors. Set to `true` to ignore errors.
671 &quot;keyAlias&quot;: &quot;A String&quot;, # Name of the alias used for client-side authentication in the following format: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`
672 &quot;keyAliasReference&quot;: { # Reference name and alias pair to use for client-side authentication.
673 &quot;aliasId&quot;: &quot;A String&quot;, # Alias ID. Must exist in the keystore referred to by the reference.
674 &quot;reference&quot;: &quot;A String&quot;, # Reference name in the following format: `organizations/{org}/environments/{env}/references/{reference}`
675 },
676 &quot;protocols&quot;: [ # List of TLS protocols that are granted access.
677 &quot;A String&quot;,
678 ],
679 &quot;trustStore&quot;: &quot;A String&quot;, # Name of the keystore or keystore reference containing trusted certificates for the server in the following format: `organizations/{org}/environments/{env}/keystores/{keystore}` or `organizations/{org}/environments/{env}/references/{reference}`
680 },
681 },
682 ],
683 &quot;traceConfig&quot;: { # NEXT ID: 10 RuntimeTraceConfig defines the configurations for distributed trace in an environment. # Trace configurations. Contains config for the environment and config overrides for specific API proxies.
684 &quot;endpoint&quot;: &quot;A String&quot;, # Endpoint of the exporter.
685 &quot;exporter&quot;: &quot;A String&quot;, # Exporter that is used to view the distributed trace captured using OpenCensus. An exporter sends traces to any backend that is capable of consuming them. Recorded spans can be exported by registered exporters.
686 &quot;name&quot;: &quot;A String&quot;, # Name of the trace config in the following format: `organizations/{org}/environment/{env}/traceConfig`
687 &quot;openTelemetryProtocolEnabled&quot;: True or False, # Optional. If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send trace data. Configuration Requirements (if `open_telemetry_protocol_enabled` is `true`): - Allowed `Exporter`s: `CLOUD_TRACE` or `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is `OPEN_TELEMETRY_COLLECTOR`: - `endpoint` refers to a valid OTLP collector URL. - If `Exporter` is `CLOUD_TRACE`: - `endpoint` refers to a valid project ID Deprecated: Use trace_protocol instead.
688 &quot;overrides&quot;: [ # List of trace configuration overrides for spicific API proxies.
689 { # NEXT ID: 9 Trace configuration override for a specific API proxy in an environment.
690 &quot;apiProxy&quot;: &quot;A String&quot;, # Name of the API proxy that will have its trace configuration overridden following format: `organizations/{org}/apis/{api}`
691 &quot;name&quot;: &quot;A String&quot;, # Name of the trace config override in the following format: `organizations/{org}/environment/{env}/traceConfig/overrides/{override}`
692 &quot;openTelemetryProtocolEnabled&quot;: True or False, # Optional. If `true`, the runtime uses OpenTelemetry Protocol (OTLP) to send trace data. Configuration Requirements (if `open_telemetry_protocol_enabled` is `true`): - Allowed `Exporter`s: `CLOUD_TRACE` or `OPEN_TELEMETRY_COLLECTOR`. - If `Exporter` is `OPEN_TELEMETRY_COLLECTOR`: - `endpoint` refers to a valid OTLP collector URL. - If `Exporter` is `CLOUD_TRACE`: - `endpoint` refers to a valid project ID Deprecated: Use trace_protocol instead.
693 &quot;revisionCreateTime&quot;: &quot;A String&quot;, # The timestamp that the revision was created or updated.
694 &quot;revisionId&quot;: &quot;A String&quot;, # Revision number which can be used by the runtime to detect if the trace config override has changed between two versions.
695 &quot;samplingConfig&quot;: { # NEXT ID: 3 RuntimeTraceSamplingConfig represents the detail settings of distributed tracing. Only the fields that are defined in the distributed trace configuration can be overridden using the distribute trace configuration override APIs. # Trace configuration override for a specific API proxy in an environment.
696 &quot;sampler&quot;: &quot;A String&quot;, # Sampler of distributed tracing. OFF is the default value.
697 &quot;samplingRate&quot;: 3.14, # Field sampling rate. This value is only applicable when using the PROBABILITY sampler. The supported values are &gt; 0 and &lt;= 0.5.
698 },
699 &quot;traceProtocol&quot;: &quot;A String&quot;, # Optional. The trace protocol to use.
700 &quot;uid&quot;: &quot;A String&quot;, # Unique ID for the configuration override. The ID will only change if the override is deleted and recreated. Corresponds to name&#x27;s &quot;override&quot; field.
701 },
702 ],
703 &quot;revisionCreateTime&quot;: &quot;A String&quot;, # The timestamp that the revision was created or updated.
704 &quot;revisionId&quot;: &quot;A String&quot;, # Revision number which can be used by the runtime to detect if the trace config has changed between two versions.
705 &quot;samplingConfig&quot;: { # NEXT ID: 3 RuntimeTraceSamplingConfig represents the detail settings of distributed tracing. Only the fields that are defined in the distributed trace configuration can be overridden using the distribute trace configuration override APIs. # Trace configuration for all API proxies in an environment.
706 &quot;sampler&quot;: &quot;A String&quot;, # Sampler of distributed tracing. OFF is the default value.
707 &quot;samplingRate&quot;: 3.14, # Field sampling rate. This value is only applicable when using the PROBABILITY sampler. The supported values are &gt; 0 and &lt;= 0.5.
708 },
709 &quot;traceProtocol&quot;: &quot;A String&quot;, # Optional. The trace protocol to use.
710 },
711 &quot;uid&quot;: &quot;A String&quot;, # Unique ID for the environment configuration. The ID will only change if the environment is deleted and recreated.
712 }</pre>
713 </div>
714
715 <div class="method">
716 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
717 <pre>Gets the IAM policy on an environment. For more information, see [Manage users, roles, and permissions using the API](https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles). You must have the `apigee.environments.getIamPolicy` permission to call this API.
718
719 Args:
720 resource: string, REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. (required)
721 options_requestedPolicyVersion: integer, Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
722 x__xgafv: string, V1 error format.
723 Allowed values
724 1 - v1 error format
725 2 - v2 error format
726
727 Returns:
728 An object of the form:
729
730 { # 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`, or principals, to a single `role`. Principals 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:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&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:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] 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/).
731 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
732 { # 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:[email protected]&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:[email protected]&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `[email protected]` from DATA_READ logging, and `[email protected]` from DATA_WRITE logging.
733 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
734 { # 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:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting [email protected] from DATA_READ logging.
735 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
736 &quot;A String&quot;,
737 ],
738 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
739 },
740 ],
741 &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.
742 },
743 ],
744 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with 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 principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
745 { # Associates `members`, or principals, with a `role`.
746 &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 principals 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).
747 &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.
748 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
749 &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.
750 &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.
751 },
752 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud 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. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?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, `[email protected]?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, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
753 &quot;A String&quot;,
754 ],
755 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
756 },
757 ],
758 &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.
759 &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).
760 }</pre>
761 </div>
762
763 <div class="method">
764 <code class="details" id="getSecurityActionsConfig">getSecurityActionsConfig(name, x__xgafv=None)</code>
765 <pre>GetSecurityActionConfig returns the current SecurityActions configuration.
766
767 Args:
768 name: string, Required. The name of the SecurityActionsConfig to retrieve. This will always be: `organizations/{org}/environments/{env}/security_actions_config` (required)
769 x__xgafv: string, V1 error format.
770 Allowed values
771 1 - v1 error format
772 2 - v2 error format
773
774 Returns:
775 An object of the form:
776
777 { # SecurityActionsConfig reflects the current state of the SecurityActions feature. This is a singleton resource: https://google.aip.dev/156
778 &quot;enabled&quot;: True or False, # The flag that controls whether this feature is enabled. This is `unset` by default. When this flag is `false`, even if individual rules are enabled, no SecurityActions will be enforced.
779 &quot;name&quot;: &quot;A String&quot;, # This is a singleton resource, the name will always be set by SecurityActions and any user input will be ignored. The name is always: `organizations/{org}/environments/{env}/security_actions_config`
780 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The update time for configuration.
781 }</pre>
782 </div>
783
784 <div class="method">
785 <code class="details" id="getTraceConfig">getTraceConfig(name, x__xgafv=None)</code>
786 <pre>Get distributed trace configuration in an environment.
787
788 Args:
789 name: string, Required. Name of the trace configuration. Use the following structure in your request: &quot;organizations/*/environments/*/traceConfig&quot;. (required)
790 x__xgafv: string, V1 error format.
791 Allowed values
792 1 - v1 error format
793 2 - v2 error format
794
795 Returns:
796 An object of the form:
797
798 { # TraceConfig defines the configurations in an environment of distributed trace.
799 &quot;endpoint&quot;: &quot;A String&quot;, # Required. Endpoint of the exporter.
800 &quot;exporter&quot;: &quot;A String&quot;, # Required. Exporter that is used to view the distributed trace captured using the chosen trace protocol. An exporter sends traces to any backend that is capable of consuming them. Recorded spans can be exported by registered exporters.
801 &quot;samplingConfig&quot;: { # TraceSamplingConfig represents the detail settings of distributed tracing. Only the fields that are defined in the distributed trace configuration can be overridden using the distribute trace configuration override APIs. # Distributed trace configuration for all API proxies in an environment. You can also override the configuration for a specific API proxy using the distributed trace configuration overrides API.
802 &quot;sampler&quot;: &quot;A String&quot;, # Sampler of distributed tracing. OFF is the default value.
803 &quot;samplingRate&quot;: 3.14, # Field sampling rate. This value is only applicable when using the PROBABILITY sampler. The supported values are &gt; 0 and &lt;= 0.5.
804 },
805 }</pre>
806 </div>
807
808 <div class="method">
809 <code class="details" id="modifyEnvironment">modifyEnvironment(name, body=None, updateMask=None, x__xgafv=None)</code>
810 <pre>Updates properties for an Apigee environment with patch semantics using a field mask. **Note:** Not supported for Apigee hybrid.
811
812 Args:
813 name: string, Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{environment}`. (required)
814 body: object, The request body.
815 The object takes the form of:
816
817 {
818 &quot;apiProxyType&quot;: &quot;A String&quot;, # Optional. API Proxy type supported by the environment. The type can be set when creating the Environment and cannot be changed.
819 &quot;clientIpResolutionConfig&quot;: { # Configuration for resolving the client ip. # Optional. The algorithm to resolve IP. This will affect Analytics, API Security, and other features that use the client ip. To remove a client ip resolution config, update the field to an empty value. Example: &#x27;{ &quot;clientIpResolutionConfig&quot; = {} }&#x27; For more information, see: https://cloud.google.com/apigee/docs/api-platform/system-administration/client-ip-resolution.
820 &quot;headerIndexAlgorithm&quot;: { # Resolves the client ip based on a custom header. # Resolves the client ip based on a custom header.
821 &quot;ipHeaderIndex&quot;: 42, # Required. The index of the ip in the header. Positive indices 0, 1, 2, 3 chooses indices from the left (first ips) Negative indices -1, -2, -3 chooses indices from the right (last ips)
822 &quot;ipHeaderName&quot;: &quot;A String&quot;, # Required. The name of the header to extract the client ip from.
823 },
824 },
825 &quot;createdAt&quot;: &quot;A String&quot;, # Output only. Creation time of this environment as milliseconds since epoch.
826 &quot;deploymentType&quot;: &quot;A String&quot;, # Optional. Deployment type supported by the environment. The deployment type can be set when creating the environment and cannot be changed. When you enable archive deployment, you will be **prevented from performing** a [subset of actions](/apigee/docs/api-platform/local-development/overview#prevented-actions) within the environment, including: * Managing the deployment of API proxy or shared flow revisions * Creating, updating, or deleting resource files * Creating, updating, or deleting target servers
827 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the environment.
828 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name for this environment.
829 &quot;forwardProxyUri&quot;: &quot;A String&quot;, # Optional. URI of the forward proxy to be applied to the runtime instances in this environment. Must be in the format of {scheme}://{hostname}:{port}. Note that the only supported scheme is &quot;http&quot;. The port must be supplied. To remove a forward proxy setting, update the field to an empty value. Note: At this time, PUT operations to add forwardProxyUri to an existing environment fail if the environment has nodeConfig set up. To successfully add the forwardProxyUri setting in this case, include the NodeConfig details with the request.
830 &quot;hasAttachedFlowHooks&quot;: True or False,
831 &quot;lastModifiedAt&quot;: &quot;A String&quot;, # Output only. Last modification time of this environment as milliseconds since epoch.
832 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the environment. Values must match the regular expression `^[.\\p{Alnum}-_]{1,255}$`
833 &quot;nodeConfig&quot;: { # NodeConfig for setting the min/max number of nodes associated with the environment. # Optional. NodeConfig of the environment.
834 &quot;currentAggregateNodeCount&quot;: &quot;A String&quot;, # Output only. The current total number of gateway nodes that each environment currently has across all instances.
835 &quot;maxNodeCount&quot;: &quot;A String&quot;, # Optional. The maximum total number of gateway nodes that the is reserved for all instances that has the specified environment. If not specified, the default is determined by the recommended maximum number of nodes for that gateway.
836 &quot;minNodeCount&quot;: &quot;A String&quot;, # Optional. The minimum total number of gateway nodes that the is reserved for all instances that has the specified environment. If not specified, the default is determined by the recommended minimum number of nodes for that gateway.
837 },
838 &quot;properties&quot;: { # Message for compatibility with legacy Edge specification for Java Properties object in JSON. # Optional. Key-value pairs that may be used for customizing the environment.
839 &quot;property&quot;: [ # List of all properties in the object
840 { # A single property entry in the Properties message.
841 &quot;name&quot;: &quot;A String&quot;, # The property key
842 &quot;value&quot;: &quot;A String&quot;, # The property value
843 },
844 ],
845 },
846 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the environment. Values other than ACTIVE means the resource is not ready to use.
847 &quot;type&quot;: &quot;A String&quot;, # Optional. EnvironmentType selected for the environment.
848 }
849
850 updateMask: string, List of fields to be updated. Fields that can be updated: node_config.
851 x__xgafv: string, V1 error format.
852 Allowed values
853 1 - v1 error format
854 2 - v2 error format
855
856 Returns:
857 An object of the form:
858
859 { # This resource represents a long-running operation that is the result of a network API call.
860 &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.
861 &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.
862 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
863 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
864 {
865 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
866 },
867 ],
868 &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.
869 },
870 &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.
871 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
872 },
873 &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}`.
874 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
875 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
876 },
877 }</pre>
878 </div>
879
880 <div class="method">
881 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
882 <pre>Sets the IAM policy on an environment, if the policy already exists it will be replaced. For more information, see [Manage users, roles, and permissions using the API](https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles). You must have the `apigee.environments.setIamPolicy` permission to call this API.
883
884 Args:
885 resource: string, REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. (required)
886 body: object, The request body.
887 The object takes the form of:
888
889 { # Request message for `SetIamPolicy` method.
890 &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`, or principals, to a single `role`. Principals 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:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&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:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] 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 Google Cloud services (such as Projects) might reject them.
891 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
892 { # 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:[email protected]&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:[email protected]&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `[email protected]` from DATA_READ logging, and `[email protected]` from DATA_WRITE logging.
893 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
894 { # 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:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting [email protected] from DATA_READ logging.
895 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
896 &quot;A String&quot;,
897 ],
898 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
899 },
900 ],
901 &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.
902 },
903 ],
904 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with 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 principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
905 { # Associates `members`, or principals, with a `role`.
906 &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 principals 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).
907 &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.
908 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
909 &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.
910 &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.
911 },
912 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud 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. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?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, `[email protected]?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, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
913 &quot;A String&quot;,
914 ],
915 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
916 },
917 ],
918 &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.
919 &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).
920 },
921 &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;`
922 }
923
924 x__xgafv: string, V1 error format.
925 Allowed values
926 1 - v1 error format
927 2 - v2 error format
928
929 Returns:
930 An object of the form:
931
932 { # 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`, or principals, to a single `role`. Principals 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:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&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:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] 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/).
933 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
934 { # 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:[email protected]&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:[email protected]&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `[email protected]` from DATA_READ logging, and `[email protected]` from DATA_WRITE logging.
935 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
936 { # 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:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting [email protected] from DATA_READ logging.
937 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
938 &quot;A String&quot;,
939 ],
940 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
941 },
942 ],
943 &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.
944 },
945 ],
946 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with 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 principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
947 { # Associates `members`, or principals, with a `role`.
948 &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 principals 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).
949 &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.
950 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
951 &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.
952 &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.
953 },
954 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud 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. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?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, `[email protected]?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, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
955 &quot;A String&quot;,
956 ],
957 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
958 },
959 ],
960 &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.
961 &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).
962 }</pre>
963 </div>
964
965 <div class="method">
966 <code class="details" id="subscribe">subscribe(parent, x__xgafv=None)</code>
967 <pre>Creates a subscription for the environment&#x27;s Pub/Sub topic. The server will assign a random name for this subscription. The &quot;name&quot; and &quot;push_config&quot; must *not* be specified.
968
969 Args:
970 parent: string, Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}` (required)
971 x__xgafv: string, V1 error format.
972 Allowed values
973 1 - v1 error format
974 2 - v2 error format
975
976 Returns:
977 An object of the form:
978
979 { # Pub/Sub subscription of an environment.
980 &quot;name&quot;: &quot;A String&quot;, # Full name of the Pub/Sub subcription. Use the following structure in your request: `subscription &quot;projects/foo/subscription/bar&quot;`
981 }</pre>
982 </div>
983
984 <div class="method">
985 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
986 <pre>Tests the permissions of a user on an environment, and returns a subset of permissions that the user has on the environment. If the environment does not exist, an empty permission set is returned (a NOT_FOUND error is not returned).
987
988 Args:
989 resource: string, REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. (required)
990 body: object, The request body.
991 The object takes the form of:
992
993 { # Request message for `TestIamPermissions` method.
994 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
995 &quot;A String&quot;,
996 ],
997 }
998
999 x__xgafv: string, V1 error format.
1000 Allowed values
1001 1 - v1 error format
1002 2 - v2 error format
1003
1004 Returns:
1005 An object of the form:
1006
1007 { # Response message for `TestIamPermissions` method.
1008 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1009 &quot;A String&quot;,
1010 ],
1011 }</pre>
1012 </div>
1013
1014 <div class="method">
1015 <code class="details" id="unsubscribe">unsubscribe(parent, body=None, x__xgafv=None)</code>
1016 <pre>Deletes a subscription for the environment&#x27;s Pub/Sub topic.
1017
1018 Args:
1019 parent: string, Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}` (required)
1020 body: object, The request body.
1021 The object takes the form of:
1022
1023 { # Pub/Sub subscription of an environment.
1024 &quot;name&quot;: &quot;A String&quot;, # Full name of the Pub/Sub subcription. Use the following structure in your request: `subscription &quot;projects/foo/subscription/bar&quot;`
1025 }
1026
1027 x__xgafv: string, V1 error format.
1028 Allowed values
1029 1 - v1 error format
1030 2 - v2 error format
1031
1032 Returns:
1033 An object of the form:
1034
1035 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
1036 }</pre>
1037 </div>
1038
1039 <div class="method">
1040 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
1041 <pre>Updates an existing environment. When updating properties, you must pass all existing properties to the API, even if they are not being changed. If you omit properties from the payload, the properties are removed. To get the current list of properties for the environment, use the [Get Environment API](get). **Note**: Both `PUT` and `POST` methods are supported for updating an existing environment.
1042
1043 Args:
1044 name: string, Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}` (required)
1045 body: object, The request body.
1046 The object takes the form of:
1047
1048 {
1049 &quot;apiProxyType&quot;: &quot;A String&quot;, # Optional. API Proxy type supported by the environment. The type can be set when creating the Environment and cannot be changed.
1050 &quot;clientIpResolutionConfig&quot;: { # Configuration for resolving the client ip. # Optional. The algorithm to resolve IP. This will affect Analytics, API Security, and other features that use the client ip. To remove a client ip resolution config, update the field to an empty value. Example: &#x27;{ &quot;clientIpResolutionConfig&quot; = {} }&#x27; For more information, see: https://cloud.google.com/apigee/docs/api-platform/system-administration/client-ip-resolution.
1051 &quot;headerIndexAlgorithm&quot;: { # Resolves the client ip based on a custom header. # Resolves the client ip based on a custom header.
1052 &quot;ipHeaderIndex&quot;: 42, # Required. The index of the ip in the header. Positive indices 0, 1, 2, 3 chooses indices from the left (first ips) Negative indices -1, -2, -3 chooses indices from the right (last ips)
1053 &quot;ipHeaderName&quot;: &quot;A String&quot;, # Required. The name of the header to extract the client ip from.
1054 },
1055 },
1056 &quot;createdAt&quot;: &quot;A String&quot;, # Output only. Creation time of this environment as milliseconds since epoch.
1057 &quot;deploymentType&quot;: &quot;A String&quot;, # Optional. Deployment type supported by the environment. The deployment type can be set when creating the environment and cannot be changed. When you enable archive deployment, you will be **prevented from performing** a [subset of actions](/apigee/docs/api-platform/local-development/overview#prevented-actions) within the environment, including: * Managing the deployment of API proxy or shared flow revisions * Creating, updating, or deleting resource files * Creating, updating, or deleting target servers
1058 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the environment.
1059 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name for this environment.
1060 &quot;forwardProxyUri&quot;: &quot;A String&quot;, # Optional. URI of the forward proxy to be applied to the runtime instances in this environment. Must be in the format of {scheme}://{hostname}:{port}. Note that the only supported scheme is &quot;http&quot;. The port must be supplied. To remove a forward proxy setting, update the field to an empty value. Note: At this time, PUT operations to add forwardProxyUri to an existing environment fail if the environment has nodeConfig set up. To successfully add the forwardProxyUri setting in this case, include the NodeConfig details with the request.
1061 &quot;hasAttachedFlowHooks&quot;: True or False,
1062 &quot;lastModifiedAt&quot;: &quot;A String&quot;, # Output only. Last modification time of this environment as milliseconds since epoch.
1063 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the environment. Values must match the regular expression `^[.\\p{Alnum}-_]{1,255}$`
1064 &quot;nodeConfig&quot;: { # NodeConfig for setting the min/max number of nodes associated with the environment. # Optional. NodeConfig of the environment.
1065 &quot;currentAggregateNodeCount&quot;: &quot;A String&quot;, # Output only. The current total number of gateway nodes that each environment currently has across all instances.
1066 &quot;maxNodeCount&quot;: &quot;A String&quot;, # Optional. The maximum total number of gateway nodes that the is reserved for all instances that has the specified environment. If not specified, the default is determined by the recommended maximum number of nodes for that gateway.
1067 &quot;minNodeCount&quot;: &quot;A String&quot;, # Optional. The minimum total number of gateway nodes that the is reserved for all instances that has the specified environment. If not specified, the default is determined by the recommended minimum number of nodes for that gateway.
1068 },
1069 &quot;properties&quot;: { # Message for compatibility with legacy Edge specification for Java Properties object in JSON. # Optional. Key-value pairs that may be used for customizing the environment.
1070 &quot;property&quot;: [ # List of all properties in the object
1071 { # A single property entry in the Properties message.
1072 &quot;name&quot;: &quot;A String&quot;, # The property key
1073 &quot;value&quot;: &quot;A String&quot;, # The property value
1074 },
1075 ],
1076 },
1077 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the environment. Values other than ACTIVE means the resource is not ready to use.
1078 &quot;type&quot;: &quot;A String&quot;, # Optional. EnvironmentType selected for the environment.
1079 }
1080
1081 x__xgafv: string, V1 error format.
1082 Allowed values
1083 1 - v1 error format
1084 2 - v2 error format
1085
1086 Returns:
1087 An object of the form:
1088
1089 {
1090 &quot;apiProxyType&quot;: &quot;A String&quot;, # Optional. API Proxy type supported by the environment. The type can be set when creating the Environment and cannot be changed.
1091 &quot;clientIpResolutionConfig&quot;: { # Configuration for resolving the client ip. # Optional. The algorithm to resolve IP. This will affect Analytics, API Security, and other features that use the client ip. To remove a client ip resolution config, update the field to an empty value. Example: &#x27;{ &quot;clientIpResolutionConfig&quot; = {} }&#x27; For more information, see: https://cloud.google.com/apigee/docs/api-platform/system-administration/client-ip-resolution.
1092 &quot;headerIndexAlgorithm&quot;: { # Resolves the client ip based on a custom header. # Resolves the client ip based on a custom header.
1093 &quot;ipHeaderIndex&quot;: 42, # Required. The index of the ip in the header. Positive indices 0, 1, 2, 3 chooses indices from the left (first ips) Negative indices -1, -2, -3 chooses indices from the right (last ips)
1094 &quot;ipHeaderName&quot;: &quot;A String&quot;, # Required. The name of the header to extract the client ip from.
1095 },
1096 },
1097 &quot;createdAt&quot;: &quot;A String&quot;, # Output only. Creation time of this environment as milliseconds since epoch.
1098 &quot;deploymentType&quot;: &quot;A String&quot;, # Optional. Deployment type supported by the environment. The deployment type can be set when creating the environment and cannot be changed. When you enable archive deployment, you will be **prevented from performing** a [subset of actions](/apigee/docs/api-platform/local-development/overview#prevented-actions) within the environment, including: * Managing the deployment of API proxy or shared flow revisions * Creating, updating, or deleting resource files * Creating, updating, or deleting target servers
1099 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the environment.
1100 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name for this environment.
1101 &quot;forwardProxyUri&quot;: &quot;A String&quot;, # Optional. URI of the forward proxy to be applied to the runtime instances in this environment. Must be in the format of {scheme}://{hostname}:{port}. Note that the only supported scheme is &quot;http&quot;. The port must be supplied. To remove a forward proxy setting, update the field to an empty value. Note: At this time, PUT operations to add forwardProxyUri to an existing environment fail if the environment has nodeConfig set up. To successfully add the forwardProxyUri setting in this case, include the NodeConfig details with the request.
1102 &quot;hasAttachedFlowHooks&quot;: True or False,
1103 &quot;lastModifiedAt&quot;: &quot;A String&quot;, # Output only. Last modification time of this environment as milliseconds since epoch.
1104 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the environment. Values must match the regular expression `^[.\\p{Alnum}-_]{1,255}$`
1105 &quot;nodeConfig&quot;: { # NodeConfig for setting the min/max number of nodes associated with the environment. # Optional. NodeConfig of the environment.
1106 &quot;currentAggregateNodeCount&quot;: &quot;A String&quot;, # Output only. The current total number of gateway nodes that each environment currently has across all instances.
1107 &quot;maxNodeCount&quot;: &quot;A String&quot;, # Optional. The maximum total number of gateway nodes that the is reserved for all instances that has the specified environment. If not specified, the default is determined by the recommended maximum number of nodes for that gateway.
1108 &quot;minNodeCount&quot;: &quot;A String&quot;, # Optional. The minimum total number of gateway nodes that the is reserved for all instances that has the specified environment. If not specified, the default is determined by the recommended minimum number of nodes for that gateway.
1109 },
1110 &quot;properties&quot;: { # Message for compatibility with legacy Edge specification for Java Properties object in JSON. # Optional. Key-value pairs that may be used for customizing the environment.
1111 &quot;property&quot;: [ # List of all properties in the object
1112 { # A single property entry in the Properties message.
1113 &quot;name&quot;: &quot;A String&quot;, # The property key
1114 &quot;value&quot;: &quot;A String&quot;, # The property value
1115 },
1116 ],
1117 },
1118 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the environment. Values other than ACTIVE means the resource is not ready to use.
1119 &quot;type&quot;: &quot;A String&quot;, # Optional. EnvironmentType selected for the environment.
1120 }</pre>
1121 </div>
1122
1123 <div class="method">
1124 <code class="details" id="updateDebugmask">updateDebugmask(name, body=None, replaceRepeatedFields=None, updateMask=None, x__xgafv=None)</code>
1125 <pre>Updates the debug mask singleton resource for an environment.
1126
1127 Args:
1128 name: string, Name of the debug mask. (required)
1129 body: object, The request body.
1130 The object takes the form of:
1131
1132 {
1133 &quot;faultJSONPaths&quot;: [ # List of JSON paths that specify the JSON elements to be filtered from JSON payloads in error flows.
1134 &quot;A String&quot;,
1135 ],
1136 &quot;faultXPaths&quot;: [ # List of XPaths that specify the XML elements to be filtered from XML payloads in error flows.
1137 &quot;A String&quot;,
1138 ],
1139 &quot;name&quot;: &quot;A String&quot;, # Name of the debug mask.
1140 &quot;namespaces&quot;: { # Map of namespaces to URIs.
1141 &quot;a_key&quot;: &quot;A String&quot;,
1142 },
1143 &quot;requestJSONPaths&quot;: [ # List of JSON paths that specify the JSON elements to be filtered from JSON request message payloads.
1144 &quot;A String&quot;,
1145 ],
1146 &quot;requestXPaths&quot;: [ # List of XPaths that specify the XML elements to be filtered from XML request message payloads.
1147 &quot;A String&quot;,
1148 ],
1149 &quot;responseJSONPaths&quot;: [ # List of JSON paths that specify the JSON elements to be filtered from JSON response message payloads.
1150 &quot;A String&quot;,
1151 ],
1152 &quot;responseXPaths&quot;: [ # List of XPaths that specify the XML elements to be filtered from XML response message payloads.
1153 &quot;A String&quot;,
1154 ],
1155 &quot;variables&quot;: [ # List of variables that should be masked from the debug output.
1156 &quot;A String&quot;,
1157 ],
1158 }
1159
1160 replaceRepeatedFields: boolean, Boolean flag that specifies whether to replace existing values in the debug mask when doing an update. Set to true to replace existing values. The default behavior is to append the values (false).
1161 updateMask: string, Field debug mask to support partial updates.
1162 x__xgafv: string, V1 error format.
1163 Allowed values
1164 1 - v1 error format
1165 2 - v2 error format
1166
1167 Returns:
1168 An object of the form:
1169
1170 {
1171 &quot;faultJSONPaths&quot;: [ # List of JSON paths that specify the JSON elements to be filtered from JSON payloads in error flows.
1172 &quot;A String&quot;,
1173 ],
1174 &quot;faultXPaths&quot;: [ # List of XPaths that specify the XML elements to be filtered from XML payloads in error flows.
1175 &quot;A String&quot;,
1176 ],
1177 &quot;name&quot;: &quot;A String&quot;, # Name of the debug mask.
1178 &quot;namespaces&quot;: { # Map of namespaces to URIs.
1179 &quot;a_key&quot;: &quot;A String&quot;,
1180 },
1181 &quot;requestJSONPaths&quot;: [ # List of JSON paths that specify the JSON elements to be filtered from JSON request message payloads.
1182 &quot;A String&quot;,
1183 ],
1184 &quot;requestXPaths&quot;: [ # List of XPaths that specify the XML elements to be filtered from XML request message payloads.
1185 &quot;A String&quot;,
1186 ],
1187 &quot;responseJSONPaths&quot;: [ # List of JSON paths that specify the JSON elements to be filtered from JSON response message payloads.
1188 &quot;A String&quot;,
1189 ],
1190 &quot;responseXPaths&quot;: [ # List of XPaths that specify the XML elements to be filtered from XML response message payloads.
1191 &quot;A String&quot;,
1192 ],
1193 &quot;variables&quot;: [ # List of variables that should be masked from the debug output.
1194 &quot;A String&quot;,
1195 ],
1196 }</pre>
1197 </div>
1198
1199 <div class="method">
1200 <code class="details" id="updateEnvironment">updateEnvironment(name, body=None, x__xgafv=None)</code>
1201 <pre>Updates an existing environment. When updating properties, you must pass all existing properties to the API, even if they are not being changed. If you omit properties from the payload, the properties are removed. To get the current list of properties for the environment, use the [Get Environment API](get). **Note**: Both `PUT` and `POST` methods are supported for updating an existing environment.
1202
1203 Args:
1204 name: string, Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}` (required)
1205 body: object, The request body.
1206 The object takes the form of:
1207
1208 {
1209 &quot;apiProxyType&quot;: &quot;A String&quot;, # Optional. API Proxy type supported by the environment. The type can be set when creating the Environment and cannot be changed.
1210 &quot;clientIpResolutionConfig&quot;: { # Configuration for resolving the client ip. # Optional. The algorithm to resolve IP. This will affect Analytics, API Security, and other features that use the client ip. To remove a client ip resolution config, update the field to an empty value. Example: &#x27;{ &quot;clientIpResolutionConfig&quot; = {} }&#x27; For more information, see: https://cloud.google.com/apigee/docs/api-platform/system-administration/client-ip-resolution.
1211 &quot;headerIndexAlgorithm&quot;: { # Resolves the client ip based on a custom header. # Resolves the client ip based on a custom header.
1212 &quot;ipHeaderIndex&quot;: 42, # Required. The index of the ip in the header. Positive indices 0, 1, 2, 3 chooses indices from the left (first ips) Negative indices -1, -2, -3 chooses indices from the right (last ips)
1213 &quot;ipHeaderName&quot;: &quot;A String&quot;, # Required. The name of the header to extract the client ip from.
1214 },
1215 },
1216 &quot;createdAt&quot;: &quot;A String&quot;, # Output only. Creation time of this environment as milliseconds since epoch.
1217 &quot;deploymentType&quot;: &quot;A String&quot;, # Optional. Deployment type supported by the environment. The deployment type can be set when creating the environment and cannot be changed. When you enable archive deployment, you will be **prevented from performing** a [subset of actions](/apigee/docs/api-platform/local-development/overview#prevented-actions) within the environment, including: * Managing the deployment of API proxy or shared flow revisions * Creating, updating, or deleting resource files * Creating, updating, or deleting target servers
1218 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the environment.
1219 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name for this environment.
1220 &quot;forwardProxyUri&quot;: &quot;A String&quot;, # Optional. URI of the forward proxy to be applied to the runtime instances in this environment. Must be in the format of {scheme}://{hostname}:{port}. Note that the only supported scheme is &quot;http&quot;. The port must be supplied. To remove a forward proxy setting, update the field to an empty value. Note: At this time, PUT operations to add forwardProxyUri to an existing environment fail if the environment has nodeConfig set up. To successfully add the forwardProxyUri setting in this case, include the NodeConfig details with the request.
1221 &quot;hasAttachedFlowHooks&quot;: True or False,
1222 &quot;lastModifiedAt&quot;: &quot;A String&quot;, # Output only. Last modification time of this environment as milliseconds since epoch.
1223 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the environment. Values must match the regular expression `^[.\\p{Alnum}-_]{1,255}$`
1224 &quot;nodeConfig&quot;: { # NodeConfig for setting the min/max number of nodes associated with the environment. # Optional. NodeConfig of the environment.
1225 &quot;currentAggregateNodeCount&quot;: &quot;A String&quot;, # Output only. The current total number of gateway nodes that each environment currently has across all instances.
1226 &quot;maxNodeCount&quot;: &quot;A String&quot;, # Optional. The maximum total number of gateway nodes that the is reserved for all instances that has the specified environment. If not specified, the default is determined by the recommended maximum number of nodes for that gateway.
1227 &quot;minNodeCount&quot;: &quot;A String&quot;, # Optional. The minimum total number of gateway nodes that the is reserved for all instances that has the specified environment. If not specified, the default is determined by the recommended minimum number of nodes for that gateway.
1228 },
1229 &quot;properties&quot;: { # Message for compatibility with legacy Edge specification for Java Properties object in JSON. # Optional. Key-value pairs that may be used for customizing the environment.
1230 &quot;property&quot;: [ # List of all properties in the object
1231 { # A single property entry in the Properties message.
1232 &quot;name&quot;: &quot;A String&quot;, # The property key
1233 &quot;value&quot;: &quot;A String&quot;, # The property value
1234 },
1235 ],
1236 },
1237 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the environment. Values other than ACTIVE means the resource is not ready to use.
1238 &quot;type&quot;: &quot;A String&quot;, # Optional. EnvironmentType selected for the environment.
1239 }
1240
1241 x__xgafv: string, V1 error format.
1242 Allowed values
1243 1 - v1 error format
1244 2 - v2 error format
1245
1246 Returns:
1247 An object of the form:
1248
1249 {
1250 &quot;apiProxyType&quot;: &quot;A String&quot;, # Optional. API Proxy type supported by the environment. The type can be set when creating the Environment and cannot be changed.
1251 &quot;clientIpResolutionConfig&quot;: { # Configuration for resolving the client ip. # Optional. The algorithm to resolve IP. This will affect Analytics, API Security, and other features that use the client ip. To remove a client ip resolution config, update the field to an empty value. Example: &#x27;{ &quot;clientIpResolutionConfig&quot; = {} }&#x27; For more information, see: https://cloud.google.com/apigee/docs/api-platform/system-administration/client-ip-resolution.
1252 &quot;headerIndexAlgorithm&quot;: { # Resolves the client ip based on a custom header. # Resolves the client ip based on a custom header.
1253 &quot;ipHeaderIndex&quot;: 42, # Required. The index of the ip in the header. Positive indices 0, 1, 2, 3 chooses indices from the left (first ips) Negative indices -1, -2, -3 chooses indices from the right (last ips)
1254 &quot;ipHeaderName&quot;: &quot;A String&quot;, # Required. The name of the header to extract the client ip from.
1255 },
1256 },
1257 &quot;createdAt&quot;: &quot;A String&quot;, # Output only. Creation time of this environment as milliseconds since epoch.
1258 &quot;deploymentType&quot;: &quot;A String&quot;, # Optional. Deployment type supported by the environment. The deployment type can be set when creating the environment and cannot be changed. When you enable archive deployment, you will be **prevented from performing** a [subset of actions](/apigee/docs/api-platform/local-development/overview#prevented-actions) within the environment, including: * Managing the deployment of API proxy or shared flow revisions * Creating, updating, or deleting resource files * Creating, updating, or deleting target servers
1259 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the environment.
1260 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name for this environment.
1261 &quot;forwardProxyUri&quot;: &quot;A String&quot;, # Optional. URI of the forward proxy to be applied to the runtime instances in this environment. Must be in the format of {scheme}://{hostname}:{port}. Note that the only supported scheme is &quot;http&quot;. The port must be supplied. To remove a forward proxy setting, update the field to an empty value. Note: At this time, PUT operations to add forwardProxyUri to an existing environment fail if the environment has nodeConfig set up. To successfully add the forwardProxyUri setting in this case, include the NodeConfig details with the request.
1262 &quot;hasAttachedFlowHooks&quot;: True or False,
1263 &quot;lastModifiedAt&quot;: &quot;A String&quot;, # Output only. Last modification time of this environment as milliseconds since epoch.
1264 &quot;name&quot;: &quot;A String&quot;, # Required. Name of the environment. Values must match the regular expression `^[.\\p{Alnum}-_]{1,255}$`
1265 &quot;nodeConfig&quot;: { # NodeConfig for setting the min/max number of nodes associated with the environment. # Optional. NodeConfig of the environment.
1266 &quot;currentAggregateNodeCount&quot;: &quot;A String&quot;, # Output only. The current total number of gateway nodes that each environment currently has across all instances.
1267 &quot;maxNodeCount&quot;: &quot;A String&quot;, # Optional. The maximum total number of gateway nodes that the is reserved for all instances that has the specified environment. If not specified, the default is determined by the recommended maximum number of nodes for that gateway.
1268 &quot;minNodeCount&quot;: &quot;A String&quot;, # Optional. The minimum total number of gateway nodes that the is reserved for all instances that has the specified environment. If not specified, the default is determined by the recommended minimum number of nodes for that gateway.
1269 },
1270 &quot;properties&quot;: { # Message for compatibility with legacy Edge specification for Java Properties object in JSON. # Optional. Key-value pairs that may be used for customizing the environment.
1271 &quot;property&quot;: [ # List of all properties in the object
1272 { # A single property entry in the Properties message.
1273 &quot;name&quot;: &quot;A String&quot;, # The property key
1274 &quot;value&quot;: &quot;A String&quot;, # The property value
1275 },
1276 ],
1277 },
1278 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the environment. Values other than ACTIVE means the resource is not ready to use.
1279 &quot;type&quot;: &quot;A String&quot;, # Optional. EnvironmentType selected for the environment.
1280 }</pre>
1281 </div>
1282
1283 <div class="method">
1284 <code class="details" id="updateSecurityActionsConfig">updateSecurityActionsConfig(name, body=None, updateMask=None, x__xgafv=None)</code>
1285 <pre>UpdateSecurityActionConfig updates the current SecurityActions configuration. This method is used to enable/disable the feature at the environment level.
1286
1287 Args:
1288 name: string, This is a singleton resource, the name will always be set by SecurityActions and any user input will be ignored. The name is always: `organizations/{org}/environments/{env}/security_actions_config` (required)
1289 body: object, The request body.
1290 The object takes the form of:
1291
1292 { # SecurityActionsConfig reflects the current state of the SecurityActions feature. This is a singleton resource: https://google.aip.dev/156
1293 &quot;enabled&quot;: True or False, # The flag that controls whether this feature is enabled. This is `unset` by default. When this flag is `false`, even if individual rules are enabled, no SecurityActions will be enforced.
1294 &quot;name&quot;: &quot;A String&quot;, # This is a singleton resource, the name will always be set by SecurityActions and any user input will be ignored. The name is always: `organizations/{org}/environments/{env}/security_actions_config`
1295 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The update time for configuration.
1296 }
1297
1298 updateMask: string, The list of fields to update.
1299 x__xgafv: string, V1 error format.
1300 Allowed values
1301 1 - v1 error format
1302 2 - v2 error format
1303
1304 Returns:
1305 An object of the form:
1306
1307 { # SecurityActionsConfig reflects the current state of the SecurityActions feature. This is a singleton resource: https://google.aip.dev/156
1308 &quot;enabled&quot;: True or False, # The flag that controls whether this feature is enabled. This is `unset` by default. When this flag is `false`, even if individual rules are enabled, no SecurityActions will be enforced.
1309 &quot;name&quot;: &quot;A String&quot;, # This is a singleton resource, the name will always be set by SecurityActions and any user input will be ignored. The name is always: `organizations/{org}/environments/{env}/security_actions_config`
1310 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The update time for configuration.
1311 }</pre>
1312 </div>
1313
1314 <div class="method">
1315 <code class="details" id="updateTraceConfig">updateTraceConfig(name, body=None, updateMask=None, x__xgafv=None)</code>
1316 <pre>Updates the trace configurations in an environment. Note that the repeated fields have replace semantics when included in the field mask and that they will be overwritten by the value of the fields in the request body.
1317
1318 Args:
1319 name: string, Required. Name of the trace configuration. Use the following structure in your request: &quot;organizations/*/environments/*/traceConfig&quot;. (required)
1320 body: object, The request body.
1321 The object takes the form of:
1322
1323 { # TraceConfig defines the configurations in an environment of distributed trace.
1324 &quot;endpoint&quot;: &quot;A String&quot;, # Required. Endpoint of the exporter.
1325 &quot;exporter&quot;: &quot;A String&quot;, # Required. Exporter that is used to view the distributed trace captured using the chosen trace protocol. An exporter sends traces to any backend that is capable of consuming them. Recorded spans can be exported by registered exporters.
1326 &quot;samplingConfig&quot;: { # TraceSamplingConfig represents the detail settings of distributed tracing. Only the fields that are defined in the distributed trace configuration can be overridden using the distribute trace configuration override APIs. # Distributed trace configuration for all API proxies in an environment. You can also override the configuration for a specific API proxy using the distributed trace configuration overrides API.
1327 &quot;sampler&quot;: &quot;A String&quot;, # Sampler of distributed tracing. OFF is the default value.
1328 &quot;samplingRate&quot;: 3.14, # Field sampling rate. This value is only applicable when using the PROBABILITY sampler. The supported values are &gt; 0 and &lt;= 0.5.
1329 },
1330 }
1331
1332 updateMask: string, List of fields to be updated.
1333 x__xgafv: string, V1 error format.
1334 Allowed values
1335 1 - v1 error format
1336 2 - v2 error format
1337
1338 Returns:
1339 An object of the form:
1340
1341 { # TraceConfig defines the configurations in an environment of distributed trace.
1342 &quot;endpoint&quot;: &quot;A String&quot;, # Required. Endpoint of the exporter.
1343 &quot;exporter&quot;: &quot;A String&quot;, # Required. Exporter that is used to view the distributed trace captured using the chosen trace protocol. An exporter sends traces to any backend that is capable of consuming them. Recorded spans can be exported by registered exporters.
1344 &quot;samplingConfig&quot;: { # TraceSamplingConfig represents the detail settings of distributed tracing. Only the fields that are defined in the distributed trace configuration can be overridden using the distribute trace configuration override APIs. # Distributed trace configuration for all API proxies in an environment. You can also override the configuration for a specific API proxy using the distributed trace configuration overrides API.
1345 &quot;sampler&quot;: &quot;A String&quot;, # Sampler of distributed tracing. OFF is the default value.
1346 &quot;samplingRate&quot;: 3.14, # Field sampling rate. This value is only applicable when using the PROBABILITY sampler. The supported values are &gt; 0 and &lt;= 0.5.
1347 },
1348 }</pre>
1349 </div>
1350
1351 </body></html>