Debian Codegraph @

docs/dyn/aiplatform_v1beta1.reasoningEngines.sandboxEnvironmentTemplates.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="aiplatform_v1beta1.html">Agent Platform API</a> . <a href="aiplatform_v1beta1.reasoningEngines.html">reasoningEngines</a> . <a href="aiplatform_v1beta1.reasoningEngines.sandboxEnvironmentTemplates.html">sandboxEnvironmentTemplates</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="aiplatform_v1beta1.reasoningEngines.sandboxEnvironmentTemplates.operations.html">operations()</a></code>
79 </p>
80 <p class="firstline">Returns the operations Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Creates a SandboxEnvironmentTemplate in a given reasoning engine.</p>
88 <p class="toc_element">
89 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
90 <p class="firstline">Deletes the specific SandboxEnvironmentTemplate.</p>
91 <p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93 <p class="firstline">Gets details of the specific SandboxEnvironmentTemplate.</p>
94 <p class="toc_element">
95 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Lists SandboxEnvironmentTemplates in a given reasoning engine.</p>
97 <p class="toc_element">
98 <code><a href="#list_next">list_next()</a></code></p>
99 <p class="firstline">Retrieves the next page of results.</p>
100 <h3>Method Details</h3>
101 <div class="method">
102 <code class="details" id="close">close()</code>
103 <pre>Close httplib2 connections.</pre>
104 </div>
105
106 <div class="method">
107 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
108 <pre>Creates a SandboxEnvironmentTemplate in a given reasoning engine.
109
110 Args:
111 parent: string, Required. The resource name of the reasoning engine to create the SandboxEnvironmentTemplate in. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`. (required)
112 body: object, The request body.
113 The object takes the form of:
114
115 { # The specification of a SandboxEnvironmentTemplate. A SandboxEnvironmentTemplate defines a template for creating SandboxEnvironments.
116 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when this SandboxEnvironmentTemplate was created.
117 &quot;customContainerEnvironment&quot;: { # The customized sandbox runtime environment for BYOC. # The sandbox environment for custom container workloads.
118 &quot;customContainerSpec&quot;: { # Specification for deploying from a custom container image. # The specification of the custom container environment.
119 &quot;imageUri&quot;: &quot;A String&quot;, # Required. The Artifact Registry Docker image URI (e.g., us-central1-docker.pkg.dev/my-project/my-repo/my-image:tag) of the container image that is to be run on each worker replica.
120 },
121 &quot;ports&quot;: [ # Ports to expose from the container.
122 { # Represents a network port in a container.
123 &quot;port&quot;: 42, # Optional. Port number to expose. This must be a valid port number, between 1 and 65535.
124 &quot;protocol&quot;: &quot;A String&quot;, # Optional. Protocol for port. Defaults to TCP if not specified.
125 },
126 ],
127 &quot;resources&quot;: { # Message to define resource requests and limits (mirroring Kubernetes) for each sandbox instance created from this template. # Resource requests and limits for the container.
128 &quot;limits&quot;: { # Optional. The maximum amounts of compute resources allowed. Keys are resource names (e.g., &quot;cpu&quot;, &quot;memory&quot;). Values are quantities (e.g., &quot;500m&quot;, &quot;1Gi&quot;).
129 &quot;a_key&quot;: &quot;A String&quot;,
130 },
131 &quot;requests&quot;: { # Optional. The requested amounts of compute resources. Keys are resource names (e.g., &quot;cpu&quot;, &quot;memory&quot;). Values are quantities (e.g., &quot;250m&quot;, &quot;512Mi&quot;).
132 &quot;a_key&quot;: &quot;A String&quot;,
133 },
134 },
135 },
136 &quot;defaultContainerEnvironment&quot;: { # The default sandbox runtime environment for default container workloads. # The sandbox environment for default container workloads.
137 &quot;defaultContainerCategory&quot;: &quot;A String&quot;, # Required. The category of the default container image.
138 &quot;resources&quot;: { # Message to define resource requests and limits (mirroring Kubernetes) for each sandbox instance created from this template. # Optional. Resource requests and limits for the default container.
139 &quot;limits&quot;: { # Optional. The maximum amounts of compute resources allowed. Keys are resource names (e.g., &quot;cpu&quot;, &quot;memory&quot;). Values are quantities (e.g., &quot;500m&quot;, &quot;1Gi&quot;).
140 &quot;a_key&quot;: &quot;A String&quot;,
141 },
142 &quot;requests&quot;: { # Optional. The requested amounts of compute resources. Keys are resource names (e.g., &quot;cpu&quot;, &quot;memory&quot;). Values are quantities (e.g., &quot;250m&quot;, &quot;512Mi&quot;).
143 &quot;a_key&quot;: &quot;A String&quot;,
144 },
145 },
146 },
147 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the SandboxEnvironmentTemplate.
148 &quot;egressControlConfig&quot;: { # Configuration for egress control of sandbox instances. # Optional. The configuration for egress control of this template.
149 &quot;internetAccess&quot;: True or False, # Optional. Whether to allow internet access.
150 },
151 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the SandboxEnvironmentTemplate. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_environment_template}`
152 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the sandbox environment template.
153 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when this SandboxEnvironmentTemplate was most recently updated.
154 }
155
156 x__xgafv: string, V1 error format.
157 Allowed values
158 1 - v1 error format
159 2 - v2 error format
160
161 Returns:
162 An object of the form:
163
164 { # This resource represents a long-running operation that is the result of a network API call.
165 &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.
166 &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.
167 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
168 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
169 {
170 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
171 },
172 ],
173 &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.
174 },
175 &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.
176 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
177 },
178 &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}`.
179 &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`.
180 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
181 },
182 }</pre>
183 </div>
184
185 <div class="method">
186 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
187 <pre>Deletes the specific SandboxEnvironmentTemplate.
188
189 Args:
190 name: string, Required. The resource name of the SandboxEnvironmentTemplate to delete. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_environment_template}` (required)
191 x__xgafv: string, V1 error format.
192 Allowed values
193 1 - v1 error format
194 2 - v2 error format
195
196 Returns:
197 An object of the form:
198
199 { # This resource represents a long-running operation that is the result of a network API call.
200 &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.
201 &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.
202 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
203 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
204 {
205 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
206 },
207 ],
208 &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.
209 },
210 &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.
211 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
212 },
213 &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}`.
214 &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`.
215 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
216 },
217 }</pre>
218 </div>
219
220 <div class="method">
221 <code class="details" id="get">get(name, x__xgafv=None)</code>
222 <pre>Gets details of the specific SandboxEnvironmentTemplate.
223
224 Args:
225 name: string, Required. The resource name of the sandbox environment template. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_environment_template}` (required)
226 x__xgafv: string, V1 error format.
227 Allowed values
228 1 - v1 error format
229 2 - v2 error format
230
231 Returns:
232 An object of the form:
233
234 { # The specification of a SandboxEnvironmentTemplate. A SandboxEnvironmentTemplate defines a template for creating SandboxEnvironments.
235 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when this SandboxEnvironmentTemplate was created.
236 &quot;customContainerEnvironment&quot;: { # The customized sandbox runtime environment for BYOC. # The sandbox environment for custom container workloads.
237 &quot;customContainerSpec&quot;: { # Specification for deploying from a custom container image. # The specification of the custom container environment.
238 &quot;imageUri&quot;: &quot;A String&quot;, # Required. The Artifact Registry Docker image URI (e.g., us-central1-docker.pkg.dev/my-project/my-repo/my-image:tag) of the container image that is to be run on each worker replica.
239 },
240 &quot;ports&quot;: [ # Ports to expose from the container.
241 { # Represents a network port in a container.
242 &quot;port&quot;: 42, # Optional. Port number to expose. This must be a valid port number, between 1 and 65535.
243 &quot;protocol&quot;: &quot;A String&quot;, # Optional. Protocol for port. Defaults to TCP if not specified.
244 },
245 ],
246 &quot;resources&quot;: { # Message to define resource requests and limits (mirroring Kubernetes) for each sandbox instance created from this template. # Resource requests and limits for the container.
247 &quot;limits&quot;: { # Optional. The maximum amounts of compute resources allowed. Keys are resource names (e.g., &quot;cpu&quot;, &quot;memory&quot;). Values are quantities (e.g., &quot;500m&quot;, &quot;1Gi&quot;).
248 &quot;a_key&quot;: &quot;A String&quot;,
249 },
250 &quot;requests&quot;: { # Optional. The requested amounts of compute resources. Keys are resource names (e.g., &quot;cpu&quot;, &quot;memory&quot;). Values are quantities (e.g., &quot;250m&quot;, &quot;512Mi&quot;).
251 &quot;a_key&quot;: &quot;A String&quot;,
252 },
253 },
254 },
255 &quot;defaultContainerEnvironment&quot;: { # The default sandbox runtime environment for default container workloads. # The sandbox environment for default container workloads.
256 &quot;defaultContainerCategory&quot;: &quot;A String&quot;, # Required. The category of the default container image.
257 &quot;resources&quot;: { # Message to define resource requests and limits (mirroring Kubernetes) for each sandbox instance created from this template. # Optional. Resource requests and limits for the default container.
258 &quot;limits&quot;: { # Optional. The maximum amounts of compute resources allowed. Keys are resource names (e.g., &quot;cpu&quot;, &quot;memory&quot;). Values are quantities (e.g., &quot;500m&quot;, &quot;1Gi&quot;).
259 &quot;a_key&quot;: &quot;A String&quot;,
260 },
261 &quot;requests&quot;: { # Optional. The requested amounts of compute resources. Keys are resource names (e.g., &quot;cpu&quot;, &quot;memory&quot;). Values are quantities (e.g., &quot;250m&quot;, &quot;512Mi&quot;).
262 &quot;a_key&quot;: &quot;A String&quot;,
263 },
264 },
265 },
266 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the SandboxEnvironmentTemplate.
267 &quot;egressControlConfig&quot;: { # Configuration for egress control of sandbox instances. # Optional. The configuration for egress control of this template.
268 &quot;internetAccess&quot;: True or False, # Optional. Whether to allow internet access.
269 },
270 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the SandboxEnvironmentTemplate. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_environment_template}`
271 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the sandbox environment template.
272 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when this SandboxEnvironmentTemplate was most recently updated.
273 }</pre>
274 </div>
275
276 <div class="method">
277 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
278 <pre>Lists SandboxEnvironmentTemplates in a given reasoning engine.
279
280 Args:
281 parent: string, Required. The resource name of the reasoning engine to list sandbox environment templates from. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` (required)
282 filter: string, Optional. The standard list filter. More detail in [AIP-160](https://google.aip.dev/160).
283 pageSize: integer, Optional. The maximum number of SandboxEnvironmentTemplates to return. The service may return fewer than this value. If unspecified, at most 100 SandboxEnvironmentTemplates will be returned.
284 pageToken: string, Optional. The standard list page token, received from a previous `ListSandboxEnvironmentTemplates` call. Provide this to retrieve the subsequent page.
285 x__xgafv: string, V1 error format.
286 Allowed values
287 1 - v1 error format
288 2 - v2 error format
289
290 Returns:
291 An object of the form:
292
293 { # Response message for SandboxEnvironmentService.ListSandboxEnvironmentTemplates.
294 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as ListSandboxEnvironmentTemplatesRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages.
295 &quot;sandboxEnvironmentTemplates&quot;: [ # The SandboxEnvironmentTemplates matching the request.
296 { # The specification of a SandboxEnvironmentTemplate. A SandboxEnvironmentTemplate defines a template for creating SandboxEnvironments.
297 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when this SandboxEnvironmentTemplate was created.
298 &quot;customContainerEnvironment&quot;: { # The customized sandbox runtime environment for BYOC. # The sandbox environment for custom container workloads.
299 &quot;customContainerSpec&quot;: { # Specification for deploying from a custom container image. # The specification of the custom container environment.
300 &quot;imageUri&quot;: &quot;A String&quot;, # Required. The Artifact Registry Docker image URI (e.g., us-central1-docker.pkg.dev/my-project/my-repo/my-image:tag) of the container image that is to be run on each worker replica.
301 },
302 &quot;ports&quot;: [ # Ports to expose from the container.
303 { # Represents a network port in a container.
304 &quot;port&quot;: 42, # Optional. Port number to expose. This must be a valid port number, between 1 and 65535.
305 &quot;protocol&quot;: &quot;A String&quot;, # Optional. Protocol for port. Defaults to TCP if not specified.
306 },
307 ],
308 &quot;resources&quot;: { # Message to define resource requests and limits (mirroring Kubernetes) for each sandbox instance created from this template. # Resource requests and limits for the container.
309 &quot;limits&quot;: { # Optional. The maximum amounts of compute resources allowed. Keys are resource names (e.g., &quot;cpu&quot;, &quot;memory&quot;). Values are quantities (e.g., &quot;500m&quot;, &quot;1Gi&quot;).
310 &quot;a_key&quot;: &quot;A String&quot;,
311 },
312 &quot;requests&quot;: { # Optional. The requested amounts of compute resources. Keys are resource names (e.g., &quot;cpu&quot;, &quot;memory&quot;). Values are quantities (e.g., &quot;250m&quot;, &quot;512Mi&quot;).
313 &quot;a_key&quot;: &quot;A String&quot;,
314 },
315 },
316 },
317 &quot;defaultContainerEnvironment&quot;: { # The default sandbox runtime environment for default container workloads. # The sandbox environment for default container workloads.
318 &quot;defaultContainerCategory&quot;: &quot;A String&quot;, # Required. The category of the default container image.
319 &quot;resources&quot;: { # Message to define resource requests and limits (mirroring Kubernetes) for each sandbox instance created from this template. # Optional. Resource requests and limits for the default container.
320 &quot;limits&quot;: { # Optional. The maximum amounts of compute resources allowed. Keys are resource names (e.g., &quot;cpu&quot;, &quot;memory&quot;). Values are quantities (e.g., &quot;500m&quot;, &quot;1Gi&quot;).
321 &quot;a_key&quot;: &quot;A String&quot;,
322 },
323 &quot;requests&quot;: { # Optional. The requested amounts of compute resources. Keys are resource names (e.g., &quot;cpu&quot;, &quot;memory&quot;). Values are quantities (e.g., &quot;250m&quot;, &quot;512Mi&quot;).
324 &quot;a_key&quot;: &quot;A String&quot;,
325 },
326 },
327 },
328 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the SandboxEnvironmentTemplate.
329 &quot;egressControlConfig&quot;: { # Configuration for egress control of sandbox instances. # Optional. The configuration for egress control of this template.
330 &quot;internetAccess&quot;: True or False, # Optional. Whether to allow internet access.
331 },
332 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the SandboxEnvironmentTemplate. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_environment_template}`
333 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the sandbox environment template.
334 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when this SandboxEnvironmentTemplate was most recently updated.
335 },
336 ],
337 }</pre>
338 </div>
339
340 <div class="method">
341 <code class="details" id="list_next">list_next()</code>
342 <pre>Retrieves the next page of results.
343
344 Args:
345 previous_request: The request for the previous page. (required)
346 previous_response: The response from the request for the previous page. (required)
347
348 Returns:
349 A request object that you can call &#x27;execute()&#x27; on to request the next
350 page. Returns None if there are no more items in the collection.
351 </pre>
352 </div>
353
354 </body></html>